Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Sat, Aug 16, 3:15 PM

in-portal

Index: branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php (revision 7856)
@@ -0,0 +1,209 @@
+<?php
+
+ class kThemesHelper extends kHelper {
+
+ /**
+ * Where all themes are located
+ *
+ * @var string
+ */
+ var $themesFolder = '';
+
+ /**
+ * Temporary array when all theme files from db are stored
+ *
+ * @var Array
+ */
+ var $themeFiles = Array ();
+
+ function kThemesHelper()
+ {
+ parent::kHelper();
+ $this->themesFolder = FULL_PATH.'/themes';
+ }
+
+ /**
+ * Updates file system changes to database for selected theme
+ *
+ * @param string $theme_name
+ *
+ * @return mixed returns ID of created/used theme or false, if none created
+ */
+ function refreshTheme($theme_name)
+ {
+ if (!file_exists($this->themesFolder.'/'.$theme_name)) {
+ // requested theme was not found on hdd
+ return false;
+ }
+
+ $id_field = $this->Application->getUnitOption('theme', 'IDField');
+ $table_name = $this->Application->getUnitOption('theme', 'TableName');
+
+ $sql = 'SELECT '.$id_field.'
+ FROM '.$table_name.'
+ WHERE Name = '.$this->Conn->qstr($theme_name);
+ $theme_id = $this->Conn->GetOne($sql);
+
+ $this->themeFiles = Array ();
+ if ($theme_id) {
+ // reset found mark for every themes file (if theme is not new)
+ $sql = 'UPDATE '.TABLE_PREFIX.'ThemeFiles
+ SET FileFound = 0
+ WHERE ThemeId = '.$theme_id;
+ $this->Conn->Query($sql);
+
+ // get all theme files from db
+ $sql = 'SELECT FileId, CONCAT(FilePath, "/", FileName) AS FullPath
+ FROM '.TABLE_PREFIX.'ThemeFiles
+ WHERE ThemeId = '.$theme_id;
+ $this->themeFiles = $this->Conn->GetCol($sql, 'FullPath');
+ }
+ else {
+ // theme was not found in db, but found on hdd -> create new
+ $fields_hash = Array (
+ 'Name' => $theme_name,
+ 'Enabled' => 0,
+ 'Description' => $theme_name,
+ 'PrimaryTheme' => 0,
+ 'CacheTimeout' => 3600, // not in use right now
+ 'StylesheetId' => 0, // not in use right now
+ );
+ $this->Conn->doInsert($fields_hash, $table_name);
+ $theme_id = $this->Conn->getInsertID();
+ }
+
+ $theme_path = $this->themesFolder.'/'.$theme_name;
+ $this->FindThemeFiles('', $theme_path, $theme_id); // search from base theme directory
+
+ // delete file records from db, that were not found on hdd
+ $sql = 'DELETE FROM '.TABLE_PREFIX.'ThemeFiles
+ WHERE ThemeId = '.$theme_id.' AND FileFound = 0';
+ $this->Conn->Query($sql);
+
+ return $theme_id;
+ }
+
+ /**
+ * Searches for new templates (missing in db) in spefied folder
+ *
+ * @param string $folder_path subfolder of searchable theme
+ * @param string $theme_path theme path from web server root
+ * @param int $theme_id id of theme we are scanning
+ */
+ function FindThemeFiles($folder_path, $theme_path, $theme_id, $auto_structure_mode=1)
+ {
+ $fh = opendir($theme_path.$folder_path.'/');
+
+ if (file_exists($theme_path.$folder_path.'/'.'.smsignore')) {
+ $ignore = file($theme_path.$folder_path.'/'.'.smsignore');
+ }
+ else {
+ $ignore = array();
+ }
+
+ while (($filename = readdir($fh))) {
+ if ($filename == '.' || $filename == '..') continue;
+
+ $auto_structure = $auto_structure_mode;
+ foreach ($ignore as $pattern)
+ {
+ if (preg_match('/'.str_replace('/', '\\/',$pattern).'/', $filename)) {
+ $auto_structure = 2;
+ break;
+ }
+ }
+
+ $full_path = $theme_path.$folder_path.'/'.$filename;
+ if (is_dir($full_path)) {
+ $this->FindThemeFiles($folder_path.'/'.$filename, $theme_path, $theme_id, $auto_structure);
+ }
+ elseif (substr($filename, -4) == '.tpl') {
+ $file_path = $folder_path.'/'.$filename;
+
+ $file_id = isset($this->themeFiles[$file_path]) ? $this->themeFiles[$file_path] : false;
+ if ($file_id) {
+ // file was found in db & on hdd -> mark as existing
+ $sql = 'UPDATE '.TABLE_PREFIX.'ThemeFiles
+ SET FileFound = 1, FileType = '.$auto_structure.'
+ WHERE FileId = '.$file_id;
+ $this->Conn->Query($sql);
+ }
+ else {
+ // file was found on hdd, but missing in db -> create new file record
+ $fields_hash = Array (
+ 'ThemeId' => $theme_id,
+ 'FileName' => $filename,
+ 'FilePath' => $folder_path,
+ 'Description' => '',
+ 'FileType' => $auto_structure, // 1 - built-in, 0 - custom (not in use right now), 2 - skipped in structure
+ 'FileFound' => 1,
+ );
+ $this->Conn->doInsert($fields_hash, TABLE_PREFIX.'ThemeFiles');
+ $this->themeFiles[$file_path] = $this->Conn->getInsertID();
+ }
+// echo 'FilePath: [<strong>'.$folder_path.'</strong>]; FileName: [<strong>'.$filename.'</strong>]; IsNew: [<strong>'.($file_id > 0 ? 'NO' : 'YES').'</strong>]<br />';
+ }
+
+ }
+ }
+
+ /**
+ * Updates file system changes to database for all themes (including new ones)
+ *
+ */
+ function refreshThemes()
+ {
+ $themes_found = Array();
+
+ $fh = opendir($this->themesFolder.'/');
+ while (($filename = readdir($fh))) {
+ if ($filename == '.' || $filename == '..' || $filename == 'CVS') continue;
+
+ if (is_dir($this->themesFolder.'/'.$filename)) {
+ $theme_id = $this->refreshTheme($filename);
+ if ($theme_id) {
+ $themes_found[] = $theme_id;
+ }
+ }
+ }
+
+ $id_field = $this->Application->getUnitOption('theme', 'IDField');
+ $table_name = $this->Application->getUnitOption('theme', 'TableName');
+
+ // if none themes found -> delete all from db OR delete all except of found themes
+ $sql = 'SELECT '.$id_field.'
+ FROM '.$table_name;
+ if ($themes_found) {
+ $sql .= ' WHERE '.$id_field.' NOT IN ('.implode(',', $themes_found).')';
+ }
+ $theme_ids = $this->Conn->GetCol($sql);
+ $this->deleteThemes($theme_ids);
+
+ }
+
+ /**
+ * Deletes themes with ids passed from db
+ *
+ * @param Array $theme_ids
+ */
+ function deleteThemes($theme_ids)
+ {
+ if (!$theme_ids) {
+ return ;
+ }
+
+ $id_field = $this->Application->getUnitOption('theme', 'IDField');
+ $table_name = $this->Application->getUnitOption('theme', 'TableName');
+
+ $sql = 'DELETE FROM '.$table_name.'
+ WHERE '.$id_field.' IN ('.implode(',', $theme_ids).')';
+ $this->Conn->Query($sql);
+
+ $sql = 'DELETE FROM '.TABLE_PREFIX.'ThemeFiles
+ WHERE '.$id_field.' IN ('.implode(',', $theme_ids).')';
+ $this->Conn->Query($sql);
+ }
+ }
+
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/units/general/helpers/themes_helper.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl (revision 7856)
@@ -0,0 +1,39 @@
+<inp2:adm_SetPopupSize width="564" height="377"/>
+<inp2:m_include t="incs/header"/>
+<inp2:m_RenderElement name="combined_header" section="proj-base:users" pagination="0" prefix="u" title_preset="admins_edit"/>
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+ a_toolbar = new ToolBar();
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ submit_event('u','<inp2:u_SaveEvent/>');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ cancel_edit('u','OnCancelEdit','<inp2:u_SaveEvent/>','<inp2:m_Phrase label="la_FormCancelConfirmation" escape="1"/>');
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+
+<inp2:u_SaveWarning name="grid_save_warning"/>
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:m_ParseBlock name="inp_id_label" prefix="u" field="PortalUserId" title="!la_fld_Id!"/>
+ <inp2:m_ParseBlock name="inp_label" prefix="u" field="Login" title="la_fld_Username"/>
+ <inp2:m_ParseBlock name="inp_edit_password" prefix="u" field="Password" title="la_fld_Password"/>
+ <inp2:m_ParseBlock name="inp_edit_password" prefix="u" field="VerifyPassword" title="la_fld_VerifyPassword"/>
+ <inp2:m_ParseBlock name="inp_label" prefix="u" field="FirstName" title="la_fld_FirstName"/>
+ <inp2:m_ParseBlock name="inp_label" prefix="u" field="LastName" title="la_fld_LastName"/>
+ <inp2:m_ParseBlock name="inp_label" prefix="u" field="Email" title="la_fld_Email"/>
+</table>
+
+<inp2:m_include t="incs/footer"/>
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl (revision 7856)
@@ -0,0 +1,35 @@
+<inp2:adm_SetPopupSize width="564" height="377"/>
+<inp2:m_include t="incs/header"/>
+<inp2:m_set u_id="-1"/>
+<inp2:m_RenderElement name="combined_header" section="proj-base:admins" pagination="0" prefix="u" title_preset="root_edit"/>
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+ a_toolbar = new ToolBar();
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ submit_event('u','OnUpdateRootPassword');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ window.close();
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+
+<inp2:u_SaveWarning name="grid_save_warning"/>
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:m_ParseBlock name="inp_edit_password" prefix="u" field="RootPassword" title="la_fld_Password"/>
+ <inp2:m_ParseBlock name="inp_edit_password" prefix="u" field="VerifyRootPassword" title="la_fld_VerifyPassword"/>
+</table>
+
+<inp2:m_include t="incs/footer"/>
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl (revision 7856)
@@ -0,0 +1,125 @@
+<inp2:m_RequireLogin perm_event="conf:OnLoad" system="1"/>
+<inp2:m_include t="incs/header" nobody="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+
+<inp2:m_ParseBlock name="section_header" module="in-portal" prefix="conf" icon="icon46_settings_general" title="!la_tab_ConfigGeneral!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="conf" title_preset="config_list_general" icon="icon46_settings_general"/>
+
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+
+ function ValidatePassFld(fieldId){
+ var passFld=document.getElementById(fieldId);
+ var passVerifyFld=document.getElementById('verify_'+fieldId);
+ if (passFld && passVerifyFld && passFld.value == passVerifyFld.value) {
+ return true;
+ }
+ else {
+ var passErrorCell=document.getElementById('error_'+fieldId);
+ if (passErrorCell){
+ passErrorCell.innerHTML='<inp2:m_phrase name="la_error_PasswordMatch" />';
+ }
+ return false;
+ }
+ }
+
+ function ValidatePassFields(){
+ var el=false;
+ var validated=true;
+ for (var i=0; i<document.forms.kernel_form.elements.length; i++){
+ el=document.forms.kernel_form.elements[i];
+ if (el.getAttribute('primarytype')=='password'){
+ if (!ValidatePassFld(el.id)){
+ validated=false;
+ }
+ }
+ }
+ return validated;
+ }
+
+ function toggle_section($label) {
+ var $table = document.getElementById('config_table');
+ var $row = null;
+ var $is_visible = false;
+
+ for (var $i = 0; $i < $table.rows.length; $i++) {
+ $row = $table.rows[$i];
+ if ($row.getAttribute('header_label') != $label) {
+ continue;
+ }
+
+ if (!$row.style.display) {
+ $row.style.display = document.all ? 'block' : 'table-row';
+ }
+
+ $is_visible = !($row.style.display == 'none');
+ $row.style.display = $is_visible ? 'none' : (document.all ? 'block' : 'table-row');
+
+ document.getElementById('toggle_mark['+$label+']').innerHTML = '[' + ($is_visible ? '+' : '-') + ']';
+ }
+ }
+
+ var a_toolbar = new ToolBar();
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ if (ValidatePassFields()){
+ submit_event('conf','<inp2:conf_SaveEvent/>');
+ }
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ submit_event('conf','OnCancel');
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+
+<inp2:m_include t="incs/config_blocks"/>
+
+<inp2:conf_SaveWarning name="grid_save_warning"/>
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder" id="config_table">
+ <!-- module root category selector: begin -->
+ <tr class="subsectiontitle">
+ <td colspan="2">
+ <inp2:m_phrase name="la_Text_RootCategory" />
+ </td>
+ <td align="right">
+ <a class="config-header" href="javascript:toggle_section('la_Text_RootCategory');" id="toggle_mark[la_Text_RootCategory]" title="Collapse/Expand Section">[-]</a>
+ </td>
+ </tr>
+
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>" header_label="la_Text_RootCategory">
+ <td>
+ <span class="text"><inp2:m_phrase name="la_prompt_RootCategory" /></span>
+ </td>
+ <td>
+ <inp2:m_DefineElement name="category_caption">
+ <inp2:m_if check="m_ParamEquals" name="cat_id" value="0" inverse="inverse">
+ <inp2:m_param name="separator"/>
+ </inp2:m_if>
+ <inp2:m_param name="cat_name"/>
+ </inp2:m_DefineElement>
+
+ <b><inp2:conf_CategoryPath separator=" &gt; " render_as="category_caption" /></b>
+ <input type="hidden" name="conf[ModuleRootCategory][VariableValue]" value="<inp2:conf_ModuleRootCategory/>"/>
+ <a href="javascript:openSelector('conf', '<inp2:adm_SelectorLink prefix="conf" selection_mode="single" tab_prefixes="none"/>', 'ModuleRootCategory', '950x600');"><img src="img/icons/icon24_cat.gif" border="0" align="absmiddle" /></a>
+ </td>
+ <td class="error">&nbsp;</td>
+ </tr>
+ <!-- module root category selector: end -->
+
+ <inp2:conf_PrintList block="config_block" per_page="-1" full_block="config_block" half_block1="config_block1" half_block2="config_block2"/>
+</table>
+
+<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl (revision 7856)
@@ -0,0 +1,133 @@
+<inp2:m_RequireLogin perm_event="confs:OnLoad" system="1"/>
+<inp2:m_include t="incs/header" nobody="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+<inp2:m_ParseBlock name="section_header" module="in-portal" prefix="confs" icon="icon46_settings_search" title="!la_tab_ConfigSearch!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="confs" title_preset="config_list_search" icon="icon46_settings_output"/>
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+ var a_toolbar = new ToolBar();
+ <inp2:m_if check="m_IsDebugMode">
+ a_toolbar.AddButton( new ToolBarButton('new_item', '<inp2:m_phrase label="la_ToolTip_NewSearchConfig" escape="1"/>', function() {
+ std_new_item('confs', 'config/config_search_edit');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+ </inp2:m_if>
+
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ submit_event('confs','<inp2:confs_SaveEvent/>');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ submit_event('confs','OnCancel');
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+
+<inp2:m_DefineElement name="confs_checkbox_td">
+ <td valign="top" class="text">
+
+ <inp2:m_if check="m_ParamEquals" name="nolabel" value="true">
+ <inp2:m_else />
+ <label for="_cb_<inp2:InputName field="$Field"/>"><inp2:m_Phrase label="$Label" /></label>
+ </inp2:m_if>
+
+ <input type="checkbox" name="_cb_<inp2:InputName field="$Field"/>" <inp2:Field field="$Field" checked="checked" db="db"/> id="_cb_<inp2:InputName field="$Field"/>" onclick="update_checkbox(this, document.getElementById('<inp2:InputName field="$Field"/>'))" >
+ <input type="hidden" id="<inp2:InputName field="$Field"/>" name="<inp2:InputName field="$Field"/>" value="<inp2:Field field="$Field" db="db"/>">
+ </td>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="confs_edit_text">
+ <td valign="top" class="text">
+ <label for="<inp2:InputName field="$Field"/>"><inp2:m_Phrase label="$Label" /></label>
+ <input type="text" name="<inp2:InputName field="$Field"/>" value="<inp2:Field field="$Field"/>" size="3" />
+ </td>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="confs_detail_row">
+ <inp2:m_if check="m_ParamEquals" name="show_heading" value="1">
+ <tr class="subsectiontitle">
+ <td colspan="4">
+ <inp2:Field name="ConfigHeader" as_label="1"/>
+ </td>
+ </tr>
+ </inp2:m_if>
+
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td class="text">
+ <inp2:Field field="DisplayName" as_label="true" />
+ <inp2:m_if check="m_IsDebugMode">
+ <br /><small>[ID: <b><inp2:Field name="SearchConfigId"/></b>; DisplayOrder: <b><inp2:Field name="DisplayOrder"/></b>; Field: <b><inp2:Field name="FieldName"/></b>]</small>
+ </inp2:m_if>
+ </td>
+ <inp2:m_ParseBlock name="confs_checkbox_td" pass_params="true" IdField="SearchConfigId" Label="la_prompt_SimpleSearch" Field="SimpleSearch" />
+ <inp2:m_ParseBlock name="confs_edit_text" pass_params="true" IdField="SearchConfigId" Label="la_prompt_weight" Field="Priority" />
+ <inp2:m_ParseBlock name="confs_checkbox_td" pass_params="true" IdField="SearchConfigId" Label="la_prompt_AdvancedSearch" Field="AdvancedSearch" />
+ </tr>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="config_values">
+ <tr class="subsectiontitle">
+ <td colspan="4">
+ <inp2:m_phrase name="$module_item" /> <inp2:m_phrase name="la_prompt_relevence_settings" />
+ </td>
+ </tr>
+
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td colspan="4">
+ <inp2:m_phrase name="la_prompt_required_field_increase"/>
+ <input type="text" size="3" name="conf[SearchRel_Increase_<inp2:m_param name="module_key" />][VariableValue]" VALUE="<inp2:Field field="SearchRel_Increase_{$module_key}" />">%
+ </td>
+ </tr>
+
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td colspan="4">
+ <inp2:m_phrase name="la_prompt_relevence_percent"/>
+ <input type="text" size="3" name="conf[SearchRel_Keyword_<inp2:m_param name="module_key" />][VariableValue]" value="<inp2:Field field="SearchRel_Keyword_{$module_key}" />">% <inp2:Field field="SearchRel_Keyword_{$module_key}_prompt" as_label="1" /> &nbsp;&nbsp;&nbsp;
+ <input type="text" size="3" name="conf[SearchRel_Pop_<inp2:m_param name="module_key" />][VariableValue]" value="<inp2:Field field="SearchRel_Pop_{$module_key}" />">% <inp2:Field field="SearchRel_Pop_{$module_key}_prompt" as_label="1" />&nbsp;&nbsp;&nbsp;
+ <input type="text" size="3" name="conf[SearchRel_Rating_<inp2:m_param name="module_key" />][VariableValue]" value="<inp2:Field field="SearchRel_Rating_{$module_key}" />">% <inp2:Field field="SearchRel_Rating_{$module_key}_prompt" as_label="1" />
+ </td>
+ </tr>
+
+ <inp2:m_if check="m_GetEquals" name="module" value="In-Portal" inverse="inverse">
+ <tr class="subsectiontitle">
+ <td colspan="4">
+ <inp2:m_phrase name="$module_item" /> <inp2:m_phrase name="la_prompt_multipleshow" />
+ </td>
+ </tr>
+
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td class="text" width="120"><inp2:Field field="Search_ShowMultiple_{$module_key}_prompt" as_label="1"/></td>
+ <td class="text" colspan="3">
+ <input type="checkbox" name="_cb_conf[Search_ShowMultiple_<inp2:m_param name="module_key" />][VariableValue]" <inp2:Field field="Search_ShowMultiple_{$module_key}" checked="checked" db="db"/> id="_cb_conf[Search_ShowMultiple_<inp2:m_param name="module_key" />][VariableValue]" onclick="update_checkbox(this, document.getElementById('conf[Search_ShowMultiple_<inp2:m_param name="module_key" />][VariableValue]'))" >
+ <input type="hidden" id="conf[Search_ShowMultiple_<inp2:m_param name="module_key" />][VariableValue]" name="conf[Search_ShowMultiple_<inp2:m_param name="module_key" />][VariableValue]" value="<inp2:Field field="Search_ShowMultiple_{$module_key}" db="db"/>">
+ </td>
+ </tr>
+ </inp2:m_if>
+</inp2:m_DefineElement>
+
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder"<inp2:m_if check="conf_ShowRelevance"> style="border-bottom-width: 0px;"</inp2:m_if>>
+ <inp2:confs_PrintList render_as="confs_detail_row" />
+</table>
+
+<inp2:m_if check="conf_ShowRelevance">
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:conf_PrintConfList block="config_values" />
+</table>
+</inp2:m_if>
+
+<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl (revision 7856)
@@ -0,0 +1,74 @@
+<inp2:m_RequireLogin perm_event="confs:OnLoad" system="1"/>
+<inp2:m_include t="incs/header" nobody="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+<inp2:m_ParseBlock name="section_header" module="in-portal" icon="icon46_settings_search" title="la_tab_ConfigSearch"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="confs" title_preset="configsearch_edit" module="in-portal" icon="icon46_settings_search"/>
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+ a_toolbar = new ToolBar();
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ submit_event('confs','<inp2:confs_SaveEvent/>');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ submit_event('confs','OnGoBack');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('prev', '<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>', function() {
+ go_to_id('confs', '<inp2:confs_PrevId/>');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
+ go_to_id('confs', '<inp2:confs_NextId/>');
+ }
+ ) );
+
+ a_toolbar.Render();
+
+ <inp2:m_if prefix="confs" function="IsSingle"/>
+ a_toolbar.HideButton('prev');
+ a_toolbar.HideButton('next');
+ a_toolbar.HideButton('sep1');
+ <inp2:m_else/>
+ <inp2:m_if prefix="confs" function="IsLast"/>
+ a_toolbar.DisableButton('next');
+ <inp2:m_endif/>
+ <inp2:m_if prefix="confs" function="IsFirst"/>
+ a_toolbar.DisableButton('prev');
+ <inp2:m_endif/>
+ <inp2:m_endif/>
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+
+<inp2:confs_SaveWarning name="grid_save_warning"/>
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:m_ParseBlock name="subsection" title="!la_section_General!"/>
+
+ <inp2:m_ParseBlock name="inp_id_label" prefix="confs" field="SearchConfigId" title="la_fld_SearchConfigId"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="TableName" title="la_fld_TableName"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="FieldName" title="la_fld_FieldName"/>
+ <inp2:m_ParseBlock name="inp_edit_checkbox" prefix="confs" field="SimpleSearch" title="la_fld_SimpleSearch"/>
+ <inp2:m_ParseBlock name="inp_edit_checkbox" prefix="confs" field="AdvancedSearch" title="la_fld_AdvancedSearch"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="Description" title="la_fld_Description"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="DisplayName" title="la_fld_DisplayName"/>
+ <inp2:m_ParseBlock name="inp_edit_options" prefix="confs" field="ModuleName" title="la_fld_ModuleName"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="ConfigHeader" title="la_fld_ConfigHeader"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="DisplayOrder" title="la_fld_DisplayOrder"/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="confs" field="Priority" title="la_fld_Priority"/>
+ <inp2:m_ParseBlock name="inp_edit_options" prefix="confs" field="FieldType" title="la_fld_FieldType"/>
+</table>
+
+<inp2:m_include t="incs/footer"/>
Property changes on: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.3
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property

Event Timeline