Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1101973
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 17, 10:00 AM
Size
37 KB
Mime Type
text/x-diff
Expires
Tue, Aug 19, 10:00 AM (11 h, 48 m)
Engine
blob
Format
Raw Data
Handle
713802
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/unlabeled/unlabeled-1.28.2/kernel/admin_templates/catalog.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.28.2/kernel/admin_templates/catalog.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.28.2/kernel/admin_templates/catalog.tpl (revision 7871)
@@ -0,0 +1,241 @@
+<inp2:m_RequireLogin permissions="in-portal:browse.view" system="1" ajax="yes"/>
+<inp2:m_include t="incs/header" nobody="yes" noform="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF" onload="$Catalog.Init();">
+<inp2:m_ParseBlock name="section_header" prefix="c" icon="icon46_catalog" module="in-portal" title="!la_title_Browse!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="c" title_preset="catalog" module="in-portal"/>
+
+<!-- main kernel_form: begin -->
+<inp2:m_RenderElement name="kernel_form"/>
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <input type="hidden" name="m_cat_id" value="<inp2:m_get name="m_cat_id"/>"/>
+ <link rel="stylesheet" rev="stylesheet" href="incs/nlsmenu.css" type="text/css" />
+ <script type="text/javascript" src="js/nlsmenu.js"></script>
+ <script type="text/javascript" src="js/nlsmenueffect_1_2_1.js"></script>
+
+ <script type="text/javascript" src="js/ajax.js"></script>
+ <script type="text/javascript" src="<inp2:m_TemplatesBase module="in-portal"/>/incs/catalog.js"></script>
+ <script type="text/javascript">
+ var menuMgr = new NlsMenuManager("mgr");
+ menuMgr.timeout = 500;
+ menuMgr.flowOverFormElement = true;
+
+ Request.progressText = '<inp2:m_phrase name="la_title_Loading" escape="1"/>';
+ var $is_catalog = true;
+ var $Catalog = new Catalog('<inp2:m_Link template="#TEMPLATE_NAME#" m_cat_id="#CATEGORY_ID#" no_amp="1"/>', 'catalog_');
+ var a_toolbar = new ToolBar();
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:upcat', '<inp2:m_phrase label="la_ToolTip_Up" escape="1"/>', function() {
+ $Catalog.go_to_cat($Catalog.ParentCategoryID);
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:homecat', '<inp2:m_phrase label="la_ToolTip_Home" escape="1"/>', function() {
+ $Catalog.go_to_cat(0);
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:new_cat', '<inp2:m_phrase label="la_ToolTip_New_Category" escape="1"/>', function() {
+ std_precreate_item('c', 'in-portal/categories/categories_edit');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:editcat', '<inp2:m_phrase label="la_ToolTip_Edit_Current_Category" escape="1"/>', function() {
+ var $edit_url = '<inp2:m_t t="#TEMPLATE#" m_opener="d" c_mode="t" c_event="OnEdit" c_id="#CATEGORY_ID#" pass="all,c" no_amp="1"/>';
+ var $category_id = get_hidden_field('m_cat_id');
+ var $redirect_url = $edit_url.replace('#CATEGORY_ID#', $category_id);
+ $redirect_url = $redirect_url.replace('#TEMPLATE#', $category_id > 0 ? 'in-portal/categories/categories_edit' : 'in-portal/categories/categories_edit_permissions');
+ redirect($redirect_url);
+ }
+ ) );
+
+ <inp2:m_ModuleInclude template="catalog_tab" tab_init="1" skip_prefixes="m"/>
+
+
+ a_toolbar.AddButton( new ToolBarButton('edit', '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', edit) );
+
+ a_toolbar.AddButton( new ToolBarButton('delete', '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>',
+ function() {
+ var $template = $Catalog.queryTabRegistry('prefix', $Catalog.getCurrentPrefix(), 'view_template');
+ std_delete_items($Catalog.getCurrentPrefix(), $template, 1);
+ } ) );
+
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+
+ a_toolbar.AddButton( new ToolBarButton('approve', '<inp2:m_phrase label="la_ToolTip_Approve" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassApprove');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('decline', '<inp2:m_phrase label="la_ToolTip_Decline" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassDecline');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep3') );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:export', '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', function() {
+ var $export_prefixes = new Array('l', 'p');
+ if (in_array($Catalog.ActivePrefix, $export_prefixes)) {
+ submit_event($Catalog.ActivePrefix, 'OnExport');
+ }
+ else {
+ alert('<inp2:m_phrase name="la_Text_InDevelopment" escape="1"/>');
+ }
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:rebuild_cache', '<inp2:m_phrase label="la_ToolTip_RebuildCategoryCache" escape="1"/>', function() {
+ redirect('<inp2:m_t t="in-portal/categories/cache_updater" pass="m"/>');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep4') );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:cut', '<inp2:m_phrase label="la_ToolTip_Cut" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnCut');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:copy', '<inp2:m_phrase label="la_ToolTip_Copy" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnCopy');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:paste', '<inp2:m_phrase label="la_ToolTip_Paste" escape="1"/>', function() {
+ $Catalog.submit_event('c', 'OnPasteClipboard', null, function($object) {
+ $object.resetTabs(true);
+ $object.switchTab();
+ } );
+ }
+ ) );
+
+ /*a_toolbar.AddButton( new ToolBarButton('clear_clipboard', '<inp2:m_phrase label="la_ToolTip_ClearClipboard" escape="1"/>', function() {
+ if (confirm('<inp2:m_phrase name="la_text_ClearClipboardWarning" js_escape="1"/>')) {
+ $Catalog.submit_event('c', 'OnClearClipboard', null, function($object) {
+ $GridManager.CheckDependencies($object.ActivePrefix);
+ } );
+ }
+ }
+ ) );*/
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep5') );
+
+ a_toolbar.AddButton( new ToolBarButton('move_up', '<inp2:m_phrase label="la_ToolTip_Move_Up" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassMoveUp');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('move_down', '<inp2:m_phrase label="la_ToolTip_Move_Down" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassMoveDown');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep6') );
+
+ a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
+ show_viewmenu(a_toolbar, 'view');
+ }
+ ) );
+
+ a_toolbar.Render();
+
+ function edit()
+ {
+ var $current_prefix = $Catalog.getCurrentPrefix();
+ $form_name = $Catalog.queryTabRegistry('prefix', $current_prefix, 'tab_id') + '_form';
+ std_edit_item($current_prefix, $Catalog.queryTabRegistry('prefix', $current_prefix, 'edit_template'));
+ }
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+<inp2:m_RenderElement name="kernel_form_end"/>
+<!-- main kernel_form: end -->
+
+<!-- category list: begin -->
+<table id="c_search_warning" width="100%" border="0" cellspacing="0" cellpadding="4" class="table_border_notop" style="display: none;">
+ <tr>
+ <td valign="top" class="hint_red">
+ <inp2:m_phrase name="la_Warning_Filter"/>
+ </td>
+ </tr>
+</table>
+
+<inp2:m_set t="in-portal/xml/categories_list"/>
+<inp2:m_RenderElement name="kernel_form" form_name="categories_form"/>
+<table class="toolbar" cellspacing="0" cellpadding="2" width="100%" border="0" style="border-top-width: 0px;">
+ <tr bgcolor="#e0e0da" height="20">
+ <td valign="middle">
+ <img height="15" src="img/arrow.gif" width="15" align="absmiddle" border="0"><span id="category_path"></span>
+ </td>
+ <td align="right" class="search-cell">
+ <table cellspacing="0" cellpadding="0" border="0">
+ <tr>
+ <td>Search: </td>
+ <td>
+ <input type="text" id="c_search_keyword" name="c_search_keyword" value="" onkeydown="search_keydown(event, 'c', 'Default', 1);" style="border: 1px solid grey;" />
+ <input type="text" style="display: none;" />
+ </td>
+ <td id="search_buttons[c]">
+ <script type="text/javascript">
+ <inp2:m_RenderElement name="grid_search_buttons" PrefixSpecial="c" grid="Default" ajax="1"/>
+ </script>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<div id="categories_div" prefix="c" view_template="in-portal/xml/categories_list" edit_template="in-portal/categories/categories_edit" dep_buttons="" class="catalog-tab" style="display: block;"></div>
+<inp2:m_RenderElement name="kernel_form_end"/>
+<inp2:m_set t="in-portal/catalog"/>
+<script type="text/javascript">$Catalog.registerTab('categories');</script>
+<!-- categories list: end -->
+
+<!-- item tabs: begin -->
+<table cellpadding="0" cellspacing="0">
+ <tr>
+ <inp2:m_DefineElement name="item_tab" title="">
+ <td nowrap="nowrap" width="140">
+ <table id="<inp2:m_param name="prefix"/>_tab" cellpadding="0" cellspacing="0" width="100%" class="catalog-tab-unselected" onclick="$Catalog.switchTab('<inp2:m_param name="prefix"/>');">
+ <tr>
+ <td class="catalog-tab-left">
+ <img src="img/spacer.gif" height="22" width="9" />
+ </td>
+ <td class="catalog-tab-middle" width="100%" valign="middle" nowrap="nowrap">
+ <inp2:m_phrase name="$title"/> <span class="cats_stats">(<span id="<inp2:m_param name="prefix"/>_item_count">?</span>)</span>
+ </td>
+ <td class="catalog-tab-right">
+ <img src="img/spacer.gif" height="22" width="9" />
+ </td>
+ <td style="background-color: #FFFFFF;">
+ <img src="img/spacer.gif" height="1" width="5" />
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </inp2:m_DefineElement>
+ <inp2:adm_ListCatalogTabs render_as="item_tab" title_property="ViewMenuPhrase" skip_prefixes="m"/>
+ </tr>
+</table>
+<!-- item tabs: end -->
+
+<inp2:m_ModuleInclude template="catalog_tab" tab_init="2" skip_prefixes="m"/>
+
+<inp2:m_include t="incs/footer" noform="yes"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.28.2/kernel/admin_templates/catalog.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.28
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.28.2/core/admin_templates/catalog/catalog.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.28.2/core/admin_templates/catalog/catalog.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.28.2/core/admin_templates/catalog/catalog.tpl (revision 7871)
@@ -0,0 +1,241 @@
+<inp2:m_RequireLogin permissions="in-portal:browse.view" system="1" ajax="yes"/>
+<inp2:m_include t="incs/header" nobody="yes" noform="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF" onload="$Catalog.Init();">
+<inp2:m_ParseBlock name="section_header" prefix="c" icon="icon46_catalog" module="in-portal" title="!la_title_Browse!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="c" title_preset="catalog" module="in-portal"/>
+
+<!-- main kernel_form: begin -->
+<inp2:m_RenderElement name="kernel_form"/>
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+<tbody>
+ <tr>
+ <td>
+ <input type="hidden" name="m_cat_id" value="<inp2:m_get name="m_cat_id"/>"/>
+ <link rel="stylesheet" rev="stylesheet" href="incs/nlsmenu.css" type="text/css" />
+ <script type="text/javascript" src="js/nlsmenu.js"></script>
+ <script type="text/javascript" src="js/nlsmenueffect_1_2_1.js"></script>
+
+ <script type="text/javascript" src="js/ajax.js"></script>
+ <script type="text/javascript" src="<inp2:m_TemplatesBase module="in-portal"/>/incs/catalog.js"></script>
+ <script type="text/javascript">
+ var menuMgr = new NlsMenuManager("mgr");
+ menuMgr.timeout = 500;
+ menuMgr.flowOverFormElement = true;
+
+ Request.progressText = '<inp2:m_phrase name="la_title_Loading" escape="1"/>';
+ var $is_catalog = true;
+ var $Catalog = new Catalog('<inp2:m_Link template="#TEMPLATE_NAME#" m_cat_id="#CATEGORY_ID#" no_amp="1"/>', 'catalog_');
+ var a_toolbar = new ToolBar();
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:upcat', '<inp2:m_phrase label="la_ToolTip_Up" escape="1"/>', function() {
+ $Catalog.go_to_cat($Catalog.ParentCategoryID);
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:homecat', '<inp2:m_phrase label="la_ToolTip_Home" escape="1"/>', function() {
+ $Catalog.go_to_cat(0);
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:new_cat', '<inp2:m_phrase label="la_ToolTip_New_Category" escape="1"/>', function() {
+ std_precreate_item('c', 'in-portal/categories/categories_edit');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:editcat', '<inp2:m_phrase label="la_ToolTip_Edit_Current_Category" escape="1"/>', function() {
+ var $edit_url = '<inp2:m_t t="#TEMPLATE#" m_opener="d" c_mode="t" c_event="OnEdit" c_id="#CATEGORY_ID#" pass="all,c" no_amp="1"/>';
+ var $category_id = get_hidden_field('m_cat_id');
+ var $redirect_url = $edit_url.replace('#CATEGORY_ID#', $category_id);
+ $redirect_url = $redirect_url.replace('#TEMPLATE#', $category_id > 0 ? 'in-portal/categories/categories_edit' : 'in-portal/categories/categories_edit_permissions');
+ redirect($redirect_url);
+ }
+ ) );
+
+ <inp2:m_ModuleInclude template="catalog_tab" tab_init="1" skip_prefixes="m"/>
+
+
+ a_toolbar.AddButton( new ToolBarButton('edit', '<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>', edit) );
+
+ a_toolbar.AddButton( new ToolBarButton('delete', '<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>',
+ function() {
+ var $template = $Catalog.queryTabRegistry('prefix', $Catalog.getCurrentPrefix(), 'view_template');
+ std_delete_items($Catalog.getCurrentPrefix(), $template, 1);
+ } ) );
+
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep2') );
+
+ a_toolbar.AddButton( new ToolBarButton('approve', '<inp2:m_phrase label="la_ToolTip_Approve" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassApprove');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('decline', '<inp2:m_phrase label="la_ToolTip_Decline" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassDecline');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep3') );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:export', '<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>', function() {
+ var $export_prefixes = new Array('l', 'p');
+ if (in_array($Catalog.ActivePrefix, $export_prefixes)) {
+ submit_event($Catalog.ActivePrefix, 'OnExport');
+ }
+ else {
+ alert('<inp2:m_phrase name="la_Text_InDevelopment" escape="1"/>');
+ }
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:rebuild_cache', '<inp2:m_phrase label="la_ToolTip_RebuildCategoryCache" escape="1"/>', function() {
+ redirect('<inp2:m_t t="in-portal/categories/cache_updater" pass="m"/>');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep4') );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:cut', '<inp2:m_phrase label="la_ToolTip_Cut" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnCut');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:copy', '<inp2:m_phrase label="la_ToolTip_Copy" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnCopy');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('in-portal:paste', '<inp2:m_phrase label="la_ToolTip_Paste" escape="1"/>', function() {
+ $Catalog.submit_event('c', 'OnPasteClipboard', null, function($object) {
+ $object.resetTabs(true);
+ $object.switchTab();
+ } );
+ }
+ ) );
+
+ /*a_toolbar.AddButton( new ToolBarButton('clear_clipboard', '<inp2:m_phrase label="la_ToolTip_ClearClipboard" escape="1"/>', function() {
+ if (confirm('<inp2:m_phrase name="la_text_ClearClipboardWarning" js_escape="1"/>')) {
+ $Catalog.submit_event('c', 'OnClearClipboard', null, function($object) {
+ $GridManager.CheckDependencies($object.ActivePrefix);
+ } );
+ }
+ }
+ ) );*/
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep5') );
+
+ a_toolbar.AddButton( new ToolBarButton('move_up', '<inp2:m_phrase label="la_ToolTip_Move_Up" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassMoveUp');
+ }
+ ) );
+
+
+ a_toolbar.AddButton( new ToolBarButton('move_down', '<inp2:m_phrase label="la_ToolTip_Move_Down" escape="1"/>', function() {
+ $Catalog.submit_event(null, 'OnMassMoveDown');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep6') );
+
+ a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
+ show_viewmenu(a_toolbar, 'view');
+ }
+ ) );
+
+ a_toolbar.Render();
+
+ function edit()
+ {
+ var $current_prefix = $Catalog.getCurrentPrefix();
+ $form_name = $Catalog.queryTabRegistry('prefix', $current_prefix, 'tab_id') + '_form';
+ std_edit_item($current_prefix, $Catalog.queryTabRegistry('prefix', $current_prefix, 'edit_template'));
+ }
+ </script>
+ </td>
+ </tr>
+</tbody>
+</table>
+<inp2:m_RenderElement name="kernel_form_end"/>
+<!-- main kernel_form: end -->
+
+<!-- category list: begin -->
+<table id="c_search_warning" width="100%" border="0" cellspacing="0" cellpadding="4" class="table_border_notop" style="display: none;">
+ <tr>
+ <td valign="top" class="hint_red">
+ <inp2:m_phrase name="la_Warning_Filter"/>
+ </td>
+ </tr>
+</table>
+
+<inp2:m_set t="in-portal/xml/categories_list"/>
+<inp2:m_RenderElement name="kernel_form" form_name="categories_form"/>
+<table class="toolbar" cellspacing="0" cellpadding="2" width="100%" border="0" style="border-top-width: 0px;">
+ <tr bgcolor="#e0e0da" height="20">
+ <td valign="middle">
+ <img height="15" src="img/arrow.gif" width="15" align="absmiddle" border="0"><span id="category_path"></span>
+ </td>
+ <td align="right" class="search-cell">
+ <table cellspacing="0" cellpadding="0" border="0">
+ <tr>
+ <td>Search: </td>
+ <td>
+ <input type="text" id="c_search_keyword" name="c_search_keyword" value="" onkeydown="search_keydown(event, 'c', 'Default', 1);" style="border: 1px solid grey;" />
+ <input type="text" style="display: none;" />
+ </td>
+ <td id="search_buttons[c]">
+ <script type="text/javascript">
+ <inp2:m_RenderElement name="grid_search_buttons" PrefixSpecial="c" grid="Default" ajax="1"/>
+ </script>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+
+<div id="categories_div" prefix="c" view_template="in-portal/xml/categories_list" edit_template="in-portal/categories/categories_edit" dep_buttons="" class="catalog-tab" style="display: block;"></div>
+<inp2:m_RenderElement name="kernel_form_end"/>
+<inp2:m_set t="in-portal/catalog"/>
+<script type="text/javascript">$Catalog.registerTab('categories');</script>
+<!-- categories list: end -->
+
+<!-- item tabs: begin -->
+<table cellpadding="0" cellspacing="0">
+ <tr>
+ <inp2:m_DefineElement name="item_tab" title="">
+ <td nowrap="nowrap" width="140">
+ <table id="<inp2:m_param name="prefix"/>_tab" cellpadding="0" cellspacing="0" width="100%" class="catalog-tab-unselected" onclick="$Catalog.switchTab('<inp2:m_param name="prefix"/>');">
+ <tr>
+ <td class="catalog-tab-left">
+ <img src="img/spacer.gif" height="22" width="9" />
+ </td>
+ <td class="catalog-tab-middle" width="100%" valign="middle" nowrap="nowrap">
+ <inp2:m_phrase name="$title"/> <span class="cats_stats">(<span id="<inp2:m_param name="prefix"/>_item_count">?</span>)</span>
+ </td>
+ <td class="catalog-tab-right">
+ <img src="img/spacer.gif" height="22" width="9" />
+ </td>
+ <td style="background-color: #FFFFFF;">
+ <img src="img/spacer.gif" height="1" width="5" />
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </inp2:m_DefineElement>
+ <inp2:adm_ListCatalogTabs render_as="item_tab" title_property="ViewMenuPhrase" skip_prefixes="m"/>
+ </tr>
+</table>
+<!-- item tabs: end -->
+
+<inp2:m_ModuleInclude template="catalog_tab" tab_init="2" skip_prefixes="m"/>
+
+<inp2:m_include t="incs/footer" noform="yes"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.28.2/core/admin_templates/catalog/catalog.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.28
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.28.2/admin/users/adduser.php
===================================================================
--- branches/unlabeled/unlabeled-1.28.2/admin/users/adduser.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.28.2/admin/users/adduser.php (revision 7871)
@@ -0,0 +1,399 @@
+<?php
+##############################################################
+##In-portal ##
+##############################################################
+## In-portal ##
+## Intechnic Corporation ##
+## All Rights Reserved, 1998-2002 ##
+## ##
+## No portion of this code may be copied, reproduced or ##
+## otherwise redistributed without proper written ##
+## consent of Intechnic Corporation. Violation will ##
+## result in revocation of the license and support ##
+## privileges along maximum prosecution allowed by law. ##
+##############################################################
+
+// new startup: begin
+define('REL_PATH', 'admin/users');
+$relation_level = count( explode('/', REL_PATH) );
+define('FULL_PATH', realpath(dirname(__FILE__) . str_repeat('/..', $relation_level) ) );
+require_once FULL_PATH.'/kernel/startup.php';
+// new startup: end
+checkViewPermission('in-portal:user_list');
+
+require_once ($pathtoroot.$admin."/include/elements.php");
+require_once ($pathtoroot."kernel/admin/include/navmenu.php");
+//require_once ($pathtolocal."admin/include/navmenu.php");
+require_once($pathtoroot.$admin."/toolbar.php");
+
+unset($objEditItems);
+$objEditItems = new clsUserManager();
+$objEditItems->SourceTable = $objSession->GetEditTable("PortalUser");
+$objEditItems->EnablePaging = FALSE;
+$application->SetVar('u_mode', 't');
+$objCustomFields = new clsCustomFieldList(6);
+$objRelList = new clsRelationshipList();
+$objImages = new clsImageList();
+$objUserGroupsList = new clsUserGroupList();
+
+//Multiedit init
+if ( GetVar('new') == 1)
+{
+ $c = new clsPortalUser(NULL);
+ $c->Set("CreatedOn", adodb_mktime());
+ $c->Set("Status", 2);
+ $en = 0;
+ $action = "m_add_user";
+ $objUsers->CreateEmptyEditTable("PortalUserId");
+ $objRelList->CreateEmptyEditTable("RelationshipId");
+ $objCustomDataList->CreateEmptyEditTable('u');
+ $objImages->CreateEmptyEditTable("ResourceId");
+ $objUserGroupsList->CreateEmptyEditTable("PortalUserId");
+
+ $objItemTypes->BuildUserItemTable(-1, 1); // 0 - user_id, 1 - clear table
+}
+else
+{
+ $direct_id = GetVar('direct_id');
+ if($direct_id) $_POST['itemlist'] = Array($direct_id);
+
+ $en = GetVar('en');
+ if (isset($_POST["itemlist"]))
+ {
+ $objUsers->CopyToEditTable("ResourceId",$_POST["itemlist"]);
+ }
+ $objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable);
+ $first=1;
+ foreach($objEditItems->Items as $u)
+ {
+ $objItemTypes->BuildUserItemTable($u->Get("PortalUserId"),$first);
+ $first=0;
+ }
+
+ if(isset($_POST["itemlist"]))
+ {
+ /* make a copy of the relationship records */
+ $user_ids = Array();
+ $user_ids[] = $u->Get("PortalUserId");
+ $ids = $objEditItems->GetResourceIDList();
+ $objRelList->CopyToEditTable("SourceId",$ids);
+ $objCustomDataList->CopyToEditTable('u', $ids);
+ $objImages->CopyToEditTable("ResourceId",$ids);
+ $objUserGroupsList->CopyToEditTable("PortalUserId", $user_ids);
+ }
+
+ $itemcount=$objEditItems->NumItems();
+ $c = $objEditItems->GetItemByIndex($en);
+
+ if($itemcount>1)
+ {
+ if ($en+1 == $itemcount)
+ $en_next = -1;
+ else
+ $en_next = $en+1;
+
+ if ($en == 0)
+ $en_prev = -1;
+ else
+ $en_prev = $en-1;
+ }
+ $action = "m_edit_user";
+}
+
+$envar = "env=" . BuildEnv() . "&en=$en";
+
+$section = 'in-portal:edituser_general';
+
+if (strlen($c->Get("Login")))
+ $editing_title = "'".$c->Get("Login")."' ";
+else
+ $editing_title = "";
+
+
+$title = GetTitle("la_Text_User", "la_Text_General", $c->Get('PortalUserId'), $c->Get('Login'));
+$c->Data=inp_htmlize($c->Data);
+
+$saveURL = $admin."/".$objSession->GetVariable('ReturnScript');
+
+//Display header
+$sec = $objSections->GetSection($section);
+$objCatToolBar = new clsToolBar();
+$objCatToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","edit_submit('edituser','UserEditStatus','".$saveURL."',1);","tool_select.gif");
+$objCatToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","edit_submit('edituser','UserEditStatus','".$saveURL."',2);","tool_cancel.gif");
+
+if ( isset($en_prev) || isset($en_next) )
+{
+ $url = $RootUrl.$admin."/users/adduser.php";
+ $StatusField = "UserEditStatus";
+ $form = "edituser";
+ MultiEditButtons($objCatToolBar,$en_next,$en_prev,$form,$StatusField,$url,$sec->Get("OnClick"),'','la_PrevUser','la_NextUser');
+}
+
+int_header($objCatToolBar,NULL,$title);
+
+if ($objSession->GetVariable("HasChanges") == 1) {
+?>
+<table width="100%" border="0" cellspacing="0" cellpadding="0" class="toolbar">
+ <tr>
+ <td valign="top">
+ <?php int_hint_red(admin_language("la_Warning_Save_Item")); ?>
+ </td>
+ </tr>
+</table>
+<?php } ?>
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+<form ID="edituser" name="edituser" action="" method=POST>
+
+ <?php int_subsection_title(prompt_language("la_Text_User")); ?>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_login" class="text"><?php echo prompt_language("la_prompt_Usermame"); ?></span></td>
+ <td>
+ <input type="text" tabindex="1" name="user_login" ID="user_login" class="text" ValidationType="exists" size="20" value="<?php echo isset($dupe_user) && $dupe_user ? $dupe_user : $c->parsetag("user_login"); ?>">
+ <span class="validation_error"><?php if( isset($dupe_user) && $dupe_user ) echo admin_language($lvErrorString); ?></span>
+ </td>
+ <td></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span ID="prompt_password" class="text"><?php echo prompt_language("la_prompt_Password"); ?></span></td>
+ <td>
+ <input autocomplete="off" type="password" id="password" tabindex="2" name="password" class="text" ValidationType="password" size="20" value="">
+ <?php if( !GetVar('new') ) echo prompt_language("la_password_info"); ?>
+ </td>
+ <td></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span ID="prompt_password_verify" class="text"><?php echo prompt_language("la_prompt_PasswordRepeat"); ?></span></td>
+ <td>
+ <input type="password" id="password_verify" tabindex="4" name="password_verify" class="text" size="20" value="">
+ </td>
+ <td></td>
+ </tr>
+
+ <?php int_subsection_title(prompt_language("la_prompt_PersonalInfo")); ?>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_firstname" class="text"><?php echo prompt_language("la_prompt_FirstName"); ?></span></td>
+ <td>
+ <input type="text" name="user_firstname" class="text" tabindex="5" size="30" value="<?php echo $c->parsetag("user_firstname"); ?>">
+ </td>
+ <td></td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top">
+ <span id="prompt_user_lastname" class="text"><?php echo prompt_language("la_prompt_LastName"); ?></span>
+ </td>
+ <td>
+ <input type="text" name="user_lastname" class="text" tabindex="6" size="30" value="<?php echo $c->parsetag("user_lastname"); ?>">
+ </td>
+ <td></td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top">
+ <span id="prompt_user_company" class="text"><?php echo prompt_language("la_fld_Company"); ?></span>
+ </td>
+ <td>
+ <input type="text" name="user_company" class="text" tabindex="7" size="30" value="<?php echo inp_htmlize($c->Get('Company')); ?>">
+ </td>
+ <td></td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span ID="prompt_user_email" class="text"><?php echo prompt_language("la_prompt_Email"); ?></span></td>
+ <td>
+ <input type="text" ValidationType="exists" name="user_email" tabindex="8" ID="user_email" class="text" size="30" value="<?php echo $c->parsetag("user_email"); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><SPAN id="prompt_user_dob" class="text"><?php echo prompt_language("la_prompt_birthday"); ?></SPAN></td>
+ <td>
+ <input type="text" ValidationType="date,exists" tabindex="9" name="user_dob" id="user_dob_selector" datepickerIcon="<?php echo $adminURL; ?>/images/ddarrow.gif" class="text" size="20" value="<?php echo $c->parsetag("user_dob"); ?>">
+ <span class="small"><?php echo prompt_language("la_prompt_DateFormat"); ?></span></td>
+ <td></td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_phone" class="text"><?php echo prompt_language("la_prompt_Phone"); ?></span></td>
+ <td>
+ <input type="text" name="user_phone" tabindex="10" class="text" size="30" value="<?php echo inp_htmlize($c->Get('Phone')); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top">
+ <span id="prompt_user_fax" class="text"><?php echo prompt_language("la_fld_Fax"); ?></span>
+ </td>
+ <td>
+ <input type="text" name="user_fax" tabindex="11" class="text" size="30" value="<?php echo inp_htmlize($c->Get('Fax')); ?>">
+ </td>
+ <td>
+ <span class="text"> </span>
+ </td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top">
+ <span id="prompt_user_street" class="text"><?php echo prompt_language("la_fld_AddressLine"); ?> 1</span>
+ </td>
+ <td>
+ <input type="text" name="user_street" tabindex="12" class="text" size="40" value="<?php echo inp_htmlize($c->Get('Street')); ?>">
+ </td>
+ <td>
+ <span class="text"> </span>
+ </td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top">
+ <span id="prompt_user_street2" class="text"><?php echo prompt_language("la_fld_AddressLine"); ?> 2</span>
+ </td>
+ <td>
+ <input type="text" name="user_street2" tabindex="13" class="text" size="40" value="<?php echo inp_htmlize($c->Get('Street2')); ?>">
+ </td>
+ <td>
+ <span class="text"> </span>
+ </td>
+ </tr>
+
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_city" class="text"><?php echo prompt_language("la_prompt_City"); ?></span></td>
+ <td>
+ <input type="text" name="user_city" class="text" tabindex="14" size="30" value="<?php echo $c->parsetag("user_city"); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_state" class="text"><?php echo prompt_language("la_prompt_State"); ?></span></td>
+ <td>
+ <input type="text" name="user_state" class="text" tabindex="15" size="20" value="<?php echo $c->parsetag("user_state"); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_zip" class="text"><?php echo prompt_language("la_prompt_Zip"); ?></span></td>
+ <td>
+ <input type="text" name="user_zip" class="text" size="6" tabindex="16" value="<?php echo $c->parsetag("user_zip"); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_user_country" class="text"><?php echo prompt_language("la_prompt_Country"); ?></span></td>
+ <td>
+ <input type="text" name="user_country" class="text" tabindex="17" size="30" value="<?php echo $c->parsetag("user_country"); ?>">
+ </td>
+ <td><span class="text"> </span></td>
+ </tr>
+ <?php int_subsection_title(prompt_language("la_prompt_Properties")); ?>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><span id="prompt_status" class="text"><?php echo prompt_language("la_prompt_Status"); ?></span></td>
+ <td>
+ <input type="radio" name="status" class="text" tabindex="18" value="1" <?php if($c->Get("Status") == 1) echo "checked"; ?>><?php echo prompt_language("la_val_Active"); ?>
+ <input type="radio" name="status" class="text" tabindex="18" value="2" <?php if($c->Get("Status") == 2) echo "checked"; ?>><?php echo prompt_language("la_val_Pending"); ?>
+ <input type="radio" name="status" class="text" tabindex="18" value="0" <?php if($c->Get("Status") == 0) echo "checked"; ?>><?php echo prompt_language("la_val_Disabled"); ?>
+ </td>
+ <td class="text"> </td>
+ </tr>
+
+
+ <!-- User: CreatedOn: begin -->
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><SPAN id="prompt_user_date" class="text"><?php echo prompt_language("la_prompt_CreatedOn"); ?></SPAN></td>
+ <td>
+ <input type="text" name="user_date" id="user_date_selector" tabindex="19" datepickerIcon="<?php echo $adminURL; ?>/images/ddarrow.gif" class="text" size="20" value="<?php echo $c->parsetag("user_date"); ?>">
+ <span class="small"><?php echo prompt_language("la_prompt_DateFormat"); ?></span></td>
+ <td></td>
+ </tr>
+ <tr <?php int_table_color(); ?>>
+ <td valign="top"><SPAN id="prompt_user_time" class="text"><?php echo prompt_language("la_prompt_CreatedOn_Time"); ?></SPAN></td>
+ <td>
+ <input type="text" name="user_time" tabindex="20" class="text" size="20" value="<?php echo $c->parsetag("user_time"); ?>">
+ <span class="small"><?php echo prompt_language("la_prompt_TimeFormat"); ?></span></td>
+ <td></td>
+ </tr>
+ <!-- User: CreatedOn: end -->
+
+<?php
+
+$CustomFieldUI = $objCustomFields->GetFieldUIList(TRUE); // get custom fields to show on general tab
+if($CustomFieldUI->NumItems()>0)
+{
+ $objCustomDataList->SetTable('edit');
+
+ if((int)$c->Get("ResourceId")>0)
+ $objCustomDataList->LoadResource($c->Get("ResourceId"));
+
+ $headings = $CustomFieldUI->GetHeadingList();
+ // draw headings
+ for($i = 0; $i < count($headings); $i++)
+ {
+ $h = $headings[$i];
+ if(strlen($h))
+ {
+ int_subsection_title(prompt_language($h));
+ $Items = $CustomFieldUI->GetHeadingItems($h);
+ foreach($Items as $f)
+ {
+ $n = substr($f->name,1); // TabIndex
+ $cfield = $objCustomFields->GetItemByField('FieldName',$n,FALSE);
+ if (is_object($cfield)) {
+ $f->default_value = $c->GetCustomFieldValue($n, '', 0, true);
+ }
+ print "<tr ".int_table_color_ret().">\n";
+ print " <td valign=\"top\"><span class=\"text\">".$f->GetPrompt()."</span></td>\n";
+
+ print " <td nowrap>".$f->ItemFormElement(17)."</TD>";
+ if (is_object($f->NextItem)) {
+ $n = $f->NextItem;
+ print " <td>".$n->ItemFormElement(17)."</TD>";
+ }
+ else {
+ print " <td><span class=\"text\"> </span></td>\n";
+ }
+ print "</tr>\n";
+ }
+ }
+ }
+ $objCustomDataList->SetTable('live');
+}
+?>
+</table>
+<input type="hidden" name="Action" value="<?php echo $action; ?>">
+ <input type="hidden" name="user_id" value="<?php echo $c->Get("PortalUserId"); ?>">
+ <input type="hidden" name="UserEditStatus" VALUE="0">
+</form>
+<script src="<?php echo $adminURL; ?>/include/calendar.js"></script>
+<SCRIPT language="JavaScript">
+ initCalendar("user_date_selector", CalDateFormat);
+ initCalendar("user_dob_selector", CalDateFormat);
+
+
+ function addLoadEvent(func, wnd) {
+ if (!wnd) wnd = window
+ var oldonload = wnd.onload;
+ if (typeof wnd.onload != 'function') {
+ wnd.onload = func;
+ } else {
+ wnd.onload = function() {
+ if (oldonload) {
+ oldonload();
+ }
+ func();
+ }
+ }
+ }
+
+ addLoadEvent(function() {
+ document.getElementById('password').value = '';
+ }
+ );
+
+
+</SCRIPT>
+<?php
+ MarkFields('edituser');
+ int_footer();
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.28.2/admin/users/adduser.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.28
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Event Timeline
Log In to Comment