Exemple #1
0
//var_dump($data);
$data['_extraModule'] = array(array('User Module', 'userModule'), array('ResetPassword', 'resetPass'));
$_data = $obj->getById($id);
$upload_dir = UPLOADS_DIR . 'Organization/';
$data['upload_dir'] = $upload_dir;
$data['uploadUrl'] = '../uploads/Organization/';
/* * *************** END of these fields are required *********************************** */
/**
 *  $fields_post :: This list is the list of all fields which are affected while inserting in database
 * */
$fields_post = array('username', 'email', 'us00uin');
/**
 *  $fields_edit :: This list is the list of all fields which are affected while updating database
 * */
$fields_edit = $fields_post;
/**
 *  generalprocess :: This will handle CRUD model
 * */
if (isset($_POST['us00uin'])) {
    $objUserModule = new userModule();
    #var_dump($objUserModule->getCurrentRight());
    #var_dump($_POST);
    if ($_POST['us00uin'] > $objUserModule->getCurrentRight()) {
        $_POST['us00uin'] = 0;
    }
    //var_dump($_POST);
}
include_once ADMIN_TPL_MODULE . 'includes/generalprocess_v3.php';
/**
 *  other Process :: You can add code here for further Special  processing
 * */
Exemple #2
0
//$data['_extraModule']=array(array('User Module','userModule'));
$_data = $obj->getByID_v2($id);
//var_dump($_data);
$upload_dir = UPLOADS_DIR . 'Organization/';
$data['upload_dir'] = $upload_dir;
$data['uploadUrl'] = '../uploads/Organization/';
/***************** END of these fields are required ************************************/
/**  
 *  $fields_post :: This list is the list of all fields which are affected while inserting in database 
 **/
$fields_post = array('title', 'rights');
/**  
 *  $fields_edit :: This list is the list of all fields which are affected while updating database 
 **/
$fields_edit = $fields_post;
/**  
 *  generalprocess :: This will handle CRUD model
 **/
if (isset($_POST['rights'])) {
    $objUserModule = new userModule();
    #var_dump($objUserModule->getCurrentRight());
    #var_dump($_POST);
    if ($_POST['rights'] > $objUserModule->getCurrentRight() || $_POST['rights'] > 100) {
        $_POST['rights'] = 0;
    }
    //var_dump($_POST);
}
include_once ADMIN_TPL_MODULE . 'includes/generalprocess_v2.php';
/**  
 *  other Process :: You can add code here for further Special  processing
 **/
Exemple #3
0
?>
"  name="<?php 
echo 'email';
?>
">
        </td>
    </tr>
    <tr>
        <td>
            <label >Access Level: </label>
        </td>
        <td>
            <select name="us01uin" class="input_field">
                <?php 
$dbUserModule = new userModule();
$SQL = "SELECT * FROM us00usertype where us00rights < " . $dbUserModule->getCurrentRight();
$userTypes = Query($SQL);
foreach ($userTypes as $row1) {
    $selected = '';
    if ($row1['us00uin'] == $_data['us01us00uin']) {
        $selected = 'selected';
    }
    echo '<option ' . $selected . ' value="' . $row1['us00uin'] . '">' . $row1['us00title'] . '</option>';
}
?>
                
            </select>
        </td>
    </tr>
    <tr>
        <td>