⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.categories.html.php

📁 Joomla!是一套获得过多个奖项的内容管理系统(Content Management System, CMS)。Joomla!采用PHP+MySQL数据库开发
💻 PHP
📖 第 1 页 / 共 2 页
字号:
						<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 long name to be displayed in headings' ); ?>" />						</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::_( 'ALIASTIP' ); ?>" />						</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>&nbsp;</td>						<td>						<script language="javascript" type="text/javascript">						if (document.forms.adminForm.image.options.value!=''){							jsimg='../<?php echo $cparams->get('image_path'); ?>/' + 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',  htmlspecialchars($row->description, ENT_QUOTES), '550', '300', '60', '20', array('pagebreak', 'readmore') ) ;							?>						</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; ?>" />		<?php echo JHTML::_( 'form.token' ); ?>		</form>		<?php	}	/**	* Form to select Section to move Category to	*/	function moveCategorySelect( $option, $cid, $SectionList, $items, $sectionOld, $contents, $redirect ) {		?>		<script language="javascript" type="text/javascript">		function submitbutton(pressbutton) {			var form = document.adminForm;			if (pressbutton == 'cancel') {				submitform( pressbutton );				return;			}			// do field validation			if (!getSelectedValue( 'adminForm', 'sectionmove' )) {				alert( "<?php echo JText::_( 'Please select a section from the list', true ); ?>" );			} else {				submitform( pressbutton );			}		}		</script>		<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\" />";		}		?>		<?php echo JHTML::_( 'form.token' ); ?>		</form>		<?php	}	/**	 * Form to select Section to copy Category to	 */	function copyCategorySelect( $option, $cid, $SectionList, $items, $sectionOld, $contents, $redirect ) {		?>		<script language="javascript" type="text/javascript">		function submitbutton(pressbutton) {			var form = document.adminForm;			if (pressbutton == 'cancel') {				submitform( pressbutton );				return;			}			// do field validation			if (!getSelectedValue( 'adminForm', 'sectionmove' )) {				alert( "<?php echo JText::_( 'Please select a section from the list', true ); ?>" );			} else {				submitform( pressbutton );			}		}		</script>		<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 SAME 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\" />";		}		?>		<?php echo JHTML::_( 'form.token' ); ?>		</form>		<?php	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -