示例#1
0
			</td>
		</tr>
		<tr>
			<td>Display Name* </td>
			<td><input id="mm-display-name" type="text" class="medium-text" value='<?php 
echo $employee->getDisplayName();
?>
'/></td>
		</tr>
		<tr>
			<td>Email*</td>
			<td><input id="mm-email" type="text" class="medium-text" value='<?php 
echo $employee->getEmail();
?>
' <?php 
echo $employee->isValid() ? "disabled" : "";
?>
/></td>
		</tr>
		<?php 
if (!$employee->isValid()) {
    ?>
		<tr>
			<td>Password*</td>
			<td><input id="mm-password" type="password" value='' /></td>
		</tr>
		<?php 
}
?>
		<tr>
			<td>Real Name</td>
示例#2
0
 // Phone
 if ($item->phone != "") {
     $phone = $item->phone;
 } else {
     $phone = MM_NO_DATA;
 }
 // Role Name
 $item->role_name = MM_Role::getRoleName($item->role_id);
 if (empty($item->role_name)) {
     $item->role_name = MM_NO_DATA;
 }
 // Access Restrictions
 if (MM_MemberMouseService::hasPermission(MM_MemberMouseService::$FEATURE_EMPLOYEE_ACCOUNTS)) {
     $employee = new MM_Employee($item->id);
     $hasRestrictions = false;
     if ($employee->isValid()) {
         $membershipRestrictions = $employee->getAccessRescrictions(MM_Employee::$ACCESS_TYPE_MEMBERSHIP);
         if (count($membershipRestrictions) > 0) {
             $hasRestrictions = true;
         }
     }
     if ($hasRestrictions) {
         $item->role_name .= MM_Utils::getIcon('lock', 'yellow', '1.3em', '2px', 'This employee has additional access restrictions', 'margin-left:5px;');
     }
 }
 // Actions
 $editActionUrl = 'onclick="mmjs.edit(\'mm-employee-accounts-dialog\', \'' . $item->id . '\', 540, 450)"';
 $deleteActionUrl = 'onclick="mmjs.removeAccount(\'' . $item->id . '\')"';
 $actions = MM_Utils::getEditIcon("Edit Employee", '', $editActionUrl);
 if (!MM_Employee::isBeingUsed($item->id)) {
     $actions .= MM_Utils::getDeleteIcon("Delete Employee", 'margin-left:5px;', $deleteActionUrl);