%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php error_reporting(0); include("secure/db_config.php"); date_default_timezone_set('Asia/Kolkata'); $update_date = date('d-m-Y h:i:s'); $sid = $_REQUEST['sid']; $queyview = mysqli_query($connection,"select * from `tbl_user` where id='".$sid."'") or die(mysqli_error()); $datsohows = mysqli_fetch_array($queyview); $accessp = explode(',',$datsohows['access']); if($_POST['insert']){ extract($_POST); $addaccess = implode(",", $access_option); if(!preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$^",$Email)){ $error_email = "<font color='#990000'>Please Enter valid emailid.</font>"; $error = 1; } if($error!='1'){ $qeru = mysqli_query($connection,"update `tbl_user` set user_name='".$Name."', email='".$Email."', phone='".$phone."' , department='".$department."', access='".$addaccess."', status='1' where id='".$sid."'") or die(mysqli_error()); } $ins_message = "<font color='#00CC99'>Data Update Successfully</font>"; if($qeru){ echo "<script type='application/javascript'>window.location.href='index.php?mode=view-user'</script>"; } } ?> <script src="ckeditor/ckeditor.js"></script> <div class="col-md-10"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Add User Detail</h3> </div> <p> <?php if($mserror){ echo $mserror; } if($error_email){ echo $error_email;}?></p> <div ng-app="sa_app" ng-controller="controller" ng-init="show_data()"> <form role="form" method="post" name="frm" id="frm"> <div class="box-body"> <div class="form-group"> <label for="exampleInputPassword1">Name</label> <input type="text" class="form-control" name="Name" ng-model="Name" id="exampleInputEmail1" placeholder="Enter Text" required value="<?php echo $datsohows['user_name'];?>"> </div> <div class="form-group"> <label for="exampleInputPassword1">Email</label> <input type="text" class="form-control" name="Email" ng-model="Email" id="exampleInputEmail1" placeholder="Enter Text" required value="<?php echo $datsohows['email'];?>"> </div> <div class="form-group"> <label for="exampleInputPassword1">Phone</label> <input type="text" class="form-control" name="phone" ng-model="phone" id="exampleInputEmail1" placeholder="Enter Phone Number" maxlength='10' required value="<?php echo $datsohows['phone'];?>"> </div> <div class="form-group"> <label for="exampleInputPassword1">Department</label> <select name="department" id="department" class="form-control" required> <option value="">--Select Department--</option> <option value="Cardiology" <?php if($datsohows['department']=='Cardiology'){ echo 'selected'; }?>>Cardiology</option> <option value="gastroenterology" <?php if($datsohows['department']=='gastroenterology'){ echo 'selected'; } ?>>Gastroenterology</option> <option value="Nephrology" <?php if($datsohows['department']=='Nephrology'){ echo 'selected'; } ?>>Nephrology</option> <option value="Neurology" <?php if($datsohows['department']=='Neurology'){ echo 'selected'; } ?>>Neurology</option> <option value="Orthopaedics" <?php if($datsohows['department']=='Orthopaedics'){ echo 'selected'; } ?>>Orthopaedics</option> <option value="All" <?php if($datsohows['department']=='All'){ echo 'selected'; } ?>>All</option> </select> </div> <div class="form-group"> <label for="exampleInputPassword1">Access Option</label> <br/> <input type="Checkbox" class="checkbox-info" name="access_option[]" ng-model="access_option" id="access_option" <?php if(($accessp[0]=='0') || ($accessp[1]=='0') || ($accessp[2]=='0')) { echo 'checked'; } ?> value="0"> <label for="exampleInputPassword1">Export</label> <input type="Checkbox" class="checkbox-info" name="access_option[]" ng-model="access_option" id="access_option" <?php if(($accessp[0]=='1') || ($accessp[1]=='1') || ($accessp[2]=='1')){ echo 'checked'; } ?> value="1"> <label for="exampleInputPassword1">Delete</label> <input type="Checkbox" class="checkbox-info" name="access_option[]" ng-model="access_option" id="access_option" <?php if(($accessp[0]=='2') || ($accessp[1]=='2') || ($accessp[2]=='2')){ echo 'checked'; } ?> value="2"> <label for="exampleInputPassword1">Search</label> <!--<input type="Checkbox" class="checkbox-info" name="access_option[]" ng-model="access_option" id="access_option" value="3"> <label for="exampleInputPassword1">Edit</label> --> </div> </div> <div class="box-footer"> <input type="hidden" ng-model="id"> <input type="submit" class="btn btn-primary" name="insert" id="insert" ng-click="insert()" > </div> </form> </div> </div> </div>