SourceTable = $objSession->GetEditTable("Link"); $objEditCat->EnablePaging = FALSE; //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); $action = "m_img_edit"; $name = $img->Get("Name"); $img->Pending=TRUE; } else { $img = new clsImage(); $img->Set("ResourceId",$c->Get("ResourceId")); $img->Pending=TRUE; $img->tablename = $objEditItems->SourceTable; $img->Set("ImageId",$img->FieldMin("ImageId")-1); $action = "m_img_add"; $name = "'New Image'"; } $envar = "env=" . BuildEnv() . "&en=$en"; $section = 'in-link:editlink_image'; $ado = &GetADODBConnection(); /* page header */ $charset = GetRegionalOption('Charset'); print << In-portal END; $title = prompt_language("la_Text_Editing")." ".prompt_language("la_Text_Link")." '".$c->Get("Name")."' - ".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');","do_image_save('link','in-link/admin/addlink_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('link','in-link/admin/addlink_images.php',-1);",$imagesURL."/toolbar/tool_cancel.gif"); int_header($objCatToolBar,NULL,$title); if ($objSession->GetVariable("HasChanges") == 1) { ?>
> > > > > > > Get("LocalThumb")==1 || strlen($img->Get("LocalThumb"))==0) { $local="checked"; $remote = ""; } else { $remote="checked"; $local = ""; } ?> > Get("SameImages")=="1") || !$img->Get("ImageId") || ($img->Get("ImageId") == "-1")) { $checked = "CHECKED"; $disabled = "DISABLED=\"true\""; } ?> > Get("LocalImage")==1 || strlen($img->Get("LocalImage"))==0) { $local="checked"; $remote = ""; } else { $remote="checked"; $local = ""; } ?> "> ">
Get("ImageId") != -1) echo $img->Get("ImageId"); ?>
">
">
Get("Enabled")==1) echo "CHECKED"; ?> VALUE="1"> Get("Enabled")==0) echo "CHECKED"; ?> VALUE="0">
Get("DefaultImg")==1) echo "CHECKED"; ?> VALUE="1">
">
VALUE="1">:
VALUE="0"> : ">
ONCLICK="enableFullImage(this);">
VALUE="1">:
VALUE="0"> : ">