CopyToEditTable(null,$ids); $objEditItems->SetTable('edit'); if($ids) { $ReviewId=is_array($ids)?array_shift($ids):$ids; $Rev = $objEditItems->GetItem($ReviewId); $action = 'm_review_direct_edit'; } $envar = "env=" . BuildEnv() . "&en=$en"; /*$m = GetModuleArray(); foreach($m as $key => $value) { $path = $pathtoroot.$value."admin/include/parser.php"; if( file_exists($path) ) include_once($path); } $module_info=$objModules->ExecuteFunction('GetModuleInfo','review_section'); $section = $module_info[$Rev->Get('Module')]; */ $section='in-portal:editreview_direct'; $ado = &GetADODBConnection(); /** * Returns username by user id specified * * @param int $user_id * @return string * @access public */ function getUsernameByID($user_id) { global $objUsers; if(!($user_id>0) || !$user_id) return 'root'; $u = $objUsers->GetUser($user_id); return $u->Get('Login'); } $user_id=is_numeric($Rev->Get("CreatedById"))?$Rev->Get('CreatedById'):$objSession->Get('PortalUserId'); $login_name=getUsernameByID($user_id); $title = GetTitle('la_text_Review','la_tab_General',$Rev->UniqueId()); $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('review','ReviewEditStatus','admin/reviews.php',1);",$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('review','ReviewEditStatus','admin/reviews.php',-1);",$imagesURL."/toolbar/tool_cancel.gif"); int_header($objListToolBar,NULL,$title); if ($objSession->GetVariable("HasChanges") == 1) { ?>
> > > > > > > > "> "> "> ">
Get("TextFormat")==1) echo "CHECKED"; ?>>
Get("ReviewId"); ?>  
 

Get("Status") == 1) echo "checked"; ?>> Get("Status") == 2) echo "checked"; ?>> Get("Status") == 0) echo "checked"; ?>>  
">  
">
">
" name="viewmenu">