Course.php: format code for JavaScript function invite()
							parent
							
								
									a8b235052f
								
							
						
					
					
						commit
						d5165af308
					
				
							
								
								
									
										51
									
								
								Course.php
								
								
								
								
							
							
						
						
									
										51
									
								
								Course.php
								
								
								
								
							| 
						 | 
				
			
			@ -582,32 +582,33 @@ include 'Header.php';
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
 function invite(id) {
 | 
			
		||||
 | 
			
		||||
     try
 | 
			
		||||
     {
 | 
			
		||||
         $('<form id="frm" method="get" action="Script.php"><input type="hidden" name="groupinvite" value="true">\n\
 | 
			
		||||
 <input type="hidden" name="groupid" value="'+id+'" > Enter Student ID to invite  <input type="text" name="student_id">\n\
 | 
			
		||||
<input type="hidden" name="url" value="<?php echo $url; ?>">  <input type="hidden" name="courseid" value="<?php echo $course_id; ?>">    </form>').dialog({
 | 
			
		||||
     modal: true,
 | 
			
		||||
     title:'Invite students to group',
 | 
			
		||||
     close: function () {
 | 
			
		||||
         var closeBtn = $('.ui-dialog-titlebar-close');
 | 
			
		||||
         closeBtn.html('');
 | 
			
		||||
     },
 | 
			
		||||
     buttons: {
 | 
			
		||||
         'Invite': function () {
 | 
			
		||||
	     $('#frm').submit();
 | 
			
		||||
 | 
			
		||||
	     $(this).dialog('close');
 | 
			
		||||
         },
 | 
			
		||||
         'Cancel': function () {
 | 
			
		||||
 | 
			
		||||
	     $(this).dialog('close');
 | 
			
		||||
         }
 | 
			
		||||
 | 
			
		||||
     try {
 | 
			
		||||
         $('<form id="frm" method="get" action="Script.php"> \
 | 
			
		||||
                <input type="hidden" name="groupinvite" value="true"> \
 | 
			
		||||
                <input type="hidden" name="groupid" value="'+id+'" > Enter Student ID to invite \
 | 
			
		||||
                <input type="text" name="student_id"> \
 | 
			
		||||
                <input type="hidden" name="url" value="<?php echo $url; ?>"> \
 | 
			
		||||
                <input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> \
 | 
			
		||||
            </form>').dialog({
 | 
			
		||||
		modal: true,
 | 
			
		||||
		title:'Invite students to group',
 | 
			
		||||
		close: function () {
 | 
			
		||||
		    var closeBtn = $('.ui-dialog-titlebar-close');
 | 
			
		||||
		    closeBtn.html('');
 | 
			
		||||
		},
 | 
			
		||||
		buttons: {
 | 
			
		||||
		    'Invite': function () {
 | 
			
		||||
			$('#frm').submit();
 | 
			
		||||
			$(this).dialog('close');
 | 
			
		||||
		    },
 | 
			
		||||
		    'Cancel': function () {
 | 
			
		||||
			$(this).dialog('close');
 | 
			
		||||
		    }
 | 
			
		||||
		}
 | 
			
		||||
	    });
 | 
			
		||||
     } catch(e) {
 | 
			
		||||
	 alert(e);
 | 
			
		||||
     }
 | 
			
		||||
 });
 | 
			
		||||
     } catch(e){ alert(e); }
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue