| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // @version $Id: form.php 11917 2009-05-29 19:37:05Z ian $ 2 defined('_JEXEC') or die('Restricted access'); 3 ?> 4 <?php if($this->params->get('show_page_title',1)) : ?> 5 <h2 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')) ?>"> 6 <?php echo $this->escape($this->params->get('page_title')) ?> 7 </h2> 8 <?php endif; ?> 9 <script type="text/javascript"> 10 //<![CDATA[ 11 function submitbutton(pressbutton) 12 { 13 var form = document.adminForm; 14 if (pressbutton == 'cancel') { 15 submitform( pressbutton ); 16 return; 17 } 18 19 // do field validation 20 if (document.getElementById('jformtitle').value == ""){ 21 alert( "<?php echo JText::_( 'Weblink item must have a title', true ); ?>" ); 22 } else if (document.getElementById('jformcatid').value < 1) { 23 alert( "<?php echo JText::_( 'You must select a category.', true ); ?>" ); 24 } else if (document.getElementById('jformurl').value == ""){ 25 alert( "<?php echo JText::_( 'You must have a url.', true ); ?>" ); 26 } else { 27 submitform( pressbutton ); 28 } 29 } 30 //]]> 31 </script> 32 33 <form action="<?php echo $this->action ?>" method="post" name="adminForm" class="editor" id="adminForm"> 34 <fieldset class="publishing"> 35 <legend><?php echo JText::_( 'Submit A Web Link' );?></legend> 36 <div> 37 <label for="jformtitle"><?php echo JText::_( 'Name' ); ?>:</label> 38 <input class="inputbox" type="text" id="jformtitle" name="jform[title]" size="50" maxlength="250" value="<?php echo $this->escape($this->weblink->title);?>" /> 39 </div> 40 41 <div> 42 <label for="jformcatid"><?php echo JText::_( 'Category' ); ?>:</label> 43 <?php echo $this->lists['catid']; ?> 44 </div> 45 <div> 46 <label for="jformurl"><?php echo JText::_( 'URL' ); ?>:</label> 47 <input class="inputbox" type="text" id="jformurl" name="jform[url]" value="<?php echo $this->escape($this->weblink->url); ?>" size="50" maxlength="250" /> 48 </div> 49 50 <div> 51 <label for="jformdescription"><?php echo JText::_( 'Description' ); ?>:</label> 52 <textarea class="inputbox" cols="30" rows="6" id="jformdescription" name="jform[description]" style="width:300px"><?php echo htmlspecialchars( $this->weblink->description, ENT_QUOTES );?></textarea> 53 </div> 54 </fieldset> 55 56 <fieldset> 57 <legend><?php echo JText::_( 'Published' );?></legend> 58 <div> 59 <label for="jformpublished"> 60 <?php echo JText::_( 'Published' ); ?>: 61 </label> 62 <?php echo $this->lists['published']; ?> 63 </div> 64 <div><label for="jformordering"> 65 <?php echo JText::_( 'Ordering' ); ?>: 66 </label> 67 <?php echo $this->lists['ordering']; ?> 68 </div> 69 </fieldset> 70 71 72 <div> 73 <button type="button" onclick="submitbutton('save')"> 74 <?php echo JText::_('Save') ?> 75 </button> 76 <button type="button" onclick="submitbutton('cancel')" > 77 <?php echo JText::_('Cancel') ?> 78 </button> 79 </div> 80 81 <input type="hidden" name="jform[id]" value="<?php echo (int)$this->weblink->id; ?>" /> 82 <input type="hidden" name="jform[ordering]" value="<?php echo (int)$this->weblink->ordering; ?>" /> 83 <input type="hidden" name="jform[approved]" value="<?php echo $this->weblink->approved; ?>" /> 84 <input type="hidden" name="option" value="com_weblinks" /> 85 <input type="hidden" name="controller" value="weblink" /> 86 <input type="hidden" name="task" value="" /> 87 <?php echo JHTML::_( 'form.token' ); ?> 88 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |