|
|
|
'' . TEXT_INFO_HEADING_NEW_ADMINISTRATOR . '');
$contents = array('form' => tep_draw_form('administrator', FILENAME_ADMINISTRATORS, 'action=insert'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => ' ' . TEXT_INFO_USERNAME . ' ' . tep_draw_input_field('username'));
$contents[] = array('text' => ' ' . TEXT_INFO_PASSWORD . ' ' . tep_draw_password_field('password'));
$contents[] = array('align' => 'center', 'text' => ' ' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
break;
case 'edit':
$heading[] = array('text' => '' . $aInfo->user_name . '');
$contents = array('form' => tep_draw_form('administrator', FILENAME_ADMINISTRATORS, 'aID=' . $aInfo->id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => ' ' . TEXT_INFO_USERNAME . ' ' . tep_draw_input_field('username', $aInfo->user_name));
$contents[] = array('text' => ' ' . TEXT_INFO_NEW_PASSWORD . ' ' . tep_draw_password_field('password'));
$contents[] = array('align' => 'center', 'text' => ' ' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
break;
case 'delete':
$heading[] = array('text' => '' . $aInfo->user_name . '');
$contents = array('form' => tep_draw_form('administrator', FILENAME_ADMINISTRATORS, 'aID=' . $aInfo->id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => ' ' . $aInfo->user_name . '');
$contents[] = array('align' => 'center', 'text' => ' ' . tep_image_submit('button_delete.gif', IMAGE_UPDATE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
break;
default:
if (isset($aInfo) && is_object($aInfo)) {
$heading[] = array('text' => '' . $aInfo->user_name . '');
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '');
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' ' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' | ' . "\n";
}
?>
|
|