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

📄 easygallery.html.php

📁 这是一个joomla系统的插件, 这是一个joomla系统的插件
💻 PHP
📖 第 1 页 / 共 2 页
字号:
			mosToolBar::startTable();			mosToolBar::save();			mosToolBar::apply();			mosToolBar::cancel();			mosToolBar::endtable();			?>		</div>		<table class="adminform">		<tr>			<th colspan="3"><?php echo EG_PHOTO_DETAILS; ?></th>		</tr>		<tr>		  <td width="150"><?php echo EG_PHOTO_NAME; ?>:</td>		  <td><input type="text" name="name" class="inputbox" size="30" value="<?php echo $row->name; ?>" /></td>		  <td rowspan="4"><img src="<?php echo $mainframe->getCfg('live_site') . $eg_thumbnail_path . '/' . $row->path; ?>" alt="<?php echo $row->name; ?>" border="0" /></td>		</tr>		<tr>		  <td><?php echo EG_PHOTO_CATEGORY; ?>:</td>		  <td><?php echo $lists['cid']; ?></td>		</tr>		<tr>		  <td><?php echo EG_PHOTO_GALLERY_THUMBNAIL; ?>:</td>		  <td><?php echo mosHTML::yesnoRadioList('default', '', $row->default); ?></td>		</tr>		<tr>		  <td><?php echo EG_PHOTO_PUBLISHED; ?>:</td>		  <td><?php echo mosHTML::yesnoRadioList('state', '', $row->state); ?></td>		</tr>		<tr valign="top">		  <td colspan="3"><?php echo EG_PHOTO_DESCRIPTION; ?>:</td>		</tr>		<tr>		  <td colspan="3"><?php 		    // parameters : areaname, content, hidden field, width, height, rows, cols        editorArea( 'editor1',  $row->description , 'description', '100%;', '300', '40', '20' ) ;         ?>		  </td>		</tr>		</table>				<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>" />		<input type="hidden" name="id" value="<?php echo $row->id; ?>" />		<input type="hidden" name="option" value="<?php echo $option; ?>" />		<input type="hidden" name="act" value="photos" />		<input type="hidden" name="task" value="" />		</form>	  <?php	}		/**	 * Upload form	 * 	 * @param array lists	 */	function upload($lists){	  global $option, $mainframe, $Itemid;	  	  require_once( $mainframe->getCfg('absolute_path') . '/includes/HTML_toolbar.php' );	  	  mosCommonHTML::loadOverlib();	  ?>	  <script language="javascript" type="text/javascript">		function submitbutton(pressbutton, section) {			var form = document.adminForm;			if (pressbutton == 'cancel') {				submitform( pressbutton );				return;			}			<?php getEditorContents( 'editor1', 'description' ) ; ?>			submitform(pressbutton);		}		</script>	  		<div class="componentheading"><?php echo EG_UPLOAD_PHOTOS; ?></div>				<div align="right">			<?php			// Toolbar Top			mosToolBar::startTable();			mosToolBar::custom('doUpload', null, 'upload_f2.png', EG_UPLOAD, false);			mosToolBar::back();			mosToolBar::endtable();			?>		</div>		<br />		<form action="index.php" method="post" name="adminForm" enctype="multipart/form-data">		<div align="left" class="small"><?php echo EG_UPLOAD_LIMIT; ?>: <?php echo ini_get('upload_max_filesize'); ?></div>		<table class="adminlist" width="100%" cellpadding="0" cellspacing="0">		<tr>		  <td width="150"><?php echo EG_UPLOAD_CATEGORY; ?>: </td>		  <td><?php echo $lists['cid']; ?></td>		</tr>		<tr>		  <td><?php echo EG_UPLOAD_PUBLISHED; ?>: </td>		  <td><?php echo mosHTML::yesnoRadioList('state', '', 1); ?></td>		</tr>		<tr>		  <td><?php echo EG_UPLOAD_NAME; ?>: <?php echo mosToolTip(EG_UPLOAD_NAME_EMPTY, EG_UPLOAD_HELP); ?></td>		  <td><input type="text" name="name" class="inputbox" size="30" value="" /></td>		</tr>		<tr valign="top">		  <td colspan="2"><?php echo EG_UPLOAD_DESCRIPTION; ?>: </td>		</tr>		<tr>		  <td colspan="2"><?php 		    // parameters : areaname, content, hidden field, width, height, rows, cols        editorArea( 'editor1',  '' , 'description', '100%;', '300', '60', '20' ) ;         ?>		  </td>		</tr>		</table>		<br />		<div align="left">		<?php echo EG_UPLOAD_THREE_OPTIONS; ?>		<table class="adminlist" width="100%" cellpadding="0" cellspacing="0">		<tr>		  <th class="sectiontableheader" colspan="2"><?php echo EG_UPLOAD_ONE; ?></th>		</tr>		<tr>		  <td width="150"><?php echo EG_UPLOAD_FILE; ?>: </td>		  <td><input type="file" name="photo" class="inputbox" size="30" value="" /></td>		</tr>		</table>		<br />		<table class="adminlist" width="100%" cellpadding="0" cellspacing="0">		<tr>		  <th class="sectiontableheader" colspan="2"><?php echo EG_UPLOAD_TWO; ?></th>		</tr>		<tr>		  <td width="150"><?php echo EG_UPLOAD_FILE; ?>: </td>		  <td><input type="file" name="zip" class="inputbox" size="30" value="" /></td>		</tr>		</table>		<br />		<table class="adminlist" width="100%" cellpadding="0" cellspacing="0">		<tr>		  <th class="sectiontableheader" colspan="2"><?php echo EG_UPLOAD_THREE; ?></th>		</tr>		<tr>		  <td width="150"><?php echo EG_UPLOAD_DIRECTORY; ?>: </td>		  <td><input type="name" name="dir" class="inputbox" size="45" value="<?php echo $mainframe->getCfg('absolute_path'); ?>" /></td>		</tr>		</table>		</div>		<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>" />		<input type="hidden" name="option" value="<?php echo $option; ?>" />		<input type="hidden" name="task" value="" />		<input type="hidden" name="act" value="photos" />		</form>		<?php	}    /**   * Echo pathway   *   * @param int current categoryid   */  function fixPathway($cid, $photo = null){    global $database, $mainframe, $Itemid, $option;    if($cid == 0){      return;    }        $query = "SELECT * FROM #__categories WHERE section = 'com_easygallery'";    $database->setQuery($query);    $cats = $database->loadObjectList('id');    echo $database->getErrorMsg();        $pathway = array();    if(sizeof($cats) > 0){      $cat = $cats[$cid];      while($cat->parent_id != 0){ //echo and move level up        $cat = $cats[$cat->parent_id];        $pathway[] = '<a href="' . sefRelToAbs('index.php?option=' . $option . '&amp;act=categories&amp;cid=' . $cat->id . '&amp;Itemid=' . $Itemid) . '">' . $cat->name . '</a>';      }    }        $pathway = array_reverse($pathway);    for($i=0,$n=count($pathway);$i<$n;$i++){      $mainframe->appendPathWay($pathway[$i]);    }    if(!is_null($photo)){      //photo view, echo linked category      $mainframe->appendPathWay('<a href="' . sefRelToAbs('index.php?option=' . $option . '&amp;act=categories&amp;cid=' . $cats[$cid]->id . '&amp;Itemid=' . $Itemid) . '">' . $cats[$cid]->name . '</a>');      $mainframe->appendPathWay($photo->name);    } else {      if(sizeof($cats) > 0){        $mainframe->appendPathWay($cats[$cid]->name);      }    }  }    /**   * print previous and next buttons   *   * @param <var>dbPhoto</var> $row   * @param <var>mosParameters</var> $params   */  function printNavigation($row, $params){    global $option, $Itemid;        $link_part = 'index.php?option=' . $option . '&amp;act=photos&amp;cid=';        if ( $row->prev ) {			$row->prev = sefRelToAbs( $link_part . $row->prev . '&amp;Itemid=' . $Itemid );		} else {			$row->prev = 0;		}				if ( $row->next ) {			$row->next = sefRelToAbs( $link_part . $row->next . '&amp;Itemid=' . $Itemid );		} else {			$row->next = 0;		}				if ( $params->get( 'item_navigation' ) && ( $row->prev || $row->next ) ) {			?>			<table align="center" style="margin-top: 25px;">			<tr>				<?php				if ( $row->prev ) {					?>					<th class="pagenav_prev">						<a href="<?php echo $row->prev; ?>">							<?php echo _ITEM_PREVIOUS; ?></a>					</th>					<?php				}								if ( $row->prev && $row->next ) {					?>					<td width="50">&nbsp;					</td>					<?php				}								if ( $row->next ) {					?>					<th class="pagenav_next">						<a href="<?php echo $row->next; ?>">							<?php echo _ITEM_NEXT; ?></a>					</th>					<?php				}				?>			</tr>			</table>			<?php		}  }  	/**   * Print edit button   *   * @param object $row   * @param <var>mosParameters</var> $params   * @return string   */  function printAdd($row, $params){    global $option, $Itemid, $mainframe, $my, $act;        $text = '';    if($my->id && ($my->gid == 2)){      $image 	= mosAdminMenus::ImageCheck( '16x16_add.png', '/components/com_easygallery/icons/', NULL, NULL, EG_ADD, EG_ADD, 1, 'middle', EG_ADD );            $link = sefRelToAbs( 'index.php?option=' . $option . '&amp;act=' . $act .'&amp;task=new&amp;cid=' . $row->id . '&amp;Itemid=' . $Itemid );      $text = '<a href="' . $link . '">'. $image . '</a>';    }    return $text;  }  	/**   * Print upload button   *   * @param object $row   * @param <var>mosParameters</var> $params   * @return string   */  function printUpload($row, $params){    global $option, $Itemid, $mainframe, $my, $act;        $text = '';    if($my->id && ($my->gid == 2)){      $image 	= mosAdminMenus::ImageCheck( '16x16_up.png', '/components/com_easygallery/icons/', NULL, NULL, EG_UPLOAD, EG_UPLOAD, 1, 'middle', EG_UPLOAD );            $link = sefRelToAbs( 'index.php?option=' . $option . '&amp;act=photos&amp;task=new&amp;cid=' . $row->id . '&amp;Itemid=' . $Itemid );      $text = '<a href="' . $link . '">'. $image . '</a>';    }    return $text;  }    /**   * Print edit button   *   * @param object $row   * @param <var>mosParameters</var> $params   * @return string   */  function printEdit($row, $params){    global $option, $Itemid, $mainframe, $my, $act;        $text = '';    if($my->id && ($my->gid == 2)){      $image 	= mosAdminMenus::ImageCheck( '16x16_edit.png', '/components/com_easygallery/icons/', NULL, NULL, EG_EDIT, EG_EDIT, 1, 'middle', EG_EDIT );            $link = sefRelToAbs( 'index.php?option=' . $option . '&amp;act=' . $act .'&amp;task=edit&amp;cid=' . $row->id . '&amp;Itemid=' . $Itemid );      $text = '<a href="' . $link . '">'. $image . '</a>';    }    return $text;  }    /**   * Print delete button   *   * @param object $row   * @param <var>mosParameters</var> $params   * @return string   */  function printDelete($row, $params){    global $option, $Itemid, $mainframe, $my, $act;        $text = '';    if($my->id && ($my->gid == 2)){      $image 	= mosAdminMenus::ImageCheck( '16x16_delete.png', '/components/com_easygallery/icons/', NULL, NULL, EG_DELETE, EG_DELETE, 1, 'middle', EG_DELETE );            $link = sefRelToAbs( 'index.php?option=' . $option . '&amp;act=' . $act .'&amp;task=remove&amp;cid=' . $row->id . '&amp;Itemid=' . $Itemid );      $text = '<a href="javascript:void(0);" onclick="if(confirm(\'' . ($act == 'photos' ? EG_DELETE_CONFIRM_PHOTO : EG_DELETE_CONFIRM_CATEGORY) . '\')) { document.location.href=\'' . $link . '\'; }">'. $image . '</a>';    }    return $text;  }    /**   * Show copyright notices   */  function showCopyright(){    global $mainframe;    /**     * Visible copyright notices, you can remove it if you like     */    echo '<div class="small" style="clear: both;"><br />'. EG_POWEREDBY . ' <a href="http://www.joomla-addons.org/components/easy-gallery/easy-gallery.html" target="_blank">Easy Gallery</a> &copy; 2006 <a href="http://www.joomla-addons.org" target="_blank" title="Joomla components, modules, plugins and hosting">Joomla-addons.org</a></div>';    /**     * I would appreciate it very much if you could leave this present,     * this is something your users will never see     */    $mainframe->addMetaTag('Generator', 'Easy Gallery by www.joomla-addons.org');  }}

⌨️ 快捷键说明

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