-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.php
670 lines (278 loc) · 10.5 KB
/
setting.php
1
<?php/** * Created by PhpStorm. * User: WsKLab * Date: 10/6/2016 * Time: 3:15 PM */session_start();if(!isset($_SESSION['mysession'])){header('location:index.php');}?><?php require_once('template/head.php'); ?>}</style></head><body><div class="container-fluid"><?php require_once('template/nav.php'); ?><?phpif(isset($_GET['uprec'])){ $uprec=$_GET['p_p_record']; $q="Update setting SET records='$uprec' Where username='$actor'"; $uexe=mysqli_query($con,$q); if($uexe){ echo '<h3 class="alert alert-info"> Value Updated</h3>'; header("refresh:3;url=setting.php"); } }$value=select_one_col($con,"setting","records",$actor); ?> <h2>Setting Page</h2> <form method="get" action="#"> <div class="form-group col-sm-12"><div class="col-sm-2"> <label for="record">Records Per Page:</label> </div> <div class="col-sm-10"> <input type="number" class="form-control" min="13" name="p_p_record" id="record" value="<?php echo $value ?>"> </div> </div> <div class="form-group col-sm-12"> <div class="col-sm-10 col-sm-push-2"> <button type="submit" name="uprec"class=" btn btn-primary ">Update Record Per Page</button> </div> </div> </form><!-- **************************************************************************************************************** --><!-- Default Person Value --><?phpif(isset($_GET['updateDefaultPerson'])){$wsk_defalut=$_GET['waqas'];$brk_defalut=$_GET['barkat'];$imd_defalut=$_GET['imdad'];$nwb_defalut=$_GET['nawab'];$ijz_defalut=$_GET['ijaz'];$isn_defalut=$_GET['ihsan'];$kas_defalut=$_GET['kashif'];$jal_defalut=$_GET['jalil'];$nsr_defalut=$_GET['nasar'];$isr_defalut=$_GET['israr'];$yas_defalut=$_GET['yasir'];$nwbc_defalut=$_GET['nawabc'];$ans_defalut=$_GET['ansar'];$mhb_defalut=$_GET['mehboob'];$mus_defalut=$_GET['mushtaq'];$isq_defalut=$_GET['ishaq'];$asf_defalut=$_GET['asif'];$irf_defalut=$_GET['irfan'];$nae_defalut=$_GET['naeem'];$wzr_defalut=$_GET['wazir'];$zkr_defalut=$_GET['zakir']; $uq="UPDATE setting SET wsk_def_val='$wsk_defalut',brk_def_val='$brk_defalut',imd_def_val='$imd_defalut',nwb_def_val='$nwb_defalut',ijz_def_val='$ijz_defalut',isn_def_val='$isn_defalut',kas_def_val='$kas_defalut',jal_def_val='$jal_defalut',nsr_def_val='$nsr_defalut',isr_def_val='$isr_defalut',yas_def_val='$yas_defalut',nwbc_def_val='$nwbc_defalut',ans_def_val='$ans_defalut',mhb_def_val='$mhb_defalut',mus_def_val='$mus_defalut',isq_def_val='$isq_defalut',asf_def_val='$asf_defalut',irf_def_val='$irf_defalut',nae_def_val='$nae_defalut',wzr_def_val='$wzr_defalut',zkr_def_val='$zkr_defalut' WHERE username='$actor' ";$upr=mysqli_query($con,$uq)or die('error in update');if($upr){echo '<h2 class="bg-success text-center">Defalut values updated</h2>>';header("refresh:3;url=setting.php");}}?><?php$tvalue=select_eleven_col($con,"setting",$actor);$wsk_def=$tvalue['wsk_def_val'];$imd_def=$tvalue['imd_def_val'];$ijz_def=$tvalue['ijz_def_val'];$brk_def=$tvalue['brk_def_val'];$isn_def=$tvalue['isn_def_val'];$nwb_def=$tvalue['nwb_def_val'];$jal_def=$tvalue['jal_def_val'];$nsr_def=$tvalue['nsr_def_val'];$kas_def=$tvalue['kas_def_val'];$isr_def=$tvalue['isr_def_val'];$yas_def=$tvalue['yas_def_val'];$nwbc_def=$tvalue['nwbc_def_val'];$ans_def=$tvalue['ans_def_val'];$mhb_def=$tvalue['mhb_def_val'];$mus_def=$tvalue['mus_def_val'];$isq_def=$tvalue['isq_def_val'];$asf_def=$tvalue['asf_def_val'];$irf_def=$tvalue['irf_def_val'];$nae_def=$tvalue['nae_def_val'];$wzr_def=$tvalue['wzr_def_val'];$zkr_def=$tvalue['zkr_def_val'];?><form method="get" action="#"> <div class="form-group col-sm-12"> <label class="col-sm-2">Defalut Value For Present Persons</label> <div class="col-sm-2"> <div class=""> <label>Waqas Sb </label> <input type="number" name="waqas" min="0" max="30" value="<?php echo $wsk_def?>" required> </div> </div> <div class="col-sm-2"> <div class=""> <label>Ijaz Sb </label> <input type="number" name="ijaz" min="0" max="30" value="<?php echo $ijz_def?>" required> </div> </div> <div class="col-sm-2"> <div class=""> <label>Imdad Sb </label> <input type="number" name="imdad" min="0" max="30" value="<?php echo $imd_def?>" required> </div> </div> <div class="col-sm-2"> <div class="" name="barkat"> <label>Barkat Sb </label> <input type="number" name="barkat" min="0" max="30" value="<?php echo $brk_def?>"required> </div> </div> <div class="col-sm-2"> <div class="" name="nawab"> <label>Nawab Sb</label> <input type="number" name="nawab" min="0" max="30" value="<?php echo $nwb_def?>"required> </div> </div> </div> <!--new row--> <div class="form-group col-sm-12"> <label class="col-sm-2"><!--empty label--></label> <div class="col-sm-2"> <div class="" name="ihsan"> <label>Ihsan Sb </label> <input type="number" name="ihsan" min="0" max="30" value="<?php echo $isn_def?>"required> </div> </div> <div class="col-sm-2"> <div class="" name="jalil"> <label>Jalil Sb</label> <input type="number" name="jalil" min="0" max="30" value="<?php echo $jal_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="kashif"> <label>Kashif Sb</label> <input type="number" name="kashif" min="0" max="30" value="<?php echo $kas_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="nasar"> <label>Nasar Sb</label> <input type="number" name="nasar" min="0" max="30" value="<?php echo $nsr_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="israr"> <label>Israr Sb</label> <input type="number" name="israr" min="0" max="30" value="<?php echo $isr_def?>"required> </div> </div><div> <!-----> <div class="form-group col-sm-12"> <label class="col-sm-2"><!--empty label--></label> <div class="col-sm-2 "> <div class="" name="yasir"> <label>Yasir Sb</label> <input type="number" name="yasir" min="0" max="30" value="<?php echo $yas_def?>"required> </div> </div> </div> <!-- --> <div class="form-group col-sm-12"> <label class="col-sm-2"><!--empty label--></label> <div class="col-sm-2 "> <div class="" name="yasir"> <label>Prince Nawab Sb</label> <input type="number" name="nawabc" min="0" max="30" value="<?php echo $nwbc_def?>"required> </div> </div> </div> <!-- --> <!-- --> <div class="form-group col-sm-12"> <label class="col-sm-2"><!--empty label--></label> <div class="col-sm-2 "> <div class="" name="ansar"> <label>Ansar Sarwar Sb</label> <input type="number" name="ansar" min="0" max="30" value="<?php echo $ans_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="mehboob"> <label>Mehboob</label> <input type="number" name="mehboob" min="0" max="30" value="<?php echo $mhb_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="mushtaq"> <label>Mushtaq</label> <input type="number" name="mushtaq" min="0" max="30" value="<?php echo $mus_def?>"required> </div> </div><div class="col-sm-2 "> <div class="" name="ishaq"> <label>Ishaq</label> <input type="number" name="ishaq" min="0" max="30" value="<?php echo $isq_def?>"required> </div> </div><div class="col-sm-2 "> <div class="" name="asif"> <label>Asif</label> <input type="number" name="asif" min="0" max="30" value="<?php echo $asf_def?>"required> </div> </div> </div> <div class="col-sm-2 "> <div class="" name="irfan"> <label>Irfan</label> <input type="number" name="irfan" min="0" max="30" value="<?php echo $irf_def?>"required> </div> </div> </div><div class="col-sm-2 "> <div class="" name="naeem"> <label>Naeem</label> <input type="number" name="naeem" min="0" max="30" value="<?php echo $nae_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="wazir"> <label>Wazir</label> <input type="number" name="wazir" min="0" max="30" value="<?php echo $wzr_def?>"required> </div> </div> <div class="col-sm-2 "> <div class="" name="zakir"> <label>Zakir</label> <input type="number" name="zakir" min="0" max="30" value="<?php echo $zkr_def?>"required> </div> </div> </div> <!-- --> <div class="form-group col-sm-12"> <div class="col-sm-10 col-sm-push-2"> <button type="submit" name="updateDefaultPerson" class=" btn btn-primary ">Update Defalut Person Values</button> </div> </div></form><!--Default Person Value End --></div><!--combotext --> <div class="form-group col-sm-12"> <label class="col-sm-2">Use of combo box or textbox in insert</label> <div class="col-sm-10"> <form> <div class="radio"> <label><input type="radio" name="combobox" value="1">Combobox</label> </div> <div class="radio"> <label><input type="radio" name="combobox" value="2">Textbox</label> </div> <button type="submit" name="combotext" class="btn btn-primary">Change Type </button> </form> </div></div><!--combotext--> <?php require_once('template/foot.php'); ?>