= count($stringarray) ) { return $str; } $tmp = array_slice($stringarray,0,$numwords); $tmp = implode(' ',$tmp).$ets; return $tmp; } include_once("header.php"); if (isset($_GET["message"])) { $message = preg_replace('/\

'.$message.'

'; } ?>
GetGlobalContentOperations(); $modifyall = check_permission($userid, 'Modify Global Content Blocks'); $htmlbloblist = $gcbops->LoadHtmlBlobs(); $myblobs = $gcbops->AuthorBlobs($userid); $page = 1; if (isset($_GET['page'])) $page = $_GET['page']; $limit = get_preference($userid,'listgcbs_pagelimit',20); echo "

".pagination($page, count($htmlbloblist), $limit)."

"; echo $themeObject->ShowHeader('htmlblobs').'
'; if ($htmlbloblist && count($htmlbloblist) > 0) { echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo ""; $currow = "row1"; // construct true/false button images $image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon'); $image_false = $themeObject->DisplayImage('icons/system/false.gif', lang('false'),'','','systemicon'); $counter = 0; foreach ($htmlbloblist as $onehtmlblob){ if ($counter < $page*$limit && $counter >= ($page*$limit)-$limit) { if ($modifyall || quick_check_authorship($onehtmlblob->id, $myblobs)) { echo "\n"; echo "\n"; echo "\n"; echo ''; echo "\n"; echo "\n"; echo "\n"; ($currow=="row1"?$currow="row2":$currow="row1"); } } $counter++; } echo ""; echo "
".lang('name')."".lang('tagtousegcb')."".lang('description')."  
id."\">".$onehtmlblob->name."{global_content name='".$onehtmlblob->name."'}'.listgcb_summarize($onehtmlblob->description,20).'id."\">"; echo $themeObject->DisplayImage('icons/system/edit.gif', lang('edit'),'','','systemicon'); echo ""; if( check_permission($userid,'Remove Global Content Blocks') ) { echo "id."\" onclick=\"return confirm('".lang('deleteconfirm', $onehtmlblob->name)."');\">"; echo $themeObject->DisplayImage('icons/system/delete.gif', lang('delete'),'','','systemicon').""; } echo "
\n"; } #if ($add) { if (check_permission($userid, 'Add Global Content Blocks')) { ?>

DisplayImage('icons/system/newobject.gif', lang('addhtmlblob'),'','','systemicon').''; echo ' '.lang("addhtmlblob"); ?>

«