| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/administrator/components/com_staffmaster/ |
Upload File : |
<?php
/**
* File: admin.staffmaster.html.php
*
* Staff Master 0.7.5.5
*
* Staff Master - Staff Members and Departments Manager
*
* @version 0.7.5.5
* @package StaffMaster_0_7_5_5
* @subpackage admin
* @copyright (C) 2007-2008 Travis Hubbard
* @license http://www.gnu.org/licenses/ GNU/GPL v3
* @link http://www.systemsunited.net/
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* HTML_staffmaster: the html output view class in staffmaster's admin area
*/
class HTML_staffmaster {
/**
* staffMain: Displays the main control panel area for the back end
*
* @param string should contain 'com_staffmaster'
* @param int comes from {@link $todo} and is the 1/0 show todo or not var
* @param string com_check_html contants the full html for the component self-check tab
*/
function staffMain( $option , $todo , $com_check_html , $need_to_update_db ) {
$admin_image_path = JText::_("SM_ADMIN_IMG_PATH");
//$lang_prefix = JLanguageHelper::detectLanguage();
$lang_prefix = 'en-GB';
?>
<div id="staff_main_menu_left" style="text-align:center">
<h1><?php echo JText::_( 'MENU_STAFF_CONTROL_PANEL' ) ?></h1> <br />
<table border="0" cellspacing="10" cellpadding="10">
<tr>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=staff">
<img src="<?php echo $admin_image_path ?>/staff_manage.png" alt="<?php echo JText::_( 'TH_MANAGE_STAFF' ) ?>" id="manage_staff_image"/>
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_MANAGE_STAFF' ) ?></span>
</a>
</td>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=add">
<img src="<?php echo $admin_image_path ?>/staff_add.png" alt="<?php echo JText::_( 'TH_ADD_STAFF' ) ?>" id="add_staff_image" />
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_ADD_STAFF' ) ?></span>
</a>
</td>
</tr>
<tr>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=departments">
<img src="<?php echo $admin_image_path ?>/staff_dept_manage.png" alt="<?php echo JText::_( 'TH_MANAGE_DEPARTMENTS' ) ?>" id="manage_dept_image" />
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_MANAGE_DEPARTMENTS' ) ?></span>
</a>
</td>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=adddepartment">
<img src="<?php echo $admin_image_path ?>/staff_dept_add.png" alt="<?php echo JText::_( 'TH_ADD_DEPARTMENTS' ) ?>" id="add_dept_image" />
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_ADD_DEPARTMENTS' ) ?></span>
</a>
</td>
</tr>
<tr>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=settings">
<img src="<?php echo $admin_image_path ?>/staff_config.png" alt="<?php echo JText::_( 'TH_CONFIGURATION' ) ?>" />
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_CONFIGURATION' ) ?></span>
</a>
</td>
<?php if( $need_to_update_db ) { ?>
<td align="center" valign="top">
<a href="index.php?option=<?php echo $option ?>&task=updatedb">
<img src="<?php echo $admin_image_path ?>/db_update.png" alt="<?php echo JText::_( 'TH_UPDATE' ) ?>" />
<br /><span class="staff_image_caption"><?php echo JText::_( 'TH_UPDATE' ) ?></span>
</a>
</td>
<?php } else { ?>
<td> </td>
<?php } ?>
</tr>
</table>
</div>
<div id="staff_main_menu_right">
<div id="staff_master_updates" style="height:35px; display:none; color:#FFFF00; font-size:20px; font-weight:bold;" >
<a href="http://www.systemsunited.net/" target="_blank">
<img src="<?php echo $admin_image_path ?>/new_version.png" alt="<?php echo JText::_( 'IMG_NEW_VERSION_ALT' ) ?>" title="<?php echo JText::_( 'IMG_NEW_VERSION_ALT' ) ?>" />
</a>
</div>
<ul id="staff_main_menu_right_tabs">
<?php if( $todo ) { ?>
<li class="ui-tabs-selected" id="sm_tab_1" ><a href="#fragment-1"><span><?php echo JText::_( 'SM_UI_TAB_TODO_TITLE' ) ?></span></a></li>
<?php } ?>
<?php if( $com_check_html ) { ?>
<li class="ui-tabs-unselect" id="sm_tab_2" ><a href="#fragment-2"><span><?php echo JText::_( 'SM_UI_TAB_COM_CHECK_TITLE' ) ?></span></a></li>
<?php } ?>
<li class="ui-tabs-unselect" id="sm_tab_3" ><a href="#fragment-3"><span><?php echo JText::_( 'SM_UI_TAB_ABOUT_TITLE' ) ?></span></a></li>
<li class="ui-tabs-unselect" ><a href="#fragment-4" ><span id="sm_tab_4"><?php echo JText::_( 'SM_UI_TAB_VERSION_TITLE' ) ?></span></a></li>
</ul>
<?php if( $todo ) { ?>
<div id="fragment-1" class="ui-tabs-panel">
<?php
$tt_todo_html = makeToolTip( JText::_( 'TT_TODO' ) , 'right up' );
include( JPATH_COMPONENT . DS . 'files' . DS . $lang_prefix . DS . 'new_install_todo.html.php' );
?>
</div>
<?php } ?>
<?php if( $com_check_html ) { ?>
<div id="fragment-2" class="ui-tabs-panel ui-tabs-hide">
<p class="staff_header_rt" ><?php echo JText::_( 'SM_UI_TAB_COM_CHECK_HEADER' ) ?> </p>
<?php
if( $com_check_html ) {
echo '<p>'.$com_check_html.'</p>';
}
?>
</div>
<?php } ?>
<div id="fragment-3" class="ui-tabs-panel ui-tabs-hide">
<p class="staff_header_rt" ><?php echo JText::_( 'SM_UI_TAB_ABOUT_HEADER' ) . JText::_( 'SM_VERSION' ) ?> </p>
<p><?php include('files/' . $lang_prefix . '/about.html.php') ?></p>
<p><?php echo nl2br( JFile::read( JPATH_COMPONENT . DS . 'changelog.txt' ) ) ?></p>
</div>
<div id="fragment-4" class="ui-tabs-panel ui-tabs-hide">
<p class="staff_header_rt" ><?php echo JText::_( 'SM_UI_TAB_VERSION_HEADER' ) ?> </p>
<p id="version_text_here"><?php echo JText::_( 'ST_UP_TO_DATE' ) ?></p>
</div>
</div>
<?php
}
/**
* staffRows: Displays the admin table of staff members for the back end
*
* @param string should contain 'com_staffmaster'
* @param stdObj all rows of staff members, pre-sorted by department ordering and staff ordering
* @param array contains an array shown in example below
* @param stdObj pageNav contains the pagination information via Joomla's Pagination class
* @param stdObj params is our staff settings and parameters
*
* <code>
* $dept_names_arr[ 'dept->name' ] = dept->id
* Example: $dept_names_arr[ 'Development' ] = 1;
* </code>
*/
function showStaff( $option, &$rows, $dept_names_arr , &$pageNav , $params , $lists ) {
jimport('joomla.filter.output');
//$form_action = 'index.php?option=' . $option . '&task=' . JRequest::getVar( 'task' );
?>
<form action="index.php" method="post" name="adminForm">
<table class="adminlist">
<tr>
<td align="right"><?php echo $lists['published'] ?> <?php echo $lists['department_names'] ?></td>
</tr>
</table>
<table class="adminlist">
<thead>
<tr>
<th width="20">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" />
</th>
<th class="title"> <?php echo JText::_( 'TH_NAME' ) ?> </th>
<th width="10%"> <?php echo JText::_( 'TH_TITLE' ) ?></th>
<th width="30%"> <?php echo JText::_( 'TH_BIO' ) ?> </th>
<th width="20%"> <?php echo JText::_( 'TH_IMAGE' ) ?></th>
<th width="10%" nowrap="nowrap"><?php echo JText::_( 'TH_PUBLISHED' ) ?> </th>
<th width="8%"> <?php echo JText::_( 'TH_DEPARTMENT' ) ?> </th>
<th width="8%"> <?php echo JText::_( 'TH_ORDERING' ) ?> </th>
<th width="4%"> <?php echo JText::_( 'TH_ID' ) ?> </th>
</tr>
</thead>
<?php
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
$checked = JHTML::_('grid.id', $i, $row->id );
$published = JHTML::_('grid.published', $row, $i );
if( empty( $row->image_file_name ) ) {
if( empty( $params->staff_image_path ) || empty( $params->staff_image_default ) ) {
$image_src = SM_PUBLIC_IMG_PATH . '/staff_empty.png';
}
else {
$image_src = '../' . $params->staff_image_path . $params->staff_image_default;
}
}
else {
$image_src = '../' . $params->staff_image_path . $row->image_file_name;
}
$dept = array_search($row->dept_id, $dept_names_arr);
$link = JFilterOutput::ampReplace('index.php?option=' . $option . '&task=edit&cid[]='. $row->id );
$staff_bio = substr( strip_tags ( $row->bio ) , 0 , $params->view_admin_bio );
?>
<tr class="<?php echo "row$k"; ?>">
<td><?php echo $checked; ?></td>
<td><a href="<?php echo $link; ?>"><?php echo $row->name; ?></a></td>
<td align="center" ><?php echo $row->title; ?></td>
<td><?php echo $staff_bio; ?></td>
<td align="center"><a href="<?php echo $link; ?>"><img src="<?php echo $image_src; ?>" height="45" /></a></td>
<td align="center"><?php echo $published;?></td>
<td align="center"><?php echo $dept; ?></td>
<td align="center"><?php echo $row->ordering; ?></td>
<td align="center"><?php echo $row->id; ?></td>
</tr>
<?php
$k = 1 - $k;
} // END for( count( rows ) )
?>
<tfoot>
<td colspan="9"><?php echo $pageNav->getListFooter(); ?></td>
</tfoot>
</table>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="<?php echo JRequest::getCmd( 'task' ); ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<?php
} // END SHOW STAFF
/**
* editStaff: Used to edit a Single Staff Member
*
* @param stdObj $row Contains staff member data
* @param array $lists Assoc. Array containing various HTML-ready lists and select options
* @param string $option String containing 'com_staffmaster'
*/
function editStaff( $row , $lists , $option , $auto_alias ) {
$editor =& JFactory::getEditor();
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_STAFF_EDIT_DETAILS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_STAFF_NAME' ) ?> </td>
<td><input class="text_area" type="text" name="name" id="name" size="50" maxlength="250" value="<?php echo $row->name;?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_TITLE' ) ?> </td>
<td> <input class="text_area" type="text" name="title" id="title" size="50" maxlength="250" value="<?php echo $row->title ?>" /> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo makeToolTip( JText::_( 'TT_ALIAS' ) ); echo JText::_( 'TH_ALIAS' ); ?> </td>
<td> <input class="text_area" type="text" name="alias" id="alias" size="50" maxlength="250" value="<?php echo $row->alias ?>" /> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PUBLISHED' ) ?> </td>
<td> <?php echo $lists['published']; ?> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_DEPARTMENT' ) ?> </td>
<td> <?php echo $lists['departments'] ?> <span id="loading" style="display:none"> <?php echo JText::_( 'TH_LOADING' ) ?> </span></td>
</tr>
</fieldset>
<tr>
<td colspan="2">
<fieldset>
<legend><?php echo JText::_( 'TH_ORDERING' ) ?></legend>
<table class="admintable" width="100%">
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_STAFF_ORDER' ) );
echo JText::_( 'TH_ORDERING' );
?>
</td>
<td> <div id="ordering"> <?php echo $lists['ordering']; ?> </div> </td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_STAFF_CONTACT_DETAILS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PHONE1' ) ?> </td>
<td> <input class="text_area" type="text" name="phone1" id="phone1" size="50" maxlength="250" value="<?php echo $row->phone1 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PHONE1_EXT' ) ?> </td>
<td> <input class="text_area" type="text" name="ext1" id="ext1" size="50" maxlength="250" value="<?php echo $row->ext1 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PHONE2' ) ?> </td>
<td> <input class="text_area" type="text" name="phone2" id="phone2" size="50" maxlength="250" value="<?php echo $row->phone2 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PHONE2_EXT' ) ?> </td>
<td> <input class="text_area" type="text" name="ext2" id="ext2" size="50" maxlength="250" value="<?php echo $row->ext2 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_EMAIL' ) ?> </td>
<td> <input class="text_area" type="text" name="email" id="email" size="50" maxlength="250" value="<?php echo $row->email ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_ADDRESS1' ) ?> </td>
<td> <input class="text_area" type="text" name="address1" id="address1" size="50" maxlength="250" value="<?php echo $row->address1 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_ADDRESS2' ) ?> </td>
<td> <input class="text_area" type="text" name="address2" id="address2" size="50" maxlength="250" value="<?php echo $row->address2 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_ADDRESS3' ) ?> </td>
<td> <input class="text_area" type="text" name="address3" id="address3" size="50" maxlength="250" value="<?php echo $row->address3 ?>" /> </td>
</tr> <tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_ADDRESS4' ) ?> </td>
<td> <input class="text_area" type="text" name="address4" id="address4" size="50" maxlength="250" value="<?php echo $row->address4 ?>" /> </td>
</tr>
</table>
</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_STAFF_EDIT_DETAILS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_BIO' ) ?> </td>
<td>
<?php
echo $editor->display( 'bio', $row->bio , '100%', '150', '40', '5' ) ;
?>
</td>
</tr>
<tr>
<td class="key">
<label for="image">
<?php echo JText::_( 'TH_IMAGE' ); ?>
</label>
</td>
<td>
<?php echo $lists['image']; ?>
</td>
</tr>
<tr>
<td class="key"> <?php echo JText::_( 'TH_IMAGE_HELP' ) ?> </td>
<td>
<?php echo JText::_( 'TT_HELP_IMAGE_TEXT1' ) ?>
</td>
</tr>
</table>
</fieldset>
<input type="hidden" name="id" value="<?php echo $row->id ?>" />
<input type="hidden" name="old_gid" value="<?php echo $row->dept_id ?>" />
<input type="hidden" name="old_order" value="<?php echo $row->ordering ?>" />
<input type="hidden" name="option" value="<?php echo $option ?>" />
<input type="hidden" name="auto_alias" value="<?php echo $auto_alias ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
} // END EDIT STAFF
function showDepartments( $option, &$rows , &$pageNav ) {
jimport('joomla.filter.output');
$uri =& JFactory::getURI();
?>
<form action="<?php echo $uri->toString(); ?>" method="post" name="adminForm">
<table class="adminlist">
<thead>
<tr>
<th width="20">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $rows ); ?>);" />
</th>
<th class="title"> <?php echo JText::_( 'TH_NAME' ) ?> </th>
<th width="60%"> <?php echo JText::_( 'TH_DEPT_DESC' ) ?> </th>
<th width="10%"> <?php echo JText::_( 'TH_PUBLISHED' ) ?> </th>
<th width="10%"> <?php echo JText::_( 'TH_ORDERING' ) ?> </th>
<th width="4%"> <?php echo JText::_( 'TH_ID' ) ?> </th>
</tr>
</thead>
<?php
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
$checked = JHTML::_('grid.id', $i, $row->id );
$published = $this->publishedDeptIcon( $row, $i );
$link = JFilterOutput::ampReplace('index.php?option=' . $option . '&task=editdepartment&cid[]='. $row->id );
?>
<tr class="<?php echo "row$k"; ?>">
<td><?php echo $checked; ?></td>
<td><a href="<?php echo $link; ?>"><?php echo $row->name; ?></a></td>
<td><?php echo $row->description; ?></td>
<td align="center"><?php echo $published;?></td>
<td align="center"><?php echo $row->ordering ?></td>
<td align="center"><?php echo $row->id; ?></td>
</tr>
<?php
$k = 1 - $k;
} // END for( count( rows ) )
?>
<tfoot>
<td colspan="6"><?php echo $pageNav->getListFooter(); ?></td>
</tfoot>
</table>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="<?php echo JRequest::getCmd( 'task' ); ?>" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<?php
} // END SHOW DEPARTMENTS
function editDepartment( $option, $row , $lists , $auto_alias ) {
$last_task = JRequest::getVar( 'task' );
$editor =& JFactory::getEditor();
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_DEPT_DETAILS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_DEPARTMENT_NAME' ) ?> </td>
<td><input class="text_area" type="text" name="name" id="name" size="50" maxlength="250" value="<?php echo $row->name;?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo makeToolTip( JText::_( 'TT_ALIAS' ) ); echo JText::_( 'TH_ALIAS' ); ?> </td>
<td> <input class="text_area" type="text" name="alias" id="alias" size="50" maxlength="250" value="<?php echo $row->alias ?>" /> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_PUBLISHED' ) ?> </td>
<td> <?php echo $lists['published']; ?> </td>
</tr>
<tr>
<td colspan="2">
<fieldset>
<legend><?php echo JText::_( 'TH_ORDERING' ) ?></legend>
<table class="admintable" width="100%">
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_STAFF_ORDER' ) );
echo JText::_( 'TH_ORDERING' );
?>
</td>
<td> <?php echo $lists['ordering']; ?> </td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_DEPT_DESC' ) ?> </td>
<td>
<?php
echo $editor->display( 'description', $row->description , '100%', '150', '40', '5' ) ;
?>
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_FOOTER_UNIQUE' ) );
echo JText::_( 'TH_FOOTER_UNIQUE' );
?>
</td>
<td>
<?php
echo $editor->display( 'footer_text', $row->footer_text , '100%', '150', '40', '5' ) ;
?>
</td>
</tr>
</table>
</fieldset>
<input type="hidden" name="id" value="<?php echo $row->id; ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="last_task" value="<?php echo $last_task ?>" />
<input type="hidden" name="auto_alias" value="<?php echo $auto_alias ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
} // END EDIT Department
/**
* Function allows user to set/change/configure staff master settings
*
* @param string $option
* @param stdObj $row
* @param array $lists
*/
function editSettings( $option , $row , $lists ) {
$admin_image_path = JText::_("SM_ADMIN_IMG_PATH");
$editor =& JFactory::getEditor();
//$lang_prefix = JLanguageHelper::detectLanguage();
$lang_prefix = 'en-GB';
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<?php
$pane =& JPane::getInstance( 'tabs' );
echo $pane->startPane( 'pane' );
echo $pane->startPanel( JText::_( 'JP_PANEL1' ) , 'panel1' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_TEXT_LABELS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_PAGE_TITLE' ) );
echo JText::_( 'TH_PAGE_TITLE' );
?>
</td>
<td><input class="text" type="text" name="page_title" id="page_title" size="50" maxlength="50" value="<?php echo $row->page_title?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_PHONE1' ) ?>
</td>
<td><input class="text" type="text" name="cl_phone1" id="cl_phone1" size="50" maxlength="50" value="<?php echo $row->cl_phone1 ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_PHONE2' ) ?>
</td>
<td><input class="text" type="text" name="cl_phone2" id="cl_phone2" size="50" maxlength="50" value="<?php echo $row->cl_phone2 ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_PHONE_EXT' ) ?>
</td>
<td><input class="text" type="text" name="cl_phone_ext" id="cl_phone_ext" size="50" maxlength="50" value="<?php echo $row->cl_phone_ext ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_READ_CONTACT' ) ?>
</td>
<td><input class="text" type="text" name="cl_read_contact" id="cl_read_contact" size="50" maxlength="50" value="<?php echo $row->cl_read_contact ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_EMAIL' ) ?>
</td>
<td><input class="text" type="text" name="cl_email" id="cl_email" size="50" maxlength="50" value="<?php echo $row->cl_email ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_ADDRESS1' ) ?>
</td>
<td><input class="text" type="text" name="cl_address1" id="cl_address1" size="50" maxlength="50" value="<?php echo $row->cl_address1 ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_CL_OFFICE' ) ?>
</td>
<td><input class="text" type="text" name="cl_address2" id="cl_address2" size="50" maxlength="50" value="<?php echo $row->cl_address2 ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_TITLE_BIO' ) );
echo JText::_( 'TH_TITLE_BIO' );
?>
</td>
<td><?php echo $lists['title_bio'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_LINK_STAFF_NAME' ) );
echo JText::_( 'TH_LINK_STAFF_NAME' ); ?>
</td>
<td><?php echo $lists['link_staff_name'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_LINK_CONTACT_DETAILS' ) );
echo JText::_( 'TH_LINK_CONTACT_DETAILS' );
?>
</td>
<td><?php echo $lists['link_contact_details'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_LINK_DEPARTMENT' ) );
echo JText::_( 'TH_LINK_DEPARTMENT' );
?>
</td>
<td><?php echo $lists['link_department'] ?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_( 'TH_LIST_VIEW_SETTINGS' ) ?></legend>
<table class="admintable" >
<tr>
<td width="100" align="right" class="key"><?php echo JText::_( 'TH_LV_IMAGE' ) ?></td>
<td><input class="text" type="text" name="th_staff_image" id="th_staff_image" size="50" maxlength="50" value="<?php echo $row->th_staff_image ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"><?php echo JText::_( 'TH_LV_NAME' ) ?></td>
<td><input class="text" type="text" name="th_staff_name" id="th_staff_name" size="50" maxlength="50" value="<?php echo $row->th_staff_name ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"><?php echo JText::_( 'TH_LV_TITLE' ) ?></td>
<td><input class="text" type="text" name="th_staff_title" id="th_staff_title" size="50" maxlength="50" value="<?php echo $row->th_staff_title ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"><?php echo JText::_( 'TH_LV_BIO' ) ?></td>
<td><input class="text" type="text" name="th_staff_bio" id="th_staff_bio" size="50" maxlength="50" value="<?php echo $row->th_staff_bio ?>" /></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL2' ) , 'panel2' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_CUSTOM_COLORS' ) ?></legend>
<table class="admintable" >
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_CUSTOM_COLORS' ) );
echo JText::_( 'TH_USE_CUSTOM_COLORS' );
?>
</td>
<td><?php echo $lists['use_custom_colors'] ?></td>
</tr>
</table>
</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_('TH_CUSTOM_COLORS_SELECTION') ?></legend>
<table class="admintable" style="margin: 0 auto;" cellspacing="5">
<thead>
<tr>
<th width="120" align="right" class="key"> <?php echo JText::_('ST_SET_TEXT') ?> </th>
<th width="120" class="key" align="center"> <?php echo JText::_( 'UI_COLORS_BLACK' ) ?> </th>
<th width="120" class="key" align="center"> <?php echo JText::_( 'UI_COLORS_WHITE' ) ?> </th>
<th width="120" class="key" align="center"> <?php echo JText::_( 'UI_COLORS_RESET' ) ?> </th>
<th width="225" align="center">
<?php echo makeToolTip( JText::_( 'TT_REMOVE_COLOR' ) , 'right' ); ?>
<?php echo JText::_( 'UI_COLORS_EMPTY' ) ?>
</th>
</tr>
</thead>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'ST_CUSTOM_COLORS' ) ?> </td>
<td align="center" id="setBlack" style="background:#000000" > </td>
<td align="center" id="setWhite" style="background:#EEEEEE; border:2px solid #999999" > </td>
<td align="center" ><img id="setReset" src="/administrator/components/com_staffmaster/images/square_revert.jpg" alt="Reset All to Default" title="Reset All to Default" style="border: 1px solid white" /> </td>
<td align="center" ><img id="setEmpty" src="/administrator/components/com_staffmaster/images/square_remove.jpg" alt="Remove All Colors" title="Remove All Colors" style="border: 1px solid black" /> </td>
</tr>
</table>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_('Custom Colors:') ?>
<br /><br />
<img src="<?php echo $admin_image_path ?>/colorchooser_help.jpg" alt="Manage Staff" />
</td>
<td><?php echo $lists['staff_colors'] ?></td>
</tr>
</table>
</fieldset>
<div id="preview_staff_container">
<?php include_once( 'files/' . $lang_prefix . '/preview.html.php' ); ?>
</div>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL3' ) , 'panel3' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_('ST_DEFAULT_STAFF_TEXT') ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_IMAGE_POS' ) ?> </td>
<td><?php echo $lists['image_pos'] ?></td>
</tr>
<!-- Not Implemented Yet
<tr>
<td width="100" align="right" class="key">
<?php //echo makeToolTip( JText::_( 'TT_IMAGE_POS_ALT' ) ) ?>
<?php //echo JText::_( 'TH_IMAGE_POS_ALT' ) ?>
</td>
<td><?php //echo $lists['image_pos_alt'] ?></td>
</tr>
-->
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_IMAGE_PATH' ) ?> </td>
<td><input type="text" name="staff_image_path" id="staff_image_path" size="100px" maxlength="200" value="<?php echo $row->staff_image_path ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_IMAGE_FILENAME' ) ?> </td>
<td valign="middle" width="75px">
<input type="text" name="staff_image_default" id="staff_image_default" size="100px" maxlength="160" value="<?php echo $row->staff_image_default ?>" style="float:left" />
</td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_IMAGE_FILE' ) ?> </td>
<td valign="middle" width="75px">
<?php
if( $row->staff_image_default == "staff_empty.png" )
$staff_default_image_src = SM_PUBLIC_IMG_PATH . "/$row->staff_image_default";
else
$staff_default_image_src = "../$row->staff_image_path/$row->staff_image_default";
?>
<img src="<?php echo $staff_default_image_src ?>" alt="<?php echo JText::_( 'TH_IMAGE_FILENAME' ) ?>" style=" border: 1px dotted #CCCCCC; float:left;" />
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_DEFAULT_JOB_TITLE' ) );
echo JText::_( 'ST_DEFAULT_STAFF_TITLE' );
?>
</td>
<td><input type="text" name="staff_title_default" id="staff_title_default" maxlength="250" size="100" maxlength="40" value="<?php echo $row->staff_title_default ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_DEFAULT_BIO' ) );
echo JText::_( 'ST_DEFAULT_STAFF_BIO' );
?>
</td>
<td><?php echo $editor->display( 'staff_bio_default', $row->staff_bio_default , '100%', '150', '40', '5' );?></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL4' ) , 'panel4' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_HEADER_TEXT' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_HEADER_TEXT' ) );
echo JText::_( 'TH_HEADER_TEXT' );
?>
</td>
<td><?php echo $editor->display( 'header_text', $row->header_text , '100%', '150', '40', '5' );?></td>
</tr>
</table>
</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'TH_DEPT_FOOTER_SETTINGS' ) ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_SHOW_DEPT_FOOTER' ) );
echo JText::_( 'TH_SHOW_DEPT_FOOTERS' );
?>
</td>
<td> <?php echo $lists['show_dept_footer'] ?> </td>
</tr>
<tr>
<td width="100" align="right" class="key"></td>
<td> </td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_DEPT_FOOTERS_YES' ) );
echo JText::_( 'TH_SHOW_DEPT_FOOT_1' );
?>
</td>
<td> <?php echo $lists['show_dept_footer_text1'] ?> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_SHOW_DEPT_FOOT_1' ) ?> </td>
<td><?php echo $editor->display( 'job_text1', $row->job_text1 , '100%', '150', '40', '5' );?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_DEPT_FOOTERS_YES' ) );
echo JText::_( 'TH_SHOW_DEPT_FOOT_2' );
?>
</td>
<td> <?php echo $lists['show_dept_footer_text2'] ?> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_SHOW_DEPT_FOOT_2' ) ?> </td>
<td><?php echo $editor->display( 'job_text2', $row->job_text2 , '100%', '150', '40', '5' );?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_DEPT_FOOTERS_YES' ) );
echo JText::_( 'TH_SHOW_DEPT_FOOT_3' );
?>
</td>
<td> <?php echo $lists['show_dept_footer_text3'] ?> </td>
</tr>
<tr>
<td width="100" align="right" class="key"> <?php echo JText::_( 'TH_SHOW_DEPT_FOOT_3' ) ?> </td>
<td><?php echo $editor->display( 'job_text3', $row->job_text3 , '100%', '150', '40', '5' );?></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL5' ) , 'panel5' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_('TH_DEFAULT_STYLESHEET') ?></legend>
<table class="admintable">
<tr>
<td> </td>
<td><?php echo JText::_( 'TH_CLEAN_DESC' ) ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_VIEW_ALL' ); ?>
</td>
<td><?php echo $lists['view_all'] ?></td>
<td><?php echo JText::_( 'TH_EXAMPLE' ) ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_VIEW_DEPARTMENT' ); ?>
</td>
<td><?php echo $lists['view_department'] ?></td>
<td><?php echo JText::_( 'ST_DEFAULT' ) ?></td>
<td><div style="border-left:3px double #000000; border-bottom:1px solid #000000; padding:5px"><?php echo JText::_('TH_STAFF_NAME') ?></div></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_VIEW_STAFF' ); ?>
</td>
<td><?php echo $lists['view_staff'] ?></td>
<td><?php echo JText::_( 'ST_CLEAN' ) ?></td>
<td><div style="border-bottom:1px solid #CCCCCC; padding:5px"><?php echo JText::_('TH_STAFF_NAME') ?></div></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php echo JText::_( 'TH_VIEW_LISTALL' ); ?>
</td>
<td><?php echo $lists['view_listall'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo makeToolTip( JText::_( 'TT_LIST_IMAGES' ) );
echo JText::_( 'TH_LIST_IMAGES' );
?>
</td>
<td><?php echo $lists['list_images'] ?></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL6' ) , 'panel6' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_('TH_JS') ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_JS_FRONTEND' ) );
echo JText::_( 'TH_JS_FRONTEND' );
?>
</td>
<td><?php echo $lists['js_frontend'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_JS_CONTACT' ) );
echo JText::_( 'TH_JS_CONTACT' );
?>
</td>
<td><?php echo $lists['js_contact'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_JS_CORNERS' ) );
echo JText::_( 'TH_JS_CORNERS' );
?>
</td>
<td><?php echo $lists['js_corners'] ?></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'JP_PANEL7' ) , 'panel7' );
?>
<fieldset class="adminform">
<legend><?php echo JText::_('TH_ADMIN') ?></legend>
<table class="admintable">
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_DO_COM_CHECK' ) );
echo JText::_( 'TH_DO_COM_CHECK_1' ) . '<br />' . JText::_( 'TH_DO_COM_CHECK_2' );
?>
</td>
<td><?php echo $lists['com_check'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_AUTO_ALIAS' ) );
echo JText::_( 'TH_AUTO_ALIAS' );
?>
</td>
<td><?php echo $lists['auto_alias'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_TODO' ) );
echo JText::_( 'TH_TODO' );
?>
</td>
<td><?php echo $lists['show_todo'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_CHECK_VER' ) );
echo JText::_( 'TH_CHECK_VER' );
?>
</td>
<td><?php echo $lists['check_ver'] ?></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_CHECK_VER_FREQ' ) );
echo JText::_( 'TH_CHECK_VER_FREQ' );
?>
</td>
<td>
<?php echo JText::_( 'ST_EVERY' ) ?>
<input type="text" name="check_version_frequency" id="check_version_frequency" maxlength="20" size="20" maxlength="20" value="<?php echo $row->check_version_frequency ?>" />
<?php echo '<br />'. JText::_( 'ST_DAYS' ) ?>
</td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_ADMIN_BIO' ) );
echo JText::_( 'TH_ADMIN_BIO' );
?>
</td>
<td><input type="text" name="view_admin_bio" id="view_admin_bio" maxlength="20" size="20" maxlength="20" value="<?php echo $row->view_admin_bio ?>" /></td>
</tr>
<tr>
<td width="100" align="right" class="key" >
<?php
echo makeToolTip( JText::_( 'TT_SHOW_SM_LINK' ) );
echo JText::_( 'TH_SHOW_SM_LINK' );
?>
</td>
<td><?php echo $lists['show_sm_link'] ?></td>
</tr>
</table>
</fieldset>
<?php
echo $pane->endPanel();
echo $pane->endPane();
?>
<input type="hidden" name="id" value="<?php echo $row->id ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
} // END EDIT SETTINGS
/**
* selectCSS displays a list of CSS files in the path folder ( $dir )
* so users can select a file and edit the css
*
* @param array $files an array of files found in $dir
* @param string $option com_<component name>
* @param string $dir path to front end CSS files
* @param str $template I really have no clue, but it broke when I removed it
* @param stdObj $client front-end client object
*/
function selectCSS( $files , $option , $dir , $template , &$client ) {
?>
<h3><?php echo JText::_( "CFG_CSS_FILE_PATH" ) . ' ' . $dir ?></h3>
<form action="index.php" method="post" name="adminForm">
<table class="adminlist">
<thead>
<tr>
<th width="5%" align="center"><?php echo JText::_( 'Num' ); ?></th>
<th width="15%" align="center"><?php echo JText::_( 'CFG_CSS_FILE' ); ?></th>
<th width="15%" align="center">
<?php
echo makeToolTip( JText::_( 'TT_CFG_CSS_STYL' ) , 'center' );
echo JText::_( 'CFG_CSS_STYL' );
?>
</th>
<th width="15%" align="center">
<?php
echo makeToolTip( JText::_( 'TT_CFG_CSS_VIEW' ) , 'center' );
echo JText::_( 'CFG_CSS_VIEW' );
?>
</th>
<th width="15%" align="center">
<?php
echo makeToolTip( JText::_( 'TT_CFG_CSS_BRSR' ) , 'center' );
echo JText::_( 'CFG_CSS_BRSR' );
?>
</th>
<th width="15%" align="center">
<?php
echo makeToolTip( JText::_( 'TT_CFG_CSS_DESC' ) , 'center' );
echo JText::_( 'CFG_CSS_DESC' );
?>
</th>
</tr>
</thead>
<tbody>
<?php
$k = 0;
for ($i = 0, $n = count($files); $i < $n; $i++) {
$file = & $files[$i];
switch( $file ) {
case 'staffmaster_clean.css':
$cfg_css_style = JText::_( 'CFG_CSS_CLN_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_CLN_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_CLN_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_CLN_DESC' );
break;
case 'staffmaster_default.css':
$cfg_css_style = JText::_( 'CFG_CSS_DEF_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_DEF_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_DEF_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_DEF_DESC' );
break;
case 'staffmaster_konqueror.css':
$cfg_css_style = JText::_( 'CFG_CSS_KON_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_KON_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_KON_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_KON_DESC' );
break;
case 'staffmaster_msie.css':
$cfg_css_style = JText::_( 'CFG_CSS_IE_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_IE_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_IE_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_IE_DESC' );
break;
case 'staffmaster_opera.css':
$cfg_css_style = JText::_( 'CFG_CSS_OPR_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_OPR_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_OPR_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_OPR_DESC' );
break;
case 'staffmaster_staff.css':
$cfg_css_style = JText::_( 'CFG_CSS_STF_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_STF_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_STF_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_STF_DESC' );
break;
case 'staffmaster_staff_opera.css':
$cfg_css_style = JText::_( 'CFG_CSS_STO_STYL' );
$cfg_css_view = JText::_( 'CFG_CSS_STO_VIEW' );
$cfg_css_browser = JText::_( 'CFG_CSS_STO_BRSR' );
$cfg_css_desc = JText::_( 'CFG_CSS_STO_DESC' );
break;
}
?>
<tr class="<?php echo 'row'. $k; ?>">
<td width="5%" align="center"><input style="margin: 0 auto; width:50px;" type="radio" id="cb<?php echo $i;?>" name="filename" value="<?php echo htmlspecialchars( $file, ENT_COMPAT, 'UTF-8' ); ?>" onClick="isChecked(this.checked);" /></td>
<td align="center"> <?php echo $file; ?> </td>
<td align="center"> <?php echo $cfg_css_style; ?> </td>
<td align="center"> <?php echo $cfg_css_view; ?> </td>
<td align="center"> <?php echo $cfg_css_browser; ?> </td>
<td> <?php echo $cfg_css_desc; ?> </td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
<input type="hidden" name="id" value="<?php echo $template; ?>" />
<input type="hidden" name="cid[]" value="<?php echo $template; ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="client" value="<?php echo $client->id;?>" />
</form>
<?php
}
/**
* editCSS is a function which allows users to use Joomla's in-browser editor
* to custom modify css files.
*
* @param string $dir
* @param string $template
* @param string $filename
* @param string $content
* @param string $option
* @param stdObj $client
*/
function editCSS( $dir , $template, $filename, $content, $option, $client ) {
// Blocks the main menu from being used
JRequest::setVar( 'hidemainmenu', 1 );
$css_path = $dir . $filename;
?>
<form action="index.php" method="post" name="adminForm">
<table class="adminform">
<tr>
<th><?php echo JText::_( "TH_EDITING_CSS_FILENAME" ) ?></th>
</tr>
<tr>
<td><?php echo $css_path ?></td>
</tr>
<tr>
<td><textarea style="width:100%;height:500px" cols="110" rows="25" name="filecontent" class="inputbox"><?php echo $content; ?></textarea></td>
</tr>
</table>
<input type="hidden" name="id" value="<?php echo $template; ?>" />
<input type="hidden" name="cid[]" value="<?php echo $template; ?>" />
<input type="hidden" name="filename" value="<?php echo $filename; ?>" />
<input type="hidden" name="dir" value="<?php echo $dir; ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="client" value="<?php echo $client->id;?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
function staffError() {
}
} // END CLASS
?>