/** * The default render method. Displays the editor tabs * @param bean $model The summary model */ public function render($model) { global $logger; $logger->debug(get_class($this) . '::render()'); $notice = $model->getList(); $tmpl = $this->createPatTemplate(); $tmpl->readTemplatesFromInput('announcement.pat.tpl'); $tmpl->displayParsedTemplate('announcement_open'); // Render the Tabs $tabs = new mosTabs(0); //1 = use cookies to remember selected tab $tabs->startPane("links"); foreach ($notice as $note) { $logger->debug("Notice published: " . $note->getPublished()); $tabs->startTab($note->getScope(), $note->getScope() . "_tab"); echo "<div style='padding: 20px;'>"; echo $this->getPublished($note->getScope(), $note->getPublished()); $conf = $this->getEditorConfig(Editor::SMALL, $note->getScope(), $note->getContent()); echo $this->setEditor($conf); echo "<input type='hidden' name='" . $note->getScope() . "_oid' value='" . $note->getOid() . "'/>"; echo "</div>"; $tabs->endTab(); } $tabs->endPane(); $tmpl->displayParsedTemplate('announcement_close'); }
/** * Loads admin modules via module position * @param string The position * @param int 0 = no style, 1 = tabbed */ function mosLoadAdminModules($position = 'left', $style = 0) { global $database, $acl, $my; $cache =& mosCache::getCache('com_content'); $query = "SELECT id, title, module, position, content, showtitle, params" . "\n FROM #__modules AS m" . "\n WHERE m.published = 1" . "\n AND m.position = " . $database->Quote($position) . "\n AND m.client_id = 1" . "\n ORDER BY m.ordering"; $database->setQuery($query); $modules = $database->loadObjectList(); if ($database->getErrorNum()) { echo "MA " . $database->stderr(true); return; } switch ($style) { case 1: // Tabs $tabs = new mosTabs(1); $tabs->startPane('modules-' . $position); foreach ($modules as $module) { $params = new mosParameters($module->params); $editAllComponents = $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'all'); // special handling for components module if ($module->module != 'mod_components' || $module->module == 'mod_components' && $editAllComponents) { $tabs->startTab($module->title, 'module' . $module->id); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } $tabs->endTab(); } } $tabs->endPane(); break; case 2: // Div'd foreach ($modules as $module) { $params = new mosParameters($module->params); echo '<div>'; if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } echo '</div>'; } break; case 0: default: foreach ($modules as $module) { $params = new mosParameters($module->params); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } } break; } }
/** * Loads admin modules via module position * @param string The position * @param int 0 = no style, 1 = tabbed */ function mosLoadAdminModules($position = 'left', $style = 0) { global $database, $adminLanguage; $cache =& mosCache::getCache('com_content'); $query = "SELECT id, title, module, position, content, showtitle, params" . "\n FROM #__modules AS m" . "\n WHERE m.published = '1'" . "\n AND m.position='{$position}'" . "\n AND (m.client_id = 1)" . "\n ORDER BY m.ordering"; $database->setQuery($query); $modules = $database->loadObjectList(); if ($database->getErrorNum()) { echo "MA " . $database->stderr(true); return; } switch ($style) { case 0: default: foreach ($modules as $module) { $params =& new mosParameters($module->params); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } } break; case 1: // Tabs $tabs = new mosTabs(0); $tabs->startPane('modules-' . $position); foreach ($modules as $module) { $params =& new mosParameters($module->params); $tabs->startTab($module->title, 'module' . $module->id); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } $tabs->endTab(); } $tabs->endPane(); break; case 2: // Div'd foreach ($modules as $module) { $params =& new mosParameters($module->params); echo '<div>'; if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } echo '</div>'; } break; } }
function editDocument(&$row, &$lists, $last, $created, &$params) { global $database, $mosConfig_offset, $mosConfig_live_site, $mosConfig_locale, $mosConfig_absolute_path; $tabs = new mosTabs(1); mosMakeHtmlSafe($row); DOCMAN_Compat::calendarJS(); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="JavaScript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // do field validation <?php dmHTML::docEditFieldsJS(); /* Include all edits at once */ ?> if ( $msg != "" ){ $msghdr = "<?php echo _DML_ENTRY_ERRORS; ?> "; $msghdr += '\n================================='; alert( $msghdr+$msg+'\n' ); }else { <?php getEditorContents('editor1', 'dmdescription'); ?> submitform( pressbutton ); } } //--> end submitbutton </script> <style> select option.label { background-color: #EEE; border: 1px solid #DDD; color : #333; } </style> <?php $tmp = ($row->id ? _DML_EDIT : _DML_ADD) . ' ' . _DML_DOCUMENT; dmHTML::adminHeading($tmp, 'documents'); ?> <form action="index2.php" method="post" name="adminForm" class="adminform" id="dm_formedit"> <table class="adminform"> <tr> <th colspan="3"><?php echo _DML_TITLE_DOCINFORMATION; ?> </th> </tr> <?php HTML_DMDocuments::_showTabBasic($row, $lists, $last, $created); ?> <tr> <td colspan="2"> <?php $tabs->startPane("content-pane"); $tabs->startTab(_DML_DOC, "document-page"); HTML_DMDocuments::_showTabDocument($row, $lists, $last, $created); $tabs->endTab(); $tabs->startTab(_DML_TAB_PERMISSIONS, "ownership-page"); HTML_DMDocuments::_showTabPermissions($row, $lists, $last, $created); $tabs->endTab(); $tabs->startTab(_DML_TAB_LICENSE, "license-page"); HTML_DMDocuments::_showTabLicense($row, $lists, $last, $created); if (isset($params)) { $tabs->endTab(); $tabs->startTab(_DML_TAB_DETAILS, "details-page"); HTML_DMDocuments::_showTabDetails($row, $lists, $last, $created, $params); } $tabs->endTab(); $tabs->endPane(); ?> </td> </tr> </table> <input type="hidden" name="original_dmfilename" value="<?php echo $lists['original_dmfilename']; ?> " /> <input type="hidden" name="dmsubmitedby" value="<?php echo $row->dmsubmitedby; ?> " /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="option" value="com_docman" /> <input type="hidden" name="section" value="documents" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="dmcounter" value="<?php echo $row->dmcounter; ?> " /> <?php echo DOCMAN_token::render(); ?> </form> <?php include_once $mosConfig_absolute_path . "/components/com_docman/footer.php"; }
/** * Loads admin modules from a specified position,a $style can be passed * to change the style of output * * @param string The position * @param int The style 0 = no style(default), 1 = tabbed, 2 = use div */ function mosLoadAdminModules($position = 'left', $style = 0) { global $my, $acl; $this->initModules(true); $cache =& mosCache::getCache('com_content'); if (isset($this->_modules[$position])) { $modules = $this->_modules[$position]; } else { $modules = array(); } switch ($style) { case 0: default: foreach ($modules as $module) { $params =& new mosParameters($module->params); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } } break; case 1: // Tabs $tabs = new mosTabs(1); $tabs->startPane('modules-' . $position); foreach ($modules as $module) { $params =& new mosParameters($module->params); $editAllComponents = $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'all'); // $authoriser = new mosAuthoriser($database); // $editAllComponents = $authoriser->checkPermission('mosUser', $my->id, 'edit', 'editAllComponents', 0); // special handling for components module if ($module->module != 'mod_components' || $module->module == 'mod_components' && $editAllComponents) { $tabs->startTab(T_($module->title), 'module' . $module->id); if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } $tabs->endTab(); } } $tabs->endPane(); break; case 2: // Div'd foreach ($modules as $module) { $params =& new mosParameters($module->params); echo '<div>'; if ($module->module == '') { mosLoadCustomModule($module, $params); } else { mosLoadAdminModule(substr($module->module, 4), $params); } echo '</div>'; } break; } }
function editCategory(&$menu, &$lists, &$params, $option) { global $mosConfig_live_site, $adminLanguage; $tabs = new mosTabs(0); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { if ( pressbutton == 'cancel' ) { submitform( pressbutton ); return; } var form = document.adminForm; <?php if (!$menu->id) { ?> if ( getSelectedValue( 'adminForm', 'componentid' ) < 1 ) { alert( 'You must select a category' ); return; } cat = getSelectedText( 'adminForm', 'componentid' ); form.link.value = "index.php?option=com_contact&catid=" + form.componentid.value; if ( form.name.value == '' ) { form.name.value = cat; } submitform( pressbutton ); <?php } else { ?> if ( form.name.value == '' ) { alert( 'This Menu item must have a title' ); } else { submitform( pressbutton ); } <?php } ?> } </script> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> <?php echo $menu->id ? $adminLanguage->A_EDIT : $adminLanguage->A_COMP_ADD; ?> <?php echo $adminLanguage->A_COMP_MENUS_MENU_ITEM; ?> :: <?php echo $adminLanguage->A_COMP_MENUS_TABLE; ?> - <?php echo $adminLanguage->A_COMP_MENUS_CONTACT_CAT; ?> </th> </tr> </table> <?php $tabs->startPane("module"); $tabs->startTab($adminLanguage->A_DETAILS, "Details-page"); ?> <table class="adminform"> <tr> <td width="10%" align="right" valign="top"> <?php echo $adminLanguage->A_COMP_TITLE; ?> : </td> <td width="200px"> <input type="text" name="name" size="30" maxlength="100" class="inputbox" value="<?php echo $menu->name; ?> "/> </td> <td> <?php if (!$menu->id) { echo mosToolTip($adminLanguage->A_COMP_MENUS_CMP_CCT_BLANK); } ?> </td> </tr> <tr> <td width="10%" align="right" valign="top"> <?php echo $adminLanguage->A_COMP_CATEG; ?> : </td> <td colspan="2"> <?php echo $lists['componentid']; ?> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_ADMIN_URL; ?> : </td> <td colspan="2"> <?php echo $lists['link']; ?> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_MENUS_CIL_PARENT; ?> : </td> <td colspan="2"> <?php echo $lists['parent']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_ORDERING; ?> : </td> <td colspan="2"> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> : </td> <td colspan="2"> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_PUBLISHED; ?> : </td> <td colspan="2"> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $menu->id; ?> " /> <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?> " /> <input type="hidden" name="type" value="<?php echo $menu->type; ?> " /> <input type="hidden" name="link" value="<?php echo $menu->link; ?> " /> <input type="hidden" name="task" value="" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
/** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent(&$row, $section, &$lists, &$sectioncategories, &$images, $myid, &$params, $option, $redirect, &$menus) { global $mosConfig_live_site, $adminLanguage; $sec = $section; //used in metadata include mosMakeHtmlSafe($row); $mod_date = null; $create_date = null; if (intval($row->modified) != 0) { $mod_date = mosFormatDate($row->modified); } if (intval($row->created) != 0) { $create_date = mosFormatDate($row->created); } $tabs = new mosTabs(0); // used to hide "Reset Hits" when hits = 0 if (!$row->hits) { $visibility = "style='display: none; visbility: hidden;'"; } else { $visibility = ""; } ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <link rel="stylesheet" type="text/css" media="all" href="../includes/js/calendar/calendar-mos.css" title="green" /> <!-- import the calendar script --> <script type="text/javascript" src="../includes/js/calendar/calendar.js"></script> <!-- import the language module --> <script type="text/javascript" src="../includes/js/calendar/lang/calendar-en.js"></script> <script language="javascript" type="text/javascript"> var sectioncategories = new Array; <?php $i = 0; foreach ($sectioncategories as $k => $items) { foreach ($items as $v) { echo "sectioncategories[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->value) . "','" . addslashes($v->text) . "' );\n\t\t"; } } ?> var folderimages = new Array; <?php $i = 0; foreach ($images as $k => $items) { foreach ($items as $v) { echo "folderimages[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->value) . "','" . addslashes($v->text) . "' );\n\t\t"; } } ?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton =='resethits') { if (confirm("<?php echo $adminLanguage->A_COMP_CONTENT_ZERO; ?> ")){ submitform( pressbutton ); return; } else { return; } } if ( pressbutton == 'menulink' ) { if ( form.menuselect.value == "" ) { alert( "<?php echo $adminLanguage->A_COMP_SELECT_MENU; ?> " ); return; } else if ( form.link_name.value == "" ) { alert( "<?php echo $adminLanguage->A_COMP_ENTER_MENU_NAME; ?> " ); return; } else if ( confirm("<?php echo $adminLanguage->A_COMP_CREATE_MENU_LINK; ?> ") ){ submitform( pressbutton ); } else { return; } } if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // assemble the images back into one field var temp = new Array; for (var i=0, n=form.imagelist.options.length; i < n; i++) { temp[i] = form.imagelist.options[i].value; } form.images.value = temp.join( '\n' ); // do field validation if (form.title.value == ""){ alert( "<?php echo $adminLanguage->A_COMP_CONTENT_MUST_TITLE; ?> " ); } else if (form.sectionid.value == "-1"){ alert( "<?php echo $adminLanguage->A_COMP_CONTENT_MUST_SECTION; ?> " ); } else if (form.catid.value == "-1"){ alert( "<?php echo $adminLanguage->A_COMP_CONTENT_MUST_CATEG; ?> " ); } else { <?php getEditorContents('editor1', 'introtext'); getEditorContents('editor2', 'fulltext'); ?> submitform( pressbutton ); } } </script> <form action="index2.php" method="post" name="adminForm"> <input type="hidden" name="images" value="" /> <table class="adminheading"> <tr> <th class="edit"> <?php echo $row->id ? $adminLanguage->A_COMP_EDITING : $adminLanguage->A_COMP_ADDING; ?> <?php echo $adminLanguage->A_COMP_CONTENT_IN; ?> <?php echo $section; ?> <?php echo $adminLanguage->A_COMP_SECTION; ?> </th> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="60%" valign="top"> <table width="100%" class="adminform"> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <th colspan="4"> <?php echo $adminLanguage->A_COMP_CONTENT_ITEM_DETAILS; ?> </th> <tr> <tr> <td> <?php echo $adminLanguage->A_COMP_TITLE; ?> : </td> <td> <input class="text_area" type="text" name="title" size="30" maxlength="100" value="<?php echo $row->title; ?> " /> </td> <td> <?php echo $adminLanguage->A_COMP_SECTION; ?> : </td> <td> <?php echo $lists['sectionid']; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_CONTENT_TITLE_ALIAS; ?> : </td> <td> <input name="title_alias" type="text" class="text_area" id="title_alias" value="<?php echo $row->title_alias; ?> " size="30" maxlength="100" /> </td> <td> <?php echo $adminLanguage->A_COMP_CATEG; ?> : </td> <td> <?php echo $lists['catid']; ?> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <?php echo $adminLanguage->A_COMP_CONTENT_INTRO; ?> <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->introtext, 'introtext', 500, 200, '50', '15'); ?> </td> </tr> <tr> <td width="100%"> <?php echo $adminLanguage->A_COMP_CONTENT_MAIN; ?> <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor2', $row->fulltext, 'fulltext', 500, 350, '50', '15'); ?> </td> </tr> </table> </td> <td valign="top" width="40%"> <table> <tr> <td> <?php $tabs->startPane("content-pane"); $tabs->startTab($adminLanguage->A_COMP_CONTENT_PUBLISHING, "publish-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_PUB_INFO; ?> </th> <tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_FRONTPAGE; ?> : </td> <td> <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_PUBLISHED; ?> : </td> <td> <input type="checkbox" name="published" value="1" <?php echo $row->state ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> : </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_AUTHOR; ?> : </td> <td> <input type="text" name="created_by_alias" size="30" maxlength="100" value="<?php echo $row->created_by_alias; ?> " class="text_area" /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_CREATOR; ?> : </td> <td> <?php echo $lists['created_by']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_ORDERING; ?> :</td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_OVERRIDE; ?> </td> <td> <input class="text_area" type="text" name="created" id="created" size="25" maxlength="19" value="<?php echo $row->created; ?> " /> <input name="reset" type="reset" class="button" onClick="return showCalendar('created', 'y-mm-dd');" value="..."> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_START_PUB; ?> : </td> <td> <input class="text_area" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?> " /> <input type="reset" class="button" value="..." onClick="return showCalendar('publish_up', 'y-mm-dd');"> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_FINISH_PUB; ?> : </td> <td> <input class="text_area" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?> " /> <input type="reset" class="button" value="..." onClick="return showCalendar('publish_down', 'y-mm-dd');"> </td> </tr> </table> <br /> <table class="adminform"> <tr> <td width="90px" valign="top" align="right"> <strong><?php echo $adminLanguage->A_COMP_STATE; ?> :</strong> </td> <td> <?php echo $row->state > 0 ? $adminLanguage->A_COMP_PUBLISHED : ($row->state < 0 ? $adminLanguage->A_COMP_ARCHIVED : $adminLanguage->A_COMP_CONTENT_DRAFT_UNPUB); ?> </td> </tr> <tr > <td valign="top" align="right"> <strong> <?php echo $adminLanguage->A_COMP_HITS; ?> </strong>: </td> <td> <?php echo $row->hits; ?> <div <?php echo $visibility; ?> > <input name="reset_hits" type="button" class="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_RESET_HIT; ?> " onClick="submitbutton('resethits');"> </div> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo $adminLanguage->A_COMP_CONTENT_REVISED; ?> </strong>: </td> <td> <?php echo $row->version; echo $adminLanguage->A_COMP_CONTENT_TIMES; ?> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo $adminLanguage->A_COMP_CONTENT_CREATED; ?> </strong> </td> <td> <?php echo $row->created ? "{$create_date}</td></tr><tr><td valign='top' align='right'><strong>" . $adminLanguage->A_COMP_CONTENT_BY . "</strong></td><td>{$row->creator}" : $adminLanguage->A_COMP_CONTENT_NEW_DOC; ?> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo $adminLanguage->A_COMP_CONTENT_LAST_MOD; ?> </strong> </td> <td> <?php echo $row->modified ? "{$mod_date}</td></tr><tr><td valign='top' align='right'><strong>" . $adminLanguage->A_COMP_CONTENT_BY . "</strong></td><td>{$row->modifier}" : $adminLanguage->A_COMP_CONTENT_NOT_MOD; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONTENT_IMAGES2, $adminLanguage->A_COMP_CONT_IMG_PAGE); ?> <table class="adminform" width="100%"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_MOSIMAGE; ?> </th> <tr> <tr> <td colspan="6"><?php echo $adminLanguage->A_COMP_CONTENT_SUB_FOLDER; ?> : <?php echo $lists['folders']; ?> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_CONTENT_GALLERY; ?> : <br /> <?php echo $lists['imagefiles']; ?> </td> <td valign="top"> <img name="view_imagefiles" src="../images/M_images/blank.png" width="100" /> </td> </tr> <tr> <td> <input class="button" type="button" value="<?php echo $adminLanguage->A_COMP_ADD; ?> " onClick="addSelectedToList('adminForm','imagefiles','imagelist')" /> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_CONTENT_IMAGES; ?> : <br /> <?php echo $lists['imagelist']; ?> </td> <td valign="top"> <img name="view_imagelist" src="../images/M_images/blank.png" width="100" /> </td> </tr> <tr> <td> <input class="button" type="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_UP; ?> " onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> <input class="button" type="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_DOWN; ?> " onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> <input class="button" type="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_REMOVE; ?> " onClick="delSelectedFromList('adminForm','imagelist')" /> </td> </tr> <tr> <td colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_EDIT_IMAGE; ?> : <table> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_SOURCE; ?> : </td> <td> <input class="text_area" type="text" name= "_source" value="" /> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_ALIGN; ?> : </td> <td> <?php echo $lists['_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_ALT; ?> : </td> <td> <input class="text_area" type="text" name="_alt" value="" /> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_CONTENT_BORDER; ?> : </td> <td> <input class="text_area" type="text" name="_border" value="" size="3" maxlength="1" /> </td> </tr> <tr> <td colspan="2"> <input class="button" type="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_APPLY; ?> " onClick="applyImageProps()" /> </td> </tr> </table> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_PARAM; ?> </th> <tr> <tr> <td> <?php echo $adminLanguage->A_COMP_CONTENT_PARAM_MESS; ?> <br /><br /> </td> </tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONTENT_META_INFO, $adminLanguage->A_COMP_CONF_META_PAGE); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_META_DATA; ?> </th> <tr> <tr> <td> <?php echo $adminLanguage->A_COMP_DESCRIPTION; ?> : <br /> <textarea class="text_area" cols="30" rows="3" style="width:300px; height:50px" name="metadesc" width="500"><?php echo str_replace('&', '&', $row->metadesc); ?> </textarea> </td> </tr> <tr> <td> <?php echo $adminLanguage->A_COMP_CONTENT_KEYWORDS; ?> : <br /> <textarea class="text_area" cols="30" rows="3" style="width:300px; height:50px" name="metakey" width="500"><?php echo str_replace('&', '&', $row->metakey); ?> </textarea> </td> </tr> <tr> <td> <input type="button" class="button" value="<?php echo $adminLanguage->A_COMP_CONTENT_ADD_ETC; ?> " onClick="f=document.adminForm;f.metakey.value=document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].text+', '+getSelectedText('adminForm','catid')+', '+f.title.value+f.metakey.value;" /> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONTENT_LINK_TO_MENU, $adminLanguage->A_COMP_CONTENT_LINK_PAGE); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_LINK_TO_MENU; ?> </th> <tr> <tr> <td colspan="2"> <?php echo $adminLanguage->A_COMP_CONTENT_LINK_CI; ?> <br /><br /> </td> <tr> <tr> <td valign="top" width="90px"> <?php echo $adminLanguage->A_COMP_SELECT_MENU; ?> </td> <td> <?php echo $lists['menuselect']; ?> </td> <tr> <tr> <td valign="top" width="90px"> <?php echo $adminLanguage->A_COMP_MENU_NAME; ?> </td> <td> <input type="text" name="link_name" class="inputbox" value="" size="30" /> </td> <tr> <tr> <td> </td> <td> <input name="menu_link" type="button" class="button" value="<?php echo $adminLanguage->A_COMP_LINK_TO_MENU; ?> " onClick="submitbutton('menulink');" /> </td> <tr> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_MENU_LINKS; ?> </th> </tr> <?php if ($menus == NULL) { ?> <tr> <td colspan="2"> <?php echo $adminLanguage->A_COMP_NONE; ?> </td> </tr> <?php } else { foreach ($menus as $menu) { ?> <tr> <td colspan="2"> <hr/> </td> </tr> <tr> <td width="90px" valign="top"> <?php echo $adminLanguage->A_COMP_MENU; ?> </td> <td> <?php echo $menu->menutype; ?> </td> </tr> <tr> <td width="90px" valign="top"> <?php echo $adminLanguage->A_COMP_CONTENT_LINK_NAME; ?> </td> <td> <strong> <?php echo $menu->name; ?> </strong> </td> </tr> <tr> <td width="90px" valign="top"> <?php echo $adminLanguage->A_COMP_STATE; ?> </td> <td> <?php switch ($menu->published) { case -2: echo "<font color=\"red\">" . $adminLanguage->A_COMP_TRASHED . "</font>"; break; case 0: echo $adminLanguage->A_COMP_UNPUBLISHED; break; case 1: default: echo "<font color=\"green\">" . $adminLanguage->A_COMP_PUBLISHED . "</font>"; break; } ?> </td> </tr> <?php } } ?> <tr> <td colspan="2"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </td> </tr> </table> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="version" value="<?php echo $row->version; ?> " /> <input type="hidden" name="mask" value="0" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?> " /> <input type="hidden" name="task" value="" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
public static function system_info($version) { global $mosConfig_absolute_path, $database, $mosConfig_cachepath, $mainframe; $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <table class="adminheading"> <tr> <th class="info"> Information </th> </tr> </table> <?php $tabs->startPane("sysinfo"); $tabs->startTab("System Info", "system-page"); ?> <table class="adminform"> <tr> <th colspan="2"> System Information </th> </tr> <tr> <td colspan="2"> <?php // show security setting check josSecurityCheck(); ?> </td> </tr> <tr> <td valign="top" width="250"> <strong>PHP built On:</strong> </td> <td> <?php echo php_uname(); ?> </td> </tr> <tr> <td> <strong>Database Version:</strong> </td> <td> <?php echo $database->getVersion(); ?> </td> </tr> <tr> <td> <strong>PHP Version:</strong> </td> <td> <?php echo phpversion(); ?> </td> </tr> <tr> <td> <strong>Web Server:</strong> </td> <td> <?php echo HTML_admin_misc::get_server_software(); ?> </td> </tr> <tr> <td> <strong>WebServer to PHP interface:</strong> </td> <td> <?php echo php_sapi_name(); ?> </td> </tr> <tr> <td> <strong>Joomla! Version:</strong> </td> <td> <?php echo $version; ?> </td> </tr> <tr> <td> <strong>User Agent:</strong> </td> <td> <?php echo phpversion() <= '4.2.1' ? getenv('HTTP_USER_AGENT') : $_SERVER['HTTP_USER_AGENT']; ?> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Relevant PHP Settings:</strong> </td> <td> <table cellspacing="1" cellpadding="1" border="0"> <tr> <td width="250"> Joomla! Register Globals Emulation: </td> <td style="font-weight: bold;" width="50"> <?php echo RG_EMULATION ? '<span style="color: red;">ON</span>' : '<span style="color: green;">OFF</span>'; ?> </td> <td> <?php $img = RG_EMULATION ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Register Globals: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('register_globals', 1, 0); ?> </td> <td> <?php $img = ini_get('register_globals') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Magic Quotes: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('magic_quotes_gpc', 1, 0); ?> </td> <td> <?php $img = ini_get('magic_quotes_gpc') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Safe Mode: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('safe_mode', 1, 0); ?> </td> <td> <?php $img = ini_get('safe_mode') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> File Uploads: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('file_uploads', 1, 1); ?> </td> <td> <?php $img = !ini_get('file_uploads') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Session auto start: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('session.auto_start', 1, 0); ?> </td> <td> <?php $img = ini_get('session.auto_start') ? 'publish_x.png' : 'tick.png'; ?> <img src="../images/<?php echo $img; ?> " /> </td> </tr> <tr> <td> Session save path: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($sp = ini_get('session.save_path')) ? $sp : 'none'; ?> </td> </tr> <tr> <td> Short Open Tags: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('short_open_tag'); ?> </td> <td> </td> </tr> <tr> <td> Output Buffering: </td> <td style="font-weight: bold;"> <?php echo HTML_admin_misc::get_php_setting('output_buffering'); ?> </td> <td> </td> </tr> <tr> <td> Open basedir: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($ob = ini_get('open_basedir')) ? $ob : 'none'; ?> </td> </tr> <tr> <td> Display Errors: </td> <td style="font-weight: bold;" colspan="2"> <?php echo HTML_admin_misc::get_php_setting('display_errors'); ?> </td> </tr> <tr> <td> XML enabled: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('xml') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> Zlib enabled: </td> <td style="font-weight: bold;" colspan="2"> <?php echo extension_loaded('zlib') ? 'Yes' : 'No'; ?> </td> </tr> <tr> <td> Disabled Functions: </td> <td style="font-weight: bold;" colspan="2"> <?php echo ($df = ini_get('disable_functions')) ? $df : 'none'; ?> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" style="height: 10px;"> </td> </tr> <tr> <td valign="top"> <strong>Configuration File:</strong> </td> <td> <?php $cf = file($mosConfig_absolute_path . '/configuration.php'); foreach ($cf as $k => $v) { if (preg_match('/mosConfig_host/i', $v)) { $cf[$k] = '$mosConfig_host = \'xxxxxx\''; } elseif (preg_match('/mosConfig_user/i', $v)) { $cf[$k] = '$mosConfig_user = \'xxxxxx\''; } elseif (preg_match('/mosConfig_password/i', $v)) { $cf[$k] = '$mosConfig_password = \'xxxxxx\''; } elseif (preg_match('/mosConfig_db /i', $v)) { $cf[$k] = '$mosConfig_db = \'xxxxxx\''; } } foreach ($cf as $k => $v) { $k = htmlspecialchars($k); $v = htmlspecialchars($v); $cf[$k] = $v; } echo implode("<br />", $cf); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("PHP Info", "php-page"); ?> <table class="adminform"> <tr> <th colspan="2"> PHP Information </th> </tr> <tr> <td> <?php ob_start(); phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); $phpinfo = ob_get_contents(); ob_end_clean(); preg_match_all('#<body[^>]*>(.*)</body>#siU', $phpinfo, $output); $output = preg_replace('#<table#', '<table class="adminlist" align="center"', $output[1][0]); $output = preg_replace('#(\\w),(\\w)#', '\\1, \\2', $output); $output = preg_replace('#border="0" cellpadding="3" width="600"#', 'border="0" cellspacing="1" cellpadding="4" width="95%"', $output); $output = preg_replace('#<hr />#', '', $output); echo $output; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab('Permissions', 'perms'); ?> <table class="adminform"> <tr> <th colspan="2"> Directory Permissions </th> </tr> <tr> <td> <strong>For all Joomla! functions and features to work ALL of the following directories should be writeable:</strong> <?php $sp = ini_get('session.save_path'); mosHTML::writableCell('administrator/backups'); mosHTML::writableCell('administrator/components'); mosHTML::writableCell('administrator/modules'); mosHTML::writableCell('administrator/templates'); mosHTML::writableCell('components'); mosHTML::writableCell('images'); mosHTML::writableCell('images/banners'); mosHTML::writableCell('images/stories'); mosHTML::writableCell('language'); mosHTML::writableCell('mambots'); mosHTML::writableCell('mambots/content'); mosHTML::writableCell('mambots/editors'); mosHTML::writableCell('mambots/editors-xtd'); mosHTML::writableCell('mambots/search'); mosHTML::writableCell('mambots/system'); mosHTML::writableCell('media'); mosHTML::writableCell('modules'); mosHTML::writableCell('templates'); mosHTML::writableCell($mosConfig_cachepath, 0, '<strong>Cache Directory</strong> '); mosHTML::writableCell($sp, 0, '<strong>Session Directory</strong> '); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <?php }
function showconfig(&$row, &$lists, $option) { global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_session_type, $mainframe; $tabs = new mosTabs(0); ?> <script type="text/javascript"> <!-- function saveFilePerms() { var f = document.adminForm; if (f.filePermsMode0.checked) f.config_fileperms.value = ''; else { var perms = 0; if (f.filePermsUserRead.checked) perms += 400; if (f.filePermsUserWrite.checked) perms += 200; if (f.filePermsUserExecute.checked) perms += 100; if (f.filePermsGroupRead.checked) perms += 40; if (f.filePermsGroupWrite.checked) perms += 20; if (f.filePermsGroupExecute.checked) perms += 10; if (f.filePermsWorldRead.checked) perms += 4; if (f.filePermsWorldWrite.checked) perms += 2; if (f.filePermsWorldExecute.checked) perms += 1; f.config_fileperms.value = '0'+''+perms; } } function changeFilePermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('filePermsValue').style.display = 'none'; document.getElementById('filePermsTooltip').style.display = ''; document.getElementById('filePermsFlags').style.display = 'none'; break; default: document.getElementById('filePermsValue').style.display = ''; document.getElementById('filePermsTooltip').style.display = 'none'; document.getElementById('filePermsFlags').style.display = ''; } // switch } // if saveFilePerms(); } function saveDirPerms() { var f = document.adminForm; if (f.dirPermsMode0.checked) f.config_dirperms.value = ''; else { var perms = 0; if (f.dirPermsUserRead.checked) perms += 400; if (f.dirPermsUserWrite.checked) perms += 200; if (f.dirPermsUserSearch.checked) perms += 100; if (f.dirPermsGroupRead.checked) perms += 40; if (f.dirPermsGroupWrite.checked) perms += 20; if (f.dirPermsGroupSearch.checked) perms += 10; if (f.dirPermsWorldRead.checked) perms += 4; if (f.dirPermsWorldWrite.checked) perms += 2; if (f.dirPermsWorldSearch.checked) perms += 1; f.config_dirperms.value = '0'+''+perms; } } function changeDirPermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('dirPermsValue').style.display = 'none'; document.getElementById('dirPermsTooltip').style.display = ''; document.getElementById('dirPermsFlags').style.display = 'none'; break; default: document.getElementById('dirPermsValue').style.display = ''; document.getElementById('dirPermsTooltip').style.display = 'none'; document.getElementById('dirPermsFlags').style.display = ''; } // switch } // if saveDirPerms(); } function submitbutton(pressbutton) { var form = document.adminForm; // do field validation if (form.config_session_type.value != <?php echo $row->config_session_type; ?> ){ if ( confirm('Tem a certeza que quer mudar o `Método de Autenticação de Sessão`? \n\n Isto irá fazer com que todas as atuais sessões do Site sejam eliminadas d \n\n') ) { submitform( pressbutton ); } else { return; } } else { submitform( pressbutton ); } } //--> </script> <form action="index2.php" method="post" name="adminForm"> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td width="250"><table class="adminheading"><tr><th nowrap="nowrap" class="config">Configuração Global</th></tr></table></td> <td width="270"> <span class="componentheading">configuration.php está: <?php echo is_writable('../configuration.php') ? '<b><font color="green"> Permissão para escrita</font></b>' : '<b><font color="red"> Não tem permissão para escrita</font></b>'; ?> </span> </td> <?php if (mosIsChmodable('../configuration.php')) { if (is_writable('../configuration.php')) { ?> <td> <input type="checkbox" id="disable_write" name="disable_write" value="1"/> <label for="disable_write">Tornar inalterável após salvar</label> </td> <?php } else { ?> <td> <input type="checkbox" id="enable_write" name="enable_write" value="1"/> <label for="enable_write">Anular proteção e sobrescrever</label> </td> <?php } // if } // if ?> </tr> </table> <?php $tabs->startPane("configPane"); $tabs->startTab("Site", "site-page"); ?> <table class="adminform"> <tr> <td width="185">Site Off-line:</td> <td><?php echo $lists['offline']; ?> </td> </tr> <tr> <td valign="top">Mensagem Off-line:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php echo $row->config_offline_message; ?> </textarea><?php $tip = 'Uma mensagem a ser exibida caso o site esteja Off-line'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td valign="top">Mensagem de erro de sistema:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php echo $row->config_error_message; ?> </textarea><?php $tip = 'Uma mensagem a ser exibida caso o Joomla! não consiga efetuar uma ligação à base de dados'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Nome do site:</td> <td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php echo $row->config_sitename; ?> "/></td> </tr> <tr> <td>Exibir links não autorizados:</td> <td><?php echo $lists['shownoauth']; $tip = 'Se escolher `Sim´, serão exibidos os links para conteúdos que exigem registro. O usuário deverá autenticar-se para ver o artigo completo.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Permitir cadastro de usuários:</td> <td><?php echo $lists['allowUserRegistration']; $tip = 'Se escolher `Sim´, permite que usuários se registrem'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Ativação de novas contas:</td> <td><?php echo $lists['useractivation']; ?> <?php $tip = 'Se escolher `Sim´, o usuário receberá um e-mail com um link de ativação da sua conta antes de poder autenticar.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Requerer e-mail único:</td> <td><?php echo $lists['uniquemail']; $tip = 'Se escolher `Sim´, os usuários não poderam partilhar o mesmo endereço de e-mail'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Autenticação no site - Frontend:</td> <td> <?php echo $lists['frontend_login']; ?> <?php $tip = 'Se escolher `Não´, impossibilita a autenticação no Site frontend, até mesmo quando não associado a um item de menu. Também impede a funcionalidade de Inscrição.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Parâmetros do usuário no frontend:</td> <td> <?php echo $lists['frontend_userparams']; ?> <?php $tip = 'Se escolher `Não´, impede a funcionalidade de parâmetros de usuário no frontend'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Depurar site:</td> <td> <?php echo $lists['debug']; ?> <?php $tip = 'Se escolher `Sim´, exibe informações de diagnóstico e erros de SQL quando existirem'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Editor padrão WYSIWYG:</td> <td><?php echo $lists['editor']; ?> </td> </tr> <tr> <td>Tamanho da Lista:</td> <td> <?php echo $lists['list_limit']; ?> <?php $tip = 'Configura o tamanho das listas da administração para todos os usuários'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Ícone de favoritos do site:</td> <td> <input class="text_area" type="text" name="config_favicon" size="20" value="<?php echo $row->config_favicon; ?> "/> <?php $tip = 'Se deixado em branco ou se o arquivo não for encontrado, o favicon.ico padrão será usando.'; echo mosToolTip($tip, 'Favourite Icon'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Localização", "Locale-page"); ?> <table class="adminform"> <tr> <td width="185">Idioma do Site:</td> <td><?php echo $lists['lang']; ?> </td> </tr> <tr> <td width="185">Fuso Horário:</td> <td> <?php echo $lists['offset']; ?> <?php $tip = "Data/hora atual configurada para exibição: " . mosCurrentDate(_DATE_FORMAT_LC2); echo mosToolTip($tip); ?> </td> </tr> <tr> <td width="185">Diferença do Servidor:</td> <td> <input class="text_area" type="text" name="config_offset" size="15" value="<?php echo $row->config_offset; ?> " disabled="disabled" /> </td> </tr> <tr> <td width="185">Código do País:</td> <td> <input class="text_area" type="text" name="config_locale" size="15" value="<?php echo $row->config_locale; ?> "/> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Conteúdo", "content-page"); ?> <table class="adminform"> <tr> <td colspan="3">* Estes parâmeteros controlam os elementos de saída *<br/><br/></td> </tr> <tr> <td width="260">Títulos como Link:</td> <td width="150"><?php echo $lists['link_titles']; ?> </td> <td><?php $tip = 'Se escolher `Sim´, o título dos artigos serão linkados para os artigos'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td width="200">Link leia mais:</td> <td width="150"><?php echo $lists['readmore']; ?> </td> <td><?php $tip = 'Se configurado para exibir, o link ´Ler mais´ será exibido caso o conteúdo possua um texto principal'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Avaliação/Votação do Item:</td> <td><?php echo $lists['vote']; ?> </td> <td><?php $tip = 'Se configurado para exibir, o sistema de votação será habilitado para itens de conteúdo'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Nomes dos Autores:</td> <td><?php echo $lists['hideAuthor']; ?> </td> <td><?php $tip = 'Se configurado para exibir, o nome do autor será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Data e Hora de Criação:</td> <td><?php echo $lists['hideCreateDate']; ?> </td> <td><?php $tip = 'Se configurado para exibir, a data e hora que um item foi criado será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Data e Hora de Alteração:</td> <td><?php echo $lists['hideModifyDate']; ?> </td> <td><?php $tip = 'Se configurado para exibir, a data e hora que um item foi alterado será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Acessos:</td> <td><?php echo $lists['hits']; ?> </td> <td><?php $tip = 'Se configurado para exibir, os acesso para o item específico será exibido. Esta é a configuração global mas pode ser alterada no menu e nos níveis do item.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Ícone PDF:</td> <td><?php echo $lists['hidePdf']; ?> </td> <?php if (!is_writable("{$mosConfig_absolute_path}/media/")) { echo "<td align=\"left\">"; echo mosToolTip('Opção não disponível pois o diretório /media não possui permissão para escrita'); echo "</td>"; } else { ?> <td> </td> <?php } ?> </tr> <tr> <td>Ícone Impressora:</td> <td><?php echo $lists['hidePrint']; ?> </td> <td> </td> </tr> <tr> <td>Ícone E-mail:</td> <td><?php echo $lists['hideEmail']; ?> </td> <td> </td> </tr> <tr> <td>Ícones:</td> <td><?php echo $lists['icons']; ?> </td> <td><?php echo mosToolTip('Imprimir, PDF e Email podem utilizar Icones ou Texto'); ?> </td> </tr> <tr> <td>Tabela de Índice em artigos de múltiplas páginas:</td> <td><?php echo $lists['multipage_toc']; ?> </td> <td> </td> </tr> <tr> <td>Botão ` Voltar ´:</td> <td><?php echo $lists['back_button']; ?> </td> <td> </td> </tr> <tr> <td>Navegação de Item de Conteúdo:</td> <td><?php echo $lists['item_navigation']; ?> </td> <td> </td> </tr> <tr> <td>Modo de Compatibilidade de Itemid:</td> <td><?php echo $lists['itemid_compat']; ?> </td> <td> </td> </tr> </table> <input type="hidden" name="config_multilingual_support" value="<?php echo $row->config_multilingual_support; ?> "> <?php $tabs->endTab(); $tabs->startTab("Base Dados", "db-page"); ?> <table class="adminform"> <tr> <td width="185">Nome do Servidor:</td> <td><input class="text_area" type="text" name="config_host" size="25" value="<?php echo $row->config_host; ?> "/></td> </tr> <tr> <td>Nome de Utilizador MySQL:</td> <td><input class="text_area" type="text" name="config_user" size="25" value="<?php echo $row->config_user; ?> "/></td> </tr> <tr> <td>Base de Dados MySQL:</td> <td><input class="text_area" type="text" name="config_db" size="25" value="<?php echo $row->config_db; ?> "/></td> </tr> <tr> <td>Prefixo da Base de Dados MySQL:</td> <td> <input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php echo $row->config_dbprefix; ?> "/> <?php echo mosWarning('!! NÃO ALTERE A NÃO SER QUE TENHA UMA BASE DE DADOS COM UM PREFIXO DE TABELAS DIFERENTE DESTE !!'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Servidor", "server-page"); ?> <table class="adminform"> <tr> <td width="185">Caminho Absoluto:</td> <td width="450"><strong><?php echo $row->config_absolute_path; ?> </strong></td> <td> </td> </tr> <tr> <td>URL do Site:</td> <td><strong><?php echo $row->config_live_site; ?> </strong></td> <td> </td> </tr> <tr> <td>Palavra Secreta:</td> <td><strong><?php echo $row->config_secret; ?> </strong></td> <td> </td> </tr> <tr> <td>Compressão GZIP de Páginas:</td> <td> <?php echo $lists['gzip']; ?> <?php echo mosToolTip('Memória de Compressão de saída caso seja suportado'); ?> </td> <td> </td> </tr> <tr> <td>Duração da Sessão do Usuário:</td> <td> <input class="text_area" type="text" name="config_lifetime" size="10" value="<?php echo $row->config_lifetime; ?> "/> segundos <?php echo mosWarning('Fim de sessão automático após este tempo de inatividade. Quanto mais alto o valor maior o risco de segurança!'); ?> </td> <td> </td> </tr> <tr> <td>Duração da Sessão de Administração:</td> <td> <input class="text_area" type="text" name="config_session_life_admin" size="10" value="<?php echo $row->config_session_life_admin; ?> "/> segundos <?php echo mosWarning('Fim de sessão automático após este tempo de inatividade. Quanto mais alto o valor maior o risco de segurança!'); ?> </td> <td> </td> </tr> <tr> <td>Lembre de página de Admin Expirada:</td> <td> <?php echo $lists['admin_expired']; ?> <?php echo mosToolTip('Se a sessão expirar, e se efetuar novo início de sessão num espaço de tempo inferior a 10 minutos, será redirecionado à página que estava a tentando acessar quando foi desligado.'); ?> </td> <td> </td> </tr> <tr> <td>Método de Autenticação de sessão:</td> <td> <?php echo $lists['session_type']; ?> <?php echo mosWarning('Não mude a menos que saiba o que está a fazer!<br /> <br /> Se tem muitos usuários AOL ou condicionados por Proxys, poderá considerar a utilização da configuração Nível 2'); ?> </td> <td> </td> </tr> <tr> <td>Relatório de Erros:</td> <td><?php echo $lists['error_reporting']; ?> </td> <td> </td> </tr> <tr> <td>Servidor de Ajuda:</td> <td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php echo $row->config_helpurl; ?> "/></td> </tr> <tr> <?php $mode = 0; $flags = 0644; if ($row->config_fileperms != '') { $mode = 1; $flags = octdec($row->config_fileperms); } // if ?> <td valign="top">Criação de Arquivos:</td> <td> <fieldset><legend>Permissões de Arquivos</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php if (!$mode) { echo ' checked="checked"'; } ?> /></td> <td><label for="filePermsMode0">Não aplicar CHMOD a novos arquivos (usar padrão do servidor)</label></td> </tr> <tr> <td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php if ($mode) { echo ' checked="checked"'; } ?> /></td> <td> <label for="filePermsMode1">Aplicar CHMOD a novos arquivos </label> <span id="filePermsValue"<?php if (!$mode) { echo ' style="display:none"'; } ?> > para: <input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php echo $row->config_fileperms; ?> "/> </span> <span id="filePermsTooltip"<?php if ($mode) { echo ' style="display:none"'; } ?> > <?php echo mosToolTip('Selecione esta opção para definir as permissões para novos arquivos criados'); ?> </span> </td> </tr> <tr id="filePermsFlags"<?php if (!$mode) { echo ' style="display:none"'; } ?> > <td> </td> <td> <table cellpadding="0" cellspacing="1" border="0"> <tr> <td style="padding:0px">Usuário:</td> <td style="padding:0px"><input type="checkbox" id="filePermsUserRead" name="filePermsUserRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 0400) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsUserRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 0200) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsUserWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 0100) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="filePermsUserExecute">execução</label></td> </tr> <tr> <td style="padding:0px">Grupo:</td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 040) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsGroupRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 020) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsGroupWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 010) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" width="70"><label for="filePermsGroupExecute">execução</label></td> <td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td> <td nowrap="nowrap"> <label for="applyFilePerms"> Aplicar a arquivos existentes <?php echo mosWarning('Selecionando aqui serão aplicadas as permissões a <em>todos os arquivos existentes</em> do site.<br/>' . '<b>USO INAPROPRIADO DESTA OPÇÃO PODE DEIXAR O SITE INOPERANTE!</b>'); ?> </label> </td> </tr> <tr> <td style="padding:0px">Geral:</td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 04) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsWorldRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 02) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsWorldWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 01) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="4"><label for="filePermsWorldExecute">execução</label></td> </tr> </table> </td> </tr> </table> </fieldset> </td> <td> </td> </tr> <tr> <?php $mode = 0; $flags = 0755; if ($row->config_dirperms != '') { $mode = 1; $flags = octdec($row->config_dirperms); } // if ?> <td valign="top">Criação de Diretórios:</td> <td> <fieldset><legend>Permissões de Diretórios</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php if (!$mode) { echo ' checked="checked"'; } ?> /></td> <td><label for="dirPermsMode0">Não aplicar CHMOD a novos diretórios (usar padrão do servidor)</label></td> </tr> <tr> <td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php if ($mode) { echo ' checked="checked"'; } ?> /></td> <td> <label for="dirPermsMode1">Aplicar CHMOD a novos diretórios para </label> <span id="dirPermsValue"<?php if (!$mode) { echo ' style="display:none"'; } ?> > to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php echo $row->config_dirperms; ?> "/> </span> <span id="dirPermsTooltip"<?php if ($mode) { echo ' style="display:none"'; } ?> > <?php echo mosToolTip('Selecione esta opção para definir as permissões para os novos diretórios a serem criados'); ?> </span> </td> </tr> <tr id="dirPermsFlags"<?php if (!$mode) { echo ' style="display:none"'; } ?> > <td> </td> <td> <table cellpadding="1" cellspacing="0" border="0"> <tr> <td style="padding:0px">Usuário:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserRead" name="dirPermsUserRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 0400) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsUserRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 0200) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsUserWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 0100) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="dirPermsUserSearch">execução</label></td> </tr> <tr> <td style="padding:0px">Grupo:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 040) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsGroupRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 020) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsGroupWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 010) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" width="70"><label for="dirPermsGroupSearch">execução</label></td> <td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td> <td nowrap="nowrap"> <label for="applyDirPerms"> Aplicar a diretórios existentes <?php echo mosWarning('Selecione para aplicar as permissões a <em>todos os diretórios existentes</em> no site.<br/>' . '<b>O USO INAPROPRIADO DESTA OPÇÃO PODE DEIXAR O SITE INOPERANTE!</b>'); ?> </label> </td> </tr> <tr> <td style="padding:0px">Todos:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 04) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsWorldRead">leitura</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 02) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsWorldWrite">escrita</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 01) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch">execução</label></td> </tr> </table> </td> </tr> </table> </fieldset> </td> <td> </td> </tr> <tr> <?php $rgmode = 0; if (defined('RG_EMULATION')) { $rgmode = RG_EMULATION; } ?> <td valign="top">Registro Emulação de Globals:</td> <td> <fieldset><legend>Register Globals Emulation</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="rgemulation" name="rgemulation" value="0"<?php if (!$rgmode) { echo ' checked="checked"'; } ?> /></td> <td><label for="rgemulation">OFF - more secure and the preferred setting</label></td> </tr> <tr> <td><input type="radio" id="rgemulation" name="rgemulation" value="1"<?php if ($rgmode) { echo ' checked="checked"'; } ?> /></td> <td><label for="rgemulation">ON - better compatibility but less secure</label></td> </tr> </tr> </table> </fieldset> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Metadados", "metadata-page"); ?> <table class="adminform"> <tr> <td width="185" valign="top">Metadados de Descrição Global do Site:</td> <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaDesc"><?php echo $row->config_MetaDesc; ?> </textarea></td> </tr> <tr> <td valign="top">Palavras-Chave do Site:</td> <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaKeys"><?php echo $row->config_MetaKeys; ?> </textarea></td> </tr> <tr> <td valign="top">Exibir Metadados de Título:</td> <td> <?php echo $lists['MetaTitle']; ?> <?php echo mosToolTip('Exibir a tag de título quando exibir artigos'); ?> </td> </tr> <tr> <td valign="top">Exibir Metadados de Autor:</td> <td> <?php echo $lists['MetaAuthor']; ?> <?php echo mosToolTip('Exibir a tag de autor quando exibir artigos'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("E-mail", "mail-page"); ?> <table class="adminform"> <tr> <td width="185">Emissor de E-mail:</td> <td><?php echo $lists['mailer']; ?> </td> </tr> <tr> <td>E-Mail do Remetente:</td> <td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php echo $row->config_mailfrom; ?> "/></td> </tr> <tr> <td>Nome do Remetente:</td> <td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php echo $row->config_fromname; ?> "/></td> </tr> <tr> <td>Caminho do Sendmail:</td> <td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php echo $row->config_sendmail; ?> "/></td> </tr> <tr> <td>Autenticação de SMTP:</td> <td><?php echo $lists['smtpauth']; ?> </td> </tr> <tr> <td>Utilizador SMTP:</td> <td><input class="text_area" type="text" name="config_smtpuser" size="50" value="<?php echo $row->config_smtpuser; ?> "/></td> </tr> <tr> <td>Senha SMTP:</td> <td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php echo $row->config_smtppass; ?> "/></td> </tr> <tr> <td>Servidor SMTP:</td> <td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php echo $row->config_smtphost; ?> "/></td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Cache", "cache-page"); ?> <table class="adminform" border="0"> <?php if (is_writeable($row->config_cachepath)) { ?> <tr> <td width="185">Cache:</td> <td width="500"><?php echo $lists['caching']; ?> </td> <td> </td> </tr> <?php } ?> <tr> <td>Diretório de Cache:</td> <td> <input class="text_area" type="text" name="config_cachepath" size="50" value="<?php echo $row->config_cachepath; ?> "/> <?php if (is_writeable($row->config_cachepath)) { echo mosToolTip('O atual Diretório de Cache é <b>Possui permissão para escrita</b>'); } else { echo mosWarning('O diretório de cache não possui permissão para escrita - por favor configure este diretório para CHMOD 0766 antes de ativar a cache'); } ?> </td> <td> </td> </tr> <tr> <td>Duração da Cache:</td> <td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php echo $row->config_cachetime; ?> "/> segundos</td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Estatísticas", "stats-page"); ?> <table class="adminform"> <tr> <td width="250">Estatísticas:</td> <td width="100"><?php echo $lists['enable_stats']; ?> </td> <td><?php echo mostooltip('Ativar/Desativar estatísticas do site'); ?> </td> </tr> <tr> <td>Registro de acessos ao conteúdo por data:</td> <td><?php echo $lists['log_items']; ?> </td> <td><span class="error"><?php echo mosWarning('CUIDADO : Serão recolhidas grandes quantidades de dados. Por motivos de segurança não deve utilizar esta funcionalidade. Utilize um componente ou serviço independente'); ?> </span></td> </tr> <tr> <td>Registro de palavras pesquisadas:</td> <td><?php echo $lists['log_searches']; ?> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("SEO", "seo-page"); ?> <table class="adminform"> <tr> <td width="250"><strong>Otimização para motores de busca</strong></td> <td width="100"> </td> <td> </td> </tr> <tr> <td>URLs Amigáveis para motores de busca:</td> <td><?php echo $lists['sef']; ?> </td> <td><span class="error"><?php echo mosWarning('Somente Apache! Renomear htaccess.txt para .htaccess antes de ativar'); ?> </span></td> </tr> <tr> <td>Títulos dinâmicos de páginas:</td> <td><?php echo $lists['pagetitles']; ?> </td> <td><?php echo mosToolTip('Alterar dinamicamente o título da página para refletir o conteúdo visualizado'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); // show security setting check josSecurityCheck(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> "/> <input type="hidden" name="config_absolute_path" value="<?php echo $row->config_absolute_path; ?> "/> <input type="hidden" name="config_live_site" value="<?php echo $row->config_live_site; ?> "/> <input type="hidden" name="config_secret" value="<?php echo $row->config_secret; ?> "/> <input type="hidden" name="task" value=""/> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
/** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent(&$row, $section, &$lists, &$sectioncategories, &$images, &$params, $option, $redirect, &$menus) { global $mosConfig_live_site; mosMakeHtmlSafe($row); $create_date = null; if (intval($row->created) != 0) { $create_date = mosFormatDate($row->created, '%A, %d %B %Y %H:%M', '0'); } $mod_date = null; if (intval($row->modified) != 0) { $mod_date = mosFormatDate($row->modified, '%A, %d %B %Y %H:%M', '0'); } $tabs = new mosTabs(1); // used to hide "Reset Hits" when hits = 0 if (!$row->hits) { $visibility = "style='display: none; visbility: hidden;'"; } else { $visibility = ""; } mosCommonHTML::loadOverlib(); mosCommonHTML::loadCalendar(); ?> <script language="javascript" type="text/javascript"> <!-- var sectioncategories = new Array; <?php $i = 0; foreach ($sectioncategories as $k => $items) { foreach ($items as $v) { echo "sectioncategories[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->value) . "','" . addslashes($v->text) . "' );\n\t\t"; } } ?> var folderimages = new Array; <?php $i = 0; foreach ($images as $k => $items) { foreach ($items as $v) { echo "folderimages[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->value) . "','" . addslashes($v->text) . "' );\n\t\t"; } } ?> function submitbutton(pressbutton) { var form = document.adminForm; if ( pressbutton == 'menulink' ) { if ( form.menuselect.value == "" ) { alert( "<?php echo T_('Please select a Menu'); ?> " ); return; } else if ( form.link_name.value == "" ) { alert( "<?php echo T_('Please enter a Name for this menu item'); ?> " ); return; } } if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // assemble the images back into one field var temp = new Array; for (var i=0, n=form.imagelist.options.length; i < n; i++) { temp[i] = form.imagelist.options[i].value; } form.images.value = temp.join( '\n' ); // do field validation if (form.title.value == ""){ alert( "<?php echo T_('Content item must have a title'); ?> " ); } else if (form.sectionid.value == "-1"){ alert( "<?php echo T_('You must select a Section.'); ?> " ); } else if (form.catid.value == "-1"){ alert( "<?php echo T_('You must select a Category.'); ?> " ); } else if (form.catid.value == ""){ alert( "<?php echo T_('You must select a Category.'); ?> " ); } else { <?php getEditorContents('editor1', 'introtext'); ?> <?php getEditorContents('editor2', 'fulltext'); ?> submitform( pressbutton ); } } // show / hide publishing information function displayParameterInfo() { if(document.getElementById('simpleediting').style.display == 'block') { document.getElementById('simpleediting').style.display = 'none'; document.getElementById('show').style.display = 'block'; document.getElementById('hide').style.display = 'none'; document.adminForm.simple_editing.value ='on'; } else { document.getElementById('simpleediting').style.display = 'block'; document.getElementById('show').style.display = 'none'; document.getElementById('hide').style.display = 'block'; document.adminForm.simple_editing.value ='off'; } } //--> </script> <?php if ($_SESSION['simple_editing'] == 'on') { $simpleediting = 'none'; $simple = 'block'; $advanced = 'none'; } else { $advanced = 'block'; $simple = 'none'; $simpleediting = 'block'; } ?> <form action="index2.php" method="post" name="adminForm"> <input type ="hidden" name="simple_editing" value='' /> <table class="adminheading" border="1"> <tr> <th class="edit"> <?php echo T_('Content Item:'); ?> <small> <?php echo $row->id ? T_('Edit') : T_('New'); ?> </small> <?php if ($row->id) { ?> <small><small> [ <?php echo T_('Section:'); ?> <?php echo $section; ?> ] </small></small> <?php } ?> </th> </tr> </table> <table width="100%"> <tr> <td valign="top" align="right"> <div id = "show" style="display:<?php echo $simple; ?> "> <a href="javascript:displayParameterInfo();"><?php echo T_('Show Advanced Details'); ?> </a> </div> <div id = "hide" style="display:<?php echo $advanced; ?> "> <a href="javascript:displayParameterInfo();"><?php echo T_('Hide Advanced Details'); ?> </a> </div> </td> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%" > <tr> <td valign="top"> <table width="100%" class="adminform"> <tr> <td width="500"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr > <th colspan="4"> <?php echo T_('Item Details'); ?> </th> </tr> <tr> <td> <?php echo T_('Title:'); ?> </td> <td> <input class="text_area" type="text" name="title" size="30" maxlength="100" value="<?php echo $row->title; ?> " /> </td> <td> <?php echo T_('Section:'); ?> </td> <td> <?php echo $lists['sectionid']; ?> </td> </tr> <tr> <td> <?php echo T_('Title Alias:'); ?> </td> <td> <input name="title_alias" type="text" class="text_area" id="title_alias" value="<?php echo $row->title_alias; ?> " size="30" maxlength="100" /> </td> <td> <?php echo T_('Category:'); ?> </td> <td> <?php echo $lists['catid']; ?> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <?php echo T_('Intro Text:'); ?> (<?php echo T_('required'); ?> ) <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->introtext, 'introtext', '100%;', '200', '75', '20'); ?> </td> </tr> <tr> <td width="100%"> <?php echo T_('Main Text:'); ?> (<?php echo T_('optional'); ?> ) <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor2', $row->fulltext, 'fulltext', '100%;', '350', '75', '30'); ?> </td> </tr> </table> </td> <td valign="top" align="right"> <div id="simpleediting" style="display:<?php echo $simpleediting; ?> "> <table width="100%" > <tr> <td width="200"> <table width="400"> <tr> <td > <?php $tabs->startPane("content-pane"); $tabs->startTab(T_("Publishing"), "publish-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('Publishing Info'); ?> </th> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Show on Frontpage:'); ?> </td> <td> <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Published:'); ?> </td> <td> <input type="checkbox" name="published" value="1" <?php echo $row->state ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Access Level:'); ?> </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Author Alias:'); ?> </td> <td> <input type="text" name="created_by_alias" size="30" maxlength="100" value="<?php echo $row->created_by_alias; ?> " class="text_area" /> </td> </tr> <tr> <td valign="top" align="right"> <?php // cause Mambo to be extremely slow w/ huge user table, comment out for now echo T_('Change Creator:'); ?> </td> <td> <?php // cause Mambo to be extremely slow w/ huge user table, comment out for now echo $lists['created_by']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo T_('Ordering:'); ?> </td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Override Created Date'); ?> </td> <td> <input class="text_area" type="text" name="created" id="created" size="25" maxlength="19" value="<?php echo $row->created; ?> " /> <input name="reset" type="reset" class="button" onClick="return showCalendar('created', 'y-mm-dd');" value="..." /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Start Publishing:'); ?> </td> <td> <input class="text_area" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?> " /> <input type="reset" class="button" value="..." onClick="return showCalendar('publish_up', 'y-mm-dd');" /> </td> </tr> <tr> <td valign="top" align="right"> <?php echo T_('Finish Publishing:'); ?> </td> <td> <input class="text_area" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?> " /> <input type="reset" class="button" value="..." onClick="return showCalendar('publish_down', 'y-mm-dd');" /> </td> </tr> </table> <br /> <table class="adminform"> <?php if ($row->id) { ?> <tr> <td> <strong><?php echo T_('Content ID:'); ?> </strong> </td> <td> <?php echo $row->id; ?> </td> </tr> <?php } ?> <tr> <td width="90px" valign="top" align="right"> <strong><?php echo T_('State:'); ?> </strong> </td> <td> <?php echo $row->state > 0 ? T_('Published') : ($row->state < 0 ? T_('Archived') : T_('Draft Unpublished')); ?> </td> </tr> <tr > <td valign="top" align="right"> <strong> <?php echo T_('Hits'); ?> </strong>: </td> <td> <?php echo $row->hits; ?> <div <?php echo $visibility; ?> > <input name="reset_hits" type="button" class="button" value="<?php echo T_('Reset Hit Count'); ?> " onClick="submitbutton('resethits');" /> </div> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo T_('Revised'); ?> </strong>: </td> <td> <?php echo $row->version; ?> <?php echo T_('times'); ?> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo T_('Created'); ?> </strong> </td> <td> <?php echo $row->created ? "{$create_date}</td></tr><tr><td valign='top' align='right'><strong>" . T_('By') . "</strong></td><td>{$row->creator}" : "New document"; ?> </td> </tr> <tr> <td valign="top" align="right"> <strong> <?php echo T_('Last Modified'); ?> </strong> </td> <td> <?php echo $row->modified ? "{$mod_date}</td></tr><tr><td valign='top' align='right'><strong>" . T_('By') . "</strong></td><td>{$row->modifier}" : "Not modified"; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_("Images"), "images-page"); ?> <table class="adminform" width="100%"> <tr> <th colspan="2"> <?php echo T_('MOSImage Control'); ?> </th> </tr> <tr> <td colspan="6"><?php echo T_('Sub-folder:'); ?> <?php echo $lists['folders']; ?> </td> </tr> <tr> <td> <?php echo T_('Gallery Images:'); ?> <br /> <?php echo $lists['imagefiles']; ?> </td> <td valign="top"> <img name="view_imagefiles" src="../images/M_images/blank.png" width="100" /> </td> </tr> <tr> <td> <input class="button" type="button" value="<?php echo T_('Add'); ?> " onClick="addSelectedToList('adminForm','imagefiles','imagelist')" /> </td> </tr> <tr> <td> <?php echo T_('Content Images:'); ?> <br /> <?php echo $lists['imagelist']; ?> </td> <td valign="top"> <img name="view_imagelist" src="../images/M_images/blank.png" width="100" /> </td> </tr> <tr> <td> <input class="button" type="button" value="<?php echo T_('up'); ?> " onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> <input class="button" type="button" value="<?php echo T_('down'); ?> " onClick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> <input class="button" type="button" value="<?php echo T_('remove'); ?> " onClick="delSelectedFromList('adminForm','imagelist')" /> </td> </tr> <tr> <td colspan="2"> <?php echo T_('Edit the image selected:'); ?> <table> <tr> <td align="right"> <?php echo T_('Source:'); ?> </td> <td> <input class="text_area" type="text" name= "_source" value="" /> </td> </tr> <tr> <td align="right"> <?php echo T_('Image Align:'); ?> </td> <td> <?php echo $lists['_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo T_('Alt Text:'); ?> </td> <td> <input class="text_area" type="text" name="_alt" value="" /> </td> </tr> <tr> <td align="right"> <?php echo T_('Border:'); ?> </td> <td> <input class="text_area" type="text" name="_border" value="" size="3" maxlength="1" /> </td> </tr> <tr> <td align="right"> <?php echo T_('Caption:'); ?> </td> <td> <input class="text_area" type="text" name="_caption" value="" size="30" /> </td> </tr> <tr> <td align="right"> <?php echo T_('Caption Position:'); ?> </td> <td> <?php echo $lists['_caption_position']; ?> </td> </tr> <tr> <td align="right"> <?php echo T_('Caption Align:'); ?> </td> <td> <?php echo $lists['_caption_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo T_('Width:'); ?> </td> <td> <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" /> </td> </tr> <tr> <td colspan="2"> <input class="button" type="button" value="<?php echo T_('Apply'); ?> " onClick="applyImageProps()" /> </td> </tr> </table> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_("Parameters"), "params-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('Parameter Control'); ?> </th> </tr> <tr> <td> * <?php echo T_('These Parameters only control what you see when you click to view an item fully'); ?> * <br /><br /> </td> </tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_("Meta Info"), "metadata-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('Meta Data'); ?> </th> </tr> <tr> <td> <?php echo T_('Description:'); ?> <br /> <textarea class="text_area" cols="30" rows="3" style="width:300px; height:50px" name="metadesc" width="500"><?php echo str_replace('&', '&', $row->metadesc); ?> </textarea> </td> </tr> <tr> <td> <?php echo T_('Keywords:'); ?> <br /> <textarea class="text_area" cols="30" rows="3" style="width:300px; height:50px" name="metakey" width="500"><?php echo str_replace('&', '&', $row->metakey); ?> </textarea> </td> </tr> <tr> <td> <input type="button" class="button" value="<?php echo T_('Add Sect/Cat/Title'); ?> " onClick="f=document.adminForm;f.metakey.value=document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].text+', '+getSelectedText('adminForm','catid')+', '+f.title.value+f.metakey.value;" /> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(T_("Link to Menu"), "link-page"); ?> <table class="adminform"> <tr> <th colspan="2"> <?php echo T_('Link to Menu'); ?> </th> </tr> <tr> <td colspan="2"> <?php echo T_("This will create a 'Link - Content Item' in the menu you select"); ?> <br /><br /> </td> </tr> <tr> <td valign="top" width="90px"> <?php echo T_('Select a Menu'); ?> </td> <td> <?php echo $lists['menuselect']; ?> </td> </tr> <tr> <td valign="top" width="90px"> <?php echo T_('Menu Item Name'); ?> </td> <td> <input type="text" name="link_name" class="inputbox" value="" size="30" /> </td> </tr> <tr> <td> </td> <td> <input name="menu_link" type="button" class="button" value="<?php echo T_('Link to Menu'); ?> " onClick="submitbutton('menulink');" /> </td> </tr> <tr> <th colspan="2"> <?php echo T_('Existing Menu Links'); ?> </th> </tr> <?php if ($menus == NULL) { ?> <tr> <td colspan="2"> <?php echo T_('None'); ?> </td> </tr> <?php } else { mosCommonHTML::menuLinksContent($menus); } ?> <tr> <td colspan="2"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </td> </tr> </table> </td> </tr> </table> </div> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="version" value="<?php echo $row->version; ?> " /> <input type="hidden" name="mask" value="0" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="images" value="" /> <input type="hidden" name="hidemainmenu" value="0" /> </form> </td> </tr> </table> <?php }
/** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent(&$row, $section, &$lists, &$images, &$access, $myid, $sectionid, $task, $Itemid) { global $mosConfig_live_site, $mainframe; mosMakeHtmlSafe($row); require_once $GLOBALS['mosConfig_absolute_path'] . '/includes/HTML_toolbar.php'; // used for spoof hardening $validate = josSpoofValue(); $Returnid = intval(mosGetParam($_REQUEST, 'Returnid', $Itemid)); $tabs = new mosTabs(0, 1); $mainframe->addCustomHeadTag('<link rel="stylesheet" type="text/css" media="all" href="includes/js/calendar/calendar-mos.css" title="green" />'); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <!-- import the calendar script --> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/calendar/calendar_mini.js"></script> <!-- import the language module --> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/calendar/lang/calendar-en.js"></script> <script language="javascript" type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <script language="javascript" type="text/javascript"> onunload = WarnUser; var folderimages = new Array; <?php $i = 0; foreach ($images as $k => $items) { foreach ($items as $v) { echo "\n\tfolderimages[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->value) . "','" . addslashes($v->text) . "' );"; } } ?> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // var goodexit=false; // assemble the images back into one field form.goodexit.value=1; var temp = new Array; for (var i=0, n=form.imagelist.options.length; i < n; i++) { temp[i] = form.imagelist.options[i].value; } form.images.value = temp.join( '\n' ); try { form.onsubmit(); } catch(e){} // do field validation if (form.title.value == "") { alert ( "<?php echo addslashes(_E_WARNTITLE); ?> " ); } else if (parseInt('<?php echo $row->sectionid; ?> ')) { // for content items if (getSelectedValue('adminForm','catid') < 1) { alert ( "<?php echo addslashes(_E_WARNCAT); ?> " ); //} else if (form.introtext.value == "") { // alert ( "<?php echo addslashes(_E_WARNTEXT); ?> " ); } else { <?php getEditorContents('editor1', 'introtext'); getEditorContents('editor2', 'fulltext'); ?> submitform(pressbutton); } //} else if (form.introtext.value == "") { // alert ( "<?php echo addslashes(_E_WARNTEXT); ?> " ); } else { // for static content <?php getEditorContents('editor1', 'introtext'); ?> submitform(pressbutton); } } function setgood(){ document.adminForm.goodexit.value=1; } function WarnUser(){ if (document.adminForm.goodexit.value==0) { alert('<?php echo addslashes(_E_WARNUSER); ?> '); window.location="<?php echo sefRelToAbs("index.php?option=com_content&task=" . $task . "§ionid=" . $sectionid . "&id=" . $row->id . "&Itemid=" . $Itemid); ?> "; } } </script> <?php $docinfo = "<strong>" . _E_EXPIRES . "</strong> "; $docinfo .= $row->publish_down . "<br />"; $docinfo .= "<strong>" . _E_VERSION . "</strong> "; $docinfo .= $row->version . "<br />"; $docinfo .= "<strong>" . _E_CREATED . "</strong> "; $docinfo .= $row->created . "<br />"; $docinfo .= "<strong>" . _E_LAST_MOD . "</strong> "; $docinfo .= $row->modified . "<br />"; $docinfo .= "<strong>" . _E_HITS . "</strong> "; $docinfo .= $row->hits . "<br />"; ?> <form action="index.php" method="post" name="adminForm" onSubmit="javascript:setgood();"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td class="contentheading" > <?php echo $section; ?> / <?php echo $row->id ? _E_EDIT : _E_ADD; ?> <?php echo _E_CONTENT; ?> <a href="javascript: void(0);" onMouseOver="return overlib('<table><?php echo $docinfo; ?> </table>', CAPTION, '<?php echo _E_ITEM_INFO; ?> ', BELOW, RIGHT);" onMouseOut="return nd();"> <strong>[Info]</strong> </a> </td> </tr> </table> <table class="adminform"> <tr> <td> <div style="float: left;"> <?php echo _E_TITLE; ?> <br /> <input class="inputbox" type="text" name="title" size="50" maxlength="100" value="<?php echo $row->title; ?> " /> </div> <div style="float: right;"> <?php // Toolbar Top mosToolBar::startTable(); mosToolBar::save(); mosToolBar::apply('apply_new'); mosToolBar::cancel(); mosToolBar::endtable(); ?> </div> </td> </tr> <?php if ($row->sectionid) { ?> <tr> <td> <?php echo _E_CATEGORY; ?> <br /> <?php echo $lists['catid']; ?> </td> </tr> <?php } ?> <tr> <?php if (intval($row->sectionid) > 0) { ?> <td> <?php echo _E_INTRO . ' (' . _CMN_REQUIRED . ')'; ?> : </td> <?php } else { ?> <td> <?php echo _E_MAIN . ' (' . _CMN_REQUIRED . ')'; ?> : </td> <?php } ?> </tr> <tr> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->introtext, 'introtext', '600', '400', '70', '15'); ?> </td> </tr> <?php if (intval($row->sectionid) > 0) { ?> <tr> <td> <?php echo _E_MAIN . ' (' . _CMN_OPTIONAL . ')'; ?> : </td> </tr> <tr> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor2', $row->fulltext, 'fulltext', '600', '400', '70', '15'); ?> </td> </tr> <?php } ?> </table> <?php // Toolbar Bottom mosToolBar::startTable(); mosToolBar::save(); mosToolBar::apply(); mosToolBar::cancel(); mosToolBar::endtable(); ?> <?php $tabs->startPane('content-pane'); $tabs->startTab(_E_IMAGES, 'images-page'); ?> <table class="adminform"> <tr> <td colspan="4"> <?php echo _CMN_SUBFOLDER; ?> :: <?php echo $lists['folders']; ?> </td> </tr> <tr> <td align="top"> <?php echo _E_GALLERY_IMAGES; ?> </td> <td width="2%"> </td> <td align="top"> <?php echo _E_CONTENT_IMAGES; ?> </td> <td align="top"> <?php echo _E_EDIT_IMAGE; ?> </td> </tr> <tr> <td valign="top"> <?php echo $lists['imagefiles']; ?> <br /> <input class="button" type="button" value="<?php echo _E_INSERT; ?> " onclick="addSelectedToList('adminForm','imagefiles','imagelist')" /> </td> <td width="2%"> <input class="button" type="button" value=">>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" title="<?php echo _E_ADD; ?> "/> <br/> <input class="button" type="button" value="<<" onclick="delSelectedFromList('adminForm','imagelist')" title="<?php echo _E_REMOVE; ?> "/> </td> <td valign="top"> <?php echo $lists['imagelist']; ?> <br /> <input class="button" type="button" value="<?php echo _E_UP; ?> " onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> <input class="button" type="button" value="<?php echo _E_DOWN; ?> " onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> </td> <td valign="top"> <table> <tr> <td align="right"> <?php echo _E_SOURCE; ?> </td> <td> <input class="inputbox" type="text" name= "_source" value="" size="15" /> </td> </tr> <tr> <td align="right" valign="top"> <?php echo _E_ALIGN; ?> </td> <td> <?php echo $lists['_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_ALT; ?> </td> <td> <input class="inputbox" type="text" name="_alt" value="" size="15" /> </td> </tr> <tr> <td align="right"> <?php echo _E_BORDER; ?> </td> <td> <input class="inputbox" type="text" name="_border" value="" size="3" maxlength="1" /> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION; ?> : </td> <td> <input class="text_area" type="text" name="_caption" value="" size="30" /> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_POSITION; ?> : </td> <td> <?php echo $lists['_caption_position']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_ALIGN; ?> : </td> <td> <?php echo $lists['_caption_align']; ?> </td> </tr> <tr> <td align="right"> <?php echo _E_CAPTION_WIDTH; ?> : </td> <td> <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" /> </td> </tr> <tr> <td align="right"> </td> <td> <input class="button" type="button" value="<?php echo _E_APPLY; ?> " onclick="applyImageProps()" /> </td> </tr> </table> </td> </tr> <tr> <td> <img name="view_imagefiles" src="<?php echo $mosConfig_live_site; ?> /images/M_images/blank.png" width="50" alt="<?php echo _E_NO_IMAGE; ?> " /> </td> <td width="2%"> </td> <td> <img name="view_imagelist" src="<?php echo $mosConfig_live_site; ?> /images/M_images/blank.png" width="50" alt="<?php echo _E_NO_IMAGE; ?> " /> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(_E_PUBLISHING, 'publish-page'); ?> <table class="adminform"> <?php if ($access->canPublish) { ?> <tr> <td align="left"> <?php echo _E_STATE; ?> </td> <td> <?php echo $lists['state']; ?> </td> </tr> <?php } ?> <tr> <td align="left"> <?php echo _E_ACCESS_LEVEL; ?> </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td align="left"> <?php echo _E_AUTHOR_ALIAS; ?> </td> <td> <input type="text" name="created_by_alias" size="50" maxlength="100" value="<?php echo $row->created_by_alias; ?> " class="inputbox" /> </td> </tr> <tr> <td align="left"> <?php echo _E_ORDERING; ?> </td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td align="left"> <?php echo _E_START_PUB; ?> </td> <td> <input class="inputbox" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?> " /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');" /> </td> </tr> <tr> <td align="left"> <?php echo _E_FINISH_PUB; ?> </td> <td> <input class="inputbox" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?> " /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');" /> </td> </tr> <tr> <td align="left"> <?php echo _E_SHOW_FP; ?> </td> <td> <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(_E_METADATA, 'meta-page'); ?> <table class="adminform"> <tr> <td align="left" valign="top"> <?php echo _E_M_DESC; ?> </td> <td> <textarea class="inputbox" cols="45" rows="3" name="metadesc"><?php echo str_replace('&', '&', $row->metadesc); ?> </textarea> </td> </tr> <tr> <td align="left" valign="top"> <?php echo _E_M_KEY; ?> </td> <td> <textarea class="inputbox" cols="45" rows="3" name="metakey"><?php echo str_replace('&', '&', $row->metakey); ?> </textarea> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <div style="clear:both;"></div> <input type="hidden" name="images" value="" /> <input type="hidden" name="goodexit" value="0" /> <input type="hidden" name="option" value="com_content" /> <input type="hidden" name="Returnid" value="<?php echo $Returnid; ?> " /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="version" value="<?php echo $row->version; ?> " /> <input type="hidden" name="sectionid" value="<?php echo $row->sectionid; ?> " /> <input type="hidden" name="created_by" value="<?php echo $row->created_by; ?> " /> <input type="hidden" name="referer" value="<?php echo ampReplace(@$_SERVER['HTTP_REFERER']); ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="<?php echo $validate; ?> " value="1" /> </form> <?php }
function show(&$browsers, &$platforms, $tldomains, $bstats, $pstats, $dstats, $sorts, $option) { global $mosConfig_live_site, $adminLanguage; $tab = mosGetParam($_REQUEST, 'tab', 'tab1'); $width = 400; // width of 100% $tabs = new mosTabs(0); ?> <style type="text/css"> .bar_1{ background-color: #8D1B1B; border: 2px ridge #B22222; } .bar_2{ background-color: #6740E1; border: 2px ridge #4169E1; } .bar_3{ background-color: #8D8D8D; border: 2px ridge #D2D2D2; } .bar_4{ background-color: #CC8500; border: 2px ridge #FFA500; } .bar_5{ background-color: #5B781E; border: 2px ridge #6B8E23; } </style> <table class="adminheading"> <tr> <th class="browser"><?php echo $adminLanguage->A_COMP_STAT_OS; ?> </th> </tr> </table> <form action="index2.php" method="post" name="adminForm"> <?php $tabs->startPane("statsPane"); $tabs->startTab($adminLanguage->A_COMP_STAT_BR_PAGE, "browsers-page"); ?> <table class="adminlist"> <tr> <th align="left"> <?php echo $adminLanguage->A_COMP_STAT_BROWSER; ?> <?php echo $sorts['b_agent']; ?> </th> <th> </th> <th width="100" align="left">% <?php echo $sorts['b_hits']; ?> </th> <th width="100" align="left"><?php echo $adminLanguage->A_COMP_NB; ?> </th> </tr> <?php $c = 1; if (is_array($browsers) && count($browsers) > 0) { $k = 0; foreach ($browsers as $b) { $f = $bstats->totalhits > 0 ? $b->hits / $bstats->totalhits : 0; $w = $width * $f; ?> <tr class="row<?php echo $k; ?> "> <td width="200" align="left"> <?php echo $b->agent; ?> </td> <td align="left" width="<?php echo $width + 10; ?> "> <div align="left"> <img src="<?php echo $mosConfig_live_site; ?> /components/com_poll/images/blank.png" class="bar_<?php echo $c; ?> " height="6" width="<?php echo $w; ?> "></div> </td> <td align="left"> <?php printf("%.2f%%", $f * 100); ?> </td> <td align="left"> <?php echo $b->hits; ?> </td> </tr> <?php $c = $c % 5 + 1; $k = 1 - $k; } } ?> <tr> <th colspan="4"> </th> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_STAT_OS_PAGE, "os-page"); ?> <table class="adminlist"> <tr> <th align="left"> <?php echo $adminLanguage->A_COMP_STAT_OP_SYST; ?> <?php echo $sorts['o_agent']; ?> </th> <th> </th> <th width="100" align="left">% <?php echo $sorts['o_hits']; ?> </th> <th width="100" align="left"><?php echo $adminLanguage->A_COMP_NB; ?> </th> </tr> <?php $c = 1; if (is_array($platforms) && count($platforms) > 0) { $k = 0; foreach ($platforms as $p) { $f = $pstats->totalhits > 0 ? $p->hits / $pstats->totalhits : 0; $w = $width * $f; ?> <tr class="row<?php echo $k; ?> "> <td width="200" align="left"> <?php echo $p->agent; ?> </td> <td align="left" width="<?php echo $width + 10; ?> "> <div align="left"> <img src="<?php echo $mosConfig_live_site; ?> /components/com_poll/images/blank.png" class="bar_<?php echo $c; ?> " height="6" width="<?php echo $w; ?> "></div> </td> <td align="left"> <?php printf("%.2f%%", $f * 100); ?> </td> <td align="left"> <?php echo $p->hits; ?> </td> </tr> <?php $c = $c % 5 + 1; $k = 1 - $k; } } ?> <tr> <th colspan="4"> </th> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_STAT_URL_PAGE, "domain-page"); ?> <table class="adminlist"> <tr> <th align="left"> <?php echo $adminLanguage->A_COMP_STAT_URL; ?> <?php echo $sorts['d_agent']; ?> </th> <th> </th> <th width="100" align="left">% <?php echo $sorts['d_hits']; ?> </th> <th width="100" align="left"><?php echo $adminLanguage->A_COMP_NB; ?> </th> </tr> <?php $c = 1; if (is_array($tldomains) && count($tldomains) > 0) { $k = 0; foreach ($tldomains as $b) { $f = $dstats->totalhits > 0 ? $b->hits / $dstats->totalhits : 0; $w = $width * $f; ?> <tr class="row<?php echo $k; ?> "> <td width="200" align="left"> <?php echo $b->agent; ?> </td> <td align="left" width="<?php echo $width + 10; ?> "> <div align="left"> <img src="<?php echo $mosConfig_live_site; ?> /components/com_poll/images/blank.png" class="bar_<?php echo $c; ?> " height="6" width="<?php echo $w; ?> "></div> </td> <td align="left"> <?php printf("%.2f%%", $f * 100); ?> </td> <td align="left"> <?php echo $b->hits; ?> </td> </tr> <?php $c = $c % 5 + 1; $k = 1 - $k; } } ?> <tr> <th colspan="4"> </th> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="tab" value="<?php echo $tab; ?> " /> </form> <?php }
/** * @param option * @return builds admin configuration options */ function showConfig($option) { global $mosConfig_absolute_path, $database, $mosConfig_mailfrom; require $mosConfig_absolute_path . "/administrator/components/com_comment/config.comment.php"; ?> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } submitform( pressbutton ); } </script> <form action="index2.php" method="POST" name="adminForm"> <?php $gbtabs = new mosTabs(0); $gbtabs->startPane("_comment"); $gbtabs->startTab("General", "General-page"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Sections available'); ?> :</strong></td> <td align="left" valign="top"><select size="5" name="mcselections[]" class="inputbox" multiple="multiple"> <?php $seclistarray = explode(",", $allow_comments_in_sections); $database->setQuery("SELECT id,title FROM #__sections ORDER BY title ASC"); $dbsectionlist = $database->loadObjectList(); echo "<option value='0' "; if (in_array(0, $seclistarray)) { echo "selected"; } echo ">Static Content</option>"; foreach ($dbsectionlist as $slrow) { echo "<option value='{$slrow->id}' "; if (in_array($slrow->id, $seclistarray)) { echo "selected"; } echo ">{$slrow->title}</option>"; } ?> </select> </td> <td width="50%" align="left" valign="top">Choose which section(s) should use the comment system. Hold down [CTRL] to make multiple selections.</td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Autopublish Comments'); ?> :</strong></td> <td align="left" valign="top"> <?php echo mosHTML::yesnoRadioList('auto_publish_comments', 'class="inputbox"', $auto_publish_comments); ?> </td> <td align="left" valign="top"><?php echo T_('Automatically publish new comments'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Anonymous Comments'); ?> :</strong></td> <td align="left" valign="top"> <?php echo mosHTML::yesnoRadioList('allow_anonymous_entries', 'class="inputbox"', $allow_anonymous_entries); ?> </td> <td align="left" valign="top"><?php echo T_('Allow unregistered users to post comments'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Comments Per Page'); ?> :</strong></td> <td align="left" valign="top"> <?php $pp = array(mosHTML::makeOption(5, 5), mosHTML::makeOption(10, 10), mosHTML::makeOption(15, 15), mosHTML::makeOption(20, 20), mosHTML::makeOption(25, 25), mosHTML::makeOption(30, 30), mosHTML::makeOption(50, 50)); echo mosHTML::selectList($pp, 'comments_per_page', 'class="inputbox" size="1"', 'value', 'text', $comments_per_page); ?> </td> <td align="left" valign="top"><?php echo T_('When comments exceed the set level the page will automatically paginate'); ?> </td> </tr> </table> <?php $gbtabs->endTab(); $gbtabs->startTab("Notification", "Notification-page"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Notify Admin'); ?> :</strong></td> <td align="left" valign="top"> <?php echo mosHTML::yesnoRadioList('notify_new_entries', 'class="inputbox"', $notify_new_entries); ?> </td> <td align="left" valign="top" width="50%"><?php echo T_('Notify the administrator by email upon new comments'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Administrator Email'); ?> :</strong></td> <td align="left" valign="top"><?php echo $mosConfig_mailfrom; ?> </td> <td align="left" valign="top"><?php echo T_('set in Global Configuration / Mail'); ?> </td> </tr> </table> <?php $gbtabs->endTab(); $gbtabs->startTab("Admin", "Admin-page"); ?> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminForm"> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo T_('Comment Length'); ?> :</strong></td> <td align="left" valign="top"> <input name="admin_comments_length" type="text" size="5" value="<?php echo $admin_comments_length; ?> " /> </td> <td align="left" valign="top" width="50%"><?php echo T_('The length of comment to show in the admin screen before it is truncated.'); ?> </td> </tr> </table> <?php $gbtabs->endTab(); $gbtabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> "> <input type="hidden" name="task" value=""> <input type="hidden" name="boxchecked" value="0"> </form> <?php }
/** * Renders the exhibition detail template * * @param bean $model a DetailPageModel bean * @return void */ private function renderDetailPageModel($model) { global $logger; $logger->debug(get_class($this) . "::renderDetailPageModel({$model})"); $exbt = $model->getDetail(); $options = $model->getOptions(); $programs = $exbt->getPrograms(); $courses = $exbt->getCourses(); $artists = $exbt->getArtists(); $categories = $exbt->getCategories(); $venues = $exbt->getVenues(); $artifacts = explode(",", $exbt->getArtifacts()); $logger->debug("Number of artists for exhibition in page: " . count($artists)); $tmpl = $this->createPatTemplate(); //in the MasterPage class $tmpl->readTemplatesFromInput('exhibition_detail.pat.tpl'); $tmpl->addGlobalVar('scope', 'Exhibition'); // Render the primary form fields $tmpl->addVars('exhibition_form', BeanUtil::beanToArray($exbt, true)); // scalars only // Renders the editor fields $sconf = $this->getEditorConfig(Editor::SMALL, 'summary', $exbt->getSummary()); $tmpl->addVar('exhibition_form', 'summary_editor', $this->setEditor($sconf)); $dconf = $this->getEditorConfig(Editor::MEDIUM, 'description', $exbt->getDescription()); $tmpl->addVar('exhibition_form', 'description_editor', $this->setEditor($dconf)); $cconf = $this->getEditorConfig(Editor::SMALL, 'credit', $exbt->getCredit()); $tmpl->addVar('exhibition_form', 'credit_editor', $this->setEditor($cconf)); $aconf = $this->getEditorConfig(Editor::SMALL, 'addinfo', $exbt->getAddinfo()); $tmpl->addVar('exhibition_form', 'addinfo_editor', $this->setEditor($aconf)); $a2conf = $this->getEditorConfig(Editor::SMALL, 'addinfo2', $exbt->getAddinfo2()); $tmpl->addVar('exhibition_form', 'addinfo2_editor', $this->setEditor($a2conf)); // PubState Select foreach ($options['pubState'] as $ps) { $tmpl->addVar('pubState_options', 'value', $ps->value); $logger->debug("current: " . $ps->value . " | selected " . $exbt->getPubState()); if ($ps->value == $exbt->getPubState()) { $tmpl->addVar('pubState_options', 'selected', 'selected'); } else { $tmpl->addVar('pubState_options', 'selected', ''); } $tmpl->parseTemplate('pubState_options', 'a'); } // Event Status Select foreach ($options['eventStatus'] as $es) { $tmpl->addVar('eventStatus_options', 'value', $es->value); if ($es->value == $exbt->getEventStatus()) { $tmpl->addVar('eventStatus_options', 'selected', 'selected'); } else { $tmpl->addVar('eventStatus_options', 'selected', ''); } $tmpl->parseTemplate('eventStatus_options', 'a'); } // Date Selects $logger->debug("Size of months in page: " . count($options['month'])); $schedule = $exbt->getSchedule(); if (empty($schedule)) { $schedule = new Schedule(); } $tmpl->addVar('exhibition_form', 'scheduleOid', $schedule->getOid()); $startTime = $schedule->getStartTime() > 0 ? $schedule->getStartTime() : time(); // set the end time functionality if ($schedule->getEndTime() > 0) { $endTime = $schedule->getEndTime(); $tmpl->addVar('close_form', 'show_closing', '1'); } else { $endTime = time(); $tmpl->addVar('close_form', 'show_closing', '0'); } foreach ($options['month'] as $key => $value) { $tmpl->addVar('start_month_options', 'value', $key); $tmpl->addVar('start_month_options', 'text', $value); if ($key == date("n", $startTime)) { $tmpl->addVar('start_month_options', 'selected', 'selected'); } else { $tmpl->addVar('start_month_options', 'selected', ''); } $tmpl->parseTemplate('start_month_options', 'a'); $tmpl->addVar('end_month_options', 'value', $key); $tmpl->addVar('end_month_options', 'text', $value); if ($key == date("n", $endTime)) { $tmpl->addVar('end_month_options', 'selected', 'selected'); } else { $tmpl->addVar('end_month_options', 'selected', ''); } $tmpl->parseTemplate('end_month_options', 'a'); } foreach ($options['day'] as $value) { $tmpl->addVar('start_day_options', 'value', $value); if (intval($value) == date("j", $startTime)) { $tmpl->addVar('start_day_options', 'selected', 'selected'); } else { $tmpl->addVar('start_day_options', 'selected', ''); } $tmpl->parseTemplate('start_day_options', 'a'); $tmpl->addVar('end_day_options', 'value', $value); if (intval($value) == date("j", $endTime)) { $tmpl->addVar('end_day_options', 'selected', 'selected'); } else { $tmpl->addVar('end_day_options', 'selected', ''); } $tmpl->parseTemplate('end_day_options', 'a'); } foreach ($options['year'] as $value) { $tmpl->addVar('start_year_options', 'value', $value); if (intval($value) == date("Y", $startTime)) { $tmpl->addVar('start_year_options', 'selected', 'selected'); } else { $tmpl->addVar('start_year_options', 'selected', ''); } $tmpl->parseTemplate('start_year_options', 'a'); $tmpl->addVar('end_year_options', 'value', $value); if (intval($value) == date("Y", $endTime)) { $tmpl->addVar('end_year_options', 'selected', 'selected'); } else { $tmpl->addVar('end_year_options', 'selected', ''); } $tmpl->parseTemplate('end_year_options', 'a'); } // Press Release Article Select $proptions = $options['pressrelease']; foreach ($proptions as $pra) { $tmpl->addVar('pressrelease_options', 'value', $pra->getId()); $tmpl->addVar('pressrelease_options', 'title', substr($pra->getTitle(), 0, 60)); if ($pra->getId() == $exbt->getPressRelease()) { $tmpl->addVar('pressrelease_options', 'selected', 'selected'); } else { $tmpl->addVar('pressrelease_options', 'selected', ''); } $tmpl->parseTemplate('pressrelease_options', 'a'); } // Comment Article Select $caoptions = $options['commentarticle']; foreach ($caoptions as $ca) { $tmpl->addVar('commentarticle_options', 'value', $ca->getId()); $tmpl->addVar('commentarticle_options', 'title', $ca->getTitle()); if ($ca->getId() == $exbt->getCommentArticle()) { $tmpl->addVar('commentarticle_options', 'selected', 'selected'); } else { $tmpl->addVar('commentarticle_options', 'selected', ''); } $tmpl->parseTemplate('commentarticle_options', 'a'); } // Related Content Category $relatedoptions = $options['relatedcategory']; foreach ($relatedoptions as $rca) { $tmpl->addVar('relatedcategory_options', 'value', $rca->getId()); $tmpl->addVar('relatedcategory_options', 'title', $rca->getTitle()); if ($rca->getId() == $exbt->getRelatedArticles()) { $tmpl->addVar('relatedcategory_options', 'selected', 'selected'); } else { $tmpl->addVar('relatedcategory_options', 'selected', ''); } $tmpl->parseTemplate('relatedcategory_options', 'a'); } // Render the Main Template $tmpl->displayParsedTemplate('exhibition_form'); // Render the Tabs $tabs = new mosTabs(1); //1 = use cookies to remember selected tab $tabs->startPane("links"); if ($exbt->getOid() == null) { $tabs->startTab("Notice", "new-links"); echo "<br/><br/>To assign a Venue, first save this new Exhibition.<br/><br/>"; $tabs->endTab(); } else { $tabs->startTab("Venues", "vnue-links"); foreach ($options['venue'] as $ven) { $tmpl->addVar('venue_options', 'oid', $ven->getOid()); $tmpl->addVar('venue_options', 'name', $ven->getName()); if (isset($venues) && $this->bean_in_array($ven, $venues)) { $tmpl->addVar('venue_options', 'selected', 'selected'); } else { $tmpl->addVar('venue_options', 'selected', ''); } $tmpl->parseTemplate('venue_options', 'a'); } $tmpl->displayParsedTemplate('vnueTab'); $tabs->endTab(); $tabs->startTab("Genres", "cat-links"); foreach ($options['audience'] as $aud) { $tmpl->addVar('audience_options', 'oid', $aud->getOid()); $tmpl->addVar('audience_options', 'name', $aud->getName()); if (isset($categories['Audience']) && $this->bean_in_array($aud, $categories['Audience'])) { $tmpl->addVar('audience_options', 'selected', 'selected'); } else { $tmpl->addVar('audience_options', 'selected', ''); } $tmpl->parseTemplate('audience_options', 'a'); } foreach ($options['genre'] as $gen) { $tmpl->addVar('genre_options', 'oid', $gen->getOid()); $tmpl->addVar('genre_options', 'name', $gen->getName()); if (isset($categories['Genre']) && $this->bean_in_array($gen, $categories['Genre'])) { $tmpl->addVar('genre_options', 'selected', 'selected'); } else { $tmpl->addVar('genre_options', 'selected', ''); } $tmpl->parseTemplate('genre_options', 'a'); } $tmpl->displayParsedTemplate('catsTab'); $tabs->endTab(); $tabs->startTab("Programs", "prgm-links"); foreach ($options['program'] as $prgm) { $tmpl->addVar('program_options', 'oid', $prgm->getOid()); $tmpl->addVar('program_options', 'title', $prgm->getTitle()); if (isset($programs) && $this->bean_in_array($prgm, $programs)) { $tmpl->addVar('program_options', 'selected', 'selected'); } else { $tmpl->addVar('program_options', 'selected', ''); } $tmpl->parseTemplate('program_options', 'a'); } $tmpl->displayParsedTemplate('prgmTab'); $tabs->endTab(); $tabs->startTab("Courses", "crse-links"); foreach ($options['course'] as $prgm) { $tmpl->addVar('course_options', 'oid', $prgm->getOid()); $tmpl->addVar('course_options', 'title', $prgm->getTitle()); if (isset($courses) && $this->bean_in_array($prgm, $courses)) { $tmpl->addVar('course_options', 'selected', 'selected'); } else { $tmpl->addVar('course_options', 'selected', ''); } $tmpl->parseTemplate('course_options', 'a'); } $tmpl->displayParsedTemplate('crseTab'); $tabs->endTab(); $tabs->startTab("Gallery", "glry-links"); foreach ($options['gallery'] as $glry) { $tmpl->addVar('gallery_options', 'gid', $glry->id); $tmpl->addVar('gallery_options', 'name', $glry->title); if ($glry->id == $exbt->getGallery()) { $tmpl->addVar('gallery_options', 'selected', 'selected'); } else { $tmpl->addVar('gallery_options', 'selected', ''); } $tmpl->parseTemplate('gallery_options', 'a'); } $tmpl->displayParsedTemplate('glryTab'); $tabs->endTab(); $tabs->startTab("Artists", "pers-links"); foreach ($options['person'] as $pers) { $artistName = $pers->getLastName() ? $pers->getLastName() . ", " . $pers->getFirstName() : $pers->getFriendlyName(); $tmpl->addVar('person_options', 'oid', $pers->getOid()); $tmpl->addVar('person_options', 'title', $artistName); if (isset($artists) && $this->bean_in_array($pers, $artists)) { $tmpl->addVar('person_options', 'selected', 'selected'); } else { $tmpl->addVar('person_options', 'selected', ''); } $tmpl->parseTemplate('person_options', 'a'); } foreach ($options['artifact'] as $album) { foreach ($album->getImages() as $image) { $large = $image->getLarge(); if ($large) { $tmpl->addVar('object_options', 'oid', $large->getId()); $tmpl->addVar('object_options', 'name', $image->getTitle()); if (isset($artifacts) && in_array($large->getId(), $artifacts)) { $tmpl->addVar('object_options', 'selected', 'selected'); } else { $tmpl->addVar('object_options', 'selected', ''); } $tmpl->parseTemplate('object_options', 'a'); } } } $tmpl->displayParsedTemplate('persTab'); $tabs->endTab(); } $tmpl->displayParsedTemplate('close_form'); }
$objMyForm->formWidth = $form_data->formWidth; if (!empty($form_data->image)) { if (isJ10()) { $objMyForm->formImage = $mosConfig_live_site . '/images/stories/' . $form_data->image; } else { $objMyForm->formImage = $mosConfig_live_site . '../../../images/stories/' . $form_data->image; } } if ($objMyForm) { $objMyForm->bolShowWarnings = false; $objMyForm->strMethod = "post"; $_REQUEST['printing'] = true; if ($pfDebug) { echo @"\n<style type=\"text/css\">\n#debugdiv {\nfloat: none;\nposition: absolute;\n/*top: 120;\nleft: 500;*/\ndisplay: none;\n}\n</style>\n<script language=\"javascript\">\nfunction toggleDebugDiv() {\n var dbgdiv = document.getElementById('debugdiv'); \n var displ = dbgdiv.style.display;\n if ((displ == 'none') || (displ == '')) {\n dbgdiv.style.display = 'block';\n } else {\n dbgdiv.style.display = 'none'; \n }\n}\n</script>\n"; echo '<div style="text-align: left;"><a href="javascript: toggleDebugDiv();" />DEBUG:</a></div><div id="debugdiv"><table style="background-color: aliceblue; padding: 8pt; border: thick dotted khaki; width: 700px; margin-top: 24pt;"><tr><td><h2>performs.php</h2></td></tr><tr><td>'; $tabs = new mosTabs(0); //startTab (joomla.php line 4318 version 1.0.11) only ever adds tabs to tabPane1 ... $tabs->startPane("session"); report_env($tabs, 1); // $tabs->startTab("MAKE", 'session'); } /*============================================================================*/ $strResult = $objMyForm->make(); if ($pfDebug) { $tabs->endTab(); $tabs->endPane(); } if ($printpdf) { $pdf = new HTML2FPDF(); $pdf->DisplayPreferences('HideWindowUI'); $pdf->AddPage();
function confirmBackups(&$folders, &$sizes, $path, $option) { // ---------------------------------------------------------- // Presentation of the confirmation screen // ---------------------------------------------------------- global $baDownloadPath, $mosConfig_absolute_path, $clonerPath, $_CONFIG, $database, $mosConfig_db; ?> <form action="index2.php" method="post" name="adminForm"> <?php $tabs = new mosTabs(1); #$tabs->startPane("BGeneratePane"); if ($_CONFIG['enable_db_backup']) { $tabs->startTab(LM_TAB_G_DATABASE, "users-databse-options-tab"); ?> <table class="adminform"> <tr> <th colspan=2> <b><?php echo LM_DATABASE_ARCHIVE; ?> </b> </th> </tr> <tr> <td><input type="checkbox" id="dbbackup" name="dbbackup" checked value="1" /> <?php echo LM_CONFIRM_DATABASE; ?> </td> </tr> <tr> <td><input type="checkbox" id="dbbackup_drop" name="dbbackup_drop" value="1" /> <?php echo "Add DROP SYNTAX"; ?> </td> </tr> <tr> <td><?php echo "Mysql Compatibility"; ?> <select name='dbbackup_comp'> <option value=''>Default</option> <option value='MYSQL40'>MYSQL40</option> <option balue='MYSQL323'>MYSQL323</option> </select> </td> </tr> <tr><th colspan=2> <?php echo LM_DATABASE_EXCLUDE_TABLES; ?> </th></tr> <tr><td> <?php echo LM_DATABASE_CURRENT; ?> <b><?php echo $mosConfig_db; ?> </b><br /> <select name='excltables[]' MULTIPLE SIZE=15> <?php $query = mysql_query("SHOW tables"); while ($row = mysql_fetch_array($query)) { echo "<option value='" . $row[0] . "'>{$row['0']}</option>"; } ?> </select> </td></tr> <?php if (abs($_CONFIG[system_mdatabases]) == 0) { ?> <tr><th colspan=2> <?php echo LM_DATABASE_INCLUDE_DATABASES; ?> </th></tr> <tr><td> <select name='databases_incl[]' MULTIPLE SIZE=5> <?php $query = mysql_query("SHOW databases"); while ($row = mysql_fetch_array($query)) { echo "<option value='" . $row[0] . "'>{$row['0']}</option>"; } ?> </select><br /> <?php echo LM_DATABASE_INCLUDE_DATABASES_SUB; ?> </td></tr> <?php } ?> </table> <?php $tabs->endTab(); } $tabs->startTab(LM_TAB_G_FILES, "users-files-options-tab"); ?> <table class="adminform"> <tr> <th> <b><?php echo LM_BACKUP_NAME; ?> </b> </th> </tr> <tr> <td> <input type=text name='bname' value='' size=40><br/> <?php echo LM_BACKUP_NAME_SUB; ?> </td> </tr> <tr> <td width="50%"><?php echo LM_CONFIRM_INSTRUCTIONS; ?> </td> </tr> </table> <table class="adminlist" > <tr> <th width="200" valign='top' colspan='2' align='left'> <?php echo LM_COL_FOLDER; ?> <?php ?> <tr><td> <link href="browser/filebrowser.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="browser/xmlhttp.js"></script> <div id="browser"> <?php require_once "browser/files_inpage.php"; ?> </div> <script>do_browser()</script> </td></tr> <?php ?> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="com_cloner" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="hidemainmenu" value="0" /> </form> <br/> <?php }
function showStatistics($listStats, $mailing, $globalStats, $html_read, $html_unread, $text, $listId) { ?> <form action="index2.php" method="post" name="adminForm"> <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist"> <tr> <th colspan="2" class="title"><?php echo _ACA_MAILING_LIST_DETAILS; ?> :</th> </tr> <tr> <td width="200" align="left"><?php echo @constant($GLOBALS[ACA . 'listname' . $listStats->list_type]); ?> :</td> <td align="left"><?php echo $listStats->list_name; ?> </td> </tr> <tr> <td width="200" align="left"><?php echo _ACA_DESCRIPTION; ?> :</td> <td align="left"><?php echo $listStats->list_desc; ?> </td> </tr> <tr> <td width="200" align="left"><?php echo _ACA_LIST_ISSUE; ?> :</td> <td align="left"><?php echo $mailing->issue_nb; ?> </td> </tr> <tr> <td width="200" align="left"><?php echo _ACA_SUBJECT; ?> :</td> <td align="left"><?php echo $mailing->subject; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <?php $stat_tabs = new mosTabs(0); $stat_tabs->startPane('acaStats'); $stat_tabs->startTab(_ACA_GLOBALSTATS, 'acaStats'); ?> <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist"> <?php if ($listStats->html == 1) { ?> <tr> <td width="200" align="left"><?php echo _ACA_SEND_IN_HTML_FORMAT; ?> :</td> <td align="left"><?php echo $globalStats->html_sent; ?> </td> </tr> <tr> <td width="200" align="left"><?php echo _ACA_VIEWS_FROM_HTML; ?> :</td> <td align="left"><?php echo $globalStats->html_read; ?> </td> </tr> <?php } ?> <tr> <td width="200" align="left"><?php echo _ACA_SEND_IN_TEXT_FORMAT; ?> :</td> <td align="left"><?php echo $globalStats->text_sent; ?> </td> </tr> </table> <?php $stat_tabs->endTab(); $stat_tabs->startTab(_ACA_DETAILED_STATS, 'acaStats.detail'); ?> <table width="100%" cellpadding="4" cellspacing="0" border="0" align="center" class="adminlist"> <tr> <td valign="top"> <table width="100%" cellpadding="4" cellspacing="0" border="1" align="center" class="adminlist"> <tr> <td><?php echo _ACA_HTML_READ; ?> </td> <td><?php echo _ACA_HTML_UNREAD; ?> </td> <td><?php echo _ACA_TEXT_ONLY_SENT; ?> </td> </tr> <tr> <td valign="top" align="left" width="33%"> <?php if (sizeof($html_read) > 0) { foreach ($html_read as $htmlread) { echo $htmlread->name . ' (' . $htmlread->email . ')<br />'; } } ?> </td> <td valign="top" align="left" width="33%"> <?php if (sizeof($html_unread) > 0) { foreach ($html_unread as $htmlunread) { echo $htmlunread->name . ' (' . $htmlunread->email . ')<br />'; } } ?> </td> <td valign="top" align="left" width="33%"> <?php if (sizeof($text) > 0) { foreach ($text as $atext) { echo $atext->name . ' (' . $atext->email . ')<br />'; } } ?> </td> </tr> </table> </td> </tr> </table> <?php $stat_tabs->endTab(); $stat_tabs->endpane(); ?> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="option" value="com_acajoom" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="act" value="statistics" /> <input type="hidden" name="listid" value="<?php echo $listId; ?> " /> <input type="hidden" name="mailingid" value="<?php echo $mailing->mailing_id; ?> " /> <input type="hidden" name="tab" value="<?php echo $tab; ?> " /> </form> <?php }
function edit(&$menu, &$lists, &$params, $option, $contact) { global $mosConfig_live_site, $adminLanguage; $tabs = new mosTabs(0); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // do field validation if (trim(form.name.value) == ""){ alert( "Link must have a name" ); } else if (trim(form.contact_item_link.value) == ""){ alert( "You must select a Contact to link to" ); } else { form.link.value = "index.php?option=com_contact&task=view&contact_id=" + form.contact_item_link.value; form.componentid.value = form.contact_item_link.value; submitform( pressbutton ); } } </script> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> <?php echo $menu->id ? $adminLanguage->A_EDIT : $adminLanguage->A_COMP_ADD; ?> <?php echo $adminLanguage->A_COMP_MENUS_CMP_CIL_HDR; ?> </th> </tr> </table> <?php $tabs->startPane("module"); $tabs->startTab($adminLanguage->A_DETAILS, "Details-page"); ?> <table class="adminform"> <tr> <td width="10%" align="right"> <?php echo $adminLanguage->A_COMP_NAME; ?> : </td> <td width="80%"> <input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo $menu->name; ?> " /> </td> </tr> <tr> <td width="10%" align="right" valign="top"> <?php echo $adminLanguage->A_COMP_MENUS_CMP_CIL_CONTACT; ?> : </td> <td width="80%"> <?php echo $lists['contact']; ?> </td> </tr> <tr> <td width="10%" align="right"><?php echo $adminLanguage->A_COMP_ADMIN_URL; ?> :</td> <td width="80%"> <?php echo $lists['link']; ?> </td> </tr> <tr> <td width="10%" align="right" valign="top"> <?php echo $adminLanguage->A_COMP_MENUS_CIL_ON_CLICK; ?> : </td> <td width="80%"> <?php echo $lists['target']; ?> </td> </tr> <tr> <td align="right"> <?php echo $adminLanguage->A_COMP_MENUS_CIL_PARENT; ?> : </td> <td> <?php echo $lists['parent']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_ORDERING; ?> : </td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"> <?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> : </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_PUBLISHED; ?> :</td> <td> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $menu->id; ?> " /> <input type="hidden" name="componentid" value="" /> <input type="hidden" name="link" value="" /> <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?> " /> <input type="hidden" name="type" value="<?php echo $menu->type; ?> " /> <input type="hidden" name="task" value="" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
/** * Renders the program detail template * * @param bean $model a DetailPageModel bean * @return void */ private function renderDetailPageModel($model) { global $logger; $logger->debug(get_class($this) . "::renderDetailPageModel({$model})"); $program = $model->getDetail(); $options = $model->getOptions(); $exhibitions = $program->getExhibitions(); $courses = $program->getCourses(); $categories = $program->getCategories(); $tmpl = $this->createPatTemplate(); //in the MasterPage class $tmpl->readTemplatesFromInput('program_detail.pat.tpl'); $tmpl->addGlobalVar('scope', 'Program'); // Render the primary form fields $tmpl->addVars('program_form', BeanUtil::beanToArray($program, true)); // scalars only // Renders the editor fields $sconf = $this->getEditorConfig(Editor::SMALL, 'summary', $program->getSummary()); $tmpl->addVar('program_form', 'summary_editor', $this->setEditor($sconf)); $dconf = $this->getEditorConfig(Editor::MEDIUM, 'description', $program->getDescription()); $tmpl->addVar('program_form', 'description_editor', $this->setEditor($dconf)); $cconf = $this->getEditorConfig(Editor::SMALL, 'credit', $program->getCredit()); $tmpl->addVar('program_form', 'credit_editor', $this->setEditor($cconf)); $aconf = $this->getEditorConfig(Editor::SMALL, 'addinfo', $program->getAddinfo()); $tmpl->addVar('program_form', 'addinfo_editor', $this->setEditor($aconf)); $a2conf = $this->getEditorConfig(Editor::SMALL, 'addinfo2', $program->getAddinfo2()); $tmpl->addVar('program_form', 'addinfo2_editor', $this->setEditor($a2conf)); // PubState Select foreach ($options['pubState'] as $ps) { $tmpl->addVar('pubState_options', 'value', $ps->value); $logger->debug("current: " . $ps->value . " | selected " . $program->getPubState()); if ($ps->value == $program->getPubState()) { $tmpl->addVar('pubState_options', 'selected', 'selected'); } else { $tmpl->addVar('pubState_options', 'selected', ''); } $tmpl->parseTemplate('pubState_options', 'a'); } // Primary Genre Select $genre = $program->getPrimaryGenre(); foreach ($options['genre'] as $gc) { $tmpl->addVar('primaryGenre_options', 'oid', $gc->getOid()); $tmpl->addVar('primaryGenre_options', 'name', $gc->getName()); if (!empty($genre) && $gc->getOid() == $genre->getOid()) { $tmpl->addVar('primaryGenre_options', 'selected', 'selected'); } else { $tmpl->addVar('primaryGenre_options', 'selected', ''); } $tmpl->parseTemplate('primaryGenre_options', 'a'); } // DefaultVenue Select $venues = $program->getVenues(); $venue = isset($venues[0]) ? $venues[0] : null; foreach ($options['venue'] as $dv) { $tmpl->addVar('defaultVenue_options', 'oid', $dv->getOid()); $tmpl->addVar('defaultVenue_options', 'name', $dv->getName()); if (!empty($venue) && $dv->getOid() == $venue->getOid()) { $tmpl->addVar('defaultVenue_options', 'selected', 'selected'); } else { $tmpl->addVar('defaultVenue_options', 'selected', ''); } $tmpl->parseTemplate('defaultVenue_options', 'a'); } // Press Release Article Select $proptions = $options['pressrelease']; foreach ($proptions as $pra) { $tmpl->addVar('pressrelease_options', 'value', $pra->getId()); $tmpl->addVar('pressrelease_options', 'title', $pra->getTitle()); if ($pra->getId() == $program->getPressRelease()) { $tmpl->addVar('pressrelease_options', 'selected', 'selected'); } else { $tmpl->addVar('pressrelease_options', 'selected', ''); } $tmpl->parseTemplate('pressrelease_options', 'a'); } // Comment Article Select $caoptions = $options['commentarticle']; foreach ($caoptions as $ca) { $tmpl->addVar('commentarticle_options', 'value', $ca->getId()); $tmpl->addVar('commentarticle_options', 'title', $ca->getTitle()); if ($ca->getId() == $program->getCommentArticle()) { $tmpl->addVar('commentarticle_options', 'selected', 'selected'); } else { $tmpl->addVar('commentarticle_options', 'selected', ''); } $tmpl->parseTemplate('commentarticle_options', 'a'); } // Related Content Category $relatedoptions = $options['relatedcategory']; foreach ($relatedoptions as $rca) { $tmpl->addVar('relatedcategory_options', 'value', $rca->getId()); $tmpl->addVar('relatedcategory_options', 'title', $rca->getTitle()); if ($rca->getId() == $program->getRelatedArticles()) { $tmpl->addVar('relatedcategory_options', 'selected', 'selected'); } else { $tmpl->addVar('relatedcategory_options', 'selected', ''); } $tmpl->parseTemplate('relatedcategory_options', 'a'); } // Render the Main Template $tmpl->displayParsedTemplate('program_form'); $logger->debug("program form template parsed"); // Render the Tabs $tabs = new mosTabs(1); //1 = use cookies to remember selected tab $tabs->startPane("links"); if ($program->getOid() == null) { $tabs->startTab("Notice", "new-links"); echo "<br/><br/>To assign a performance, first save this new program.<br/><br/>"; $tabs->endTab(); } else { $tabs->startTab("Performances", "perf-links"); $tmpl->addVar('activity_tab', 'scope', 'Performance'); // Date Selects $logger->debug("Size of months in page: " . count($options['month'])); foreach ($options['month'] as $key => $value) { $tmpl->addVar('start_month_options', 'value', $key); $tmpl->addVar('start_month_options', 'text', $value); $tmpl->parseTemplate('start_month_options', 'a'); $tmpl->addVar('end_month_options', 'value', $key); $tmpl->addVar('end_month_options', 'text', $value); $tmpl->parseTemplate('end_month_options', 'a'); } foreach ($options['day'] as $value) { $tmpl->addVar('start_day_options', 'value', $value); $tmpl->parseTemplate('start_day_options', 'a'); $tmpl->addVar('end_day_options', 'value', $value); $tmpl->parseTemplate('end_day_options', 'a'); } foreach ($options['year'] as $value) { $tmpl->addVar('start_year_options', 'value', $value); $tmpl->parseTemplate('start_year_options', 'a'); $tmpl->addVar('end_year_options', 'value', $value); $tmpl->parseTemplate('end_year_options', 'a'); } foreach ($options['hour'] as $value) { $tmpl->addVar('start_hour_options', 'value', $value); $tmpl->parseTemplate('start_hour_options', 'a'); $tmpl->addVar('end_hour_options', 'value', $value); $tmpl->parseTemplate('end_hour_options', 'a'); } foreach ($options['minute'] as $value) { $tmpl->addVar('start_minute_options', 'value', $value); $tmpl->parseTemplate('start_minute_options', 'a'); $tmpl->addVar('end_minute_options', 'value', $value); $tmpl->parseTemplate('end_minute_options', 'a'); } foreach ($options['ampm'] as $value) { $tmpl->addVar('start_ampm_options', 'value', $value); $tmpl->parseTemplate('start_ampm_options', 'a'); $tmpl->addVar('end_ampm_options', 'value', $value); $tmpl->parseTemplate('end_ampm_options', 'a'); } foreach ($options['venue'] as $av) { $tmpl->addVar('activityVenue_options', 'oid', $av->getOid()); $tmpl->addVar('activityVenue_options', 'name', $av->getName()); if (!empty($venue) && $av->getOid() == $venue->getOid()) { $tmpl->addVar('activityVenue_options', 'selected', 'selected'); } else { $tmpl->addVar('activityVenue_options', 'selected', ''); } $tmpl->parseTemplate('activityVenue_options', 'a'); } foreach ($options['eventStatus'] as $es) { $tmpl->addVar('activityStatus_options', 'value', $es->value); $tmpl->parseTemplate('activityStatus_options', 'a'); } $activities = $program->getChildren(); if (!empty($activities)) { $delim = $activityStartTime = $activityEndTime = $activityVenueId = $activityVenueName = $activityStatus = $activityTicketCode = ''; foreach ($activities as $activity) { $schedule = $activity->getSchedule(); $ststr = date("Y-n-j H:i:s", $schedule->getStartTime()); $etstr = date("Y-n-j H:i:s", $schedule->getEndTime()); $activityStartTime .= $delim . $ststr; $activityEndTime .= $delim . $etstr; $activityVenueId .= $delim . $activity->getVenue()->getOid(); $activityVenueName .= $delim . $activity->getVenue()->getName(); $activityStatus .= $delim . $activity->getActivityStatus()->getValue(); $activityTicketCode .= $delim . $activity->getTicketCode(); $delim = '|'; } $tmpl->addVar('activity_tab', 'start_time', $activityStartTime); $tmpl->addVar('activity_tab', 'end_time', $activityEndTime); $tmpl->addVar('activity_tab', 'venue_id', $activityVenueId); $tmpl->addVar('activity_tab', 'venue_name', $activityVenueName); $tmpl->addVar('activity_tab', 'activity_status', $activityStatus); $tmpl->addVar('activity_tab', 'activity_ticket', $activityTicketCode); } $tmpl->displayParsedTemplate('perfTab'); $tabs->endTab(); $tabs->startTab("Genres", "cat-links"); foreach ($options['audience'] as $aud) { $tmpl->addVar('audience_options', 'oid', $aud->getOid()); $tmpl->addVar('audience_options', 'name', $aud->getName()); if (isset($categories['Audience']) && $this->bean_in_array($aud, $categories['Audience'])) { $tmpl->addVar('audience_options', 'selected', 'selected'); } else { $tmpl->addVar('audience_options', 'selected', ''); } $tmpl->parseTemplate('audience_options', 'a'); } foreach ($options['genre'] as $gen) { $tmpl->addVar('genre_options', 'oid', $gen->getOid()); $tmpl->addVar('genre_options', 'name', $gen->getName()); if (isset($categories['Genre']) && $this->bean_in_array($gen, $categories['Genre'])) { $tmpl->addVar('genre_options', 'selected', 'selected'); } else { $tmpl->addVar('genre_options', 'selected', ''); } $tmpl->parseTemplate('genre_options', 'a'); } $tmpl->displayParsedTemplate('catsTab'); $tabs->endTab(); $tabs->startTab("Series", "series-links"); foreach ($options['series'] as $ser) { $tmpl->addVar('series_options', 'oid', $ser->getOid()); $tmpl->addVar('series_options', 'name', $ser->getName()); if (isset($categories['Series']) && $this->bean_in_array($ser, $categories['Series'])) { $tmpl->addVar('series_options', 'selected', 'selected'); } else { $tmpl->addVar('series_options', 'selected', ''); } $tmpl->parseTemplate('series_options', 'a'); } $tmpl->displayParsedTemplate('sersTab'); $tabs->endTab(); $tabs->startTab("Exhibits", "exbt-links"); foreach ($options['exhibition'] as $exbt) { $tmpl->addVar('exhibition_options', 'oid', $exbt->getOid()); $tmpl->addVar('exhibition_options', 'title', $exbt->getTitle()); if (isset($exhibitions) && $this->bean_in_array($exbt, $exhibitions)) { $tmpl->addVar('exhibition_options', 'selected', 'selected'); } else { $tmpl->addVar('exhibition_options', 'selected', ''); } $tmpl->parseTemplate('exhibition_options', 'a'); } $tmpl->displayParsedTemplate('exbtTab'); $tabs->endTab(); $tabs->startTab("Courses", "crse-links"); foreach ($options['course'] as $prgm) { $tmpl->addVar('course_options', 'oid', $prgm->getOid()); $tmpl->addVar('course_options', 'title', $prgm->getTitle()); if (isset($courses) && $this->bean_in_array($prgm, $courses)) { $tmpl->addVar('course_options', 'selected', 'selected'); } else { $tmpl->addVar('course_options', 'selected', ''); } $tmpl->parseTemplate('course_options', 'a'); } $tmpl->displayParsedTemplate('crseTab'); $tabs->endTab(); $tabs->startTab("Gallery", "glry-links"); foreach ($options['gallery'] as $glry) { $tmpl->addVar('gallery_options', 'gid', $glry->id); $tmpl->addVar('gallery_options', 'name', $glry->title); if ($glry->id == $program->getGallery()) { $tmpl->addVar('gallery_options', 'selected', 'selected'); } else { $tmpl->addVar('gallery_options', 'selected', ''); } $tmpl->parseTemplate('gallery_options', 'a'); } $tmpl->displayParsedTemplate('glryTab'); $tabs->endTab(); } $logger->debug("parsing template"); $tmpl->displayParsedTemplate('close_form'); }
function JLMS_showconfig(&$row, &$lists, &$periods, &$course_cats, &$gradebook_cats, $file_types, $option, $colors) { $tabs = new mosTabs(1); ?> <link rel="stylesheet" href="<?php echo JURI::root(); ?> components/com_joomla_lms/includes/colorselector/color_select.css" type="text/css"/> <script type="text/javascript" src="<?php echo JURI::root(); ?> components/com_joomla_lms/includes/colorselector/color_select.js"></script> <script type="text/javascript"><!--// var colors = new Array(); <?php for ($i = 1; $i <= count($colors); $i++) { echo "colors[" . $i . "] = new Array('" . $colors[$i][0] . "', '" . $colors[$i][1] . "','" . $colors[$i][2] . "','" . $colors[$i][3] . "','" . $colors[$i][4] . "','" . $colors[$i][5] . "','" . $colors[$i][6] . "'); \r\n"; } ?> function change_colors(index){ if (index != 0 ){ document.adminForm.conf_background.value = colors[index][0];//"#E0DFE4"; document.adminForm.conf_main_color.value = colors[index][1];//"#F1F6CE"; document.adminForm.conf_title_color.value = colors[index][2];//"#E7F1B2"; document.adminForm.conf_border_color.value = colors[index][3];//"#999999"; document.adminForm.conf_title_font_color.value = colors[index][4];//"#798730"; document.adminForm.conf_toolbar_color.value = colors[index][5];//"#E0DFE4"; document.adminForm.conf_files_font_color.value = colors[index][6];//"#666666"; } cs1.setrgb(document.adminForm.conf_background.value); cs2.setrgb(document.adminForm.conf_main_color.value); cs3.setrgb(document.adminForm.conf_title_color.value); cs4.setrgb(document.adminForm.conf_border_color.value); cs5.setrgb(document.adminForm.conf_title_font_color.value); cs6.setrgb(document.adminForm.conf_toolbar_color.value); cs7.setrgb(document.adminForm.conf_files_font_color.value); } function cs1_change_update(new_color) { window.status = new_color; document.adminForm.conf_background.value = new_color; document.getElementById('color_display_icon1').style.background = new_color; } function cs2_change_update(new_color) { window.status = new_color; document.adminForm.conf_main_color.value = new_color; document.getElementById('color_display_icon2').style.background = new_color; } function cs3_change_update(new_color) { window.status = new_color; document.adminForm.conf_title_color.value = new_color; document.getElementById('color_display_icon3').style.background = new_color; } function cs4_change_update(new_color) { window.status = new_color; document.adminForm.conf_border_color.value = new_color; document.getElementById('color_display_icon4').style.background = new_color; } function cs5_change_update(new_color) { window.status = new_color; document.adminForm.conf_title_font_color.value = new_color; document.getElementById('color_display_icon5').style.background = new_color; } function cs6_change_update(new_color) { window.status = new_color; document.adminForm.conf_toolbar_color.value = new_color; document.getElementById('color_display_icon6').style.background = new_color; } function cs7_change_update(new_color) { window.status = new_color; document.adminForm.conf_files_font_color.value = new_color; document.getElementById('color_display_icon7').style.background = new_color; } function cs_init() { cs1 = new color_select('cs1', '<?php echo str_replace('#', '0x', $row->conf_background); ?> '); cs2 = new color_select('cs2', '<?php echo str_replace('#', '0x', $row->conf_main_color); ?> '); cs3 = new color_select('cs3', '<?php echo str_replace('#', '0x', $row->conf_title_color); ?> '); cs4 = new color_select('cs4', '<?php echo str_replace('#', '0x', $row->conf_border_color); ?> '); cs5 = new color_select('cs5', '<?php echo str_replace('#', '0x', $row->conf_title_font_color); ?> '); cs6 = new color_select('cs6', '<?php echo str_replace('#', '0x', $row->conf_toolbar_color); ?> '); cs7 = new color_select('cs7', '<?php echo str_replace('#', '0x', $row->conf_files_font_color); ?> '); // spatially attach the color select to an element // (when triggered, it will always appear below this element) cs1.attach_to_element(document.getElementById("color_select_icon1")); cs2.attach_to_element(document.getElementById("color_select_icon2")); cs3.attach_to_element(document.getElementById("color_select_icon3")); cs4.attach_to_element(document.getElementById("color_select_icon4")); cs5.attach_to_element(document.getElementById("color_select_icon5")); cs6.attach_to_element(document.getElementById("color_select_icon6")); cs7.attach_to_element(document.getElementById("color_select_icon7")); //cs6.attach_to_element(jlms_getObj("color_select_icon6")); cs1.setrgb(document.adminForm.conf_background.value); cs2.setrgb(document.adminForm.conf_main_color.value); cs3.setrgb(document.adminForm.conf_title_color.value); cs4.setrgb(document.adminForm.conf_border_color.value); cs5.setrgb(document.adminForm.conf_title_font_color.value); cs6.setrgb(document.adminForm.conf_toolbar_color.value); cs7.setrgb(document.adminForm.conf_files_font_color.value); } //--> </script> <div> <form action="index.php" method="post" name="adminForm"> <table width="100%"> <tr> <td width="220" valign="top"> <div> <?php echo joomla_lms_adm_html::JLMS_menu(); ?> </div> </td> <td valign="top"> <div class="width-100"> <fieldset class="adminform"> <?php if (!class_exists('JToolBarHelper')) { ?> <table class="adminheading"> <tr> <?php } else { ?> <table > <tr> <?php } ?> <?php if (!class_exists('JToolBarHelper')) { ?> <th class="config"><?php echo _JOOMLMS_COMP_NAME; ?> : <small> <?php echo _JLMS_CFG; ?> </small> </th> <?php } else { ?> <td width="100%" align="left"> </td> <td nowrap="nowrap" valign="top"> <table align="center"> <?php joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_SCORMS_FOLDER, $row->scorm_folder, true); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_BACKUPS_FOLDER, $row->jlms_backup_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_DOCS_FOLDER, $row->jlms_doc_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_CERTS_FOLDER, $row->jlms_crtf_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_TEMP_FOLDER, $row->temp_folder, true); ?> </table> </td> <td align="left" nowrap="nowrap"> </td> <?php } ?> <td nowrap="nowrap"> <?php global $lms_version, $lms_version_build; $expired_str = isset($lists['expired_str']) ? $lists['expired_str'] : ''; $users_str = isset($lists['users_str']) ? $lists['users_str'] : ''; ?> <table width="250"> <tr> <td width="40%" align="left" nowrap><?php echo _JLMS_CFG_INSTALLED_V; ?> :</td> <td align="left" nowrap> <b><?php echo $lms_version; ?> </b><?php echo $lms_version_build ? ' ' . $lms_version_build : ''; ?> </td> </tr> <tr> <td align="left" nowrap><?php echo _JLMS_CFG_LATEST_V; ?> :</td> <td nowrap style="overflow:hidden" align="left"><div style="overflow:hidden"><?php echo jlms_update_checker(); ?> </div></td> </tr> <tr> <td align="left" nowrap><?php echo _JLMS_CFG_LICENSE_EXPS_ON; ?> :</td> <td nowrap align="left"> <?php echo $expired_str; ?> </td> </tr> <tr> <td align="left" nowrap><?php echo _JLMS_CFG_LICENSE_USERS; ?> :</td> <td nowrap align="left"> <?php echo $users_str; ?> </td> </tr> <tr> <td align="left" nowrap><?php echo _JLMS_CFG_BRANDING_FREE; ?> :</td> <td nowrap align="left"> <?php if (false) { echo '<span style = "font-weight:bold; color:red">No</span>'; } else { echo $lists['branding_free_configured']; } ?> </td> </tr> </table> </td> </tr> </table> </fieldset></div> <table width="100%" border="0"> <tr> <td valign="top" > <?php $tabs->startPane("configPane"); ///////////////////////////////////////////////////////////// // Global settings $offw = isset($lists['lms_isoffline_warning']) && $lists['lms_isoffline_warning'] ? true : false; $cbw = isset($lists['lms_cb_warning']) && $lists['lms_cb_warning'] ? true : false; $tab_warning = $offw || $cbw ? true : false; $cow = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->jlms_crtf_folder); $tabs->startTab(($tab_warning ? "<b><font color=\"red\">" : '') . _JLMS_CFG_GLOBAL . ($tab_warning ? "</font></b>" : ''), "global-page"); ?> <table class="adminlist" > <tr><td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_OFF_ON_LINE_MODE; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200"><?php echo $offw ? '<b><font color="red">' : ''; echo _JLMS_CFG_JLMS_IS_OFFLINE; echo $offw ? '</font></b>' : ''; ?> </td> <td> <fieldset class="radio"> <?php echo $lists['lms_isonline']; ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_OFFLINE_MSG; ?> :</td> <td> <textarea class="text_area" cols="60" rows="4" style="width:300px; height:60px" name="offline_message"><?php echo $row->offline_message; ?> </textarea><?php echo mosToolTip(_JLMS_CFG_LMS_OFFLINE_MSG); ?> </td> </tr> </table> </fieldset> </div> </td></tr> <tr><td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CERT_OPTIONS; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td width="200">Save certificates on server</td> <td> <fieldset class="radio"> <?php echo $lists['save_certificates']; echo mosToolTip(_JLMS_CFG_COLLECT_PRINTED_CERTS); $scf = $row->save_certificates; if ($row->save_certificates === null) { $scf = 1; } ?> </fieldset> </td> </tr> <?php /* estimate disk space */ $size = 0; if ($row->jlms_crtf_folder && is_dir($row->jlms_crtf_folder) && is_readable($row->jlms_crtf_folder)) { $dirname = $row->jlms_crtf_folder; $dirname_stack[] = $dirname; $size = 0; do { $dirname = array_shift($dirname_stack); $handle = opendir($dirname); while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && is_readable($dirname . DIRECTORY_SEPARATOR . $file)) { if (is_dir($dirname . DIRECTORY_SEPARATOR . $file)) { $dirname_stack[] = $dirname . DIRECTORY_SEPARATOR . $file; } $size += filesize($dirname . DIRECTORY_SEPARATOR . $file); } } closedir($handle); } while (count($dirname_stack) > 0); } if (false && $scf) { ?> <tr><td><?php echo _JLMS_CFG_PATH_TO_SAVE_CERTS; ?> :</td> <td> <?php echo !$cow ? '<font color="green">' . $row->jlms_crtf_folder . '</font>' : '<b><font color="red">' . _JLMS_CFG_PATH_IS_NOT_CFG . '</font></b>'; ?> </td> </tr> <tr><td><?php echo _JLMS_CFG_DISK_SPACE_TAKEN; ?> :</td> <td> <?php if ($size) { printf('%.2f', round($size / 1048576, 2)); } else { echo '0.00'; } ?> Mb</td> </tr> <?php } ?> <tr><td><?php echo _JLMS_CFG_PRINT_SERIAL_NUM; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['crtf_show_sn']; echo mosToolTip(_JLMS_CFG_TIP_PRINT_SERIAL_NUM); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_PR_BARCODE_ON_CERTS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['crtf_show_barcode']; echo mosToolTip(_JLMS_CFG_TIP_PR_BARCODE_ON_CERTS); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_PR_WMARK_ON_DUPLS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['crtf_duplicate_wm']; echo mosToolTip(_JLMS_CFG_TIP_PR_WMARK_ON_DUPLS); ?> </fieldset> </td> </tr> </table> </fieldset> </div> </td></tr> <tr><td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_GLOBAL_PREFS; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200"><?php echo _JLMS_CFG_JLMS_COMP_HEADING; ?> :</td> <td> <input type="text" class="text_area" style="width:300px" name="jlms_heading" value="<?php echo str_replace('"', '"', $row->jlms_heading); ?> " /> <?php echo mosToolTip(_JLMS_CFG_TIP_JLMS_COMP_HEADING); ?> </td> </tr> <tr><td><?php echo _JLMS_CFG_JLMS_P_TITLE; ?> :</td> <td> <input type="text" class="text_area" style="width:300px" name="jlms_title" value="<?php echo str_replace('"', '"', $row->jlms_title); ?> " /> </td> </tr> <tr><td><?php echo _JLMS_CFG_ENABLE_CHAT; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['chat_enable']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_CHAT); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_ENABLE_TRACKING; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['tracking_enable']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_TRACKING); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_USER_GRS_MODE; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['use_global_groups']; echo mosToolTip(_JLMS_CFG_TIP_USER_GRS_MODE); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_DEF_LANG; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['default_language']; echo mosToolTip(_JLMS_CFG_TIP_DEF_LANG); ?> </fieldset> </td> </tr> <tr><td><?php echo $cbw ? '<b><font color="red">' : ''; echo _JLMS_CFG_CB_INSTALLED; ?> :<?php echo $cbw ? '</font></b>' : ''; ?> </td> <td> <fieldset class="radio"> <?php echo $lists['is_cb_installed']; echo mosToolTip(_JLMS_CFG_TIP_CB_INSTALLED); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_ALLOW_GST_ACCESS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['guest_access_subscriptions']; echo mosToolTip(_JLMS_CFG_TIP_ALLOW_GST_ACCESS); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_DATE_FORMAT; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['date_format']; echo mosToolTip(_JLMS_CFG_TIP_DATE_FORMAT); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_FIRST_DAY_OF_W; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['date_format_fdow']; echo mosToolTip(_JLMS_CFG_TIP_FIRST_DAY_OF_W); ?> </fieldset> </td> </tr> <tr> <td> <?php echo _JLMS_CFG_VERSION_CHECKING; ?> : </td> <td> <?php echo $lists['lms_check_version']; echo ' ' . mosToolTip(_JLMS_CFG_TIP_VERSION_CHECKING); ?> </td> </tr> </table> </fieldset> </div> </td></tr> <tr><td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CUST_JLMS_BACKEND_ACC; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200"><?php echo _JLMS_CFG_CUST_SELECT_JLMS_MNGS; ?> :</td> <td> <?php echo $lists['backend_access_gid']; ?> </td> </tr> </table> </fieldset> </div> </td></tr> </table> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Conference settings $confw = isset($lists['conference_warning']) && $lists['conference_warning'] ? true : false; $confpw = isset($lists['confpath_warning']) && $lists['confpath_warning'] ? true : false; $confcw = isset($lists['confclients_warning']) && $lists['confclients_warning'] ? true : false; $tab_warning = $confw || $confpw || $confcw ? true : false; $tabs->startTab(($tab_warning ? "<b><font color=\"red\">" : '') . _JLMS_CFG_CONFERENCE . ($tab_warning ? "</font></b>" : ''), "conf-page"); ?> <table class="adminlist"> <tr> <td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CONF_SETTINGS; ?> </legend> <table cellpadding="0" cellspacing="0"> <tr> <td width="185px"><?php echo $confw ? '<b><font color="red">' : ''; echo _JLMS_CFG_ENABLE_CONF; ?> :<?php echo $confw ? '</font></b>' : ''; ?> </td> <td> <fieldset class="radio"> <?php echo $lists['conference_enable']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_CONF); ?> </fieldset> </td> </tr> <tr><td><?php echo $confpw ? '<b><font color="red">' : ''; echo _JLMS_CFG_FLASH_SERVER_URL; ?> :<?php echo $confpw ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="flascommRoot" size="50" value="<?php echo str_replace('"', '"', $row->flascommRoot); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_FLASH_SERVER_URL); ?> </td> </tr> <tr><td><?php echo $confcw ? '<b><font color="red">' : ''; echo _JLMS_CFG_NUM_OF_CONC_USRS; ?> :<?php echo $confcw ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="maxConfClients" size="10" value="<?php echo intval($row->maxConfClients); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_NUM_OF_CONC_USRS); ?> </td> </tr> </table> </fieldset> </div> </td> </tr> <tr> <td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CONF_COLORS; ?> </legend> <table cellpadding="0" cellspacing="0"> <tr> <td align="right"><?php echo _JLMS_CFG_COLOR_SCHEMES; ?> :</td> <td colspan="2"> <?php echo $lists['colors_scheme']; ?> </td> </tr> <tr> <td colspan="2"></td> <td rowspan="8" align="right"> <img src="../components/com_joomla_lms/lms_images/admin/conference_colors.jpg" width="400" height="288" alt="<?php echo _JLMS_CFG_CONF_COLORS; ?> " title="<?php echo _JLMS_CFG_CONF_COLORS; ?> " /> </td> </tr> <tr> <td align="right" width="185px"><?php echo _JLMS_CFG_BACKGROUND; ?> :</td> <td width="220"> <div style="float:left; height:18px"> <input id="conf_background" name="conf_background" value="<?php echo $row->conf_background; ?> " class="text_area" style="width:10ex;" onChange="cs1.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon1" class="color_select_icon" onclick="cs1.toggle_color_select();"> </span> </div> <div id="color_display_icon1" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_background; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right"><?php echo _JLMS_CFG_MAIN_COLOR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_main_color" name="conf_main_color" value = "<?php echo $row->conf_main_color; ?> " class="text_area" style="width:10ex;" onChange="cs2.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon2" class="color_select_icon" onclick="cs2.toggle_color_select();"> </span> </div> <div id="color_display_icon2" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_main_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right"><?php echo _JLMS_CFG_TITLE_COLOR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_title_color" name="conf_title_color" value = "<?php echo $row->conf_title_color; ?> " class="text_area" style="width:10ex;" onChange="cs3.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon3" class="color_select_icon" onclick="cs3.toggle_color_select();"> </span> </div> <div id="color_display_icon3" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_title_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right"><?php echo _JLMS_CFG_BORDER_COLOR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_border_color" name="conf_border_color" value = "<?php echo $row->conf_border_color; ?> " class="text_area" style="width:10ex;" onChange="cs4.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon4" class="color_select_icon" onclick="cs4.toggle_color_select();"> </span> </div> <div id="color_display_icon4" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_border_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right"><?php echo _JLMS_CFG_TITLE_FONT_COLOR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_title_font_color" name="conf_title_font_color" value="<?php echo $row->conf_title_font_color; ?> " class="text_area" style="width:10ex;" onChange="cs5.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon5" class="color_select_icon" onclick="cs5.toggle_color_select();"> </span> </div> <div id="color_display_icon5" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_title_font_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right"><?php echo _JLMS_CFG_FILTERS_USRS_F_CLR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_files_font_color" name="conf_files_font_color" value="<?php echo $row->conf_files_font_color; ?> " class="text_area" style="width:10ex;" onChange="cs7.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon7" class="color_select_icon" onclick="cs7.toggle_color_select();"> </span> </div> <div id="color_display_icon7" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_files_font_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> <tr> <td align="right" ><?php echo _JLMS_CFG_TOOLBAR_CLR; ?> :</td> <td> <div style="float:left; height:18px"> <input id="conf_toolbar_color" name="conf_toolbar_color" value="<?php echo $row->conf_toolbar_color; ?> " class="text_area" style="width:10ex;" onChange="cs6.setrgb(this.value);" onKeyPress="if (event.keyCode == 13){return false;}"> <span id="color_select_icon6" class="color_select_icon" onclick="cs6.toggle_color_select();"> </span> </div> <div id="color_display_icon6" style="float:left; width:40px; height:18px; background:<?php echo $row->conf_toolbar_color; ?> "> </div> <div style="clear:both;"></div> </td> <td></td> </tr> </table> </fieldset> </div> </td> </tr> <tr> <td colspan="2"> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CONF_DESC; ?> </legend> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <?php #editorArea( 'editor2', $row->conf_description, 'conf_description', '100%;', '250', '60', '20' ) ; ?> <textarea name="conf_description" cols="60" rows="20" style="width: 100%;" ><?php echo $row->conf_description; ?> </textarea> </td> </tr> </table> </fieldset> </div> </td> </tr> </table> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Courses settings $tabs->startTab(_JLMS_COURSES, "courses-page"); ?> <script language="javascript" type="text/javascript"> //var tab1 = getObj('grade-page'); //if (tab1){ //if (tab1.style.display == 'none'){ document.body.onkeypress = courses_cat_change; //} //} function courses_cat_change(ev) { ev || (ev = window.event); if (ev.keyCode == 13) { var tab1 = getObj('grade-page'); var tab2 = getObj('courses-page'); if ((tab1.style.display == 'none') && (tab2.style.display == 'block')) { analyze_edit_cat(); } else if ((tab1.style.display == 'block') && (tab2.style.display == 'none')) { analyze_edit_grade_cat(); } return false; } return true; } function getObj(el_id) { if (document.getElementById) { return document.getElementById(el_id); } else if (document.all) { return document.all[el_id]; } else if (document.layers) { return document.layers[el_id]; } } function analyze_edit_cat(){ var element = getObj('inp_tmp'); if (element){ var parent = element.parentNode; var inpu_value = element.value; parent.removeChild(element); var cat_id_sss = '0'; if (parent.hasChildNodes()) { var children = parent.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { if (children[i].name == 'jlms_cat_name[]') { cat_id_sss = children[i].value;// = inp1_value; } } } } var input_cat2 = document.createElement("input"); input_cat2.type = "hidden"; input_cat2.name = 'jlms_cat_name[]'; input_cat2.value = inpu_value; var input_id2 = document.createElement("input"); input_id2.type = "hidden"; input_id2.name = 'jlms_cat_id[]'; input_id2.value = cat_id_sss; parent.innerHTML = inpu_value; parent.appendChild(input_cat2); var ttt = document.createElement("br"); parent.appendChild(ttt); parent.appendChild(input_id2); } } function edit_cat_name(e){ analyze_edit_cat(); if (!e) { e = window.event;} var cat2=e.target?e.target:e.srcElement; Redeclare_element_inputs2(cat2); var cat_name_value = ''; if (cat2.hasChildNodes()) { var children = cat2.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { if (children[i].name == 'jlms_cat_name[]') { cat_name_value = children[i].value;// = inp1_value; } } else { cat2.removeChild(cat2.childNodes[i]); } } } var input_cat3 = document.createElement("input"); input_cat3.type = "text"; input_cat3.id = "inp_tmp"; input_cat3.name = "inp_tmp";//cat_name; input_cat3.value = cat_name_value; input_cat3.setAttribute("style","z-index:5000"); if (window.addEventListener) { input_cat3.addEventListener('dblclick', analyze_edit_cat, false);}else { input_cat3.attachEvent('ondblclick', analyze_edit_cat );} cat2.appendChild(input_cat3); cat2.appendChild(document.createElement("br")); cat2.appendChild(document.createElement("br")); } function ReAnalize_cat_Rows( start_index, tbl_id ) {//ignore start_index! vsegda ==1; start_index = 1; var tbl_elem = getObj(tbl_id); //nugno perebirat' vse TR. potomu kak dobavlena funkciya Redeclare_element_inputs(); //kotoraya udalyaet a zatem sozdaet zanavo <input>. //t.k. v MOZILLA 1.6 (and old versions) poryadok inputov na forme ne menyaetsa esli ix ne udalyat'. //if (!start_index) { start_index = 1; } //if (start_index < 0) { start_index = 1; } if (tbl_elem.rows[start_index]) { var count = start_index; var row_k = 1 - start_index%2;//0; for (var i=start_index; i<tbl_elem.rows.length; i++) { tbl_elem.rows[i].cells[0].innerHTML = count; Redeclare_element_inputs2(tbl_elem.rows[i].cells[1]); tbl_elem.rows[i].className = 'row'+row_k; count++; row_k = 1 - row_k; } } } //function js_in_array(n, ha){for(h in ha){if(ha[h]==n){return true;}}return false;} function Redeclare_element_inputs2(object) { //var z = Array(); k = 0; if (object.hasChildNodes()) { var children = object.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { //if (!js_in_array(children[i].name,z)) { //z[k] = children[i].name; k++; var inp_name = children[i].name; var inp_value = children[i].value; object.removeChild(object.childNodes[i]); //i --; var input_hidden = document.createElement("input"); input_hidden.type = "hidden"; input_hidden.name = inp_name; input_hidden.value = inp_value; object.appendChild(input_hidden); //} } } } } function Delete_cat_row(element) { var del_index = element.parentNode.parentNode.sectionRowIndex; var tbl_id = element.parentNode.parentNode.parentNode.parentNode.id; element.parentNode.parentNode.parentNode.deleteRow(del_index); ReAnalize_cat_Rows('7',tbl_id); } function Add_new_cat(elem_field, tbl_id,field_name, field_name2) { //var new_cat_txt = getObj(elem_field).options[getObj(elem_field).selectedIndex].text; var new_cat_txt2 = getObj(elem_field).value; if (new_cat_txt2) { var tbl_elem = getObj(tbl_id); var row = tbl_elem.insertRow(tbl_elem.rows.length); if (getObj('grade-page').style.display == 'none'){ if (window.addEventListener) { row.addEventListener('dblclick', edit_cat_name, false);}else { row.attachEvent('ondblclick', edit_cat_name);} }else{ if (window.addEventListener) { row.addEventListener('dblclick', edit_cat_grade_name, false);}else { row.attachEvent('ondblclick', edit_cat_grade_name);} } var cell1 = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var input_hidden = document.createElement("input"); input_hidden.type = "hidden"; input_hidden.name = field_name2; input_hidden.value = new_cat_txt2; var input_hidden2 = document.createElement("input"); input_hidden2.type = "hidden"; input_hidden2.name = field_name; input_hidden2.value = '0'; cell1.align = 'center'; cell1.innerHTML = 0; cell2.innerHTML = new_cat_txt2; cell2.appendChild(input_hidden); cell2.appendChild(document.createElement("br")); cell2.appendChild(input_hidden2); cell3.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Delete_cat_row(this); return false;" title="Delete"><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="Delete"></a>'; cell4.innerHTML = ''; row.appendChild(cell1); row.appendChild(cell2); row.appendChild(cell3); row.appendChild(cell4); ReAnalize_cat_Rows('7',tbl_id); } else { alert('<?php echo _JLMS_CFG_MSG_ENTER_CAT_NAME; ?> '); } } </script> <div class="width-100"> <table class="adminlist"> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_COURS_L_DETS; ?> </legend> <table cellpadding="0" cellspacing="0"> <tr><td><?php echo _JLMS_CFG_SHOW_PAID_COURSES; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_paid_courses']; ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SHOW_FUTURE_CRSES; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_future_courses']; echo mosToolTip(_JLMS_CFG_SHOW_TIP_FUTURE_CRSES); ?> </fieldset> </td> </tr> <tr> <td width="250"><?php echo _JLMS_CFG_SHOW_SHORT_DESC; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_short_description']; ?> </fieldset> </td> </tr> <tr> <td width="250"><?php echo _JLMS_CFG_SHOW_ST_EN_DATES; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_publish_dates']; ?> </fieldset> </td> </tr> <tr> <td width="250"><?php echo _JLMS_CFG_SHOW_PR_FEE_COL; ?> :</td> <td><?php echo $lists['price_fee_type']; ?> </td> </tr> <tr><td><?php echo _JLMS_CFG_SHOW_CRS_AUTHS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_authors']; ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SORT_CRS_BY; ?> :</td> <td> <?php echo $lists['lms_courses_sortby']; ?> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_SHOW_HIDE_CRS_PROPS; ?> </legend> <table cellpadding="0" cellspacing="0"> <tr> <td width="250"><?php echo _JLMS_CFG_SHOW_CR_META_PROPS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_meta_property']; echo mosToolTip(_JLMS_CFG_TIP_SHOW_CR_META_PROPS); ?> </fieldset> </td> </tr> <tr> <td><?php echo _JLMS_CFG_SHOW_ACCESS_LVL_PROP; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_access_property']; echo mosToolTip(_JLMS_CFG_TIP_SH_ACCESS_LVL_PROP); ?> </fieldset> </td> </tr> <tr> <td><?php echo _JLMS_CFG_SH_CR_FEE_PROP; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_fee_property']; echo mosToolTip(_JLMS_CFG_TIP_SH_CR_FEE_PROP); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SH_ADD_REG_PROP; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['show_course_spec_property']; echo mosToolTip(_JLMS_CFG_TIP_SH_ADD_REG_PROP); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SH_MAX_ATT_PROP; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['max_attendees_change']; echo mosToolTip(_JLMS_CFG_TIP_SH_MAX_ATT_PROP); ?> </fieldset> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_SECN_CATS_MECH; ?> </legend> <table cellpadding="0" cellspacing="0"> <tr> <td width="250"><?php echo _JLMS_CFG_EN_SECN_CATS_MECH; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['sec_cat_use']; echo mosToolTip(_JLMS_CFG_TIP_EN_SECN_CATS_MECH); ?> </fieldset> </td> </tr> <tr> <td><?php echo _JLMS_CFG_A_TEACH_SPEC_SECN_CATS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['sec_cat_show']; echo mosToolTip(_JLMS_CFG_TIP_A_TEACH_SPEC_SECN_CATS); ?> </fieldset> </td> </tr> </table> </fieldset> </td></tr> </table> </div> <?php /* <fieldset class="adminform"><legend>Configure your course categories</legend> <table class="adminlist"> <tr> <td><br /> <input class="text_area" type="text" name="category_course" id="category_course" size="50" /> <input class="text_area" type="button" name="add_new_scale" style="width:70px" value="Add" onclick="javascript:Add_new_cat('category_course', 'course_cat','jlms_cat_id[]', 'jlms_cat_name[]');"> </td> </tr> </table> <table height="200px" class="adminlist"> <tr> <td valign="top"> <table class="adminlist" id="course_cat"> <thead> <tr> <th width="20px" align="center">#</th> <th width="300px" align="left">Category name</th> <th width="20px">Delete</th> <th width="auto"></th> </tr> </thead> <?php $k = 0; $ii = 1; $ind_last = count($course_cats); if ($course_cats){ foreach ($course_cats as $frow) { ?> <tr class="<?php echo "row$k"; ?>"> <td align="center"><?php echo $ii;?></td> <td align="left" onDblClick="edit_cat_name(event);" > <?php echo $frow->c_category;?> <input type="hidden" name="jlms_cat_name[]" value="<?php echo $frow->c_category;?>" /><br /> <input type="hidden" name="jlms_cat_id[]" value="<?php echo $frow->id;?>" /> </td> <td><a href="javascript: void(0);" onclick="javascript:Delete_cat_row(this); return false;" title="Delete"><img src="images/publish_x.png" border="0" alt="Delete"></a></td> <td></td> </tr> <?php $k = 1 - $k; $ii ++; } } ?> </table> </td> </tr> <tr> <td> <b>* - You can edit category by double clicking it's title. You can save changes by press Enter, double clicking it's title or title of any other category.</b><br /><br /> <b>* - Categories will be saved after "Save" or "Apply" only.</b> </td> </tr> </table> </fieldset> */ ?> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Gradebook settings $tabs->startTab(_JLMS_GRADEBOOK, "grade-page"); ?> <script language="javascript" type="text/javascript"> //var tab = getObj('courses-page'); //if (tab){ //if (tab.style.display == 'none'){ //document.body.onkeypress = gradebook_cat_change; //} //} /*function gradebook_cat_change(ev) { ev || (ev = window.event); if (ev.keyCode == 13) { analyze_edit_grade_cat(); return false; } return true; }*/ function analyze_edit_grade_cat(){ var element = getObj('inp_tmp'); if (element){ var parent = element.parentNode; var inpu_value = element.value; parent.removeChild(element); var cat_id_sss = '0'; if (parent.hasChildNodes()) { var children = parent.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { if (children[i].name == 'jlms_grade_cat_name[]') { cat_id_sss = children[i].value;// = inp1_value; } } } } var input_cat2 = document.createElement("input"); input_cat2.type = "hidden"; input_cat2.name = 'jlms_grade_cat_name[]'; input_cat2.value = inpu_value; var input_id2 = document.createElement("input"); input_id2.type = "hidden"; input_id2.name = 'jlms_grade_cat_id[]'; input_id2.value = cat_id_sss; parent.innerHTML = inpu_value; parent.appendChild(input_cat2); var ttt = document.createElement("br"); parent.appendChild(ttt); parent.appendChild(input_id2); } } function edit_cat_grade_name(e){ analyze_edit_grade_cat(); if (!e) { e = window.event;} var cat2=e.target?e.target:e.srcElement; Redeclare_element_inputs2(cat2); var cat_name_value = ''; if (cat2.hasChildNodes()) { var children = cat2.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { if (children[i].name == 'jlms_grade_cat_name[]') { cat_name_value = children[i].value;// = inp1_value; } } else { cat2.removeChild(cat2.childNodes[i]); } } } var input_cat3 = document.createElement("input"); input_cat3.type = "text"; input_cat3.id = "inp_tmp"; input_cat3.name = "inp_tmp";//cat_name; input_cat3.value = cat_name_value; input_cat3.setAttribute("style","z-index:5000"); if (window.addEventListener) { input_cat3.addEventListener('dblclick', analyze_edit_grade_cat, false);}else { input_cat3.attachEvent('ondblclick', analyze_edit_grade_cat );} cat2.appendChild(input_cat3); cat2.appendChild(document.createElement("br")); cat2.appendChild(document.createElement("br")); } </script> <table class="adminlist"> <tr> <th valign="top" class="title"><?php echo _JLMS_CFG_GRDBOOK_CATS; ?> </th> </tr> <tr> <td align="left"> <input class="text_area" type="text" name="category_gradebook" id="category_gradebook" size="50" /> <input class="text_area" type="button" name="add_new_g_cat" style="width:70px" value="<?php echo _JLMS_ADD; ?> " onclick="javascript:Add_new_cat('category_gradebook', 'gradebook_cat','jlms_grade_cat_id[]', 'jlms_grade_cat_name[]');"> </td> </tr> </table> <table height="200px" class="adminlist"> <tr> <td valign="top"> <table class="adminlist" id="gradebook_cat"> <thead> <tr> <th width="20px" align="center">#</th> <th width="300px" align="left"><?php echo _JLMS_CFG_CAT_NAME; ?> </th> <th width="20px"><?php echo _JLMS_DELETE; ?> </th> <th width="auto"></th> </tr> </thead> <?php $k = 0; $ii = 1; $ind_last = count($gradebook_cats); if ($gradebook_cats) { foreach ($gradebook_cats as $frow) { ?> <tr class="<?php echo "row{$k}"; ?> "> <td align="center"><?php echo $ii; ?> </td> <td align="left" onDblClick="edit_cat_grade_name(event);" > <?php echo $frow->gb_category; ?> <input type="hidden" name="jlms_grade_cat_name[]" value="<?php echo $frow->gb_category; ?> " /><br /> <input type="hidden" name="jlms_grade_cat_id[]" value="<?php echo $frow->id; ?> " /> </td> <td><a href="javascript: void(0);" onclick="javascript:Delete_cat_row(this); return false;" title="Delete"><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="<?php echo _JLMS_DELETE; ?> "></a></td> <td></td> </tr> <?php $k = 1 - $k; $ii++; } } ?> </table> </td> </tr> <tr> <td> <b>* - <?php echo _JLMS_CFG_GRDBOOK_MSG1; ?> </b><br /><br /> <b>* - <?php echo _JLMS_CFG_GRDBOOK_MSG2; ?> </b> </td> </tr> </table> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Files settings $scw = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->scorm_folder, true); $baw = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->jlms_backup_folder); $dow = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->jlms_doc_folder); $cow = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->jlms_crtf_folder); $pow = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->jlms_subscr_invoice_path); $tew = !joomla_lms_adm_html::jlms_admin_writable_cfg($row->temp_folder, true); $ftw = $file_types ? false : true; $tab_warning = $scw || $baw || $dow || $tew || $ftw || $cow || $pow ? true : false; $site_abs_path = str_replace('\\\\', '\\', JPATH_SITE); $site_abs_path = str_replace('\\', '/', $site_abs_path); $tabs->startTab(($tab_warning ? "<b><font color=\"red\">" : '') . 'Files' . ($tab_warning ? "</font></b>" : ''), "files-page"); ?> <div class="width-100"> <fieldset class="adminform"> <table > <tr><td width="185px"><?php echo _JLMS_CFG_SITE_ABS_PATH; ?> :</td> <td><b><font color="green"><?php echo $site_abs_path; ?> </font></b></td> </tr> <tr><td width="185px"><?php echo $scw ? '<b><font color="red">' : ''; echo _JLMS_CFG_SCORMS_FOLDER_RP; ?> :<?php echo $scw ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="scorm_folder" style="width:366px;" value="<?php echo $row->scorm_folder; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_SCORMS_FOLDER_RP); ?> </td> </tr> <tr><td width="185px"><?php echo $baw ? '<b><font color="red">' : ''; echo _JLMS_CFG_BCKS_FOLDER_AP; ?> :<?php echo $baw ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="jlms_backup_folder" style="width:366px;" value="<?php echo $row->jlms_backup_folder; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_BCKS_FOLDER_AP); ?> </td> </tr> <tr> <td width="185px"><?php echo $dow ? '<b><font color="red">' : ''; echo _JLMS_CFG_DOCS_FOLDER_AP; ?> :<?php echo $dow ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="jlms_doc_folder" style="width:366px;" value="<?php echo $row->jlms_doc_folder; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_DOCS_FOLDER_AP); ?> </td> </tr> <tr> <td width="185px"><?php echo $dow ? '<b><font color="red">' : ''; echo _JLMS_CFG_CERTS_FOLDER_AP; ?> :<?php echo $cow ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="jlms_crtf_folder" style="width:366px;" value="<?php echo $row->jlms_crtf_folder; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_CERTS_FOLDER_AP); ?> </td> </tr> <tr><td width="185px"><?php echo $tew ? '<b><font color="red">' : ''; echo _JLMS_CFG_TEMP_FOLDER_RP; ?> :<?php echo $tew ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="temp_folder" style="width:366px;" value="<?php echo $row->temp_folder; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_TEMP_FOLDER_RP); ?> </td> </tr> <tr><td width="185px"><?php echo $pow ? '<b><font color="red">' : ''; echo _JLMS_CFG_PDF_INV_FOLDER_AP; ?> :<?php echo $pow ? '</font></b>' : ''; ?> </td> <td><input class="text_area" type="text" name="jlms_subscr_invoice_path" style="width:366px;" value="<?php echo $row->jlms_subscr_invoice_path; ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_PDF_INV_FOLDER_AP); ?> </td> </tr> <tr><td width="185px"><?php echo $ftw ? '<b><font color="red">' : ''; echo _JLMS_CFG_SUPP_FI_TYPES_F_UPLOAD; ?> :<?php echo $ftw ? '</font></b>' : ''; ?> </td> <td><textarea class="text_area" name="jlms_file_types" wrap="hard" style="white-space:normal " cols="50" rows="4" /><?php echo $file_types; ?> </textarea><?php echo mosToolTip(_JLMS_CFG_TIP_SUPP_FI_TYPES_F_UPLOAD); ?> </td> </tr> </table> </fieldset> </div> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Attendance settings $tabs->startTab(_JLMS_CFG_ATTENDANCE, "attend-page"); ?> <div class="width-100"> <fieldset class="adminform"> <table > <tr> <td width="185px" valign="top"><?php echo _JLMS_CFG_ATTENDANCE_DAYS; ?> :<?php echo " " . mosToolTip(_JLMS_CFG_TIP_ATTENDANCE_DAYS); ?> </td> <td> <table> <?php $attendance = unserialize($row->attendance_days); if (!is_array($attendance)) { $attendance = array(); } for ($i = 0; $i < 7; $i++) { echo "<tr><td><input type='checkbox' name='attendance_days[]' value='" . ($i + 1) . "'" . (in_array($i + 1, $attendance) ? " checked" : "") . " />"; if ($i == 0) { echo _JLMS_WD_MONDAY; } elseif ($i == 1) { echo _JLMS_WD_TUESDAY; } elseif ($i == 2) { echo _JLMS_WD_WEDNESDAY; } elseif ($i == 3) { echo _JLMS_WD_THURSDAY; } elseif ($i == 4) { echo _JLMS_WD_FRIDAY; } elseif ($i == 5) { echo _JLMS_WD_SATURDAY; } elseif ($i == 6) { echo _JLMS_WD_SUNDAY; } echo "</td></tr>"; } ?> </table> </td> </tr> </table> <script language="javascript" type="text/javascript"> function ReAnalize_tbl_Rows( start_index, tbl_id ) {//ignore start_index! vsegda ==1; start_index = 1; var tbl_elem = getObj(tbl_id); //nugno perebirat' vse TR. potomu kak dobavlena funkciya Redeclare_element_inputs(); //kotoraya udalyaet a zatem sozdaet zanavo <input>. //t.k. v MOZILLA 1.6 (and old versions) poryadok inputov na forme ne menyaetsa esli ix ne udalyat'. //if (!start_index) { start_index = 1; } //if (start_index < 0) { start_index = 1; } if (tbl_elem.rows[start_index]) { var count = start_index; var row_k = 1 - start_index%2;//0; for (var i=start_index; i<tbl_elem.rows.length; i++) { tbl_elem.rows[i].cells[0].innerHTML = count; Redeclare_element_inputs(tbl_elem.rows[i].cells[1]); Redeclare_element_inputs(tbl_elem.rows[i].cells[2]); if (i > 1) { tbl_elem.rows[i].cells[4].innerHTML = '<a href="javascript: void(0);" onclick="javascript:Up_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_UP; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> uparrow.png" border="0" alt="<?php echo _JLMS_MOVE_UP; ?> "></a>'; } else { tbl_elem.rows[i].cells[4].innerHTML = ''; } if (i < (tbl_elem.rows.length - 1)) { tbl_elem.rows[i].cells[5].innerHTML = '<a href="javascript: void(0);" onclick="javascript:Down_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_DOWN; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> downarrow.png" border="0" alt="<?php echo _JLMS_MOVE_DOWN; ?> "></a>';; } else { tbl_elem.rows[i].cells[5].innerHTML = ''; } tbl_elem.rows[i].className = 'row'+row_k; count++; row_k = 1 - row_k; } } } function Redeclare_element_inputs(object) { if (object.hasChildNodes()) { var children = object.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].nodeName.toLowerCase() == 'input') { var inp_name = children[i].name; var inp_value = children[i].value; object.removeChild(object.childNodes[i]); var input_hidden = document.createElement("input"); input_hidden.type = "hidden"; input_hidden.name = inp_name; input_hidden.value = inp_value; object.appendChild(input_hidden); } } } } function Delete_tbl_row(element) { var del_index = element.parentNode.parentNode.sectionRowIndex; var tbl_id = element.parentNode.parentNode.parentNode.parentNode.id; element.parentNode.parentNode.parentNode.deleteRow(del_index); ReAnalize_tbl_Rows(del_index - 1, tbl_id); } function Up_tbl_row(element) { if (element.parentNode.parentNode.sectionRowIndex > 1) { var sec_indx = element.parentNode.parentNode.sectionRowIndex; var table = element.parentNode.parentNode.parentNode; var tbl_id = table.parentNode.id; var cell2_tmp = element.parentNode.parentNode.cells[1].innerHTML; var cell3_tmp = element.parentNode.parentNode.cells[2].innerHTML; element.parentNode.parentNode.parentNode.deleteRow(element.parentNode.parentNode.sectionRowIndex); // nel'zya prosto skopirovat' staryi innerHTML, t.k. ne sozdadutsya DOM elementy (for IE, Opera compatible). var row = table.insertRow(sec_indx - 1); var cell1 = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); cell1.align = 'center'; cell1.innerHTML = 0; cell2.align = 'left'; cell2.innerHTML = cell2_tmp; cell3.innerHTML = cell3_tmp; cell4.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Delete_tbl_row(this); return false;" title="<?php echo _JLMS_DELETE; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="<?php echo _JLMS_DELETE; ?> "></a>'; cell5.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Up_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_UP; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> uparrow.png" border="0" alt="<?php echo _JLMS_MOVE_UP; ?> "></a>'; row.appendChild(cell1); row.appendChild(cell2); row.appendChild(cell3); row.appendChild(cell4); row.appendChild(cell5); row.appendChild(document.createElement("td")); row.appendChild(document.createElement("td")); ReAnalize_tbl_Rows(sec_indx - 2, tbl_id); } } function Down_tbl_row(element) { if (element.parentNode.parentNode.sectionRowIndex < element.parentNode.parentNode.parentNode.rows.length - 1) { var sec_indx = element.parentNode.parentNode.sectionRowIndex; var table = element.parentNode.parentNode.parentNode; var tbl_id = table.parentNode.id; var cell2_tmp = element.parentNode.parentNode.cells[1].innerHTML; var cell3_tmp = element.parentNode.parentNode.cells[2].innerHTML; element.parentNode.parentNode.parentNode.deleteRow(element.parentNode.parentNode.sectionRowIndex); var row = table.insertRow(sec_indx + 1); var cell1 = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); cell1.align = 'center'; cell1.innerHTML = 0; cell2.align = 'left'; cell2.innerHTML = cell2_tmp; cell3.innerHTML = cell3_tmp; cell4.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Delete_tbl_row(this); return false;" title="<?php echo _JLMS_DELETE; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="<?php echo _JLMS_DELETE; ?> "></a>'; cell5.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Up_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_UP; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> uparrow.png" border="0" alt="<?php echo _JLMS_MOVE_UP; ?> "></a>'; row.appendChild(cell1); row.appendChild(cell2); row.appendChild(cell3); row.appendChild(cell4); row.appendChild(cell5); row.appendChild(document.createElement("td")); row.appendChild(document.createElement("td")); ReAnalize_tbl_Rows(sec_indx, tbl_id); } } function Add_new_tbl_field(elem_field1,elem_field2,elem_field3,elem_field4, tbl_id, field_name, field_name2) { var new_start_hour_txt = getObj(elem_field1).options[getObj(elem_field1).selectedIndex].text; var new_start_hour_txt2 = getObj(elem_field1).value; var new_start_min_txt = getObj(elem_field2).options[getObj(elem_field2).selectedIndex].text; var new_start_min_txt2 = getObj(elem_field2).value; var new_end_hour_txt = getObj(elem_field3).options[getObj(elem_field3).selectedIndex].text; var new_end_hour_txt2 = getObj(elem_field3).value; var new_end_min_txt = getObj(elem_field4).options[getObj(elem_field4).selectedIndex].text; var new_end_min_txt2 = getObj(elem_field4).value; var tbl_elem = getObj(tbl_id); var row = tbl_elem.insertRow(tbl_elem.rows.length); var cell1 = document.createElement("td"); var cell2 = document.createElement("td"); var cell3 = document.createElement("td"); var cell4 = document.createElement("td"); var cell5 = document.createElement("td"); var cell6 = document.createElement("td"); var cell7 = document.createElement("td"); var input_hidden = document.createElement("input"); var input_hidden2 = document.createElement("input"); input_hidden.type = "hidden"; input_hidden.name = field_name;//"sf_hid_fields[]"; input_hidden.value = new_start_hour_txt2+":"+new_start_min_txt2+":00"; input_hidden2.type = "hidden"; input_hidden2.name = field_name2;//"sf_hid_fields[]"; input_hidden2.value = new_end_hour_txt2+":"+new_end_min_txt2+":00"; cell1.align = 'center'; cell1.innerHTML = '0'; cell2.innerHTML = new_start_hour_txt+":"+new_start_min_txt+":00"; cell2.appendChild(input_hidden); cell3.innerHTML = new_end_hour_txt+":"+new_end_min_txt+":00"; cell3.appendChild(input_hidden2); cell4.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Delete_tbl_row(this); return false;" title="<?php echo _JLMS_DELETE; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="<?php echo _JLMS_DELETE; ?> "></a>'; cell5.innerHTML = '<a href="javascript: void(0);" onclick="javascript:Up_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_UP; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> uparrow.png" border="0" alt="<?php echo _JLMS_MOVE_UP; ?> "></a>'; cell6.innerHTML = ''; cell7.innerHTML = ''; row.appendChild(cell1); row.appendChild(cell2); row.appendChild(cell3); row.appendChild(cell4); row.appendChild(cell5); row.appendChild(cell6); row.appendChild(cell7); ReAnalize_tbl_Rows(tbl_elem.rows.length - 2, tbl_id); } </script> <table class="adminlist"> <tr> <th valign="top" class="title"><?php echo _JLMS_CFG_CFG_YOUR_ATT_PERDS; ?> </th> </tr> <tr> <td > <div style="float:left; width:200px "><?php echo _JLMS_CFG_STARTING_TIME; ?> :<br /> <?php echo _JLMS_TM_HOUR; ?> : <select name="start_hour" id="start_hour" class="text_area"> <?php for ($i = 1; $i <= 24; $i++) { if ($i < 10) { $i = "0" . $i; } echo "<option value={$i}>{$i}</option>"; } ?> </select> <?php echo _JLMS_TM_MINUTE; ?> : <select name="start_min" id="start_min" class="text_area"> <?php for ($i = 0; $i <= 60; $i = $i + 5) { if ($i < 10) { $i = "0" . $i; } echo "<option value={$i}>{$i}</option>"; } ?> <> </select> </div> <div style="float:left "> <?php echo _JLMS_CFG_ENDING_TIME; ?> : <br /> <?php echo _JLMS_TM_HOUR; ?> r: <select name="end_hour" id="end_hour" class="text_area"> <?php for ($i = 1; $i <= 24; $i++) { if ($i < 10) { $i = "0" . $i; } echo "<option value={$i}>{$i}</option>"; } ?> </select> <?php echo _JLMS_TM_MINUTE; ?> : <select name="end_min" id="end_min" class="text_area"> <?php for ($i = 0; $i <= 60; $i = $i + 5) { if ($i < 10) { $i = "0" . $i; } echo "<option value={$i}>{$i}</option>"; } ?> </select> <input class="text_area" type="button" name="add_new_scale" style="width:70px" value="<?php echo _JLMS_ADD; ?> " onclick="javascript:Add_new_tbl_field('start_hour','start_min','end_hour','end_min', 'jlms_periods', 'sf_hid_scale[]', 'sf_hid_scale2[]');"> </div> </td> </tr> </table> <table height="200px" class="adminlist"> <tr> <td valign="top"> <table class="adminlist" id="jlms_periods"> <thead> <tr> <th width="20px" align="center">#</th> <th width="100px"><?php echo _JLMS_CFG_PERIOD_BEGIN; ?> </php></th> <th width="100px" align="center" class="title"><?php echo _JLMS_CFG_PERIOD_END; ?> </th> <th width="20px" align="center" class="title"></th> <th width="20px"></th> <th width="20px"></th> <th width="auto"></th> </tr> </thead> <?php $k = 0; $ii = 1; $ind_last = count($periods); if ($periods) { foreach ($periods as $frow) { ?> <tr class="<?php echo "row{$k}"; ?> "> <td align="center"><?php echo $ii; ?> </td> <td align="left"> <?php echo $frow->period_begin; ?> <input type="hidden" name="sf_hid_scale[]" value="<?php echo $frow->period_begin; ?> "> </td> <td align="left"> <?php echo $frow->period_end; ?> <input type="hidden" name="sf_hid_scale2[]" value="<?php echo $frow->period_end; ?> "> </td> <td><a href="javascript: void(0);" onclick="javascript:Delete_tbl_row(this); return false;" title="<?php echo _JLMS_DELETE; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> publish_x.png" border="0" alt="<?php echo _JLMS_DELETE; ?> "></a></td> <td><?php if ($ii > 1) { ?> <a href="javascript: void(0);" onclick="javascript:Up_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_UP; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> uparrow.png" border="0" alt="<?php echo _JLMS_MOVE_UP; ?> "></a><?php } ?> </td> <td><?php if ($ii < $ind_last) { ?> <a href="javascript: void(0);" onclick="javascript:Down_tbl_row(this); return false;" title="<?php echo _JLMS_MOVE_DOWN; ?> "><img src="<?php echo ADMIN_IMAGES_PATH; ?> downarrow.png" border="0" alt="<?php echo _JLMS_MOVE_DOWN; ?> "></a><?php } ?> </td> <td></td> </tr> <?php $k = 1 - $k; $ii++; } } ?> </table> </td> </tr> </table> </fieldset> </div> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Users settings $tabs->startTab(_JLMS_USERS, "user-page"); ?> <div class="width-100"> <fieldset class="adminform"> <table > <tr> <td width="185px"><?php echo _JLMS_CFG_ALLOW_USERS_IMPORT; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['allow_import_users']; echo mosToolTip(_JLMS_CFG_TIP_ALLOW_USERS_IMPORT); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_IMPORT_USER_PASS; ?> :</td> <td><input class="text_area" type="text" name="new_user_password" size="50" value="<?php echo str_replace('"', '"', $row->new_user_password); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_IMPORT_USER_PASS); ?> </td> </tr> </table> </fieldset> </div> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Payments settings $tabs->startTab(_JLMS_PAYMENTS, "pay-page"); ?> <table class="adminlist"> <tr><td> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_SSL_SETTINGS; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200">Secure checkout:</td> <td> <fieldset class="radio"> <?php echo $lists['use_secure_checkout']; echo mosToolTip(_JLMS_CFG_TIP_SSL_SETTINGS); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SECR_CRS_REG; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['use_secure_enrollment']; echo mosToolTip(_JLMS_CFG_TIP_SECR_CRS_REG); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_SECURE_URL; ?> :</td> <td><input class="text_area" type="text" name="secure_url" size="50" value="<?php echo str_replace('"', '"', $row->secure_url); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_SECURE_URL); ?> </td> </tr> </table> </fieldset> </div> </td></tr> <tr><td> <div class="width-100"> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CHECKOUT_OPTS; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200"><?php echo _JLMS_CFG_CURRENCY_CODE; ?> :</td> <td><input class="text_area" type="text" name="jlms_cur_code" size="3" maxlength="3" value="<?php echo str_replace('"', '"', $row->jlms_cur_code); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_CURRENCY_CODE); ?> </td> </tr> <tr><td><?php echo _JLMS_CFG_CURRENCY_SIGN; ?> :</td> <td><input class="text_area" type="text" name="jlms_cur_sign" size="3" maxlength="8" value="<?php echo str_replace('"', '"', $row->jlms_cur_sign); ?> "/><?php echo mosToolTip(_JLMS_CFG_TIP_CURRENCY_SIGN); ?> </td> </tr> <tr><td><?php echo _JLMS_CFG_ENABLE_TAX_COUNT; ?> :</td> <td><fieldset class="radio"><?php echo $lists['enabletax']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_TAX_COUNT); ?> </fieldset></td> </tr> <tr><td><?php echo _JLMS_CFG_ENABLE_INVS_PDF; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['subscr_status_email']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_INVS_PDF); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_ENABLE_TERMS_CONDS; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['enableterms']; echo mosToolTip(_JLMS_CFG_TIP_ENABLE_TERMS_CONDS); ?> </fieldset> </td> </tr> <tr><td valign="top"><?php echo _JLMS_CFG_SUBS_TERMS_CONDS; ?> :</td> <td><textarea class="text_area" cols="50" rows="3" style="width:300px; height:100px" name="jlms_terms"><?php echo htmlspecialchars($row->jlms_terms, ENT_QUOTES); ?> </textarea></td> </tr> </table> </fieldset> </div> </td></tr> </table> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Plugins settings $fw = isset($lists['forum_warning']) && $lists['forum_warning'] ? true : false; $tabs->startTab(($fw ? "<b><font color=\"red\">" : '') . _JLMS_PLUGINS . ($fw ? "</font></b>" : ''), "plugin-page"); ?> <script type="text/javascript" language="javascript"> var is_start_c = 0; function jlms_Change() { var form=document.adminForm; if (form.quiz_hs_offset_manual_correction.value == 0) { form.quiz_hs_offset_div_class.disabled = true; form.quiz_hs_ofset_manual_value.disabled = true; } else { form.quiz_hs_offset_div_class.disabled = false; form.quiz_hs_ofset_manual_value.disabled = false; } } </script> <table class="adminlist"> <tr><td> <div class="width-100"> <fieldset class="adminform" style="text-align:left "><legend><?php echo _JLMS_CFG_QUIZ_SETTINGS; ?> </legend> <table> <tr style="display:none; visibility:hidden"><td width="250px"><?php echo _JLMS_CFG_QUIZ_ENABLE; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['plugin_quiz']; ?> </fieldset> </td> </tr> <tr><td width="250px"><?php echo _JLMS_CFG_DRG_AND_DRP_BLK_W; ?> :</td> <td><input class="text_area" type="text" name="quiz_match_max_width" size="3" value="<?php echo $row->quiz_match_max_width; ?> "/> px</td> </tr> <tr><td><?php echo _JLMS_CFG_DRG_AND_DRP_BLK_W; ?> :</td> <td><input class="text_area" type="text" name="quiz_match_max_height" size="3" value="<?php echo $row->quiz_match_max_height; ?> "/> px</td> </tr> <tr><td><?php echo _JLMS_CFG_SHW_PROGRESS_BR; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['quiz_progressbar']; echo mosToolTip(_JLMS_CFG_TIP_SHW_PROGRESS_BR); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_PROGRESS_BR_W; ?> :</td> <td><input class="text_area" type="text" name="quiz_progressbar_width" size="3" value="<?php echo $row->quiz_progressbar_width; ?> "/> px</td> </tr> <tr><td><?php echo _JLMS_CFG_ENBL_HIGHLGHT_F_PR_BR; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['quiz_progressbar_highlight']; ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_ENBL_SMOOTH_F_PR_BR; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['quiz_progressbar_smooth']; ?> </fieldset> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_ONLINE_HLP; ?> </legend> <table cellpadding="0" cellspacing="0" border="0"> <tr><td width="200"><?php echo _JLMS_CFG_LNK_ONLINE_HLP_S; ?> :</td> <td> <input type="text" class="text_area" style="width:300px" name="jlms_help_link" value="<?php echo str_replace('"', '"', $row->jlms_help_link); ?> " /> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_CRS_FORUM_SETT; ?> ( <?php echo mosToolTip(_JLMS_CFG_TIP_SMF_IN_SHORT); ?> <?php echo _JLMS_CFG_READ_MORE_AB_SMF; ?> <a style="text-decoration:underline" href="http://www.simplemachines.org">here</a>)</legend> <table > <tr><td width="200px"><?php echo _JLMS_CFG_ENBL_CRS_FORUM; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['plugin_forum']; echo mosToolTip(_JLMS_CFG_TIP_ENBL_CRS_FORUM); ?> </fieldset> </td> </tr> <tr><td width="185px"><?php echo _JLMS_CFG_SITE_ABS_PATH; ?> :</td> <td><b><font color="green"><?php echo $site_abs_path; ?> </font></b></td> </tr> <tr><td><?php echo $fw ? '<b><font color="red">' : ''; echo _JLMS_CFG_FRM_ABS_PATH; ?> :<?php echo $fw ? '</font></b>' : ''; ?> </td> <td align="left"><input class="text_area" type="text" name="forum_path" size="50" value="<?php echo $row->forum_path; ?> "/> <?php echo mosToolTip(_JLMS_CFG_TIP_FRM_ABS_PATH); ?> </td> </tr> <tr> <td colspan="2"> <?php echo _JLMS_CFG_USE_SMF_MENU; ?> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_PTHW_PLG; ?> </legend> <table> <tr><td width="200"><?php echo _JLMS_CFG_INCL_HOMEP_IT; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['pathway_show_lmshome']; echo mosToolTip(_JLMS_CFG_TIP_INCL_HOMEP_IT); ?> </fieldset> </td> </tr> <tr><td><?php echo _JLMS_CFG_CRS_HOMEP_IT; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['pathway_show_coursehome']; echo mosToolTip(_JLMS_CFG_TIP_CRS_HOMEP_IT); ?> </fieldset> </td> </tr> </table> </fieldset> </td></tr> <tr><td> <fieldset class="adminform"><legend><?php echo _JLMS_CFG_USR_NOTES_PLG; ?> </legend> <table> <tr><td width="200"><?php echo _JLMS_CFG_ENBL_USR_NOTES_PLG; ?> :</td> <td> <fieldset class="radio"> <?php echo $lists['jlms_notecez']; echo mosToolTip(_JLMS_CFG_TIP_ENBL_USR_NOTES_PLG); ?> </fieldset> </td> </tr> </table> </fieldset> </td></tr> </table> </div> <?php $tabs->endTab(); ///////////////////////////////////////////////////////////// // Users settings $tabs->endPane(); ?> </td> </tr> </table> <?php if (!class_exists('JToolBarHelper')) { ?> <table align="center"> <?php joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_SCORMS_FOLDER, $row->scorm_folder, true); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_BACKUPS_FOLDER, $row->jlms_backup_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_DOCS_FOLDER, $row->jlms_doc_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_CERTS_FOLDER, $row->jlms_crtf_folder); joomla_lms_adm_html::writableCell_cfg(_JLMS_CFG_TEMP_FOLDER, $row->temp_folder, true); ?> </table> <?php } ?> </td></tr></table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="boxchecked" value=""/> <input type="hidden" name="task" value=""/> </form> </div> <script type="text/javascript" language="javascript"> <!--// setTimeout("cs_init()",200); //--> </script> <?php }
/** * Writes the edit form for new and existing module * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosCategory The category object * @param array <p>The modules of the left side. The array elements are in the form * <var>$leftorder[<i>order</i>] = <i>label</i></var> * where <i>order</i> is the module order from the db table and <i>label</i> is a * text label associciated with the order.</p> * @param array See notes for leftorder * @param array An array of select lists * @param object Parameters */ function editModule(&$row, &$orders2, &$lists, &$params, $option) { global $mosConfig_live_site; global $adminLanguage; $tabs = new mosTabs(0); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { if ( ( pressbutton == 'save' ) && ( document.adminForm.title.value == "" ) ) { alert("<?php echo $adminLanguage->A_COMP_MOD_MUST_TITLE; ?> "); } else { <?php if ($row->module == "") { getEditorContents('editor1', 'content'); } ?> submitform(pressbutton); } submitform(pressbutton); } <!-- var originalOrder = '<?php echo $row->ordering; ?> '; var originalPos = '<?php echo $row->position; ?> '; var orders = new Array(); // array in the format [key,value,text] <?php $i = 0; foreach ($orders2 as $k => $items) { foreach ($items as $v) { echo "\n\torders[" . $i++ . "] = new Array( \"{$k}\",\"{$v->value}\",\"{$v->text}\" );"; } } ?> //--> </script> <table class="adminheading"> <tr> <th class="modules"> <?php echo $row->id ? 'Edit' : 'New'; ?> <?php echo $lists['client_id'] ? $adminLanguage->A_COMP_MAMB_ADMIN : $adminLanguage->A_COMP_MAMB_SITE; ?> <?php echo $adminLanguage->A_COMP_MOD_MODULE; ?> -> <?php echo $row->title; ?> </th> </tr> </table> <form action="index2.php" method="post" name="adminForm"> <table cellspacing="0" cellpadding="0" width="100%"> <tr valign="top"> <td width="60%" valign="top"> <table class="adminform"> <tr> <th colspan="2"> <?php echo $adminLanguage->A_COMP_MOD_DETAILS; ?> </th> <tr> <tr> <td width="100" align="left"> <?php echo $adminLanguage->A_COMP_TITLE; ?> : </td> <td> <input class="text_area" type="text" name="title" size="35" value="<?php echo $row->title; ?> " /> </td> </tr> <!-- START selectable pages --> <tr> <td width="100" align="left"> <?php echo $adminLanguage->A_COMP_MOD_SHOW_TITLE; ?> : </td> <td> <?php echo $lists['showtitle']; ?> </td> </tr> <tr> <td valign="top" align="left"> <?php echo $adminLanguage->A_COMP_MOD_POSITION; ?> : </td> <td> <?php echo $lists['position']; ?> </td> </tr> <tr> <td valign="top" align="left"> <?php echo $adminLanguage->A_COMP_MOD_ORDER; ?> : </td> <td> <script language="javascript" type="text/javascript"> <!-- writeDynaList( 'class="inputbox" name="ordering" size="1"', orders, originalPos, originalPos, originalOrder ); //--> </script> </td> </tr> <tr> <td valign="top" align="left"> <?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> : </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top"> <?php echo $adminLanguage->A_COMP_PUBLISHED; ?> : </td> <td> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td valign="top"> <?php echo $adminLanguage->A_COMP_ID; ?> : </td> <td> <?php echo $row->id; ?> </td> </tr> <!-- END selectable pages --> <?php if ($row->module == "") { ?> <tr> <td valign="top" align="left"> <?php echo $adminLanguage->A_COMP_MOD_CONTENT; ?> : </td> <td> <?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->content, 'content', '500', '350', '70', '15'); ?> </td> </tr> <?php } ?> </table> </td> <td width="40%"> <table width="100%"> <tr> <td> <?php $tabs->startPane("module"); $tabs->startTab($adminLanguage->A_COMP_MOD_TAB_LBL, "location-page"); ?> <table width="100%" class="adminform"> <tr> <th> <?php echo $adminLanguage->A_COMP_MOD_POSITION; ?> </th> <tr> <tr> <td> <?php echo $adminLanguage->A_COMP_MOD_ITEM_LINK; ?> : <br /><br /> <?php echo $lists['selections']; ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <th > <?php echo $adminLanguage->A_COMP_CONT_PARAMETERS; ?> </th> <tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </td> </tr> </table> </td> </tr> </table> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="original" value="<?php echo $row->ordering; ?> " /> <input type="hidden" name="module" value="<?php echo $row->module; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="client_id" value="<?php echo $lists['client_id']; ?> " /> <?php if ($row->client_id || $lists['client_id']) { echo '<input type="hidden" name="client" value="admin" />'; } ?> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
function confirmBackups(&$folders, &$sizes, $path, $option) { // ---------------------------------------------------------- // Presentation of the confirmation screen // ---------------------------------------------------------- global $baDownloadPath, $mosConfig_absolute_path, $clonerPath, $_CONFIG, $database, $mosConfig_db; ?> <form action="index2.php" method="post" name="adminForm"> <?php $tabs = new mosTabs(1); ?> <script> $(function() { $( "#tabs" ).tabs().find( ".ui-tabs-nav" ).sortable({ axis: "x" }); $( "#radio_dbbackup" ).buttonset(); $( "#radio_dbbackup1" ).button( { icons: {primary:'ui-icon-bullet'} } ); $( "#radio_dbbackup2" ).button( { icons: {primary:'ui-icon-bullet'} } ); }); </script> <ul> <?php if ($_CONFIG['enable_db_backup']) { ?> <li><a href="#tabs-users-databse-options-tab"><?php echo LM_TAB_G_DATABASE; ?> </a></li> <?php } ?> <li><a href="#tabs-users-files-options-tab"><?php echo LM_TAB_G_FILES; ?> </a></li> <li><a href="#tabs-users-comments-options-tab"><?php echo LM_TAB_G_COMMENTS; ?> </a></li> </ul> <?php #$tabs->startPane("BGeneratePane"); if ($_CONFIG['enable_db_backup']) { $tabs->startTab(LM_TAB_G_DATABASE, "users-databse-options-tab"); ?> <div id="radio_dbbackup"> <table class="adminform"> <!--<tr> <th colspan=2> <b><?php #echo LM_DATABASE_ARCHIVE; ?> </b> </th> </tr>--> <tr> <td> <label for="radio_dbbackup1"><?php echo LM_CONFIRM_DATABASE; ?> </label> <input id="radio_dbbackup1" type="checkbox" id="dbbackup" name="dbbackup" checked value="1" /> <label for="radio_dbbackup2">Add DROP SYNTAX</label> <input id="radio_dbbackup2" type="checkbox" id="dbbackup_drop" name="dbbackup_drop" value="1" /> </td> </tr> <tr> <td><?php echo "Mysql Compatibility"; ?> <select name='dbbackup_comp'> <option value=''>Default</option> <option value='MYSQL40'>MYSQL40</option> <option balue='MYSQL323'>MYSQL323</option> </select> </td> </tr> <tr><th colspan=2> <?php echo LM_DATABASE_EXCLUDE_TABLES; ?> </th></tr> <tr><td> <?php echo LM_DATABASE_CURRENT; ?> <b><?php echo $_CONFIG['mysql_database']; ?> </b><br /> <select name='excltables[]' MULTIPLE SIZE=15> <?php $query = mysql_query("SHOW tables"); while ($row = mysql_fetch_array($query)) { echo "<option value='" . $row[0] . "'>{$row['0']}</option>"; } ?> </select> </td></tr> <?php if (abs($_CONFIG[system_mdatabases]) == 0) { ?> <tr><th colspan=2> <?php echo LM_DATABASE_INCLUDE_DATABASES; ?> </th></tr> <tr><td> <select name='databases_incl[]' MULTIPLE SIZE=5> <?php $query = mysql_query("SHOW databases"); while ($row = mysql_fetch_array($query)) { if ($_CONFIG['mysql_database'] != $row[0]) { echo "<option value='" . $row[0] . "'>{$row['0']}</option>"; } } ?> </select><br /> <?php echo LM_DATABASE_INCLUDE_DATABASES_SUB; ?> </td></tr> <?php } ?> </table> </div> <?php $tabs->endTab(); } $tabs->startTab(LM_TAB_G_FILES, "users-files-options-tab"); ?> <table class="adminform"> <tr> <th> <b><?php echo LM_BACKUP_NAME; ?> </b> </th> </tr> <tr> <td> <input type=text name='bname' value='' size=100><br/> <?php echo LM_BACKUP_NAME_SUB; ?> </td> </tr> <tr> <td width="50%"><?php echo LM_CONFIRM_INSTRUCTIONS; ?> </td> </tr> </table> <table class="adminlist" > <tr> <th width="200" valign='top' colspan='2' align='left'> <?php echo LM_COL_FOLDER; ?> <?php ?> <tr><td> <link href="browser/filebrowser.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="browser/xmlhttp.js"></script> <div id="browser"> <?php require_once "browser/files_inpage.php"; ?> </div> <script>do_browser()</script> </td></tr> <?php ?> </table> <?php $tabs->endTab(); $tabs->startTab(LM_TAB_G_COMMENTS, "users-comments-options-tab"); ?> <div class="mainText"> <h2><?php echo LM_TAB_G_COMMENTS_H2; ?> </h2> <textarea name="backupComments" rows=20 cols=80></textarea> <br /><small> <?php echo LM_TAB_G_COMMENTS_NOTE; ?> </small> </div> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="com_cloner" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="hidemainmenu" value="0" /> </form> <br/> <?php }
static function about() { global $mosConfig_live_site, $mainframe, $doc; $doc->addStyleSheet($mosConfig_live_site . '/components/com_booklibrary/includes/booklibrary.css'); $html = "<div class='book_manager_caption' ><img src='./components/com_booklibrary/images/cfg.png' alt ='Config' /> " . _BOOKLIBRARY_ADMIN_ABOUT . "</div>"; $app = JFactory::getApplication(); $app->JComponentTitle = $html; ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script type="text/javascript" language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <form class="bl_admin_about" action="index.php" method="post" name="adminForm" id="adminForm"> <?php if (version_compare(JVERSION, "3.0.0", "ge")) { $options = array(); echo JHtml::_('tabs.start', 'aboutPane', $options); echo JHtml::_('tabs.panel', _BOOKLIBRARY_ADMIN_ABOUT_ABOUT, 'panel_1_id'); } else { $tabs = new mosTabs(0); $tabs->startPane("aboutPane"); $tabs->startTab(_BOOKLIBRARY_ADMIN_ABOUT_ABOUT, "display-page"); } ?> <table class="adminform bl_admin_about_tab_about my_table"> <tr> <td width="80%"> <h3><?php echo _BOOKLIBRARY__HTML_ABOUT; ?> </h3> <?php echo _BOOKLIBRARY__HTML_ABOUT_INTRO; ?> </td> <td width="20%"> <img src="../components/com_booklibrary/images/book.png" align="right" alt="Book" /> </td> </tr> </table> <?php // $tabs->endTab(); // //****************************** tab--2 about ************************************** // $tabs->startTab(_BOOKLIBRARY_ADMIN_ABOUT_RELEASENOTE, "display-page"); // include_once("./components/com_booklibrary/doc/releasenote.php"); // $tabs->endTab(); // //****************************** tab--3 about--changelog.txt *********************** // $tabs->startTab(_BOOKLIBRARY_ADMIN_ABOUT_CHANGELOG, "display-page"); // include_once("./components/com_booklibrary/doc/changelog.html"); // $tabs->endTab(); // // $tabs->endPane(); //*************************** if (version_compare(JVERSION, "3.0.0", "ge")) { echo JHtml::_('tabs.panel', _BOOKLIBRARY_ADMIN_ABOUT_RELEASENOTE, 'panel_2_id'); } else { $tabs->endTab(); $tabs->startTab(_BOOKLIBRARY_ADMIN_ABOUT_RELEASENOTE, "display-page"); } include_once "./components/com_booklibrary/doc/releasenote.php"; if (version_compare(JVERSION, "3.0.0", "ge")) { echo JHtml::_('tabs.panel', _BOOKLIBRARY_ADMIN_ABOUT_CHANGELOG, 'panel_2_id'); } else { $tabs->endTab(); $tabs->startTab(_BOOKLIBRARY_ADMIN_ABOUT_CHANGELOG, "display-page"); } include_once "./components/com_booklibrary/doc/changelog.html"; if (version_compare(JVERSION, "3.0.0", "ge")) { echo JHtml::_('tabs.end'); } else { $tabs->endTab(); $tabs->endPane(); } //*************************** ?> </form> <?php }
function editList($listEdit, $forms, $show) { $lists = listsHTML::prepList($listEdit); $html = $listEdit->html; if ($listEdit->footer == '0') { $show['unsusbcribe'] = false; } echo $forms['main']; $config_tabs = new mosTabs(0); $config_tabs->startPane('acaListEdit'); $config_tabs->startTab(_ACA_LIST_T_GENERAL, 'acaListEdit.general'); listsHTML::description($listEdit, $lists, $show, $html); $config_tabs->endTab(); $config_tabs->startTab(_ACA_LIST_T_TEMPLATE, 'acaListEdit.template'); listsHTML::layout($listEdit, $lists, $show, $html); $config_tabs->endTab(); if (($show['auto_option'] or $listEdit->new_letter == 1) and $GLOBALS[ACA . 'listype2'] == 1 and class_exists('autoresponder')) { $config_tabs->startTab(_ACA_AUTORESP, 'acaListEdit.autorespond'); autoresponder::edit($listEdit, $lists, $show, $html); $config_tabs->endTab(); } if (($listEdit->list_type == '7' or $listEdit->new_letter == 1) and $GLOBALS[ACA . 'listype7'] == 1 and class_exists('autonews')) { $config_tabs->startTab(_ACA_AUTONEWS, 'acaListEdit.smartnews'); autonews::edit($listEdit, $lists, $show, $html); $config_tabs->endTab(); } if ($show['unsusbcribe'] or $show['auto_subscribe'] or $GLOBALS[ACA . 'require_confirmation'] or $show['email_unsubcribe'] and class_exists('auto')) { $config_tabs->startTab(_ACA_LIST_T_SUBSCRIPTION, 'acaListEdit.subscriber'); listsHTML::subscription($listEdit, $lists, $show, $html); $config_tabs->endTab(); } if (class_exists('pro')) { $config_tabs->startTab(_ACA_LIST_ADD_TAB, 'acaListEdit.pro'); pro::editTab($listEdit, $lists, $show, $html); $config_tabs->endTab(); } $config_tabs->endPane(); }
public static function showconfig(&$row, &$lists, $option) { global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_session_type, $mainframe; $tabs = new mosTabs(0); ?> <script type="text/javascript"> <!-- function saveFilePerms() { var f = document.adminForm; if (f.filePermsMode0.checked) f.config_fileperms.value = ''; else { var perms = 0; if (f.filePermsUserRead.checked) perms += 400; if (f.filePermsUserWrite.checked) perms += 200; if (f.filePermsUserExecute.checked) perms += 100; if (f.filePermsGroupRead.checked) perms += 40; if (f.filePermsGroupWrite.checked) perms += 20; if (f.filePermsGroupExecute.checked) perms += 10; if (f.filePermsWorldRead.checked) perms += 4; if (f.filePermsWorldWrite.checked) perms += 2; if (f.filePermsWorldExecute.checked) perms += 1; f.config_fileperms.value = '0'+''+perms; } } function changeFilePermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('filePermsValue').style.display = 'none'; document.getElementById('filePermsTooltip').style.display = ''; document.getElementById('filePermsFlags').style.display = 'none'; break; default: document.getElementById('filePermsValue').style.display = ''; document.getElementById('filePermsTooltip').style.display = 'none'; document.getElementById('filePermsFlags').style.display = ''; } // switch } // if saveFilePerms(); } function saveDirPerms() { var f = document.adminForm; if (f.dirPermsMode0.checked) f.config_dirperms.value = ''; else { var perms = 0; if (f.dirPermsUserRead.checked) perms += 400; if (f.dirPermsUserWrite.checked) perms += 200; if (f.dirPermsUserSearch.checked) perms += 100; if (f.dirPermsGroupRead.checked) perms += 40; if (f.dirPermsGroupWrite.checked) perms += 20; if (f.dirPermsGroupSearch.checked) perms += 10; if (f.dirPermsWorldRead.checked) perms += 4; if (f.dirPermsWorldWrite.checked) perms += 2; if (f.dirPermsWorldSearch.checked) perms += 1; f.config_dirperms.value = '0'+''+perms; } } function changeDirPermsMode(mode) { if(document.getElementById) { switch (mode) { case 0: document.getElementById('dirPermsValue').style.display = 'none'; document.getElementById('dirPermsTooltip').style.display = ''; document.getElementById('dirPermsFlags').style.display = 'none'; break; default: document.getElementById('dirPermsValue').style.display = ''; document.getElementById('dirPermsTooltip').style.display = 'none'; document.getElementById('dirPermsFlags').style.display = ''; } // switch } // if saveDirPerms(); } function submitbutton(pressbutton) { var form = document.adminForm; // do field validation if (form.config_session_type.value != <?php echo $row->config_session_type; ?> ){ if ( confirm('Are you sure you wish to change the `Session Authentication Method`? \n\n This will cause all existing front-end sessions to be deleted \n\n') ) { submitform( pressbutton ); } else { return; } } else { submitform( pressbutton ); } } //--> </script> <form action="index2.php" method="post" name="adminForm"> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <table cellpadding="1" cellspacing="1" border="0" width="100%"> <tr> <td width="250"><table class="adminheading"><tr><th nowrap="nowrap" class="config">Global Configuration</th></tr></table></td> <td width="270"> <span class="componentheading">configuration.php is : <?php echo is_writable('../configuration.php') ? '<b><font color="green"> Writeable</font></b>' : '<b><font color="red"> Unwriteable</font></b>'; ?> </span> </td> <?php if (mosIsChmodable('../configuration.php')) { if (is_writable('../configuration.php')) { ?> <td> <input type="checkbox" id="disable_write" name="disable_write" value="1"/> <label for="disable_write">Make unwriteable after saving</label> </td> <?php } else { ?> <td> <input type="checkbox" id="enable_write" name="enable_write" value="1"/> <label for="enable_write">Override write protection while saving</label> </td> <?php } // if } // if ?> </tr> </table> <?php $tabs->startPane("configPane"); $tabs->startTab("Site", "site-page"); ?> <table class="adminform"> <tr> <td width="185">Site Offline:</td> <td><?php echo $lists['offline']; ?> </td> </tr> <tr> <td valign="top">Offline Message:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_offline_message"><?php echo $row->config_offline_message; ?> </textarea><?php $tip = 'A message that displays if your site is offline'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td valign="top">System Error Message:</td> <td><textarea class="text_area" cols="60" rows="2" style="width:500px; height:40px" name="config_error_message"><?php echo $row->config_error_message; ?> </textarea><?php $tip = 'A message that displays if Joomla! could not connect to the database'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Site Name:</td> <td><input class="text_area" type="text" name="config_sitename" size="50" value="<?php echo $row->config_sitename; ?> "/></td> </tr> <tr> <td>Show Unauthorised Links:</td> <td><?php echo $lists['shownoauth']; $tip = 'If yes, will show links to content to registered content even if you are not logged in. The user will need to login to see the item in full.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Allow User Registration:</td> <td><?php echo $lists['allowUserRegistration']; $tip = 'If yes, allows users to self-register'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Use New Account Activation:</td> <td><?php echo $lists['useractivation']; ?> <?php $tip = 'If yes, the user will be mailed a link to activate their account before they can log in.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Require Unique E-mail:</td> <td><?php echo $lists['uniquemail']; $tip = 'If yes, users cannot share the same e-mail address'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Front-end Login:</td> <td> <?php echo $lists['frontend_login']; ?> <?php $tip = 'If `No`, disables the Front-end login page and module even when associated with a menu item. Will also disable Registration functionality'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Front-end User Params:</td> <td> <?php echo $lists['frontend_userparams']; ?> <?php $tip = 'If `No`, disables the front-end User params functionality'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Debug Site:</td> <td> <?php echo $lists['debug']; ?> <?php $tip = 'If yes, displays diagnostic information and SQL errors if present'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Default WYSIWYG Editor:</td> <td><?php echo $lists['editor']; ?> </td> </tr> <tr> <td>List Length:</td> <td> <?php echo $lists['list_limit']; ?> <?php $tip = 'Sets the default length of lists in the administrator for all users'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Favourites Site Icon:</td> <td> <input class="text_area" type="text" name="config_favicon" size="20" value="<?php echo $row->config_favicon; ?> "/> <?php $tip = 'If left blank or the file cannot be found, the default favicon.ico will be used.'; echo mosToolTip($tip, 'Favourite Icon'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Locale", "Locale-page"); ?> <table class="adminform"> <tr> <td width="185">Language:</td> <td><?php echo $lists['lang']; ?> </td> </tr> <tr> <td width="185">Time Offset:</td> <td> <?php echo $lists['offset']; ?> <?php $tip = "Current date/time configured to display: " . mosCurrentDate(_DATE_FORMAT_LC2); echo mosToolTip($tip); ?> </td> </tr> <tr> <td width="185">Server Offset:</td> <td> <input class="text_area" type="text" name="config_offset" size="15" value="<?php echo $row->config_offset; ?> " disabled="disabled" /> </td> </tr> <tr> <td width="185">Country Locale:</td> <td> <input class="text_area" type="text" name="config_locale" size="15" value="<?php echo $row->config_locale; ?> "/> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Content", "content-page"); ?> <table class="adminform"> <tr> <td colspan="3">* These Parameters control Output elements*<br/><br/></td> </tr> <tr> <td width="200">Linked Titles:</td> <td width="100"><?php echo $lists['link_titles']; ?> </td> <td><?php $tip = 'If yes, the title of content items will be hyperlinked to the item'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td width="200">Read More Link:</td> <td width="100"><?php echo $lists['readmore']; ?> </td> <td><?php $tip = 'If set to show, the read-more link will show if main-text has been provided for the item'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Item Rating/Voting:</td> <td><?php echo $lists['vote']; ?> </td> <td><?php $tip = 'If set to show, a voting system will be enabled for content items'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Author Names:</td> <td><?php echo $lists['hideAuthor']; ?> </td> <td><?php $tip = 'If set to show, the name of the author will be displayed. This a global setting but can be changed at menu and item levels.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Created Date and Time:</td> <td><?php echo $lists['hideCreateDate']; ?> </td> <td><?php $tip = 'If set to show, the date and time an item was created will be displayed. This a global setting but can be changed at menu and item levels.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Modified Date and Time:</td> <td><?php echo $lists['hideModifyDate']; ?> </td> <td><?php $tip = 'If set to show, the date and time an item was last modified will be displayed. This a global setting but can be changed at menu and item levels.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>Hits:</td> <td><?php echo $lists['hits']; ?> </td> <td><?php $tip = 'If set to show, the hits for a particular item will be displayed. This a global setting but can be changed at menu and item levels.'; echo mosToolTip($tip); ?> </td> </tr> <tr> <td>PDF Icon:</td> <td><?php echo $lists['hidePdf']; ?> </td> <?php if (!is_writable("{$mosConfig_absolute_path}/media/")) { echo "<td align=\"left\">"; echo mosToolTip('Option not available as /media directory not writable'); echo "</td>"; } else { ?> <td> </td> <?php } ?> </tr> <tr> <td>Print Icon:</td> <td><?php echo $lists['hidePrint']; ?> </td> <td> </td> </tr> <tr> <td>E-mail Icon:</td> <td><?php echo $lists['hideEmail']; ?> </td> <td> </td> </tr> <tr> <td>Icons:</td> <td><?php echo $lists['icons']; ?> </td> <td><?php echo mosToolTip('Print, PDF and E-mail will utilise Icons or Text'); ?> </td> </tr> <tr> <td>Table of Contents on multi-page items:</td> <td><?php echo $lists['multipage_toc']; ?> </td> <td> </td> </tr> <tr> <td>Back Button:</td> <td><?php echo $lists['back_button']; ?> </td> <td> </td> </tr> <tr> <td>Content Item Navigation:</td> <td><?php echo $lists['item_navigation']; ?> </td> <td> </td> </tr> <tr> <td>Itemid Compatibility Mode:</td> <td><?php echo $lists['itemid_compat']; ?> </td> <td> </td> </tr> </table> <input type="hidden" name="config_multilingual_support" value="<?php echo $row->config_multilingual_support; ?> "> <?php $tabs->endTab(); $tabs->startTab("Database", "db-page"); ?> <table class="adminform"> <tr> <td width="185">Hostname:</td> <td><input class="text_area" type="text" name="config_host" size="25" value="<?php echo $row->config_host; ?> "/></td> </tr> <tr> <td>MySQL Username:</td> <td><input class="text_area" type="text" name="config_user" size="25" value="<?php echo $row->config_user; ?> "/></td> </tr> <tr> <td>MySQL Database:</td> <td><input class="text_area" type="text" name="config_db" size="25" value="<?php echo $row->config_db; ?> "/></td> </tr> <tr> <td>MySQL Database Prefix:</td> <td> <input class="text_area" type="text" name="config_dbprefix" size="10" value="<?php echo $row->config_dbprefix; ?> "/> <?php echo mosWarning('!! DO NOT CHANGE UNLESS YOU HAVE A DATABASE BUILT USING TABLES WITH THE PREFIX YOU ARE SETTING !!'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Server", "server-page"); ?> <table class="adminform"> <tr> <td width="185">Absolute Path:</td> <td width="450"><strong><?php echo $row->config_absolute_path; ?> </strong></td> <td> </td> </tr> <tr> <td>Live Site:</td> <td><strong><?php echo $row->config_live_site; ?> </strong></td> <td> </td> </tr> <tr> <td>Secret Word:</td> <td><strong><?php echo $row->config_secret; ?> </strong></td> <td> </td> </tr> <tr> <td>GZIP Page Compression:</td> <td> <?php echo $lists['gzip']; ?> <?php echo mosToolTip('Compress buffered output if supported'); ?> </td> <td> </td> </tr> <tr> <td>Site Session Lifetime:</td> <td> <input class="text_area" type="text" name="config_lifetime" size="10" value="<?php echo $row->config_lifetime; ?> "/> seconds <?php echo mosWarning('Auto logout after this time of inactivity for <strong>site/front-end</strong> users. The higher the value the greater the security risk!'); ?> </td> <td> </td> </tr> <tr> <td>Admin Session Lifetime:</td> <td> <input class="text_area" type="text" name="config_session_life_admin" size="10" value="<?php echo $row->config_session_life_admin; ?> "/> seconds <?php echo mosWarning('Auto logout after this time of inactivity for <strong>admin/back-end</strong> users. The higher the value the greater the security risk!'); ?> </td> <td> </td> </tr> <tr> <td>Remember Expired Admin page:</td> <td> <?php echo $lists['admin_expired']; ?> <?php echo mosToolTip('If session expires, when you log back in within 10 minutes of logout, you will be redirected on login to the page you were trying to access when you were logged out'); ?> </td> <td> </td> </tr> <tr> <td>Session Authentication Method:</td> <td> <?php echo $lists['session_type']; ?> <?php echo mosWarning('Do not change unless you know what you are doing!<br /><br /> If you have a number of users using AOL or behind Proxy banks, you might consider using the Level 2 setting'); ?> </td> <td> </td> </tr> <tr> <td>Error Reporting:</td> <td><?php echo $lists['error_reporting']; ?> </td> <td> </td> </tr> <tr> <td>Help Server:</td> <td><input class="text_area" type="text" name="config_helpurl" size="50" value="<?php echo $row->config_helpurl; ?> "/></td> </tr> <tr> <?php $mode = 0; $flags = 0644; if ($row->config_fileperms != '') { $mode = 1; $flags = octdec($row->config_fileperms); } // if ?> <td valign="top">File Creation:</td> <td> <fieldset><legend>File Permissions</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="filePermsMode0" name="filePermsMode" value="0" onclick="changeFilePermsMode(0)"<?php if (!$mode) { echo ' checked="checked"'; } ?> /></td> <td><label for="filePermsMode0">Dont CHMOD new files (use server defaults)</label></td> </tr> <tr> <td><input type="radio" id="filePermsMode1" name="filePermsMode" value="1" onclick="changeFilePermsMode(1)"<?php if ($mode) { echo ' checked="checked"'; } ?> /></td> <td> <label for="filePermsMode1">CHMOD new files</label> <span id="filePermsValue"<?php if (!$mode) { echo ' style="display:none"'; } ?> > to: <input class="text_area" type="text" readonly="readonly" name="config_fileperms" size="4" value="<?php echo $row->config_fileperms; ?> "/> </span> <span id="filePermsTooltip"<?php if ($mode) { echo ' style="display:none"'; } ?> > <?php echo mosToolTip('Select this option to define permission flags for new created files'); ?> </span> </td> </tr> <tr id="filePermsFlags"<?php if (!$mode) { echo ' style="display:none"'; } ?> > <td> </td> <td> <table cellpadding="0" cellspacing="1" border="0"> <tr> <td style="padding:0px">User:</td> <td style="padding:0px"><input type="checkbox" id="filePermsUserRead" name="filePermsUserRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 0400) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsUserRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsUserWrite" name="filePermsUserWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 0200) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsUserWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsUserExecute" name="filePermsUserExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 0100) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="filePermsUserExecute">execute</label></td> </tr> <tr> <td style="padding:0px">Group:</td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupRead" name="filePermsGroupRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 040) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsGroupRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupWrite" name="filePermsGroupWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 020) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsGroupWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsGroupExecute" name="filePermsGroupExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 010) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" width="70"><label for="filePermsGroupExecute">execute</label></td> <td><input type="checkbox" id="applyFilePerms" name="applyFilePerms" value="1"/></td> <td nowrap="nowrap"> <label for="applyFilePerms"> Apply to existing files <?php echo mosWarning('Checking here will apply the permission flags to <em>all existing files</em> of the site.<br/>' . '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>'); ?> </label> </td> </tr> <tr> <td style="padding:0px">World:</td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldRead" name="filePermsWorldRead" value="1" onclick="saveFilePerms()"<?php if ($flags & 04) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsWorldRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldWrite" name="filePermsWorldWrite" value="1" onclick="saveFilePerms()"<?php if ($flags & 02) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="filePermsWorldWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="filePermsWorldExecute" name="filePermsWorldExecute" value="1" onclick="saveFilePerms()"<?php if ($flags & 01) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="4"><label for="filePermsWorldExecute">execute</label></td> </tr> </table> </td> </tr> </table> </fieldset> </td> <td> </td> </tr> <tr> <?php $mode = 0; $flags = 0755; if ($row->config_dirperms != '') { $mode = 1; $flags = octdec($row->config_dirperms); } // if ?> <td valign="top">Directory Creation:</td> <td> <fieldset><legend>Directory Permissions</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="dirPermsMode0" name="dirPermsMode" value="0" onclick="changeDirPermsMode(0)"<?php if (!$mode) { echo ' checked="checked"'; } ?> /></td> <td><label for="dirPermsMode0">Dont CHMOD new directories (use server defaults)</label></td> </tr> <tr> <td><input type="radio" id="dirPermsMode1" name="dirPermsMode" value="1" onclick="changeDirPermsMode(1)"<?php if ($mode) { echo ' checked="checked"'; } ?> /></td> <td> <label for="dirPermsMode1">CHMOD new directories</label> <span id="dirPermsValue"<?php if (!$mode) { echo ' style="display:none"'; } ?> > to: <input class="text_area" type="text" readonly="readonly" name="config_dirperms" size="4" value="<?php echo $row->config_dirperms; ?> "/> </span> <span id="dirPermsTooltip"<?php if ($mode) { echo ' style="display:none"'; } ?> > <?php echo mosToolTip('Select this option to define permission flags for new created directories'); ?> </span> </td> </tr> <tr id="dirPermsFlags"<?php if (!$mode) { echo ' style="display:none"'; } ?> > <td> </td> <td> <table cellpadding="1" cellspacing="0" border="0"> <tr> <td style="padding:0px">User:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserRead" name="dirPermsUserRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 0400) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsUserRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserWrite" name="dirPermsUserWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 0200) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsUserWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsUserSearch" name="dirPermsUserSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 0100) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="dirPermsUserSearch">search</label></td> </tr> <tr> <td style="padding:0px">Group:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupRead" name="dirPermsGroupRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 040) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsGroupRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupWrite" name="dirPermsGroupWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 020) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsGroupWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsGroupSearch" name="dirPermsGroupSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 010) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" width="70"><label for="dirPermsGroupSearch">search</label></td> <td><input type="checkbox" id="applyDirPerms" name="applyDirPerms" value="1"/></td> <td nowrap="nowrap"> <label for="applyDirPerms"> Apply to existing directories <?php echo mosWarning('Checking here will apply the permission flags to <em>all existing directories</em> of the site.<br/>' . '<b>INAPPROPRIATE USAGE OF THIS OPTION MAY RENDER THE SITE INOPERATIVE!</b>'); ?> </label> </td> </tr> <tr> <td style="padding:0px">World:</td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldRead" name="dirPermsWorldRead" value="1" onclick="saveDirPerms()"<?php if ($flags & 04) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsWorldRead">read</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldWrite" name="dirPermsWorldWrite" value="1" onclick="saveDirPerms()"<?php if ($flags & 02) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px"><label for="dirPermsWorldWrite">write</label></td> <td style="padding:0px"><input type="checkbox" id="dirPermsWorldSearch" name="dirPermsWorldSearch" value="1" onclick="saveDirPerms()"<?php if ($flags & 01) { echo ' checked="checked"'; } ?> /></td> <td style="padding:0px" colspan="3"><label for="dirPermsWorldSearch">search</label></td> </tr> </table> </td> </tr> </table> </fieldset> </td> <td> </td> </tr> <tr> <?php $rgmode = 0; if (defined('RG_EMULATION')) { $rgmode = RG_EMULATION; } ?> <td valign="top">Register Globals Emulation:</td> <td> <fieldset><legend>Register Globals Emulation</legend> <table cellpadding="1" cellspacing="1" border="0"> <tr> <td><input type="radio" id="rgemulation" name="rgemulation" value="0"<?php if (!$rgmode) { echo ' checked="checked"'; } ?> /></td> <td><label for="rgemulation">OFF - more secure and the preferred setting</label></td> </tr> <tr> <td><input type="radio" id="rgemulation" name="rgemulation" value="1"<?php if ($rgmode) { echo ' checked="checked"'; } ?> /></td> <td><label for="rgemulation">ON - better compatibility but less secure</label></td> </tr> </tr> </table> </fieldset> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Metadata", "metadata-page"); ?> <table class="adminform"> <tr> <td width="185" valign="top">Global Site Meta Description:</td> <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaDesc"><?php echo $row->config_MetaDesc; ?> </textarea></td> </tr> <tr> <td valign="top">Global Site Meta Keywords:</td> <td><textarea class="text_area" cols="50" rows="3" style="width:500px; height:50px" name="config_MetaKeys"><?php echo $row->config_MetaKeys; ?> </textarea></td> </tr> <tr> <td valign="top">Show Title Meta Tag:</td> <td> <?php echo $lists['MetaTitle']; ?> <?php echo mosToolTip('Show the title meta tag when viewing content items'); ?> </td> </tr> <tr> <td valign="top">Show Author Meta Tag:</td> <td> <?php echo $lists['MetaAuthor']; ?> <?php echo mosToolTip('Show the author meta tag when viewing content items'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Mail", "mail-page"); ?> <table class="adminform"> <tr> <td width="185">Mailer:</td> <td><?php echo $lists['mailer']; ?> </td> </tr> <tr> <td>Mail From:</td> <td><input class="text_area" type="text" name="config_mailfrom" size="50" value="<?php echo $row->config_mailfrom; ?> "/></td> </tr> <tr> <td>From Name:</td> <td><input class="text_area" type="text" name="config_fromname" size="50" value="<?php echo $row->config_fromname; ?> "/></td> </tr> <tr> <td>Sendmail Path:</td> <td><input class="text_area" type="text" name="config_sendmail" size="50" value="<?php echo $row->config_sendmail; ?> "/></td> </tr> <tr> <td>SMTP Auth:</td> <td><?php echo $lists['smtpauth']; ?> </td> </tr> <tr> <td>SMTP User:</td> <td><input class="text_area" type="text" name="config_smtpuser" size="50" value="<?php echo $row->config_smtpuser; ?> "/></td> </tr> <tr> <td>SMTP Pass:</td> <td><input class="text_area" type="text" name="config_smtppass" size="50" value="<?php echo $row->config_smtppass; ?> "/></td> </tr> <tr> <td>SMTP Host:</td> <td><input class="text_area" type="text" name="config_smtphost" size="50" value="<?php echo $row->config_smtphost; ?> "/></td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Cache", "cache-page"); ?> <table class="adminform" border="0"> <?php if (is_writeable($row->config_cachepath)) { ?> <tr> <td width="185">Caching:</td> <td width="500"><?php echo $lists['caching']; ?> </td> <td> </td> </tr> <?php } ?> <tr> <td>Cache Folder:</td> <td> <input class="text_area" type="text" name="config_cachepath" size="50" value="<?php echo $row->config_cachepath; ?> "/> <?php if (is_writeable($row->config_cachepath)) { echo mosToolTip('Current cache is directory is <b>Writeable</b>'); } else { echo mosWarning('The cache directory is UNWRITEABLE - please set this directory to CHMOD755 before turning on the cache'); } ?> </td> <td> </td> </tr> <tr> <td>Cache Time:</td> <td><input class="text_area" type="text" name="config_cachetime" size="5" value="<?php echo $row->config_cachetime; ?> "/> seconds</td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Statistics", "stats-page"); ?> <table class="adminform"> <tr> <td width="185">Statistics:</td> <td width="100"><?php echo $lists['enable_stats']; ?> </td> <td><?php echo mostooltip('Enable/disable collection of site statistics'); ?> </td> </tr> <tr> <td>Log Content Hits by Date:</td> <td><?php echo $lists['log_items']; ?> </td> <td><span class="error"><?php echo mosWarning('WARNING : Large amounts of data will be collected'); ?> </span></td> </tr> <tr> <td>Log Search Strings:</td> <td><?php echo $lists['log_searches']; ?> </td> <td> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("SEO", "seo-page"); ?> <table class="adminform"> <tr> <td width="200"><strong>Search Engine Optimization</strong></td> <td width="100"> </td> <td> </td> </tr> <tr> <td>Search Engine Friendly URLs:</td> <td><?php echo $lists['sef']; ?> </td> <td><span class="error"><?php echo mosWarning('Apache only! Rename htaccess.txt to .htaccess before activating'); ?> </span></td> </tr> <tr> <td>Dynamic Page Titles:</td> <td><?php echo $lists['pagetitles']; ?> </td> <td><?php echo mosToolTip('Dynamically changes the page title to reflect current content viewed'); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); // show security setting check josSecurityCheck(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> "/> <input type="hidden" name="config_absolute_path" value="<?php echo $row->config_absolute_path; ?> "/> <input type="hidden" name="config_live_site" value="<?php echo $row->config_live_site; ?> "/> <input type="hidden" name="config_secret" value="<?php echo $row->config_secret; ?> "/> <input type="hidden" name="task" value=""/> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
function edit(&$menu, &$lists, &$params, $option) { /* in the HTML below, references to "section" were changed to "section" */ global $mosConfig_live_site, $adminLanguage; $tabs = new mosTabs(0); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { if (pressbutton == 'cancel') { submitform( pressbutton ); return; } var form = document.adminForm; <?php if (!$menu->id) { ?> if ( form.name.value == '' ) { alert( 'This Menu item must have a title' ); return; } else { submitform( pressbutton ); } <?php } else { ?> if ( form.name.value == '' ) { alert( 'This Menu item must have a title' ); } else { submitform( pressbutton ); } <?php } ?> } </script> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> <?php echo $menu->id ? $adminLanguage->A_EDIT : $adminLanguage->A_COMP_ADD; ?> <?php echo $adminLanguage->A_COMP_MENUS_MENU_ITEM; ?> :: <?php echo $adminLanguage->A_COMP_MENUS_BLOG; ?> - <?php echo $adminLanguage->A_COMP_MENUS_CONT_SEC_MULTI; ?> </th> </tr> </table> <?php $tabs->startPane("module"); $tabs->startTab($adminLanguage->A_DETAILS, "Details-page"); ?> <table class="adminform"> <tr> <td width="10%" align="right"><?php echo $adminLanguage->A_COMP_NAME; ?> :</td> <td width="200px"> <input class="inputbox" type="text" name="name" size="30" maxlength="100" value="<?php echo $menu->name; ?> " /> </td> <td> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_SECTION; ?> :</td> <td colspan="2"> <?php echo $lists['sectionid']; ?> </td> </tr> <tr> <td align="right"><?php echo $adminLanguage->A_COMP_ADMIN_URL; ?> :</td> <td colspan="2"> <?php echo $lists['link']; ?> </td> </tr> <tr> <td align="right"><?php echo $adminLanguage->A_COMP_MENUS_CIL_PARENT; ?> :</td> <td colspan="2"> <?php echo $lists['parent']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_ORDERING; ?> :</td> <td colspan="2"> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> :</td> <td colspan="2"> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_PUBLISHED; ?> :</td> <td colspan="2"> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $menu->id; ?> " /> <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?> " /> <input type="hidden" name="type" value="<?php echo $menu->type; ?> " /> <input type="hidden" name="link" value="index.php?option=com_content&task=blogsection&id=0" /> <input type="hidden" name="componentid" value="0" /> <input type="hidden" name="task" value="" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
function layout($mailingEdit, $lists, $show) { if (ACA_CMSTYPE) { $editor =& JFactory::getEditor(); } if (!empty($_SESSION['skip_subscribers' . $mailingEdit->id])) { echo 'If you click on the Send button, the process will skip the first ' . $_SESSION['skip_subscribers' . $mailingEdit->id] . ' subscribers'; } ?> <fieldset class="acajoomcss"> <legend><?php echo @constant($GLOBALS[ACA . 'listname' . $mailingEdit->list_type]) . ' ' . _ACA_CONTENT; ?> </legend> <table class="acajoomtable" cellspacing="1" width="99%"> <tbody> <tr> <td valign="top"> <?php mailingsHTML::subject($mailingEdit, $lists, $show); if ($show['htmlcontent']) { if ($mailingEdit->html != 0) { if (ACA_CMSTYPE) { echo $editor->display('content', $mailingEdit->htmlcontent, '100%', '400', '80', '30'); } else { editorArea('editor2', $mailingEdit->htmlcontent, 'content', '100%;', '400', '80', '30'); } } else { echo '<textarea name="content" rows="20" cols="75">' . $mailingEdit->htmlcontent . '</textarea>'; } } ?> </td> <td valign="top" width="450px"> <?php if (ACA_CMSTYPE) { $config_tabs = new mosTabs15(0); } else { $config_tabs = new mosTabs(0); } //endif $config_tabs->startPane('acaMailingOptions'); $config_tabs->startTab(_ACA_LIST_T_GENERAL, 'acaMailingOptions.general'); mailingsHTML::description($mailingEdit, $lists, $show); $config_tabs->endTab(); $config_tabs->startTab(_ACA_LIST_OPT_TAG, 'acaMailingOptions.options'); echo '<div style"width:280px;"><span class="editlinktip">'; $tip = _ACA_INFO_MAILING_CONTENT; $title = _ACA_CONTENT; echo compa::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0); echo '</span><br /><strong>' . _ACA_USABLE_TAGS . '</strong><br />'; echo _ACA_NAMEREP . '<br />' . _ACA_FIRST_NAME_REP; if ($mailingEdit->list_type == 7) { echo '<br />' . _ACA_TAGS_AUTONEWS; } if (class_exists('auto')) { echo '<br />' . _ACA_TAGS_ISSUE_NB . '<br />'; echo '<br />' . _ACA_TAGS_DATE . '<br />'; } if (class_exists('aca_tags')) { echo '<br />' . _ACA_TAGS_CB . '<br />'; } echo '</div>'; $config_tabs->endTab(); if (!ACA_CMSTYPE) { $config_tabs->startTab(_ACA_LIST_OPT_IMG, 'acaMailingOptions.joom15'); mailingsHTML::images($lists); $config_tabs->endTab(); } if ($show['sitecontent']) { $config_tabs->startTab(_ACA_LIST_OPT_CTT, 'acaMailingOptions.content'); echo _ACA_CONTENT_ITEM_SELECT_T; //echo _ACA_INSERT_CONTENT.'<br />'; if (ACA_CMSTYPE) { global $mainframe; JPluginHelper::importPlugin('acajoom'); $bot_results = $mainframe->triggerEvent('acajoombot_editabs'); } else { global $_MAMBOTS; $_MAMBOTS->loadBotGroup('acajoom'); $bot_results = $_MAMBOTS->trigger('acajoombot_editabs'); } if (!empty($bot_results)) { foreach ($bot_results as $bot_result) { echo $bot_result[1]; } } $config_tabs->endTab(); } if ($GLOBALS[ACA . 'show_jcalpro'] and class_exists('pro')) { $config_tabs->startTab(_ACA_SHOW_JCALPRO, 'acaMailingOptions.jcalpro'); mailingsHTML::jcalpro(); $config_tabs->endTab(); } if ($show['attachement']) { $config_tabs->startTab(_ACA_ATTACHMENTS, 'acaMailingOptions.attachement'); mailingsHTML::attachement($mailingEdit, $lists, $show); $config_tabs->endTab(); } $config_tabs->endPane(); ?> </td> </tr> <?php if ($show['textcontent'] and $mailingEdit->html) { ?> <tr> <td> <textarea name="alt_content" rows="20" cols="70" style="width: 100%; height: 400px;"><?php echo $mailingEdit->textonly; ?> </textarea> </td> <td class="key" style="vertical-align: top;"> <span class="editlinktip"> <?php $tip = _ACA_INFO_MAILING_NOHTML; $title = _ACA_NONHTML; echo compa::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0); ?> </span><br /> <strong><?php echo _ACA_USABLE_TAGS; ?> </strong><br /> <?php echo _ACA_NAMEREP . '<br />' . _ACA_FIRST_NAME_REP; if ($mailingEdit->list_type == 7) { echo '<br />' . _ACA_TAGS_AUTONEWS; } ?> </td> </tr> <?php } ?> </tbody> </table> </fieldset> <?php }
function edit(&$menu, &$components, &$lists, &$params, $option) { global $mosConfig_live_site, $adminLanguage; $tabs = new mosTabs(0); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script language="javascript" type="text/javascript"> function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } var comp_links = new Array; <?php foreach ($components as $row) { ?> comp_links[ <?php echo $row->value; ?> ] = 'index.php?<?php echo addslashes($row->link); ?> '; <?php } ?> if ( form.id.value == 0 ) { var comp_id = getSelectedValue( 'adminForm', 'componentid' ); form.link.value = comp_links[comp_id]; } else { form.link.value = comp_links[form.componentid.value]; } if ( trim( form.name.value ) == "" ){ alert( '<?php echo $adminLanguage->A_COMP_MENUS_CMP_ITEM_NAME; ?> ' ); } else if (form.componentid.value == ""){ alert( '<?php echo $adminLanguage->A_COMP_MENUS_CMP_SELECT_CMP; ?> ' ); } else { submitform( pressbutton ); } } </script> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th> <?php echo $menu->id ? $adminLanguage->A_COMP_EDIT : $adminLanguage->A_COMP_ADD; ?> <?php echo $adminLanguage->A_COMP_MENUS_CMP_ITEM_COMP; ?> </th> </tr> </table> <?php $tabs->startPane("module"); $tabs->startTab($adminLanguage->A_DETAILS, "Details-page"); ?> <table class="adminform"> <tr> <td width="10%" align="right"><?php echo $adminLanguage->A_COMP_NAME; ?> :</td> <td width="80%"> <input class="inputbox" type="text" name="name" size="50" maxlength="100" value="<?php echo htmlspecialchars($menu->name, ENT_QUOTES); ?> " /> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_MENUS_COMP; ?> :</td> <td> <?php echo $lists['componentid']; ?> </td> </tr> <tr> <td width="10%" align="right"><?php echo $adminLanguage->A_COMP_MENUS_URL; ?> :</td> <td width="80%"> <?php echo $lists['link']; ?> </td> </tr> <tr> <td align="right"><?php echo $adminLanguage->A_COMP_MENUS_CIL_PARENT; ?> </td> <td> <?php echo $lists['parent']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_ORDERING; ?> :</td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_ACCESS_LEVEL; ?> :</td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"><?php echo $adminLanguage->A_COMP_PUBLISHED; ?> :</td> <td> <?php echo $lists['published']; ?> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab($adminLanguage->A_COMP_CONT_PARAMETERS, "params-page"); ?> <table class="adminform"> <tr> <td> <?php if ($menu->id) { echo $params->render(); } else { ?> <strong><?php echo $adminLanguage->A_COMP_MENUS_PARAMETERS_AVAILABLE; ?> </strong> <?php } ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="id" value="<?php echo $menu->id; ?> " /> <input type="hidden" name="link" value="" /> <input type="hidden" name="menutype" value="<?php echo $menu->menutype; ?> " /> <input type="hidden" name="type" value="<?php echo $menu->type; ?> " /> <input type="hidden" name="task" value="" /> </form> <script language="Javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <?php }
/** * Writes the edit form for new and existing content item * * A new record is defined when <var>$row</var> is passed with the <var>id</var> * property set to 0. * @param mosContent The category object * @param string The html for the groups select list */ function editContent(&$row, $section, &$lists, &$sectioncategories, &$images, &$params, $option, $redirect, &$menus) { global $database; mosMakeHtmlSafe($row); $nullDate = $database->getNullDate(); $create_date = null; if ($row->created != $nullDate) { $create_date = mosFormatDate($row->created, '%A, %d %B %Y %H:%M', '0'); } $mod_date = null; if ($row->modified != $nullDate) { $mod_date = mosFormatDate($row->modified, '%A, %d %B %Y %H:%M', '0'); } $tabs = new mosTabs(1); // used to hide "Reset Hits" when hits = 0 if (!$row->hits) { $visibility = "style='display: none; visibility: hidden;'"; } else { $visibility = ""; } mosCommonHTML::loadOverlib(); mosCommonHTML::loadCalendar(); ?> <script language="javascript" type="text/javascript"> <!-- var sectioncategories = new Array; <?php $i = 0; foreach ($sectioncategories as $k => $items) { foreach ($items as $v) { echo "sectioncategories[" . $i++ . "] = new Array( '{$k}','" . addslashes($v->id) . "','" . addslashes($v->name) . "' );\t"; } } ?> var folderimages = new Array; <?php $i = 0; foreach ($images as $k => $items) { foreach ($items as $v) { echo "folderimages[" . $i++ . "] = new Array( '{$k}','" . addslashes(ampReplace($v->value)) . "','" . addslashes(ampReplace($v->text)) . "' );\t"; } } ?> function submitbutton(pressbutton) { var form = document.adminForm; if ( pressbutton == 'menulink' ) { if ( form.menuselect.value == "" ) { alert( "Selecione um menu" ); return; } else if ( form.link_name.value == "" ) { alert( "Por favor, informe um nome para este item do menu" ); return; } } if (pressbutton == 'cancel') { submitform( pressbutton ); return; } // assemble the images back into one field var temp = new Array; for (var i=0, n=form.imagelist.options.length; i < n; i++) { temp[i] = form.imagelist.options[i].value; } form.images.value = temp.join( '\n' ); // do field validation if (form.title.value == ""){ alert( "Item de conteúdo deve ter um título" ); } else if (form.sectionid.value == "-1"){ alert( "Você deve selecionar uma seção." ); } else if (form.catid.value == "-1"){ alert( "Você deve selecionar uma categoria." ); } else if (form.catid.value == ""){ alert( "Você deve selecionar uma categoria." ); } else { <?php getEditorContents('editor1', 'introtext'); ?> <?php getEditorContents('editor2', 'fulltext'); ?> submitform( pressbutton ); } } //--> </script> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th class="edit"> Itens de Conteúdo: <small> <?php echo $row->id ? 'Editar' : 'Novo'; ?> </small> <?php if ($row->id) { ?> <small><small> [ Seção: <?php echo $section; ?> ] </small></small> <?php } ?> </th> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="60%" valign="top"> <table width="100%" class="adminform"> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <th colspan="4"> Detalhes do Item </th> </tr> <tr> <td> Título: </td> <td> <input class="text_area" type="text" name="title" size="30" maxlength="100" value="<?php echo $row->title; ?> " /> </td> <td> Seção: </td> <td> <?php echo $lists['sectionid']; ?> </td> </tr> <tr> <td> Sub-Título: </td> <td> <input name="title_alias" type="text" class="text_area" id="title_alias" value="<?php echo $row->title_alias; ?> " size="30" maxlength="100" /> </td> <td> Categoria: </td> <td> <?php echo $lists['catid']; ?> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> Texto de Introdução: (necessário) <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor1', $row->introtext, 'introtext', '100%;', '350', '75', '20'); ?> </td> </tr> <tr> <td width="100%"> Texto principal: (opcional) <br /><?php // parameters : areaname, content, hidden field, width, height, rows, cols editorArea('editor2', $row->fulltext, 'fulltext', '100%;', '400', '75', '30'); ?> </td> </tr> </table> </td> <td valign="top" width="40%"> <?php $tabs->startPane("content-pane"); $tabs->startTab("Publicação", "publish-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Info da Publicação </th> </tr> <tr> <td valign="top" align="right" width="120"> Exibir na Página Inicial: </td> <td> <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> Publicado: </td> <td> <input type="checkbox" name="published" value="1" <?php echo $row->state ? 'checked="checked"' : ''; ?> /> </td> </tr> <tr> <td valign="top" align="right"> Nível de Acesso: </td> <td> <?php echo $lists['access']; ?> </td> </tr> <tr> <td valign="top" align="right"> Apelido do Autor: </td> <td> <input type="text" name="created_by_alias" size="30" maxlength="100" value="<?php echo $row->created_by_alias; ?> " class="text_area" /> </td> </tr> <tr> <td valign="top" align="right"> Alterar Autor: </td> <td> <?php echo $lists['created_by']; ?> </td> </tr> <tr> <td valign="top" align="right">Ordem:</td> <td> <?php echo $lists['ordering']; ?> </td> </tr> <tr> <td valign="top" align="right"> Alterar Data de Criação </td> <td> <input class="text_area" type="text" name="created" id="created" size="25" maxlength="19" value="<?php echo $row->created; ?> " /> <input name="reset" type="reset" class="button" onclick="return showCalendar('created', 'y-mm-dd');" value="..." /> </td> </tr> <tr> <td valign="top" align="right"> Início da Publicação: </td> <td> <input class="text_area" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up; ?> " /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');" /> </td> </tr> <tr> <td valign="top" align="right"> Fim da Publicação: </td> <td> <input class="text_area" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down; ?> " /> <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');" /> </td> </tr> </table> <br /> <table class="adminform"> <?php if ($row->id) { ?> <tr> <td> <strong>ID do conteúdo:</strong> </td> <td> <?php echo $row->id; ?> </td> </tr> <?php } ?> <tr> <td width="120" valign="top" align="right"> <strong>Estado:</strong> </td> <td> <?php echo $row->state > 0 ? 'Publicado' : ($row->state < 0 ? 'Arquivado' : 'Rascunho não publicado'); ?> </td> </tr> <tr > <td valign="top" align="right"> <strong> Acessos </strong>: </td> <td> <?php echo $row->hits; ?> <div <?php echo $visibility; ?> > <input name="reset_hits" type="button" class="button" value="Reiniciar Contagem" onclick="submitbutton('resethits');" /> </div> </td> </tr> <tr> <td valign="top" align="right"> <strong> Revisão </strong>: </td> <td> <?php echo $row->version; ?> vez(es) </td> </tr> <tr> <td valign="top" align="right"> <strong> Criado </strong> </td> <td> <?php if (!$create_date) { ?> Novo documento <?php } else { echo $create_date; } ?> </td> </tr> <tr> <td valign="top" align="right"> <strong> Última Alteração </strong> </td> <td> <?php if (!$mod_date) { ?> Não alterado <?php } else { echo $mod_date; ?> <br /> <?php echo $row->modifier; } ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Imagens", "images-page"); ?> <table class="adminform" width="100%"> <tr> <th colspan="2"> Controle do MOSImage </th> </tr> <tr> <td colspan="2"> <table width="100%"> <tr> <td width="48%" valign="top"> <div align="center"> Imagens na Galeria: <br /> <?php echo $lists['imagefiles']; ?> </div> </td> <td width="2%"> <input class="button" type="button" value=">>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" title="Adicionar"/> <br /> <input class="button" type="button" value="<<" onclick="delSelectedFromList('adminForm','imagelist')" title="Remover"/> </td> <td width="48%"> <div align="center"> Imagens no Artigo: <br /> <?php echo $lists['imagelist']; ?> <br /> <input class="button" type="button" value="Para cima" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" /> <input class="button" type="button" value="Para baixo" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" /> </div> </td> </tr> </table> Sub-pastas: <?php echo $lists['folders']; ?> </td> </tr> <tr valign="top"> <td> <div align="center"> Imagem de amostra:<br/> <img name="view_imagefiles" src="../images/M_images/blank.png" alt="Imagem vazia padrão" width="100" /> </div> </td> <td valign="top"> <div align="center"> Imagem Ativa:<br/> <img name="view_imagelist" src="../images/M_images/blank.png" alt="Imagem Ativa" width="100" /> </div> </td> </tr> <tr> <td colspan="2"> Edite a imagem selecionada: <table> <tr> <td align="right"> Fonte: </td> <td> <input class="text_area" type="text" name= "_source" value="" /> </td> </tr> <tr> <td align="right"> Alinhamento: </td> <td> <?php echo $lists['_align']; ?> </td> </tr> <tr> <td align="right"> Texto Alt: </td> <td> <input class="text_area" type="text" name="_alt" value="" /> </td> </tr> <tr> <td align="right"> Borda: </td> <td> <input class="text_area" type="text" name="_border" value="" size="3" maxlength="1" /> </td> </tr> <tr> <td align="right"> Sub-Título: </td> <td> <input class="text_area" type="text" name="_caption" value="" size="30" /> </td> </tr> <tr> <td align="right"> Posição do Sub-Título: </td> <td> <?php echo $lists['_caption_position']; ?> </td> </tr> <tr> <td align="right"> Alinhamento do Sub-Título: </td> <td> <?php echo $lists['_caption_align']; ?> </td> </tr> <tr> <td align="right"> Largura Sub-Título: </td> <td> <input class="text_area" type="text" name="_width" value="" size="5" maxlength="5" /> </td> </tr> <tr> <td colspan="2"> <input class="button" type="button" value="Aplicar" onclick="applyImageProps()" /> </td> </tr> </table> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Parâmetros", "params-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Controle de Parâmetros </th> </tr> <tr> <td> Estes parâmetros somente controlam o que você vê quando clica para visualizar um item completamente <br /><br /> </td> </tr> <tr> <td> <?php echo $params->render(); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Meta dados", "metadata-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Meta Dados </th> </tr> <tr> <td> Descrição: <br /> <textarea class="text_area" cols="30" rows="3" style="width: 350px; height: 50px" name="metadesc"><?php echo str_replace('&', '&', $row->metadesc); ?> </textarea> </td> </tr> <tr> <td> Palavras Chaves: <br /> <textarea class="text_area" cols="30" rows="3" style="width: 350px; height: 50px" name="metakey"><?php echo str_replace('&', '&', $row->metakey); ?> </textarea> </td> </tr> <tr> <td> <input type="button" class="button" value="Adicionar titulo Seção/Categoria/Título" onclick="f=document.adminForm;f.metakey.value=document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].text+', '+getSelectedText('adminForm','catid')+', '+f.title.value+f.metakey.value;" /> </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab("Link para o Menu", "link-page"); ?> <table class="adminform"> <tr> <th colspan="2"> Link para o Menu </th> </tr> <tr> <td colspan="2"> Isto irá criar um 'Link - Item de Conteúdo' no menu que você selecionou <br /><br /> </td> </tr> <tr> <td valign="top" width="90"> Selecione um Menu </td> <td> <?php echo $lists['menuselect']; ?> </td> </tr> <tr> <td valign="top" width="90"> Nome do Menu </td> <td> <input type="text" name="link_name" class="inputbox" value="" size="30" /> </td> </tr> <tr> <td> </td> <td> <input name="menu_link" type="button" class="button" value="Link para o Menu" onclick="submitbutton('menulink');" /> </td> </tr> <tr> <th colspan="2"> Links de Menu Existentes </th> </tr> <?php if ($menus == NULL) { ?> <tr> <td colspan="2"> Nenhum </td> </tr> <?php } else { mosCommonHTML::menuLinksContent($menus); } ?> <tr> <td colspan="2"> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="version" value="<?php echo $row->version; ?> " /> <input type="hidden" name="mask" value="0" /> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="images" value="" /> <input type="hidden" name="hidemainmenu" value="0" /> <input type="hidden" name="<?php echo josSpoofValue(); ?> " value="1" /> </form> <?php }
alert( "<?php echo T_('You must provide a character encoding.'); ?> " ); } else if (form.dateformat.value == "") { alert( "<?php echo T_('You must provide a date format.'); ?> " ); } else { submitform( pressbutton ); } } </script> <?php $tabs = new mosTabs(1); mosCommonHTML::loadOverlib(); mosCommonHTML::loadCalendar(); ?> <table class="adminheading"> <tr> <th class="langmanager"> <?php echo T_('New Language'); ?> </th> <td style="white-space: nowrap;text-align:right"> <?php echo mosCurrentDate(); ?>