图像管理出了问题,高人解决

Zen Cart 模板、教程、设计、使用交流
版面规则
严禁盗版、侵权的模板下载、讨论,违者封ID、IP。

zencart 发帖图标 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-03 23:49

图像管理
版本: 2.0
我在图像管理里添加新的图片,点击加入新文件,过显示保存成功,但不在下面显示,并且出现一条显示
Error!

Unable to determine the page link!

Function used:

zen_href_link('', '', 'NONSSL')
那位高人知道,到底是怎么解决,谢谢了!!!

另我说一句,卖模板的骗子多,大家小心,我快疯了,有问题不给解决,一问三不知,。到时我会公布出来。他应该也在这个论坛里混。
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子lxhua88 » 2009-06-03 23:54

把你的模板共享一下吧, :D
[color=#40BFFF][size=150][b]在学习中成长,请大家多多指导,
[url=http://chinaorganicnet.com/]中国有机网[/url] http://chinaorganicnet.com[/b][/size][/color]
头像
lxhua88
高级会员
高级会员
 
帖子: 235
注册: 2008-01-25 8:55
地址: 云南昆明
QQ 帐号: 372450706

Re: 图像管理出了问题,高人解决

帖子xxxfox » 2009-06-04 16:12

radnows 写道:信息出自html_output.php里

zen_href_link($page = '这里是空的话就会出现下面错误', $parameters = '', $connection = 'NONSSL', $add_session_id = true)

代码: 全选
    if ($page == '') {
      die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>zen_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
    }


可在html_output.php里if( $page == '' )前加入

if ($page == ''){ $page = $_SERVER[ 'PHP_SELF' ]; }看看。


这样改了后台都进不去了...
xxxfox
新手上路
新手上路
 
帖子: 5
注册: 2009-04-30 15:20

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-07 15:47

radnows版主 有人说这样改后,连后台也进来了去了,是真的吗,
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-07 22:55

我用原来的文件覆盖率可以吗。。?谢谢版主的回答~!!
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-12 3:30

能在解释的清楚些吗,我按上面的步骤做了,是进不了后台了,然后我用备份的文件重导入后才能进后台,但图像的问题还是存在着。。我把全部复复制下来了,帮着看看对不。

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: html_output.php 3089 2006-03-01 18:32:25Z ajeh $
//

////
// The HTML href link wrapper function
function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true) {
global $request_type, $session_started, $http_domain, $https_domain;
if ($page == '') {
die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>zen_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
}

if ($connection == 'NONSSL') {
$link = HTTP_SERVER . DIR_WS_ADMIN;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL_ADMIN == 'true') {
$link = HTTPS_SERVER . DIR_WS_HTTPS_ADMIN;
} else {
$link = HTTP_SERVER . DIR_WS_ADMIN;
}
} else {
die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>zen_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
}
if (!strstr($page, '.php')) $page .= '.php';
if ($parameters == '') {
$link = $link . $page;
$separator = '?';
} else {
$link = $link . $page . '?' . $parameters;
$separator = '&';
}

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
if ( ($add_session_id == true) && ($session_started == true) ) {
if (defined('SID') && zen_not_null(SID)) {
$sid = SID;
} elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL_ADMIN == 'true') ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
//die($connection);
if ($http_domain != $https_domain) {
$sid = zen_session_name() . '=' . zen_session_id();
}
}
}

if (isset($sid)) {
$link .= $separator . $sid;
}

return $link;
}

function zen_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL_CATALOG == 'true') {
$link = HTTPS_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG;
} else {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
}
} else {
die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>zen_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
}
if ($parameters == '') {
$link .= 'index.php?main_page='. $page;
} else {
$link .= 'index.php?main_page='. $page . "&" . zen_output_string($parameters);
}

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

return $link;
}

////
// The HTML image wrapper function
function zen_image($src, $alt = '', $width = '', $height = '', $params = '') {
$image = '<img src="' . $src . '" border="0" alt="' . $alt . '"';
if ($alt) {
$image .= ' title=" ' . $alt . ' "';
}
if ($width) {
$image .= ' width="' . $width . '"';
}
if ($height) {
$image .= ' height="' . $height . '"';
}
if ($params) {
$image .= ' ' . $params;
}
$image .= '>';

return $image;
}

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
function zen_image_submit($image, $alt = '', $parameters = '') {
global $language;

$image_submit = '<input type="image" src="' . zen_output_string(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/' . $image) . '" border="0" alt="' . zen_output_string($alt) . '"';

if (zen_not_null($alt)) $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';

if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;

$image_submit .= '>';

return $image_submit;
}

////
// Draw a 1 pixel black line
function zen_black_line() {
return zen_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '1');
}

////
// Output a separator either through whitespace, or with an image
function zen_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {
return zen_image(DIR_WS_IMAGES . $image, '', $width, $height);
}

////
// Output a function button in the selected language
function zen_image_button($image, $alt = '', $params = '') {
global $language;

return zen_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/' . $image, $alt, '', '', $params);
}

////
// javascript to dynamically update the states/provinces list when the country is changed
// TABLES: zones
function zen_js_zone_list($country, $form, $field) {
global $db;
$countries = $db->Execute("select distinct zone_country_id
from " . TABLE_ZONES . "
order by zone_country_id");

$num_country = 1;
$output_string = '';
while (!$countries->EOF) {
if ($num_country == 1) {
$output_string .= ' if (' . $country . ' == "' . $countries->fields['zone_country_id'] . '") {' . "\n";
} else {
$output_string .= ' } else if (' . $country . ' == "' . $countries->fields['zone_country_id'] . '") {' . "\n";
}

$states = $db->Execute("select zone_name, zone_id
from " . TABLE_ZONES . "
where zone_country_id = '" . $countries->fields['zone_country_id'] . "'
order by zone_name");


$num_state = 1;
while (!$states->EOF) {
if ($num_state == '1') $output_string .= ' ' . $form . '.' . $field . '.options[0] = new Option("' . PLEASE_SELECT . '", "");' . "\n";
$output_string .= ' ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option("' . $states->fields['zone_name'] . '", "' . $states->fields['zone_id'] . '");' . "\n";
$num_state++;
$states->MoveNext();
}
$num_country++;
$countries->MoveNext();
}
$output_string .= ' } else {' . "\n" .
' ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" .
' }' . "\n";

return $output_string;
}

////
// Output a form
function zen_draw_form($name, $action, $parameters = '', $method = 'post', $params = '', $usessl = 'false') {
$form = '<form name="' . zen_output_string($name) . '" action="';
if (zen_not_null($parameters)) {
if ($usessl) {
$form .= zen_href_link($action, $parameters, 'NONSSL');
} else {
$form .= zen_href_link($action, $parameters, 'NONSSL');
}
} else {
if ($usessl) {
$form .= zen_href_link($action, '', 'NONSSL');
} else {
$form .= zen_href_link($action, '', 'NONSSL');
}
}
$form .= '" method="' . zen_output_string($method) . '"';
if (zen_not_null($params)) {
$form .= ' ' . $params;
}
$form .= '>';
return $form;
}

////
// Output a form input field
function zen_draw_input_field($name, $value = '', $parameters = '', $required = false, $type = 'text', $reinsert_value = true) {
$field = '<input type="' . zen_output_string($type) . '" name="' . zen_output_string($name) . '"';

if (isset($GLOBALS[$name]) && ($reinsert_value == true) && is_string($GLOBALS[$name])) {
$field .= ' value="' . zen_output_string(stripslashes($GLOBALS[$name])) . '"';
} elseif (zen_not_null($value)) {
$field .= ' value="' . zen_output_string($value) . '"';
}

if (zen_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

return $field;
}

////
// Output a form password field
function zen_draw_password_field($name, $value = '', $required = false) {
$field = zen_draw_input_field($name, $value, 'maxlength="40"', $required, 'password', false);

return $field;
}

////
// Output a form filefield
function zen_draw_file_field($name, $required = false) {
$field = zen_draw_input_field($name, '', ' size="50" ', $required, 'file');

return $field;
}

////
// Output a selection field - alias function for zen_draw_checkbox_field() and zen_draw_radio_field()
function zen_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '', $parameters = '') {
$selection = '<input type="' . zen_output_string($type) . '" name="' . zen_output_string($name) . '"';

if (zen_not_null($value)) $selection .= ' value="' . zen_output_string($value) . '"';

if ( ($checked == true) || (isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ($GLOBALS[$name] == 'on')) || (isset($value) && isset($GLOBALS[$name]) && (stripslashes($GLOBALS[$name]) == $value)) || (zen_not_null($value) && zen_not_null($compare) && ($value == $compare)) ) {
$selection .= ' CHECKED';
}

if (zen_not_null($parameters)) $selection .= ' ' . $parameters;

$selection .= '>';

return $selection;
}

////
// Output a form checkbox field
function zen_draw_checkbox_field($name, $value = '', $checked = false, $compare = '', $parameters = '') {
return zen_draw_selection_field($name, 'checkbox', $value, $checked, $compare, $parameters);
}

////
// Output a form radio field
function zen_draw_radio_field($name, $value = '', $checked = false, $compare = '', $parameters = '') {
return zen_draw_selection_field($name, 'radio', $value, $checked, $compare, $parameters);
}

////
// Output a form textarea field
function zen_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
$field = '<textarea name="' . zen_output_string($name) . '" wrap="' . zen_output_string($wrap) . '" cols="' . zen_output_string($width) . '" rows="' . zen_output_string($height) . '"';

if (zen_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= stripslashes($GLOBALS[$name]);
} elseif (zen_not_null($text)) {
$field .= $text;
}

$field .= '</textarea>';

return $field;
}

////
// Output a form hidden field
function zen_draw_hidden_field($name, $value = '', $parameters = '') {
$field = '<input type="hidden" name="' . zen_output_string($name) . '"';

if (zen_not_null($value)) {
$field .= ' value="' . zen_output_string($value) . '"';
} elseif (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) {
$field .= ' value="' . zen_output_string(stripslashes($GLOBALS[$name])) . '"';
}

if (zen_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

return $field;
}

////
// Output a form pull down menu
function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
// $field = '<select name="' . zen_output_string($name) . '"';
$field = '<select rel="dropdown" name="' . zen_output_string($name) . '"';

if (zen_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

for ($i=0, $n=sizeof($values); $i<$n; $i++) {
$field .= '<option value="' . zen_output_string($values[$i]['id']) . '"';
if ($default == $values[$i]['id']) {
$field .= ' SELECTED';
}

$field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>';
}
$field .= '</select>';

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

return $field;
}
////
// Hide form elements
function zen_hide_session_id() {
global $session_started;

if ( ($session_started == true) && defined('SID') && zen_not_null(SID) ) {
return zen_draw_hidden_field(zen_session_name(), zen_session_id());
}
}
?>
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-14 19:23

可以看出问题吗?大家周末都出去疯玩去了吧, 。有空帮我看看,谢谢。。
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-06-22 20:30

有人帮着看看吗???
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

Re: 图像管理出了问题,高人解决

帖子wodexiaofen » 2009-07-02 15:13

老大能不能把你的html_out贴出来LOOK下,而且我觉得不应是HTML_OUT的问题,因该是图像管理模块没有传去参数把
wodexiaofen
 
帖子: 4
注册: 2009-05-02 12:09

Re: 图像管理出了问题,高人解决

帖子nmjnmjx » 2009-07-13 20:56

这么久了,还没有人答复,,, :cry: :cry: :cry: :cry:
nmjnmjx
新手上路
新手上路
 
帖子: 13
注册: 2009-06-03 23:37

下一页

回到 模板美工



在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客