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

📄 form.php

📁 Joomla!是一套获得过多个奖项的内容管理系统(Content Management System, CMS)。Joomla!采用PHP+MySQL数据库开发
💻 PHP
字号:
<?php defined('_JEXEC') or die('Restricted access'); ?><?php JHTML::_('behavior.tooltip'); ?><?php	// Set toolbar items for the page	$edit		= JRequest::getVar('edit',true);	$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );	JToolBarHelper::title(   JText::_( 'Weblink' ).': <small><small>[ ' . $text.' ]</small></small>' );	JToolBarHelper::save();	if (!$edit)  {		JToolBarHelper::cancel();	} else {		// for existing items the button is renamed `close`		JToolBarHelper::cancel( 'cancel', 'Close' );	}	JToolBarHelper::help( 'screen.weblink.edit' );?><script language="javascript" type="text/javascript">	function submitbutton(pressbutton) {		var form = document.adminForm;		if (pressbutton == 'cancel') {			submitform( pressbutton );			return;		}		// do field validation		if (form.title.value == ""){			alert( "<?php echo JText::_( 'Weblink item must have a title', true ); ?>" );		} else if (form.catid.value == "0"){			alert( "<?php echo JText::_( 'You must select a category', true ); ?>" );		} else if (form.url.value == ""){			alert( "<?php echo JText::_( 'You must have a url.', true ); ?>" );		} else {			submitform( pressbutton );		}	}</script><style type="text/css">	table.paramlist td.paramlist_key {		width: 92px;		text-align: left;		height: 30px;	}</style><form action="index.php" method="post" name="adminForm" id="adminForm"><div class="col width-50">	<fieldset class="adminform">		<legend><?php echo JText::_( 'Details' ); ?></legend>		<table class="admintable">		<tr>			<td width="100" align="right" class="key">				<label for="title">					<?php echo JText::_( 'Name' ); ?>:				</label>			</td>			<td>				<input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php echo $this->weblink->title;?>" />			</td>		</tr>		<tr>			<td width="100" align="right" class="key">				<label for="alias">					<?php echo JText::_( 'Alias' ); ?>:				</label>			</td>			<td>				<input class="text_area" type="text" name="alias" id="alias" size="32" maxlength="250" value="<?php echo $this->weblink->alias;?>" />			</td>		</tr>		<tr>			<td valign="top" align="right" class="key">				<?php echo JText::_( 'Published' ); ?>:			</td>			<td>				<?php echo $this->lists['published']; ?>			</td>		</tr>		<tr>			<td valign="top" align="right" class="key">				<label for="catid">					<?php echo JText::_( 'Category' ); ?>:				</label>			</td>			<td>				<?php echo $this->lists['catid']; ?>			</td>		</tr>		<tr>			<td valign="top" align="right" class="key">				<label for="url">					<?php echo JText::_( 'URL' ); ?>:				</label>			</td>			<td>				<input class="text_area" type="text" name="url" id="url" value="<?php echo $this->weblink->url; ?>" size="32" maxlength="250" />			</td>		</tr>		<tr>			<td valign="top" align="right" class="key">				<label for="ordering">					<?php echo JText::_( 'Ordering' ); ?>:				</label>			</td>			<td>				<?php echo $this->lists['ordering']; ?>			</td>		</tr>	</table>	</fieldset></div><div class="col width-50">	<fieldset class="adminform">		<legend><?php echo JText::_( 'Parameters' ); ?></legend>		<table class="admintable">		<tr>			<td colspan="2">				<?php echo $this->params->render();?>			</td>		</tr>		</table>	</fieldset></div><div class="col width-50">	<fieldset class="adminform">		<legend><?php echo JText::_( 'Description' ); ?></legend>		<table class="admintable">		<tr>			<td>				<textarea class="text_area" cols="44" rows="9" name="description" id="description"><?php echo $this->weblink->description; ?></textarea>			</td>		</tr>		</table>	</fieldset></div><div class="clr"></div>	<input type="hidden" name="option" value="com_weblinks" />	<input type="hidden" name="cid[]" value="<?php echo $this->weblink->id; ?>" />	<input type="hidden" name="task" value="" />	<?php echo JHTML::_( 'form.token' ); ?></form>

⌨️ 快捷键说明

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