Esempio n. 1
0
        $("#userid").val('<?php 
    echo $trainer->UserID;
    ?>
');
        $("#userpwd").val('<?php 
    echo $trainer->UserPW;
    ?>
');
        $("#name").val('<?php 
    echo $trainer->Name;
    ?>
');
        $('input:radio[name="sex"][value="<?php 
    echo $trainer->Sex;
    ?>
"]').prop('checked', true);
<?php 
}
if (perm_is_center($permission)) {
    ?>
        $("#centercode").val('<?php 
    echo $centercode;
    ?>
');
        $("#centercode").prop("disabled", true);
<?php 
}
?>
    }); 
</script>
Esempio n. 2
0
 function perm_above_trainer($v)
 {
     if (perm_is_admin($v) || perm_is_center($v) || perm_is_trainer($v)) {
         return true;
     } else {
         return false;
     }
 }