Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F773147
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 2, 3:46 AM
Size
24 KB
Mime Type
text/x-diff
Expires
Tue, Feb 4, 3:46 AM (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
556405
Attached To
rINP In-Portal
in-portal
View Options
Index: trunk/admin/users/user_addimage.php
===================================================================
--- trunk/admin/users/user_addimage.php (revision 704)
+++ trunk/admin/users/user_addimage.php (revision 705)
@@ -1,343 +1,343 @@
<?php
##############################################################
##In-portal ##
##############################################################
## In-portal ##
## Intechnic Corporation ##
## All Rights Reserved, 1998-2002 ##
## ##
## No portion of this code may be copied, reproduced or ##
## otherwise redistributed without proper written ##
## consent of Intechnic Corporation. Violation will ##
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
if(!strlen($pathtoroot))
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
{
/* determine the OS type for path parsing */
$pos = strpos($path,":");
if ($pos === false)
{
$gOS_TYPE="unix";
$pathchar = "/";
}
else
{
$gOS_TYPE="win";
$pathchar="\\";
}
$p = $path.$pathchar;
/*Start looking for the root flag file */
while(!strlen($pathtoroot) && strlen($p))
{
$sub = substr($p,strlen($pathchar)*-1);
if($sub==$pathchar)
{
$filename = $p."root.flg";
}
else
$filename = $p.$pathchar."root.flg";
if(file_exists($filename))
{
$pathtoroot = $p;
}
else
{
$parent = realpath($p.$pathchar."..".$pathchar);
if($parent!=$p)
{
$p = $parent;
}
else
$p = "";
}
}
if(!strlen($pathtoroot))
$pathtoroot = ".".$pathchar;
}
else
{
$pathtoroot = ".".$pathchar;
}
}
$sub = substr($pathtoroot,strlen($pathchar)*-1);
if($sub!=$pathchar)
{
$pathtoroot = $pathtoroot.$pathchar;
}
//echo $pathtoroot;
//print_r($_GET);
//print_r($_POST);
require_once($pathtoroot."kernel/startup.php");
//admin only util
/* set the destination of the image upload, relative to the root path */
$DestDir = "kernel/images/";
$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
$admin = $objConfig->Get("AdminDirectory");
if(!strlen($admin))
$admin = "admin";
$localURL=$rootURL."kernel/";
$adminURL = $rootURL.$admin;
$imagesURL = $adminURL."/images";
$cssURL = $adminURL."/include";
$browseURL = $adminURL."/browse";
$pathtolocal = $pathtoroot."kernel/";
require_once ($pathtoroot.$admin."/include/elements.php");
require_once ($pathtoroot."kernel/admin/include/navmenu.php");;
require_once($pathtoroot.$admin."/browse/toolbar.php");
require_once($pathtoroot.$admin."/listview/listview.php");
$m = GetModuleArray();
foreach($m as $key=>$value)
{
$path = $pathtoroot. $value."admin/include/parser.php";
if(file_exists($path))
{
include_once($path);
}
}
unset($objEditItems);
$objEditItems = new clsUserManager();
$objEditItems->SourceTable = $objSession->GetEditTable("PortalUser");
$objEditItems->EnablePaging = FALSE;
//Multiedit init
$en = (int)$_GET["en"];
$objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable);
$itemcount=$objEditItems->NumItems();
$c = $objEditItems->GetItemByIndex($en);
unset($objEditItems);
$objEditItems = new clsImageList();
$objEditItems->SourceTable = $objSession->GetEditTable("Images");
if(isset($_POST["itemlist"]))
{
if(is_array($_POST["itemlist"]))
{
$ImageId = $_POST["itemlist"][0];
}
else
{
$ImageId = $_POST["itemlist"];
}
$img = $objEditItems->GetItem($ImageId);
// print_r($img);
$action = "m_img_edit";
$name = $img->Get("Name");
}
else
{
$img = new clsImage();
$img->Set("ResourceId",$c->Get("ResourceId"));
$action = "m_img_add";
$name = "'New Image'";
}
$envar = "env=" . BuildEnv() . "&en=$en";
$section = 'in-portal:edituser_image';
$ado = &GetADODBConnection();
/* page header */
print <<<END
<html>
<head>
<title>In-portal</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript">
imagesPath='$imagesURL'+'/';
</script>
<script src="$browseURL/common.js"></script>
<script src="$browseURL/toolbar.js"></script>
<script src="$browseURL/utility.js"></script>
<script src="$browseURL/checkboxes.js"></script>
<script language="JavaScript1.2" src="$browseURL/fw_menu.js"></script>
<link rel="stylesheet" type="text/css" href="$browseURL/checkboxes.css">
<link rel="stylesheet" type="text/css" href="$cssURL/style.css">
<link rel="stylesheet" type="text/css" href="$browseURL/toolbar.css">
END;
$title = GetTitle("la_Text_User", "la_Text_General", $c->Get('PortalUserId'), $c->Get('Login'));//prompt_language("la_Text_Editing")." ".prompt_language("la_Text_User")." '".$c->Get("Login")."' - ".prompt_language("la_Text_Image");
$title .= " '".$name."'";
$objCatToolBar = new clsToolBar();
$objCatToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_images.php',0);",$imagesURL."/toolbar/tool_select.gif");
$objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","edit_submit('user','UserEditStatus','".$admin."/users/adduser_images.php',-1);",$imagesURL."/toolbar/tool_cancel.gif");
//echo "<pre>"; print_r($objCatToolBar); echo "</pre>";
int_header($objCatToolBar,NULL,$title);
?>
<TABLE cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
<FORM enctype="multipart/form-data" ID="user" NAME="user" method="POST" ACTION="">
<?php int_subsection_title(prompt_language("la_Text_Image")); ?>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_ImageId"); ?></TD>
<TD><?php if ($img->Get("ImageId") != -1) echo $img->Get("ImageId"); ?></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><SPAN class="text" id="prompt_imgName"><?php echo prompt_language("la_prompt_Name"); ?></SPAN></TD>
- <TD><input type=text NAME="imgName" ValidationType="exists" tabindex="1" size="30" VALUE="<?php echo $img->parsetag("image_name"); ?>"></TD>
+ <TD><input type=text NAME="imgName" ValidationType="exists" tabindex="1" size="30" VALUE="<?php echo inp_htmlize($img->parsetag("image_name")); ?>"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><SPAN class="text" id="prompt_imgAlt"><?php echo prompt_language("la_prompt_AltName"); ?></SPAN></TD>
- <TD><input type=text NAME="imgAlt" ValidationType="exists" size="30" tabindex="2" VALUE="<?php echo $img->parsetag("image_alt"); ?>"></TD>
+ <TD><input type=text NAME="imgAlt" ValidationType="exists" size="30" tabindex="2" VALUE="<?php echo inp_htmlize($img->parsetag("image_alt")); ?>"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Status"); ?></TD>
<TD>
<input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==1) echo "CHECKED"; ?> VALUE="1"><?php echo prompt_language("la_Text_Enabled"); ?>
<input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==0) echo "CHECKED"; ?> VALUE="0"><?php echo prompt_language("la_Text_Disabled"); ?>
</TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Primary"); ?></TD>
<TD><input type=checkbox NAME="imgDefault" tabindex="4" <?php if($img->Get("DefaultImg")==1) echo "CHECKED"; ?> VALUE="1"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Priority"); ?></TD>
<TD><input type=text SIZE="5" NAME="imgPriority" tabindex="5" VALUE="<?php echo $img->Get("Priority"); ?>"></TD>
<TD></TD>
</TR>
<?php int_subsection_title(prompt_language("la_text_Thumbnail_Image")); ?>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
<?php
if($img->Get("LocalThumb")==1 || strlen($img->Get("LocalThumb"))==0)
{
$local="checked";
$remote = "";
}
else
{
$remote="checked";
$local = "";
}
?>
<TD>
<TABLE border=0>
<tr>
<TD>
<input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
</td>
<td>
<input type=FILE NAME="imgThumbFile" tabindex="7" VALUE=""> <br />
</td>
</tr>
<tr>
<td>
<input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
</td>
<td>
<input type=text size=32 NAME="imgThumbUrl" tabindex="8" VALUE="<?php echo $img->Get("ThumbUrl"); ?>"> <br />
</td>
</tr>
</table>
</TD>
<TD ALIGN="RIGHT">
<IMG SRC="<?php echo $img->ThumbURL(); ?>">
</TD>
</TR>
<?php int_subsection_title(prompt_language("la_Text_Full_Size_Image")); ?>
<TR <?php int_table_color(); ?>>
<TD><?php echo prompt_language("la_text_Same_As_Thumbnail"); ?></TD>
<?php
if(($img->Get("SameImages")=="1") || !$img->Get("ImageId") || ($img->Get("ImageId") == "-1"))
{
$checked = "CHECKED";
$disabled = "DISABLED=\"true\"";
}
?>
<TD><input type=checkbox id="imgSameImages" NAME="imgSameImages" tabindex="9" VALUE="1" <?php echo $checked; ?> ONCLICK="enableFullImage(this);"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?>>
<TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
<?php
if($img->Get("LocalImage")==1 || strlen($img->Get("LocalImage"))==0)
{
$local="checked";
$remote = "";
}
else
{
$remote="checked";
$local = "";
}
?>
<TD>
<TABLE border=0>
<tr>
<TD>
<input id="full1" type="radio" name="imgLocalFull" tabindex="10" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
</td>
<td>
<input type=FILE ID="imgFullFile" NAME="imgFullFile" tabindex="11" VALUE=""> <br />
</td>
</tr>
<tr>
<td>
<input id="full2" type="radio" name="imgLocalFull" tabindex="10" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
</td>
<td>
<input type=text size=32 ID="imgFullUrl" tabindex="12" NAME="imgFullUrl" VALUE="<?php echo $img->Get("Url"); ?>"> <br />
</td>
</tr>
</table>
</td>
<TD ALIGN="RIGHT">
<IMG SRC="<?php echo $img->FullURL(); ?>">
</TD>
</TR>
<input type=hidden NAME="Action" VALUE="<?php echo $action; ?>">
<input type="hidden" name="UserEditStatus" VALUE="0">
<input type="hidden" name="DestDir" VALUE="<?php echo $DestDir; ?>">
<INPUT TYPE="hidden" NAME="ImageId" VALUE="<?php echo $img->Get("ImageId"); ?>">
<input TYPE="HIDDEN" NAME="ResourceId" VALUE="<?php echo $c->Get("ResourceId"); ?>">
</FORM>
</TABLE>
<!-- CODE FOR VIEW MENU -->
<form method="post" action="user_groups.php?<?php echo $envar; ?>" name="viewmenu">
<input type="hidden" name="fieldname" value="">
<input type="hidden" name="varvalue" value="">
<input type="hidden" name="varvalue2" value="">
<input type="hidden" name="Action" value="">
</form>
<script language="JavaScript">
enableFullImage(document.getElementById('imgSameImages'));
MarkAsRequired(document.getElementById("user"));
</script>
<!-- END CODE-->
<?php int_footer(); ?>
Property changes on: trunk/admin/users/user_addimage.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.4
\ No newline at end of property
+1.5
\ No newline at end of property
Index: trunk/admin/category/addimage.php
===================================================================
--- trunk/admin/category/addimage.php (revision 704)
+++ trunk/admin/category/addimage.php (revision 705)
@@ -1,355 +1,355 @@
<?php
##############################################################
##In-portal ##
##############################################################
## In-portal ##
## Intechnic Corporation ##
## All Rights Reserved, 1998-2002 ##
## ##
## No portion of this code may be copied, reproduced or ##
## otherwise redistributed without proper written ##
## consent of Intechnic Corporation. Violation will ##
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
if(!strlen($pathtoroot))
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
{
/* determine the OS type for path parsing */
$pos = strpos($path,":");
if ($pos === false)
{
$gOS_TYPE="unix";
$pathchar = "/";
}
else
{
$gOS_TYPE="win";
$pathchar="\\";
}
$p = $path.$pathchar;
/*Start looking for the root flag file */
while(!strlen($pathtoroot) && strlen($p))
{
$sub = substr($p,strlen($pathchar)*-1);
if($sub==$pathchar)
{
$filename = $p."root.flg";
}
else
$filename = $p.$pathchar."root.flg";
if(file_exists($filename))
{
$pathtoroot = $p;
}
else
{
$parent = realpath($p.$pathchar."..".$pathchar);
if($parent!=$p)
{
$p = $parent;
}
else
$p = "";
}
}
if(!strlen($pathtoroot))
$pathtoroot = ".".$pathchar;
}
else
{
$pathtoroot = ".".$pathchar;
}
}
$sub = substr($pathtoroot,strlen($pathchar)*-1);
if($sub!=$pathchar)
{
$pathtoroot = $pathtoroot.$pathchar;
}
//echo $pathtoroot;
//print_r($_GET);
//print_r($_POST);
require_once($pathtoroot."kernel/startup.php");
//admin only util
/* set the destination of the image upload, relative to the root path */
$DestDir = "kernel/images/";
$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
$admin = $objConfig->Get("AdminDirectory");
if(!strlen($admin))
$admin = "admin";
$localURL=$rootURL."kernel/";
$adminURL = $rootURL.$admin;
$imagesURL = $adminURL."/images";
$cssURL = $adminURL."/include";
$browseURL = $adminURL."/browse";
//$pathtolocal = $pathtoroot."kernel/";
require_once ($pathtoroot.$admin."/include/elements.php");
require_once ($pathtoroot."kernel/admin/include/navmenu.php");
//require_once ($pathtolocal."admin/include/navmenu.php");
require_once($pathtoroot.$admin."/browse/toolbar.php");
require_once($pathtoroot.$admin."/listview/listview.php");
$m = GetModuleArray();
foreach($m as $key=>$value)
{
$path = $pathtoroot. $value."admin/include/parser.php";
if(file_exists($path))
{
include_once($path);
}
}
unset($objEditCat);
$objEditCat = new clsCatList();
$objEditCat->SourceTable = $objSession->GetEditTable("Category");
//Multiedit init
$en = (int)$_GET["en"];
$objEditCat->Query_Item("SELECT * FROM ".$objEditCat->SourceTable);
$itemcount=$objEditCat->NumItems();
$c = $objEditCat->GetItemByIndex($en);
unset($objEditItems);
$objEditItems = new clsImageList();
$objEditItems->SourceTable = $objSession->GetEditTable("Images");
if(isset($_POST["itemlist"]))
{
if(is_array($_POST["itemlist"]))
{
$ImageId = $_POST["itemlist"][0];
}
else
{
$ImageId = $_POST["itemlist"];
}
$img = $objEditItems->GetItem($ImageId);
$img->Pending=TRUE;
$action = "m_img_edit";
$name = $img->Get("Name");
}
else
{
$img = new clsImage();
$img->Set("ResourceId",$c->Get("ResourceId"));
$img->Set("ImageId",$img->FieldMin("ImageId")-1);
$img->Pending=TRUE;
$img->tablename = $objEditItems->SourceTable;
$action = "m_img_add";
$name = "'New Image'";
}
$envar = "env=" . BuildEnv() . "&en=$en";
$section = 'in-portal:cat_imageedit';
$ado = &GetADODBConnection();
/* page header */
print <<<END
<html>
<head>
<title>In-portal</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<script language="JavaScript">
imagesPath='$imagesURL'+'/';
</script>
<script src="$browseURL/common.js"></script>
<script src="$browseURL/toolbar.js"></script>
<script src="$browseURL/utility.js"></script>
<script src="$browseURL/checkboxes.js"></script>
<script language="JavaScript1.2" src="$browseURL/fw_menu.js"></script>
<link rel="stylesheet" type="text/css" href="$browseURL/checkboxes.css">
<link rel="stylesheet" type="text/css" href="$cssURL/style.css">
<link rel="stylesheet" type="text/css" href="$browseURL/toolbar.css">
END;
$objListToolBar = new clsToolBar();
$objListToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","edit_submit('category','CatEditStatus','".$admin."/category/addcategory_images.php',0);",$imagesURL."/toolbar/tool_select.gif");
$objListToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","edit_submit('category','CatEditStatus','".$admin."/category/addcategory_images.php',-1);", $imagesURL."/toolbar/tool_cancel.gif");
$title = prompt_language("la_Text_Editing")." ".prompt_language("la_Text_Category")." '".$c->Get("Name")."' - ".prompt_language("la_Text_Image");
$title .= " '".$name."'";
int_header($objListToolBar,NULL,$title);
if ($objSession->GetVariable("HasChanges") == 1) {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="toolbar">
<tr>
<td valign="top">
<?php int_hint_red(admin_language("la_Warning_Save_Item")); ?>
</td>
</tr>
</table>
<?php } ?>
<TABLE cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
<FORM enctype="multipart/form-data" ID="category" NAME="category" method="POST" ACTION="">
<?php int_subsection_title(prompt_language("la_Text_Image")); ?>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_ImageId"); ?></TD>
<TD><?php if ($img->Get("ImageId") != -1) echo $img->Get("ImageId"); ?></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><SPAN class="text" id="prompt_imgName"><?php echo prompt_language("la_prompt_Name"); ?></SPAN></TD>
- <TD><input type=text tabindex="1" ValidationType="exists" NAME="imgName" size="30" VALUE="<?php echo $img->parsetag("image_name"); ?>"></TD>
+ <TD><input type=text tabindex="1" ValidationType="exists" NAME="imgName" size="30" VALUE="<?php echo inp_htmlize($img->parsetag("image_name")); ?>"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><SPAN class="text" id="prompt_imgAlt"><?php echo prompt_language("la_prompt_AltName"); ?></SPAN></TD>
- <TD><input type=text ValidationType="exists" tabindex="2" NAME="imgAlt" size="30" VALUE="<?php echo $img->parsetag("image_alt"); ?>"></TD>
+ <TD><input type=text ValidationType="exists" tabindex="2" NAME="imgAlt" size="30" VALUE="<?php echo inp_htmlize($img->parsetag("image_alt")); ?>"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Status"); ?></TD>
<TD>
<input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==1) echo "CHECKED"; ?> VALUE="1"><?php echo prompt_language("la_Text_Enabled"); ?>
<input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==0) echo "CHECKED"; ?> VALUE="0"><?php echo prompt_language("la_Text_Disabled"); ?>
</TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Primary"); ?></TD>
<TD><input type=checkbox NAME="imgDefault" tabindex="4" <?php if($img->Get("DefaultImg")==1) echo "CHECKED"; ?> VALUE="1"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Priority"); ?></TD>
<TD><input type=text SIZE="5" NAME="imgPriority" tabindex="5" VALUE="<?php echo $img->Get("Priority"); ?>"></TD>
<TD></TD>
</TR>
<?php int_subsection_title(prompt_language("la_text_Thumbnail_Image")); ?>
<TR <?php int_table_color(); ?> >
<TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
<?php
if($img->Get("LocalThumb")==1 || strlen($img->Get("LocalThumb"))==0)
{
$local="checked";
$remote = "";
}
else
{
$remote="checked";
$local = "";
}
?>
<TD>
<TABLE border=0>
<tr>
<TD>
<input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
</td>
<td>
<input type=FILE NAME="imgThumbFile" tabindex="7" VALUE=""> <br />
</td>
</tr>
<tr>
<td>
<input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
</td>
<td>
<input type=text size=32 NAME="imgThumbUrl" tabindex="8" VALUE=""> <br />
</td>
</tr>
</table>
</TD>
<TD ALIGN="RIGHT">
<IMG SRC="<?php echo $img->ThumbURL(); ?>">
</TD>
</TR>
<?php int_subsection_title(prompt_language("la_Text_Full_Size_Image")); ?>
<TR <?php int_table_color(); ?>>
<TD><?php echo prompt_language("la_text_Same_As_Thumbnail"); ?></TD>
<?php
if(($img->Get("SameImages")=="1") || !$img->Get("ImageId") || ($img->Get("ImageId") == "-1"))
{
$checked = "CHECKED";
$disabled = "DISABLED=\"true\"";
}
?>
<TD><input type=checkbox id="imgSameImages" NAME="imgSameImages" tabindex="9" VALUE="1" <?php echo $checked; ?> ONCLICK="enableFullImage(this);"></TD>
<TD></TD>
</TR>
<TR <?php int_table_color(); ?>>
<TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
<?php
if($img->Get("LocalImage")==1 || strlen($img->Get("LocalImage"))==0)
{
$local="checked";
$remote = "";
}
else
{
$remote="checked";
$local = "";
}
?>
<TD>
<TABLE border=0>
<tr>
<TD>
<input id="full1" type="radio" name="imgLocalFull" tabindex="10" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
</td>
<td>
<input type=FILE ID="imgFullFile" NAME="imgFullFile" tabindex="11" VALUE=""> <br />
</td>
</tr>
<tr>
<td>
<input id="full2" type="radio" name="imgLocalFull" tabindex="10" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
</td>
<td>
<input type=text size=32 ID="imgFullUrl" NAME="imgFullUrl" tabindex="12" VALUE=""> <br />
</td>
</tr>
</table>
</td>
<TD ALIGN="RIGHT">
<IMG SRC="<?php echo $img->FullURL(); ?>">
</TD>
</TR>
<input type=hidden NAME="Action" VALUE="<?php echo $action; ?>">
<input type="hidden" name="CatEditStatus" VALUE="0">
<input type="hidden" name="DestDir" VALUE="<?php echo $DestDir; ?>">
<INPUT TYPE="hidden" NAME="ImageId" VALUE="<?php echo $img->Get("ImageId"); ?>">
<input TYPE="HIDDEN" NAME="ResourceId" VALUE="<?php echo $c->Get("ResourceId"); ?>">
</FORM>
</TABLE>
<!-- CODE FOR VIEW MENU -->
<form method="post" action="user_groups.php?<?php echo $envar; ?>" name="viewmenu">
<input type="hidden" name="fieldname" value="">
<input type="hidden" name="varvalue" value="">
<input type="hidden" name="varvalue2" value="">
<input type="hidden" name="Action" value="">
</form>
<script language="JavaScript">
enableFullImage(document.getElementById('imgSameImages'));
MarkAsRequired(document.getElementById("category"));
</script>
<!-- END CODE-->
<?php int_footer(); ?>
Property changes on: trunk/admin/category/addimage.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.3
\ No newline at end of property
+1.4
\ No newline at end of property
Event Timeline
Log In to Comment