?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/rms/application/views/settings/edit_module.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('settings','viewinsettingssearch','search_module','view_module','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Update Login Type</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('settings/addinsettings/update_module/view_module/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Login Type </label> <div> <input name="login_type_name" id="login_type_name" class="required" type="text" value="<?=$viewinfo->login_type_name?>" > </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main"> <span></span> </div> <table class="table"> <caption>Permissions</caption> <thead> <tr> <th>Module Name</th> <th><input style="width: 15px;" type="checkbox" id="view_check_all" onchange="check_all_view2(this,'view_','')">Select All</th> </tr> </thead> <tbody> <?php $modname=""; $modcheck=""; $cntr=1; $i=1; $modulelist=$this->mastermodel->getmoduledata(); $j=0; $txtname=""; $viewCount=0; $initialPermission=""; $home_page=""; $moduleidList=""; foreach ($modulelist as $menulst) { $viewCount++; $initialPermission .= "0,"; $home_page .= "0,"; $moduleidList .= $menulst['menu_id'].","; $txtname = $menulst['module_name']; if($modname!=$menulst['module_name']) { $modname=$menulst['module_name']; $title=$menulst['module_title']; ?> <tr> <th><?=$title;?></th> <th> <input style="width: 15px;" class="" type="checkbox" id="view_<?=$modname?>" onchange="check_module_view2('view_','<?=$modname?>')"> </th> </tr> <?php $i++; } $login=$menulst['login_type']; $login_ar=explode(',',$login); ?> <tr> <td> <?=$menulst['caption'];?></td> <td> <?php if(in_array($viewinfo->login_type_id, $login_ar)) { ?> <input class="" style="width: 15px;" name="menu_<?=$menulst['menu_id']?>" id="view_<?php echo $j;?>" value="<?=$menulst['menu_id']?>" type="checkbox" checked="true"> <?php } else { ?> <input class="" style="width: 15px;" name="menu_<?=$menulst['menu_id']?>" id="view_<?php echo $j;?>" value="<?=$menulst['menu_id']?>" type="checkbox"> <?php } ?> </td> </tr> <?php $j++; } ?> </tbody> </table> <input type="hidden" id="ViewCount" name="ViewCount" value=<?php echo $viewCount?>> <input type="hidden" id="tab_name" name="tab_name" value="role"> <input type="hidden" id="login_type_id" name="login_type_id" value="<?=$viewinfo->login_type_id?>"/> <input type="hidden" name="resfunction" value="search_profile"/> </div> </div> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> </div> </div> <?php echo form_close();?>