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

📄 admin.easygallery.html.php

📁 这是一个joomla系统的插件, 这是一个joomla系统的插件
💻 PHP
📖 第 1 页 / 共 2 页
字号:
		</tr>		<tr valign="top">		  <td>Description: </td>		  <td><?php 		    // parameters : areaname, content, hidden field, width, height, rows, cols        editorArea( 'editor1',  '' , 'description', '100%;', '300', '60', '20' ) ;         ?>		  </td>		</tr>		</table>		<br />		<div align="left">		There are three ways to upload photo's:		<table class="adminlist" width="100%">		<tr>		  <th class="title" colspan="2">1: Upload one photo</th>		</tr>		<tr>		  <td width="150">File: </td>		  <td><input type="file" name="photo" class="text_area" size="30" value="" /></td>		</tr>		</table>		<br />		<table class="adminlist" width="100%">		<tr>		  <th class="title" colspan="2">2: Upload zip archive</th>		</tr>		<tr>		  <td width="150">File: </td>		  <td><input type="file" name="zip" class="text_area" size="30" value="" /></td>		</tr>		</table>		<br />		<table class="adminlist" width="100%">		<tr>		  <th class="title" colspan="2">3: Directory scan</th>		</tr>		<tr>		  <td width="150">Directory: </td>		  <td><input type="name" name="dir" class="text_area" size="45" value="<?php echo $mainframe->getCfg('absolute_path'); ?>" /></td>		</tr>		</table>		</div>		<input type="hidden" name="option" value="<?php echo $option; ?>" />		<input type="hidden" name="task" value="" />		<input type="hidden" name="act" value="photos" />		<input type="hidden" name="boxchecked" value="0" />		<input type="hidden" name="hidemainmenu" value="0" />		</form>		<?php	}		function showConfiguration(){	  global $option;	  	  mosCommonHTML::loadOverlib();	  	  require(PATH_EASYGALLERY . '/configuration.php');	  ?>	  <form action="index2.php" method="post" name="adminForm" enctype="multipart/form-data">		<table class="adminheading">		<tr>			<th class="config">Manage configuration</th>		</tr>		</table>				<table class="adminlist" width="100%">		<tr>		  <th class="title" colspan="2">FTP Settings</th>		</tr>		<tr>		  <td width="150">FTP host: </td>		  <td><input type="text" name="eg_config[ftp_host]" class="text_area" size="30" value="<?php echo $eg_ftp_host; ?>" /></td>		</tr>		<tr>		  <td>FTP port: </td>		  <td><input type="text" name="eg_config[ftp_port]" class="text_area" size="10" value="<?php echo $eg_ftp_port; ?>" /></td>		</tr>		<tr>		  <td>FTP username: </td>		  <td><input type="text" name="eg_config[ftp_user]" class="text_area" size="30" value="<?php echo $eg_ftp_user; ?>" /></td>		</tr>		<tr>		  <td>FTP password: </td>		  <td><input type="text" name="eg_config[ftp_password]" class="text_area" size="30" value="<?php echo $eg_ftp_password; ?>" /></td>		</tr>		<tr>		  <td>FTP path: <?php echo mosToolTip('Full ftp path to your joomla root, leading slash, no trailing slash', 'Info'); ?></td>		  <td><input type="text" name="eg_config[ftp_path]" class="text_area" size="30" value="<?php echo $eg_ftp_path; ?>" /></td>		</tr>		<tr>		  <td>FTP disabled:</td>		  <td><?php echo mosHTML::yesnoRadioList('eg_config[ftp_disabled]', '', $eg_ftp_disabled); ?></td>		</tr>		<tr>		  <th class="title" colspan="2">Image Settings</th>		</tr>		<tr>		  <td>Image path: <?php echo mosToolTip('Path relative to your joomla root to the directory where you would like to save all images, leading slash, no trailing slash', 'Info'); ?></td>		  <td><input type="text" name="eg_config[image_path]" class="text_area" size="30" value="<?php echo $eg_image_path; ?>" /></td>		</tr>		<tr>		  <td>Maximum width: </td>		  <td><input type="text" name="eg_config[max_width]" class="text_area" size="10" value="<?php echo $eg_max_width; ?>" /></td>		</tr>		<tr>		  <td>Maximum height: </td>		  <td><input type="text" name="eg_config[max_height]" class="text_area" size="10" value="<?php echo $eg_max_height; ?>" /></td>		</tr>		<tr>		  <th class="title" colspan="2">Thumbnail Settings</th>		</tr>		<tr>		  <td>Thumbnail path: <?php echo mosToolTip('Path relative to your joomla root to the directory where you would like to save all thumbnails, leading slash, no trailing slash', 'Info'); ?></td>		  <td><input type="text" name="eg_config[thumbnail_path]" class="text_area" size="30" value="<?php echo $eg_thumbnail_path; ?>" /></td>		</tr>		<tr>		  <td>Thumbmail width: </td>		  <td><input type="text" name="eg_config[thumbnail_width]" class="text_area" size="10" value="<?php echo $eg_thumbnail_width; ?>" /></td>		</tr>		<tr>		  <td>Thumbmail height: </td>		  <td><input type="text" name="eg_config[thumbnail_height]" class="text_area" size="10" value="<?php echo $eg_thumbnail_height; ?>" /></td>		</tr>		<tr>		  <td>Thumbnails per row: <?php echo mosToolTip('Number of thumbnails you would like to display in one row. To display as many thumbnails as posible in one row, set this to the number of thumbnails you wish to display on one page, and set the number of rows to 1.', 'Info'); ?></td>		  <td><input type="text" name="eg_config[thumbnails_per_row]" class="text_area" size="5" value="<?php echo $eg_thumbnails_per_row; ?>" /></td>		</tr>		<tr>		  <td>Thumbnail rows: <?php echo mosToolTip('Number of rows of thumbnails you would like to display on one page', 'Info'); ?></td>		  <td><input type="text" name="eg_config[thumbnail_rows]" class="text_area" size="5" value="<?php echo $eg_thumbnail_rows; ?>" /></td>		</tr>		<tr>		  <th class="title" colspan="2">Originals Settings</th>		</tr>		<tr>		  <td>Originals path: <?php echo mosToolTip('Path relative to your joomla root to the directory where you would like to save all originals, leading slash, no trailing slash', 'Info'); ?></td>		  <td><input type="text" name="eg_config[original_path]" class="text_area" size="30" value="<?php echo $eg_original_path; ?>" /></td>		</tr>		</table>		<input type="hidden" name="option" value="<?php echo $option; ?>" />		<input type="hidden" name="task" value="" />		<input type="hidden" name="act" value="configuration" />		<input type="hidden" name="boxchecked" value="0" />		<input type="hidden" name="hidemainmenu" value="0" />		</form>	  <?php	}		/**   * Show if there are updates for certain files   *   * @param array $files   */  function showUpdates($files){    global $option;    ?>    <form action="index2.php" method="post" name="adminForm">		<table class="adminheading">		<tr>		  <th class="dbrestore">Check for updates</th>	  </tr>	  </table>	  <table class="adminlist">	  <tr>	    <th class="title" width="250">File</th>	    <th class="title" width="250">Local file hash</th>	    <th class="title" width="250">Current file hash</th>	    <th class="title">&nbsp;</th>	  </tr>	  <?php 	  $script = '';	  for($i=0,$n=count($files);$i<$n;$i++){	    $file = $files[$i];	    ?>	    <tr>  	    <td><?php echo $file->file; ?></td>  	    <td><?php echo $file->hash; ?></td>  	    <td><div id="file_<?php echo $i; ?>">Checking..</div></td>  	    <td></td>  	  </tr>	    <?php	    $script .= 'compairFileHash(\'' . $file->file . '\', \'' . $file->hash . '\', ' . $i . ');' . "\n";	  }	  ?>	  </table>	  	  <div id="ftp_details">	  <br /><br />	  <div class="small" align="left">FTP server details</div>	  <table class="adminlist">	  <tr>	    <th class="title" colspan="2">FTP server details</th>	  </tr>	  <tr>	    <td width="150">Don't use ftp:</td>	    <td><input type="checkbox" name="no_ftp" size="30" value="localhost" class="text_area" /></td>	  </tr>	  <tr>	    <td>FTP server:</td>	    <td><input type="text" name="ftp_host" size="30" value="localhost" class="text_area" /></td>	  </tr>	  <tr>	    <td>FTP port:</td>	    <td><input type="text" name="ftp_port" size="30" value="21" class="text_area" /></td>	  </tr>	  <tr>	    <td>FTP username:</td>	    <td><input type="text" name="ftp_user" size="30" class="text_area" /></td>	  </tr>	  <tr>	    <td>FTP password:</td>	    <td><input type="text" name="ftp_pass" size="30" class="text_area" /></td>	  </tr>	  <tr>	    <td>FTP path:</td>	    <td><input type="text" name="ftp_path" size="30" class="text_area" /></td>	  </tr>	  </table>	  </div>	  	  <script type="text/javascript">	  <!--	  	  <?php echo $script; ?>	  	  function compairFileHash(file, current, i){	    xajax_compairHash(file, current, i);	  }	  	  function updateFile(file, current, i){	    var form = document.adminForm;	    	    if(form.no_ftp.checked == false){ //use ftp  	    if(form.ftp_host.value == ''){  	      alert('Please enter the ftp host');  	      return;  	    }  	    if(form.ftp_port.value == ''){  	      alert('Please enter the ftp port');  	      return;  	    }  	    if(form.ftp_user.value == ''){  	      alert('Please enter the ftp username');  	      return;  	    }  	    if(form.ftp_pass.value == ''){  	      alert('Please enter the ftp password');  	      return;  	    }  	    if(form.ftp_path.value == ''){  	      alert('Please enter the full ftp path to joomla for your server');  	      return;  	    }	    }	    	    xajax_updateFile(file, current, i, form.no_ftp.checked, form.ftp_host.value, form.ftp_port.value, form.ftp_user.value, form.ftp_pass.value, form.ftp_path.value);	  }	  	  //-->	  </script>	      <input type="hidden" name="option" value="<?php echo $option; ?>" />		<input type="hidden" name="task" value="" />		<input type="hidden" name="act" value="updates" />		<input type="hidden" name="boxchecked" value="0" />		<input type="hidden" name="hidemainmenu" value="0" />		</form>    <?php  }		function showCredits(){    global $option, $easygallery_version;    ?>    <table class="adminheading">		<tr>			<th class="cpanel" rowspan="2" nowrap>Easy Gallery credits</th>	  </tr>	  </table>    <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminform">	  <tr valign="top">	    <td width="660">	    <div id="cpanel">	      <div style="float:left;">	      <div class="icon">  			<a href="index2.php?option=com_easygallery&act=configuration">  				<div class="iconimage">  					<img src="images/config.png" alt="Configuration" align="middle" name="image" border="0" /></div>  				Configuration</a>  		  </div>  		  </div>	      <div style="float:left;">	      <div class="icon">  			<a href="index2.php?option=com_easygallery&act=categories">  				<div class="iconimage">  					<img src="images/categories.png" alt="Manage categories" align="middle" name="image" border="0" /></div>  				Manage Categories</a>  		  </div>  		  </div>	      <div style="float:left;">	      <div class="icon">  			<a href="index2.php?option=com_easygallery&act=photos">  				<div class="iconimage">  					<img src="images/mediamanager.png" alt="Manage photos" align="middle" name="image" border="0" /></div>  				Manage Photos</a>  		  </div>  		  </div>  		    		  <div style="float:left;">	      <div class="icon">  			<a href="index2.php?option=com_easygallery&act=updates">  				<div class="iconimage">  					<img src="components/com_easygallery/icons/48x48_reload.png" alt="Check for updates" align="middle" name="image" border="0" /></div>  				Check for updates</a>  		  </div>  		  </div>	    </div>	    </td>	    <td>	      <table cellpadding="4" cellspacing="0" border="1" class="adminform">	      <tr>	        <th colspan="2">Easy Gallery</th>	      </tr>	      <tr class="row0">	        <td colspan="2" align="center"><center><img src="components/com_easygallery/easygallery.gif" alt="Easy Gallery logo" /></center></td>	      </tr>	      <tr class="row1">	        <td width="100">Installed version</td>	        <td><?php echo $easygallery_version; ?> </td>	      </tr>	      <tr class="row1">	        <td>Copyright</td>	        <td>&copy; 2006 Adam van Dongen <a href="http://www.joomla-addons.org" target="_blank">Joomla-addons.org</a></td>	      </tr>	      <tr class="row1">	        <td>Support</td>	        <td><a href="http://www.joomla-addons.org/option,com_smf/Itemid,7/board,10.0.html" target="_blank">Visit the forum</a></td>	      </tr>	      <tr class="row1">	        <td colspan="2">	          <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">            <input type="hidden" name="cmd" value="_s-xclick">            <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">            <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">            <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBCAyEMgwoiTMuIhCKG/EjcVZTVvBzCTWlei3Vm61Ion+i8pXfr1pINUmIjavGD3w+7TkBVJTMm1NB+tIyQ7fhNYH7zLNo44voiptoQ2XgNFFNLUFg8aJqsWqb4tFeH6Fr+zkh9tf4Ef269sLcOFZKEcPASMy1acq4fcjUYkV7/GjELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHIzTPgoXUxaAgbh+TWtSquliAe5Izw39qAJzw47jMBj8xiV07LBnr3CAHPEci4AzEsLE+WIpEi9UaMbinHuk+NEHA9Z8DavDMI+aXmGhHrSWga4acENQCzn8tnbTR49paH84BzSMDYAJqb8vdfaXauKpvNi9qORkwJ6o3kJhRjYUqj7DW++5S/OS1PPh7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QAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwNzI0MTEwMDAzWjAjBgkqhkiG9w0BCQQxFgQUPT6Y3W+lU4gOBn8uoO18g2dZSy0wDQYJKoZIhvcNAQEBBQAEgYAgId7kqRSds1f75/4sD9lbPudsegrOYD8HV+06YRbjjbc3xB+GYCjDUeYnqyczf+kfMHC+NMALpuUZJoA3gSW4jIsLe4z56HP0sliWAzudmvEZI4H37UsIVid4tkI65au5T5EiIAy/7Spi4ehh07ef8gtw9GYPgthMquVGKSoyJg==-----END PKCS7-----">            </form>	        </td>	      </tr>	      <tr class="row1">	        <td colspan="2">	          This component has been licensed under the <a href="http://www.joomla-addons.org/joomla-addons-free-software-license.html">Joomla-Addons Free Software License</a>	        </td>	      </tr>	      </table>	    </td>	  </tr>	  </table>    <?php  }}?>

⌨️ 快捷键说明

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