Esempio n. 1
0
function listMaker($name,$arr){
	$string = '';
	foreach ($arr as $key => $value){
		if(is_array($value)){
			$string.='
			<li class="directory expanded"><a href="#" rel="'.$name.'/'.$key.'">'.$key.'</a>
				<ul id="'.$key.'" class="jqueryFileTree">';
			$string.= listMaker($name.'/'.$key,$value);
			$string.='
				</ul>
			</li>';
			continue;
		}
		else{
			$ext = explode('.',$value);
			$count = count($ext);
			while($count>1){
				$count-=1;
				array_shift($ext);
			}
			$ext = $ext[0];
			if($ext === 'temp') continue;
			$string.='
			<li class="file ext_'.$ext.'"><a href="#" rel="'.$name.'/'.$value.'">'.$value.'</a></li>';
		}
	}
	return $string;
}
Esempio n. 2
0
    {
    	document.getElementById('status').value="activate"
    	document.getElementById('user_id').value=trans_num
         document.getElementById('form1').action = 'sms_slot_list.php'
            document.form1.submit();
    }
</script>
<form id='form1' name='form1' method=post>
<?php 
if (!empty($_REQUEST['status'])) {
    $status = 1;
    if ($_REQUEST['status'] == "deactivate") {
        $status = 0;
    }
    $user_id = $_REQUEST['user_id'];
    $update = "update sms_slot_file set mas_status={$status} where slot_id='{$user_id}' limit 1";
    $conn->query($update);
}
echo "<input type='hidden' name='status' id='status' >";
echo "<input type='hidden' name='user_id' id='user_id' >";
echo "<table>";
echo "<tr>";
echo "<td style='text-align:right'><a href='master_slot.php'>Add New</a>";
echo "</td>";
echo "</tr>";
echo "<tr>";
listMaker('sms_slot_file', 'sms_slot', array('sms_slot', 'phone_number', 'mas_status'), 'SMS Slot List');
echo "</tr>";
echo "</table>";
?>
</form>
Esempio n. 3
0
<?php

include 'page_header.php';
echo "<table>";
echo "<tr>";
echo "<td style='text-align:right'><a href='master_department.php'>Add New</a>";
echo "</td>";
echo "</tr>";
echo "<tr>";
listMaker('master_department_file', 'department', array('department', 'mas_status'), 'Department List');
echo "</tr>";
echo "</table>";
Esempio n. 4
0
    }
    function check_list(trans_num)
    {
         document.getElementById('form1').action = 'user_list.php?status=activate&user_id='+trans_num
            document.form1.submit();
    }
</script>
<?php 
if (!empty($_REQUEST['status'])) {
    $status = 1;
    if ($_REQUEST['status'] == "deactivate") {
        $status = 0;
    }
    $user_id = $_REQUEST['user_id'];
    $update = "update user_file set mas_status={$status} where user_id='{$user_id}' limit 1";
    $conn->query($update);
}
?>
<form method=post name='form1' id='form1'>
<?php 
echo "<table>";
echo "<tr>";
echo "<td style='text-align:right'><a href='user_file.php'>Add New</a>";
echo "</td>";
echo "</tr>";
echo "<tr>";
listMaker('user_file', 'created_date', array('user_name', 'first_name', 'last_name', 'user_type', 'department', 'finance_head', 'mas_status'), 'User List');
echo "</tr>";
echo "</table>";
?>
</form>
Esempio n. 5
0
     function check_list(trans_num)
    {
         document.getElementById('form1').action = 'list_view.php?status=activate&user_id='+trans_num
            document.form1.submit();
    }
    function edit_list(trans_num)
    {
        document.getElementById('form1').action = "masters.php?trans_num="+trans_num
        document.form1.submit();
    }
</script>
<?php 
if (!empty($_REQUEST['status'])) {
    $status = 1;
    if ($_REQUEST['status'] == "deactivate") {
        $status = 0;
    }
    $user_id = $_REQUEST['user_id'];
    $update = "update master_address_file set mas_status={$status} where account_id='{$user_id}' limit 1";
    $conn->query($update);
}
echo "<table>";
echo "<tr>";
echo "<td style='text-align:right'><a href='masters.php?'>Add New</a>";
echo "</td>";
echo "</tr>";
echo "<tr>";
$val_array = array('account_type', 'first_name', 'last_name', 'department_id', 'account_executive_id', 'phone_number', 'date_created', 'mas_status');
listMaker('master_address_file', 'first_name', $val_array, 'Address Book' . ' List');
echo "</tr>";
echo "</table>";