📄 admin.categories.html.php
字号:
if ( form.title.value == "" ) {
alert("<?php echo JText::_( 'Category must have a title', true ); ?>");
} else {
<?php
echo $editor->save( 'description' ) ; ?>
submitform(pressbutton);
}
}
</script>
<form action="index.php" method="post" name="adminForm">
<div class="col60">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Details' ); ?></legend>
<table class="admintable">
<tr>
<td class="key">
<label for="title" width="100">
<?php echo JText::_( 'Title' ); ?>:
</label>
</td>
<td colspan="2">
<input class="text_area" type="text" name="title" id="title" value="<?php echo $row->title; ?>" size="50" maxlength="50" title="<?php echo JText::_( 'A short name to appear in menus' ); ?>" />
</td>
</tr>
<tr>
<td class="key">
<label for="alias">
<?php echo JText::_( 'Alias' ); ?>:
</label>
</td>
<td colspan="2">
<input class="text_area" type="text" name="alias" id="alias" value="<?php echo $row->alias; ?>" size="50" maxlength="255" title="<?php echo JText::_( 'A long name to be displayed in headings' ); ?>" />
</td>
</tr>
<tr>
<td width="120" class="key">
<?php echo JText::_( 'Published' ); ?>:
</td>
<td>
<?php echo $lists['published']; ?>
</td>
</tr>
<tr>
<td class="key">
<label for="section">
<?php echo JText::_( 'Section' ); ?>:
</label>
</td>
<td colspan="2">
<?php echo $lists['section']; ?>
</td>
</tr>
<tr>
<td class="key">
<label for="ordering">
<?php echo JText::_( 'Ordering' ); ?>:
</label>
</td>
<td colspan="2">
<?php echo $lists['ordering']; ?>
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="access">
<?php echo JText::_( 'Access Level' ); ?>:
</label>
</td>
<td>
<?php echo $lists['access']; ?>
</td>
</tr>
<tr>
<td class="key">
<label for="image">
<?php echo JText::_( 'Image' ); ?>:
</label>
</td>
<td>
<?php echo $lists['image']; ?>
</td>
</tr>
<tr>
<td class="key">
<label for="image_position">
<?php echo JText::_( 'Image Position' ); ?>:
</label>
</td>
<td>
<?php echo $lists['image_position']; ?>
</td>
</tr>
<tr>
<td> </td>
<td>
<script language="javascript" type="text/javascript">
if (document.forms.adminForm.image.options.value!=''){
jsimg='../images/stories/' + getSelectedValue( 'adminForm', 'image' );
} else {
jsimg='../images/M_images/blank.png';
}
document.write('<img src=' + jsimg + ' name="imagelib" width="80" height="80" border="2" alt="<?php echo JText::_( 'Preview', true ); ?>" />');
</script>
</td>
</tr>
</table>
</fieldset>
<fieldset class="adminform">
<legend><?php echo JText::_( 'Description' ); ?></legend>
<table class="admintable">
<tr>
<td valign="top" colspan="3">
<?php
// parameters : areaname, content, width, height, cols, rows, show xtd buttons
echo $editor->display( 'description', $row->description, '550', '300', '60', '20', false ) ;
?>
</td>
</tr>
</table>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="com_categories" />
<input type="hidden" name="oldtitle" value="<?php echo $row->title ; ?>" />
<input type="hidden" name="id" value="<?php echo $row->id; ?>" />
<input type="hidden" name="sectionid" value="<?php echo $row->section; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</form>
<?php
}
/**
* Form to select Section to move Category to
*/
function moveCategorySelect( $option, $cid, $SectionList, $items, $sectionOld, $contents, $redirect ) {
?>
<form action="index.php" method="post" name="adminForm">
<br />
<table class="adminform">
<tr>
<td width="3%"></td>
<td valign="top" width="30%">
<strong><?php echo JText::_( 'Move to Section' ); ?>:</strong>
<br />
<?php echo $SectionList ?>
<br /><br />
</td>
<td valign="top" width="20%">
<strong><?php echo JText::_( 'Categories being moved' ); ?>:</strong>
<br />
<?php
echo "<ol>";
foreach ( $items as $item ) {
echo "<li>". $item->title ."</li>";
}
echo "</ol>";
?>
</td>
<td valign="top" width="20%">
<strong><?php echo JText::_( 'Articles being moved' ); ?>:</strong>
<br />
<?php
echo "<ol>";
foreach ( $contents as $content ) {
echo "<li>". $content->title ."</li>";
}
echo "</ol>";
?>
</td>
<td valign="top">
<?php echo JText::_( 'This will move the Categories listed' ); ?>
<br />
<?php echo JText::_( 'and all the items within the category (also listed)' ); ?>
<br />
<?php echo JText::_( 'to the selected Section' ); ?>.
</td>.
</tr>
</table>
<br /><br />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="section" value="<?php echo $sectionOld;?>" />
<input type="hidden" name="boxchecked" value="1" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
<input type="hidden" name="task" value="" />
<?php
foreach ( $cid as $id ) {
echo "\n <input type=\"hidden\" name=\"cid[]\" value=\"$id\" />";
}
?>
</form>
<?php
}
/**
* Form to select Section to copy Category to
*/
function copyCategorySelect( $option, $cid, $SectionList, $items, $sectionOld, $contents, $redirect ) {
?>
<form action="index.php" method="post" name="adminForm">
<br />
<table class="adminform">
<tr>
<td width="3%"></td>
<td valign="top" width="30%">
<strong><?php echo JText::_( 'Copy to Section' ); ?>:</strong>
<br />
<?php echo $SectionList ?>
<br /><br />
</td>
<td valign="top" width="20%">
<strong><?php echo JText::_( 'Categories being copied' ); ?>:</strong>
<br />
<?php
echo "<ol>";
foreach ( $items as $item ) {
echo "<li>". $item->title ."</li>";
}
echo "</ol>";
?>
</td>
<td valign="top" width="20%">
<strong><?php echo JText::_( 'Articles being copied' ); ?>:</strong>
<br />
<?php
echo "<ol>";
foreach ( $contents as $content ) {
echo "<li>". $content->title ."</li>";
echo "\n <input type=\"hidden\" name=\"item[]\" value=\"$content->id\" />";
}
echo "</ol>";
?>
</td>
<td valign="top">
<?php echo JText::_( 'This will copy the Categories listed' ); ?>
<br />
<?php echo JText::_( 'and all the items within the Category (also listed)' ); ?>
<br />
<?php echo JText::_( 'to the selected Section' ); ?>
<br />
<?php echo JText::_( 'NOTE: IF NO SECTION' ); ?>.
</td>.
</tr>
</table>
<br /><br />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="section" value="<?php echo $sectionOld;?>" />
<input type="hidden" name="boxchecked" value="1" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
<input type="hidden" name="task" value="" />
<?php
foreach ( $cid as $id ) {
echo "\n <input type=\"hidden\" name=\"cid[]\" value=\"$id\" />";
}
?>
</form>
<?php
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -