Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1160088
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
Fri, Sep 19, 12:10 AM
Size
115 KB
Mime Type
text/x-diff
Expires
Sun, Sep 21, 12:10 AM (1 h, 43 m)
Engine
blob
Format
Raw Data
Handle
749562
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/unlabeled/unlabeled-1.11.2/kernel/units/users/users_item.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/units/users/users_item.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/units/users/users_item.php (revision 5303)
@@ -0,0 +1,163 @@
+<?php
+ class UsersItem extends kDBItem {
+
+ var $persistantVars = Array();
+
+ function LoadPersistantVars()
+ {
+ $sql = 'SELECT VariableValue, VariableName
+ FROM '.TABLE_PREFIX.'PersistantSessionData
+ WHERE PortalUserId = '.$this->GetID();
+ $this->persistantVars = $this->Conn->GetCol($sql, 'VariableName');
+ }
+
+ function setPersistantVar($var_name, $var_value)
+ {
+ $this->persistantVars[$var_name] = $var_value;
+
+ if ($this->GetID() > 0) {
+ $replace_hash = Array( 'PortalUserId' => $this->GetID(),
+ 'VariableName' => $var_name,
+ 'VariableValue' => $var_value
+ );
+ $this->Conn->doInsert($replace_hash, TABLE_PREFIX.'PersistantSessionData', 'REPLACE');
+ }
+ else {
+ $this->Application->StoreVar($var_name, $var_value);
+ }
+ }
+
+ function getPersistantVar($var_name)
+ {
+ return getArrayValue($this->persistantVars, $var_name);
+ }
+
+ function Load($id, $id_field_name = null)
+ {
+ $ret = parent::Load($id, $id_field_name);
+ if ($ret) {
+ $this->LoadPersistantVars();
+ }
+ return $ret;
+ }
+
+ /**
+ * Returns IDs of groups to which user belongs and membership is not expired
+ *
+ * @return Array
+ * @access public
+ */
+ function getMembershipGroups($force_reload = false)
+ {
+ $user_groups = $this->Application->RecallVar('UserGroups');
+ if($user_groups === false || $force_reload)
+ {
+ $sql = 'SELECT GroupId FROM %s WHERE (PortalUserId = %s) AND ( (MembershipExpires IS NULL) OR ( MembershipExpires >= UNIX_TIMESTAMP() ) )';
+ $sql = sprintf($sql, TABLE_PREFIX.'UserGroup', $this->GetID() );
+ return $this->Conn->GetCol($sql);
+ }
+ else
+ {
+ return explode(',', $user_groups);
+ }
+ }
+
+ /**
+ * Set's Login from Email if required by configuration settings
+ *
+ */
+ function setLogin()
+ {
+ if( $this->Application->ConfigValue('Email_As_Login') )
+ {
+ $this->SetDBField('Login', $this->GetDBField('Email') );
+ }
+ }
+
+ function SendEmailEvents()
+ {
+ switch( $this->GetDBField('Status') )
+ {
+ case 1:
+ $this->Application->EmailEventAdmin('USER.ADD', $this->GetID() );
+ $this->Application->EmailEventUser('USER.ADD', $this->GetID() );
+ break;
+
+ case 2:
+ $this->Application->EmailEventAdmin('USER.ADD.PENDING', $this->GetID() );
+ $this->Application->EmailEventUser('USER.ADD.PENDING', $this->GetID() );
+ break;
+ }
+ }
+
+ function isSubscriberOnly()
+ {
+ $subscribers_group_id = $this->Application->ConfigValue('User_SubscriberGroup');
+ $sql = 'SELECT PortalUserId
+ FROM '.TABLE_PREFIX.'UserGroup
+ WHERE GroupId = '.$subscribers_group_id.' AND
+ PortalUserId = '.$this->GetDBField('PortalUserId').' AND
+ PrimaryGroup = 1';
+ return $this->Conn->GetOne($sql) == $this->GetDBField('PortalUserId');
+ }
+
+ function Create($force_id=false, $system_create=false)
+ {
+ $ret = parent::Create($force_id, $system_create);
+ if ($ret) {
+ // find out how to syncronize user only when it's copied to live table
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('createUser', $this->FieldValues);
+ }
+ return $ret;
+ }
+
+
+ function Update($id=null, $system_update=false)
+ {
+ $ret = parent::Update($id, $system_update);
+ if ($ret) {
+ // find out how to syncronize user only when it's copied to live table
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('updateUser', $this->FieldValues);
+ }
+ return $ret;
+ }
+
+ /**
+ * Deletes the record from databse
+ *
+ * @access public
+ * @return bool
+ */
+ function Delete($id = null)
+ {
+ $ret = parent::Delete($id);
+ if ($ret) {
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('deleteUser', $this->FieldValues);
+ }
+
+ return $ret;
+ }
+
+ function setName($full_name)
+ {
+ $full_name = explode(' ', $full_name);
+
+ if (count($full_name) > 2) {
+ $last_name = array_pop($full_name);
+ $first_name = implode(' ', $full_name);
+ }
+ else {
+ $last_name = $full_name[1];
+ $first_name = $full_name[0];
+ }
+
+ $this->SetDBField('FirstName', $first_name);
+ $this->SetDBField('LastName', $last_name);
+ }
+
+
+ }
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/units/users/users_item.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php (revision 5303)
@@ -0,0 +1,90 @@
+<?php
+
+ class HelpTagProcessor extends kDBTagProcessor
+ {
+
+ function SectionTitle($params)
+ {
+ $rets = explode('.', $this->Application->GetVar('h_prefix') );
+ $this->Prefix = $rets[0];
+ $this->Special = isset($rets[1]) ? $rets[1] : '';
+ //$this->Prefix = $this->Application->GetVar('h_prefix');
+
+ $title_preset_name = replaceModuleSection($this->Application->GetVar('h_title_preset'));
+ $this->Application->SetVar('h_title_preset', $title_preset_name);
+ $title_presets = $this->Application->getUnitOption($this->Prefix,'TitlePresets');
+
+ $format = $title_presets[$title_preset_name]['format'];
+ $format = preg_replace('/[ ]*( ([\'"]{1}) | ([\(]{1}) ) \#.*\# (?(2) \1 | \) )[ ]*/Ux', ' ', $format);
+ $title_presets[$title_preset_name]['format'] = $format;
+ $this->Application->setUnitOption($this->Prefix,'TitlePresets',$title_presets);
+
+ $params['title_preset'] = $title_preset_name;
+ return parent::SectionTitle($params);
+ }
+
+ function ShowHelp($params)
+ {
+ $module = $this->Application->GetVar('h_module');
+ if (!$module) $module = $this->Application->RecallVar('module');
+
+ $module = explode(':', $module);
+ $module = $module[0];
+
+ $title_preset = $this->Application->GetVar('h_title_preset');
+
+ $sql = 'SELECT Path FROM '.TABLE_PREFIX.'Modules WHERE LOWER(Name)='.$this->Conn->qstr( strtolower($module) );
+ $module_path = $this->Conn->GetOne($sql);
+
+ $help_file = FULL_PATH.'/'.$module_path.'module_help/'.$title_preset.'.txt';
+
+ if( $this->Application->isDebugMode() && constOn('DBG_EDIT_HELP') )
+ {
+ global $debugger;
+ $ret = 'Help file: <b>'.$debugger->getLocalFile($help_file).'</b><hr>';
+ }
+ else
+ {
+ $ret = '';
+ }
+
+ $help_data = file_exists($help_file) ? file_get_contents($help_file) : false;
+
+ if( $this->Application->isDebugMode() && constOn('DBG_HELP') )
+ {
+ $this->Application->Factory->includeClassFile('FCKeditor');
+ $oFCKeditor = new FCKeditor('HelpContent');
+
+ $oFCKeditor->BasePath = $this->Application->BaseURL('/admin/editor/cmseditor');
+ $oFCKeditor->Width = '100%';
+ $oFCKeditor->Height = '300';
+ $oFCKeditor->ToolbarSet = 'Advanced';
+ $oFCKeditor->Value = $help_data;
+
+ $oFCKeditor->Config = Array(
+ 'UserFilesPath' => FULL_PATH.'kernel/user_files',
+ 'ProjectPath' => $this->Application->ConfigValue('Site_Path'),
+ 'CustomConfigurationsPath' => rtrim( $this->Application->BaseURL('/admin/editor/inp_fckconfig.js'), '/'),
+ );
+
+ $ret .= $oFCKeditor->CreateHtml();
+ }
+ else
+ {
+ $ret .= $help_data ? $help_data : $this->Application->Phrase('la_section_help_file_missing');
+ }
+
+ return $ret;
+ }
+
+ function GetIcon($params)
+ {
+ $icon_var = getArrayValue($params,'var_name');
+ $icon = replaceModuleSection($this->Application->GetVar($icon_var));
+
+ if(!$icon) $icon = getArrayValue($params,'default_icon');
+ return $icon;
+ }
+ }
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/units/help/help_tag_processor.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/kernel/include/custommetadata.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/include/custommetadata.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/include/custommetadata.php (revision 5303)
@@ -0,0 +1,172 @@
+<?php
+
+
+class clsCustomMetaData extends clsItem
+{
+// var $m_CustomDataId;
+// var $m_ResourceId;
+// var $m_CustomFieldId;
+// var $m_Value;
+
+ var $FieldName;
+
+ function clsCustomMetaData($CustomDataId=-1,$table="CustomMetaData")
+ {
+ parent::clsItem();
+ $this->tablename=GetTablePrefix()."CustomMetaData";
+ $this->type=12;
+ $this->BasePermission="";
+ $this->id_field = "CustomDataId";
+ $this->NoResourceId=1; //set this to avoid using a resource ID
+ }
+}
+
+class clsCustomDataList extends clsItemCollection
+{
+ function clsCustomDataList()
+ {
+ parent::clsItemCollection();
+ $this->classname = 'clsCustomMetaData';
+ }
+
+ function LoadResource($ResourceId)
+ {
+ // TO REMOVE
+ }
+
+ function DeleteResource($ResourceId, $main_prefix)
+ {
+ if (!$ResourceId) return false;
+
+ $custom_table = $this->Application->getUnitOption($main_prefix.'-cdata', 'TableName');
+ $sql = 'DELETE FROM '.$custom_table.'
+ WHERE ResourceId = '.$ResourceId;
+ $this->adodbConnection->Execute($sql);
+ }
+
+ function CopyResource($OldId,$NewId, $main_prefix)
+ {
+ $custom_data =& $this->Application->recallObject($main_prefix.'-cdata.-item', null, Array('skip_autoload' => true));
+ $custom_data->Load($OldId, 'ResourceId');
+
+ if ($custom_data->isLoaded()) {
+ $custom_data->SetDBField('ResourceId', $NewId);
+ $custom_data->Create();
+ }
+ }
+
+ function &SetFieldValue($FieldId,$ResourceId,$Value)
+ {
+ // so strange construction used, because in normal
+ // way it doesn't work at all (gets item copy not
+ // pointer)
+ $index = $this->GetDataItem($FieldId, true);
+
+ if($index !== false)
+ {
+ $d =& $this->Items[$index];
+ }
+ else
+ {
+ $d = null;
+ }
+
+ if(is_object($d))
+ {
+ $d->Set('Value', $Value);
+ if(!strlen($Value))
+ {
+ for($x=0;$x<count($this->Items);$x++)
+ {
+ if($this->Items[$x]->Get("CustomFieldId") == $FieldId && $this->Items[$x]->Get("ResourceId") == $ResourceId)
+ {
+ $this->Items[$x]->Set("CustomFieldId",0);
+ break;
+ }
+ }
+ $d->Delete(true);
+ }
+ }
+ else
+ {
+ $d = new clsCustomMetaData();
+ $d->Set("CustomFieldId",$FieldId);
+ $d->Set("ResourceId",$ResourceId);
+ $d->Set("Value",$Value);
+ array_push($this->Items,$d);
+ }
+ return $d;
+ }
+
+ function &GetDataItem($id, $return_index = false)
+ {
+ // $id - custom field id to find
+ // $return_index - return index to items, not her.
+ $found = false;
+ $index = false;
+ for($i = 0; $i < $this->NumItems(); $i++)
+ {
+ $d =& $this->GetItemRefByIndex($i);
+ if($d->Get("CustomFieldId")==$id)
+ {
+ $found=TRUE;
+ break;
+ }
+ }
+ return $found ? ($return_index ? $i : $d) : false;
+ }
+
+ function SaveData($main_prefix, $resource_id)
+ {
+ $ml_formatter =& $this->Application->recallObject('kMultiLanguage');
+ $custom_data =& $this->Application->recallObject($main_prefix.'-cdata', null, Array('skip_autoload' => true));
+ $custom_data->Load($resource_id, 'ResourceId');
+
+ foreach($this->Items as $f) {
+ $custom_id = $f->Get('CustomFieldId');
+ $value = isset($GLOBALS['_CopyFromEditTable']) ? $f->Get('Value') : stripslashes($f->Get('Value'));
+
+ $custom_name = $ml_formatter->LangFieldName('cust_'.$custom_id);
+ $custom_data->SetDBField($custom_name, $value);
+ }
+
+ $custom_data->SetDBField('ResourceId', $resource_id);
+ return $custom_data->isLoaded() ? $custom_data->Update() : $custom_data->Create();
+ }
+
+ function &getTempHandler($prefix)
+ {
+ if (strlen($prefix) > 2 || strlen($prefix) == 0) {
+ // not e.g. bb, c, u, but CustomFieldId :) or empty at all
+ $this->Application->reportError(get_class($this), 'CopyToEditTable');
+ }
+
+ $temp_handler =& $this->Application->recallObject($prefix.'-cdata_TempHandler', 'kTempTablesHandler');
+ return $temp_handler;
+ }
+
+ function CopyToEditTable($main_prefix, $idlist)
+ {
+ $temp_handler =& $this->getTempHandler($main_prefix);
+ $temp_handler->DoCopyLiveToTemp($temp_handler->Tables, $idlist);
+ }
+
+ function CopyFromEditTable($main_prefix)
+ {
+ $temp_handler =& $this->getTempHandler($main_prefix);
+ $temp_handler->DoCopyTempToOriginal($temp_handler->Tables);
+ }
+
+ function PurgeEditTable($main_prefix)
+ {
+ $temp_handler =& $this->getTempHandler($main_prefix);
+ $temp_handler->CancelEdit();
+ }
+
+ function CreateEmptyEditTable($main_prefix)
+ {
+ $temp_handler =& $this->getTempHandler($main_prefix);
+ $temp_handler->DoCopyLiveToTemp($temp_handler->Tables, Array(0));
+ }
+}
+?>
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/include/custommetadata.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/popups/translator.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/popups/translator.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/popups/translator.tpl (revision 5303)
@@ -0,0 +1,93 @@
+<inp2:m_RequireLogin perm_event="trans:OnLoad"/>
+<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">-->
+<html>
+<head>
+<title>In-Portal</title>
+
+<meta http-equiv="content-type" content="text/html; charset=<inp2:trans_Field field="Charset"/>">
+<meta name="keywords" content="...">
+<meta name="description" content="...">
+<meta name="robots" content="all">
+<meta name="copyright" content="Copyright ® 2006 Test, Inc">
+<meta name="author" content="Intechnic Inc.">
+
+<inp2:m_base_ref/>
+
+<link rel="icon" href="img/favicon.ico" type="image/x-icon" />
+<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
+<link rel="stylesheet" rev="stylesheet" href="incs/style.css" type="text/css" media="screen" />
+
+<script language="javascript" src="incs/is.js"></script>
+<script language="javascript" src="incs/script.js"></script>
+<script language="javascript" src="incs/in-portal.js"></script>
+<script language="javascript" src="incs/toolbar.js"></script>
+<script language="javascript" src="incs/grid.js"></script>
+<script language="javascript" src="incs/tabs.js"></script>
+<script language="javascript">
+var t = '<inp2:m_get param="t"/>';
+var popups = '1';
+var multiple_windows = '1';
+var main_title = 'In-Portal';
+var tpl_changed = 0;
+var base_url = '<inp2:m_BaseURL/>';
+
+var img_path = "img/";
+
+</script>
+</head>
+
+<inp2:m_include t="incs/blocks"/>
+<inp2:m_include t="incs/in-portal"/>
+
+<inp2:m_ParseBlock name="kernel_form"/>
+<inp2:m_if prefix="m" function="IsDebugMode"/>
+<input type="button" class="button" value="Reload Frame" onclick="self.location.reload();" /> <input type="button" class="button" value="Show Debugger" onclick="$Debugger.Toggle();" />
+<inp2:m_endif/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+
+<inp2:m_ParseBlock name="blue_bar" prefix="trans" title_preset="trans_edit" module="in-commerce"/>
+
+<!-- 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('trans','OnSaveAndClose');
+ }
+ ) );
+ 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>
+
+<input type="hidden" name="trans_prefix" value="<inp2:m_get var="trans_prefix"/>">
+<input type="hidden" name="trans_field" value="<inp2:m_get var="trans_field"/>">
+
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:m_ParseBlock name="inp_edit_hidden" prefix="trans" field="Language"/>
+
+ <inp2:m_ParseBlock name="subsection" title="!la_section_Translation!"/>
+ <inp2:m_ParseBlock name="inp_label" prefix="trans" title="!la_fld_Original!" field="Original"/>
+ <inp2:m_ParseBlock name="inp_edit_options" prefix="trans" field="SwitchLanguage" title="!la_fld_Language!" size="50" onchange="submit_event('trans', 'OnChangeLanguage')"/>
+
+ <inp2:m_if check="m_get" var="trans_multi_line" value="1">
+ <inp2:m_ParseBlock name="inp_edit_textarea" prefix="trans" field="Translation" title="!la_fld_Translation!" cols="50" rows="10"/>
+ <inp2:m_else/>
+ <inp2:m_ParseBlock name="inp_edit_box" prefix="trans" field="Translation" title="!la_fld_Translation!" size="50"/>
+ </inp2:m_if>
+</table>
+
+<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/popups/translator.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/incs/grid.js
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/incs/grid.js (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/incs/grid.js (revision 5303)
@@ -0,0 +1,382 @@
+var $GridManager = new GridManager();
+
+function GridManager () {
+ this.Grids = Grids; // get all from global variable, in future replace all references to it with $GridManager.Grids
+ this.AlternativeGrids = new Array();
+}
+
+GridManager.prototype.AddAlternativeGrid = function ($source_grid, $destination_grid, $reciprocal)
+{
+ if ($source_grid == $destination_grid) {
+ return false;
+ }
+
+ if (typeof(this.AlternativeGrids[$source_grid]) == 'undefined') {
+ // alternative grids not found, create empty list
+ this.AlternativeGrids[$source_grid] = new Array();
+ }
+
+ if (!in_array($destination_grid, this.AlternativeGrids[$source_grid])) {
+ // alternative grids found, check if not added already
+ this.AlternativeGrids[$source_grid].push($destination_grid);
+ }
+
+ if ($reciprocal) {
+ this.AddAlternativeGrid($destination_grid, $source_grid);
+ }
+}
+
+GridManager.prototype.ClearAlternativeGridsSelection = function ($source_prefix)
+{
+ if (!this.AlternativeGrids[$source_prefix]) return false;
+
+ var $i = 0;
+ var $destination_prefix = '';
+ while ($i < this.AlternativeGrids[$source_prefix].length) {
+ $destination_prefix = this.AlternativeGrids[$source_prefix][$i];
+ if (this.Grids[$destination_prefix]) {
+ // alternative grid set, but not yet loaded by ajax
+ this.Grids[$destination_prefix].ClearSelection();
+ }
+ $i++;
+ }
+}
+
+function GridItem(grid, an_element, cb, item_id, class_on, class_off)
+{
+ this.Grid = grid;
+ this.selected = false;
+ this.id = an_element.id;
+ this.ItemId = item_id;
+ this.sequence = parseInt(an_element.getAttribute('sequence'));
+ this.class_on = class_on;
+ if (class_off == ':original') {
+ this.class_off = an_element.className;
+ }
+ else
+ this.class_off = class_off;
+ this.HTMLelement = an_element;
+ this.CheckBox = cb;
+
+ this.value = this.ItemId;
+ this.ItemType = 11;
+}
+
+GridItem.prototype.Init = function ()
+{
+ this.HTMLelement.GridItem = this;
+ this.HTMLelement.onclick = function(ev) {
+ this.GridItem.Click(ev);
+ };
+ this.HTMLelement.ondblclick = function(ev) {
+ this.GridItem.DblClick(ev);
+ }
+ if ( isset(this.CheckBox) ) {
+ this.CheckBox.GridItem = this;
+ this.CheckBox.onclick = function(ev) {
+ this.GridItem.cbClick(ev);
+ };
+ this.CheckBox.ondblclick = function(ev) {
+ this.GridItem.DblClick(ev);
+ }
+ }
+}
+
+GridItem.prototype.DisableClicking = function ()
+{
+ this.HTMLelement.onclick = function(ev) {
+ return false;
+ };
+ this.HTMLelement.ondblclick = function(ev) {
+ return false;
+ }
+ if ( isset(this.CheckBox) ) {
+ this.CheckBox.onclick = function(ev) {
+ return false;
+ };
+ }
+}
+
+GridItem.prototype.Select = function ()
+{
+ if (this.selected) return;
+ this.selected = true;
+ this.HTMLelement.className = this.class_on;
+ if ( isset(this.CheckBox) ) {
+ this.CheckBox.checked = true;
+ }
+ this.Grid.LastSelectedId = this.ItemId;
+ this.Grid.SelectedCount++;
+
+ // this is for in-portal only (used in relation select)
+ LastCheckedItem = this;
+ if (typeof (this.Grid.OnSelect) == 'function' ) {
+ this.Grid.OnSelect(this.ItemId);
+ }
+}
+
+GridItem.prototype.UnSelect = function ( force )
+{
+ if ( !this.selected && !force) return;
+ this.selected = false;
+ this.HTMLelement.className = this.class_off;
+ if ( isset(this.CheckBox) ) {
+ this.CheckBox.checked = false;
+ }
+ this.Grid.SelectedCount--;
+ if (typeof (this.Grid.OnUnSelect) == 'function' ) {
+ this.Grid.OnUnSelect(this.ItemId);
+ }
+}
+
+GridItem.prototype.ClearBrowserSelection = function() {
+ if (window.getSelection) {
+ // removeAllRanges will be supported by Opera from v 9+, do nothing by now
+ var selection = window.getSelection();
+ if (selection.removeAllRanges) { // Mozilla & Opera 9+
+ window.getSelection().removeAllRanges();
+ }
+ } else if (document.selection && !is.opera) { // IE
+ document.selection.empty();
+ }
+}
+
+GridItem.prototype.Click = function (ev)
+{
+ this.ClearBrowserSelection();
+ this.Grid.ClearAlternativeGridsSelection('GridItem.Click');
+
+ var e = !is.ie ? ev : window.event;
+ if (e.shiftKey && !this.Grid.RadioMode) {
+ this.Grid.SelectRangeUpTo(this.sequence);
+ }
+ else {
+ if (e.ctrlKey && !this.Grid.RadioMode) {
+ this.Toggle()
+ }
+ else {
+ if (!(this.Grid.RadioMode && this.Grid.LastSelectedId == this.ItemId)) {
+ // don't clear selection if item same as current is selected
+ this.Grid.ClearSelection(null,'GridItem.Click');
+ this.Toggle();
+ }
+ }
+ }
+ this.Grid.CheckDependencies();
+ e.cancelBubble = true;
+}
+
+GridItem.prototype.cbClick = function (ev)
+{
+ var e = is.ie ? window.event : ev;
+ if (this.Grid.RadioMode) this.Grid.ClearSelection(null,'GridItem.cbClick');
+ this.Grid.ClearAlternativeGridsSelection('GridItem.cbClick');
+ this.Toggle();
+ this.Grid.CheckDependencies();
+ e.cancelBubble = true;
+}
+
+GridItem.prototype.DblClick = function (ev)
+{
+ var e = is.ie ? window.event : ev;
+ this.Grid.Edit();
+}
+
+GridItem.prototype.Toggle = function ()
+{
+ if (this.selected) this.UnSelect()
+ else {
+ this.Grid.LastSelectedSequence = this.sequence;
+ this.Select();
+ }
+}
+
+GridItem.prototype.FallsInRange = function (from, to)
+{
+ return (from <= to) ?
+ (this.sequence >= from && this.sequence <= to) :
+ (this.sequence >= to && this.sequence <= from);
+}
+
+
+function Grid(prefix, class_on, class_off, dbl_click, toolbar)
+{
+ this.prefix = prefix;
+ this.class_on = class_on;
+ this.class_off = class_off;
+ this.Items = new Array();
+ this.LastSelectedSequence = 1;
+ this.LastSelectedId = null;
+ this.DblClick = dbl_click;
+ this.ToolBar = toolbar;
+ this.SelectedCount = 0;
+ this.AlternativeGrids = new Array();
+ this.DependantButtons = new Array();
+ this.RadioMode = false;
+}
+
+Grid.prototype.AddItem = function( an_item ) {
+ this.Items[an_item.id] = an_item;
+}
+
+Grid.prototype.AddItemsByIdMask = function ( tag, mask, cb_mask ) {
+ var $item_id=0;
+ elements = document.getElementsByTagName(tag.toUpperCase());
+ for (var i=0; i < elements.length; i++) {
+ if ( typeof(elements[i].id) == 'undefined') {
+ continue;
+ }
+ if ( !elements[i].id.match(mask)) continue;
+ $item_id=RegExp.$1;
+
+ cb_name = cb_mask.replace('$$ID$$',$item_id);
+
+ cb = document.getElementById(cb_name);
+ if (typeof(cb) == 'undefined') alert ('No Checkbox defined for item '+elements[i].id);
+
+ this.AddItem( new GridItem( this, elements[i], cb, $item_id, this.class_on, this.class_off ) );
+ }
+}
+
+Grid.prototype.InitItems = function() {
+ for (var i in this.Items) {
+ this.Items[i].Init();
+ }
+ this.ClearSelection( true,'Grid.InitItems' );
+}
+
+Grid.prototype.DisableClicking = function() {
+ for (var i in this.Items) {
+ this.Items[i].DisableClicking();
+ }
+ this.ClearSelection( true, 'Grid.DisableClicking' );
+}
+
+Grid.prototype.ClearSelection = function( force, called_from ) {
+// alert('selection clear. force: '+force+'; called_from: '+called_from);
+ if (typeof(force) == 'undefined') force = false;
+ if (this.CountSelected() == 0 && !force) return;
+ for (var i in this.Items) {
+ this.Items[i].UnSelect(force);
+ }
+ this.SelectedCount = 0;
+ this.CheckDependencies();
+}
+
+Grid.prototype.GetSelected = function() {
+ var $ret = new Array();
+ for (var i in this.Items) {
+ if (this.Items[i].selected) {
+ $ret[$ret.length] = this.Items[i].ItemId;
+ }
+
+ }
+ return $ret;
+}
+
+Grid.prototype.InvertSelection = function() {
+ for (var i in this.Items)
+ {
+ if( this.Items[i].selected )
+ {
+ this.Items[i].UnSelect();
+ }
+ else
+ {
+ this.Items[i].Select();
+ }
+ }
+ this.CheckDependencies();
+}
+
+Grid.prototype.SelectAll = function() {
+ for (var i in this.Items) {
+ this.Items[i].Select();
+ }
+ this.CheckDependencies();
+ this.ClearAlternativeGridsSelection('Grid.SelectAll');
+}
+
+Grid.prototype.SelectRangeUpTo = function( last_sequence ) {
+ for (var i in this.Items) {
+ if (this.Items[i].FallsInRange(this.LastSelectedSequence, last_sequence)) {
+ this.Items[i].Select();
+ }
+ }
+}
+
+Grid.prototype.CountSelected = function ()
+{
+ return this.SelectedCount;
+}
+
+Grid.prototype.Edit = function() {
+ if ( this.CountSelected() == 0 ) return;
+ this.DblClick();
+}
+
+Grid.prototype.SetDependantToolbarButtons = function($buttons, $direct, $mode) {
+ if (!isset($direct)) $direct = true; // direct (use false for invert mode)
+ if (!isset($mode)) $mode = 1; // enable/disable (use 2 for show/hide mode)
+ for (var i in $buttons) {
+ this.DependantButtons.push(new Array($buttons[i], $direct, $mode));
+ }
+ //this.DependantButtons = buttons;
+ this.CheckDependencies();
+}
+
+Grid.prototype.CheckDependencies = function()
+{
+ var enabling = (this.CountSelected() > 0);
+ for (var i in this.DependantButtons) {
+ if (this.DependantButtons[i][0].match("portal:(.*)")) {
+ button_name = RegExp.$1;
+ if (toolbar) {
+ if (enabling == this.DependantButtons[i][1]) {
+ toolbar.enableButton(button_name, true);
+ }
+ else
+ {
+ toolbar.disableButton(button_name, true);
+ }
+ }
+ }
+ else {
+ if (this.DependantButtons[i][2] == 1) {
+ this.ToolBar.SetEnabled(this.DependantButtons[i][0], enabling == this.DependantButtons[i][1]);
+ }
+ else {
+ this.ToolBar.SetVisible(this.DependantButtons[i][0], enabling == this.DependantButtons[i][1]);
+ }
+ }
+ }
+ //if (enabling) this.ClearAlternativeGridsSelection('Grid.CheckDependencies');
+
+}
+
+Grid.prototype.ClearAlternativeGridsSelection = function (called_from)
+{
+ $GridManager.ClearAlternativeGridsSelection(this.prefix);
+}
+
+Grid.prototype.AddAlternativeGrid = function (alt_grid, reciprocal)
+{
+ var $dst_prefix = typeof('alt_grid') == 'string' ? alt_grid : alt_grid.prefix;
+ $GridManager.AddAlternativeGrid(this.prefix, $dst_prefix, reciprocal);
+}
+
+Grid.prototype.FirstSelected = function ()
+{
+ min_sequence = null;
+ var res = null
+ for (var i in this.Items) {
+ if (!this.Items[i].selected) continue;
+ if (min_sequence == null)
+ min_sequence = this.Items[i].sequence;
+ if (this.Items[i].sequence <= min_sequence) {
+ res = this.Items[i].ItemId;
+ min_sequence = this.Items[i].sequence;
+ }
+ }
+ return res;
+}
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/admin_templates/incs/grid.js
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/kernel/admin/include/toolbar/advanced_view.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/kernel/admin/include/toolbar/advanced_view.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/kernel/admin/include/toolbar/advanced_view.php (revision 5303)
@@ -0,0 +1,555 @@
+<?php
+global $objConfig,$objSections,$section, $rootURL,$adminURL, $admin, $imagesURL,$envar,
+ $m_var_list_update,$objCatList, $homeURL, $upURL, $objSession,$DefaultTab;
+
+global $CategoryFilter,$TotalItemCount;
+
+global $Bit_All,$Bit_Pending,$Bit_Disabled,$Bit_New,$Bit_Pop,$Bit_Hot,$Bit_Ed;
+
+//global $hideSelectAll;
+
+
+$m_tab_Categories_hide = isset($DefaultTab) && ($DefaultTab == 'category') ? 0 : 1;
+
+
+/* bit place holders for category view menu */
+$Bit_Active=64;
+$Bit_Pending=32;
+$Bit_Disabled=16;
+$Bit_New=8;
+$Bit_Pop=4;
+$Bit_Hot=2;
+$Bit_Ed=1;
+
+
+if( isset($_GET['SetTab']) ) $DefaultTab = $_GET["SetTab"];
+
+$application =& kApplication::Instance();
+$force_tab = $application->RecallVar('force_tab');
+if ($force_tab) {
+ $DefaultTab = $force_tab;
+ $application->RemoveVar('force_tab');
+}
+
+
+// category list filtering stuff: begin
+
+$CategoryView = $objConfig->Get("Category_View");
+if(!is_numeric($CategoryView))
+{
+ $CategoryView = 127;
+}
+
+$Category_Sortfield = $objConfig->Get("Category_Sortfield");
+if( !strlen($Category_Sortfield) ) $Category_Sortfield = "Name";
+
+$Category_Sortorder = $objConfig->Get("Category_Sortorder");
+if( !strlen($Category_Sortorder) ) $Category_Sortorder = "desc";
+
+$Perpage_Category = (int)$objConfig->Get("Perpage_Category");
+if(!$Perpage_Category)
+ $Perpage_Category="'all'";
+
+
+if($CategoryView == 127)
+{
+ $Category_ShowAll = 1;
+}
+else
+{
+ $Category_ShowAll = 0;
+ // FILTERING CODE V. 1.2
+ $where_clauses = Array(); $q = '';
+
+ //Group #1: Category Statuses (active,pending,disabled)
+ $Status = array(-1);
+ if($CategoryView & $Bit_Pending) $Status[] = STATUS_PENDING;
+ if($CategoryView & $Bit_Active) $Status[] = STATUS_ACTIVE;
+ if($CategoryView & $Bit_Disabled) $Status[] = STATUS_DISABLED;
+ if( count($Status) ) $where_clauses[] = 'Status IN ('.implode(',', $Status).')';
+
+ //Group #2: Category Statistics (new,pick)
+ $Status = array();
+ if(!($CategoryView & $Bit_New))
+ {
+ $cutoff = adodb_date("U") - ($objConfig->Get("Category_DaysNew") * 86400);
+ if($cutoff > 0) $q = 'CreatedOn > '.$cutoff;
+ $q .= (!empty($q) ? ' OR ' : '').'NewItem = 1';
+ $Status[] = "NOT ($q)";
+ }
+ if(!($CategoryView & $Bit_Ed)) $Status[] = 'NOT (EditorsPick = 1)';
+
+ if( count($Status) )
+ $where_clauses[] = '('.implode(') AND (', $Status).')';
+
+ $CategoryFilter = count($where_clauses) ? '('.implode(') AND (', $where_clauses).')' : '';
+}
+
+// category list filtering stuff: end
+
+ $OrderBy = $objCatList->QueryOrderByClause(TRUE,TRUE,TRUE);
+ $objCatList->Clear();
+ $IsSearch = FALSE;
+
+ $list = $objSession->GetVariable("m_adv_view_search");
+ $SearchQuery = $objCatList->AdminSearchWhereClause($list);
+ if(strlen($SearchQuery))
+ {
+ $SearchQuery = " (".$SearchQuery.")".($CategoryFilter ? 'AND ('.$CategoryFilter.')' : '');
+ $objCatList->LoadCategories($SearchQuery,$OrderBy, false, 'set_last');
+ $IsSearch = TRUE;
+ }
+ else
+ $objCatList->LoadCategories($CategoryFilter,$OrderBy, false, 'set_last');
+
+ $TotalItemCount += $objCatList->QueryItemCount;
+
+
+$CatTotal = TableCount($objCatList->SourceTable,null,false);
+
+$mnuClearSearch = language("la_SearchMenu_Clear");
+$mnuNewSearch = language("la_SearchMenu_New");
+$mnuSearchCategory = language("la_SearchMenu_Categories");
+
+$lang_New = language("la_Text_New");
+$lang_Hot = language("la_Text_Hot");
+$lang_EdPick = language("la_prompt_EditorsPick");
+$lang_Pop = language("la_Text_Pop");
+
+$lang_Rating = language("la_prompt_Rating");
+$lang_Hits = language("la_prompt_Hits");
+$lang_Votes = language("la_prompt_Votes");
+$lang_Name = language("la_prompt_Name");
+
+$lang_Categories = language("la_ItemTab_Categories");
+$lang_Description = language("la_prompt_Description");
+$lang_MetaKeywords = language("la_prompt_MetaKeywords");
+$lang_SubSearch = language("la_prompt_SubSearch");
+$lang_Within = language("la_Text_Within");
+$lang_Current = language("la_Text_Current");
+$lang_Active = language("la_Text_Active");
+$lang_SubCats = language("la_Text_SubCats");
+$lang_SubItems = language("la_Text_Subitems");
+
+// View, Sort, Select, Per Page
+$lang_View = language('la_Text_View');
+$lang_Sort = language('la_Text_Sort');
+$lang_PerPage = language('la_prompt_PerPage');
+$lang_Select = language('la_Text_Select');
+
+$ItemTabs->AddTab(language("la_ItemTab_Categories"),"category",$objCatList->QueryItemCount, $m_tab_Categories_hide, $CatTotal);
+
+print <<<END
+
+<script language="JavaScript">
+// global usage phrases
+var lang_View = '$lang_View';
+var lang_Sort = '$lang_Sort';
+var lang_PerPage = '$lang_PerPage';
+var lang_Select = '$lang_Select';
+
+// local usage phrases
+var default_tab = "$DefaultTab";
+var Category_Sortfield = '$Category_Sortfield';
+var Category_Sortorder = '$Category_Sortorder';
+var Category_Perpage = $Perpage_Category;
+var Category_ShowAll = $Category_ShowAll;
+var CategoryView = $CategoryView;
+
+//JS Language variables
+var lang_New = "$lang_New";
+var lang_Hot = "$lang_Hot";
+var lang_EdPick = "$lang_EdPick";
+
+var lang_Pop = "$lang_Pop";
+var lang_Rating = "$lang_Rating";
+var lang_Hits = "$lang_Hits";
+var lang_Votes = "$lang_Votes";
+var lang_Name = "$lang_Name";
+var lang_Categories = "$lang_Categories";
+var lang_Description = "$lang_Description";
+var lang_MetaKeywords = "$lang_MetaKeywords";
+var lang_SubSearch = "$lang_SubSearch";
+var lang_Within="$lang_Within";
+var lang_Current = "$lang_Current";
+var lang_Active = "$lang_Active";
+var lang_SubCats = "$lang_SubCats";
+var lang_SubItems = "$lang_SubItems";
+
+var hostname = '$rootURL';
+var env = '$envar';
+var actionlist = new Array();
+
+
+
+ // K4 code for handling toolbar operations: begin
+ var \$TabRegistry = Array();
+
+ function InpGrid(tab)
+ {
+ this.TabId = tab;
+ }
+
+ InpGrid.prototype.ClearSelection = function(force,called_from)
+ {
+ unselectAll(this.TabId, 1); //1 means don't upate toolbar
+ }
+
+ function registerTab(\$tab_id)
+ {
+ var \$tab = document.getElementById(\$tab_id);
+ var \$index = \$TabRegistry.length;
+
+ \$TabRegistry[\$index] = new Array();
+ \$TabRegistry[\$index]['tab_id'] = \$tab_id;
+ \$TabRegistry[\$index]['prefix_special'] = \$tab.getAttribute('PrefixSpecial');
+ \$TabRegistry[\$index]['edit_template'] = \$tab.getAttribute('EditURL');
+ }
+
+ function queryTabRegistry(\$search_key, \$search_value, \$return_key)
+ {
+ var \$i = 0;
+ while(\$i < \$TabRegistry.length)
+ {
+ if(\$TabRegistry[\$i][\$search_key] == \$search_value)
+ {
+ return \$TabRegistry[\$i][\$return_key];
+ break;
+ }
+ \$i++;
+ }
+ return '<'+\$search_key+'='+\$search_value+'>';
+ }
+
+ function k4_actionHandler(action, prefix_special)
+ {
+ var k4_action = '';
+ switch (action)
+ {
+ case 'edit':
+ k4_action = 'edit_item("'+prefix_special+'")';
+ break;
+ case 'delete':
+ k4_action = 'delete_items("'+prefix_special+'")';
+ break;
+ case 'unselect':
+ k4_action = 'unselect("'+prefix_special+'")';
+ break;
+ case 'approve':
+ k4_action = 'approve_items("'+prefix_special+'")';
+ break;
+ case 'decline':
+ k4_action = 'decine_items("'+prefix_special+'")';
+ break;
+ }
+ if (k4_action != '')
+ {
+ \$form_name = queryTabRegistry('prefix_special', prefix_special, 'tab_id') + '_form';
+ eval(k4_action);
+ }
+ else alert(action+' not implemented');
+
+ }
+
+ function approve_items(prefix_special)
+ {
+ set_hidden_field('remove_specials['+prefix_special+']',1);
+ submit_event(prefix_special,'OnMassApprove','')
+ }
+
+ function decine_items(prefix_special)
+ {
+ set_hidden_field('remove_specials['+prefix_special+']',1);
+ submit_event(prefix_special,'OnMassDecline','')
+ }
+
+ function edit()
+ {
+ edit_item( queryTabRegistry('tab_id', activeTab.id, 'prefix_special') );
+ }
+
+ function edit_item(prefix_special)
+ {
+ opener_action('d');
+ set_hidden_field(prefix_special+'_mode', 't');
+ set_hidden_field('remove_specials['+prefix_special+']',1);
+
+ submit_event(prefix_special, 'OnEdit', queryTabRegistry('prefix_special', prefix_special, 'edit_template'), '../../admin/index4.php');
+ }
+
+ function delete_items(prefix_special)
+ {
+ set_hidden_field('remove_specials['+prefix_special+']',1);
+ submit_event(prefix_special,'OnMassDelete','')
+ }
+
+ function unselect(prefix_special)
+ {
+ Grids[prefix_special].ClearSelection(null,'Inp_AdvancedView.Unselect');
+ }
+ // K4 code for handling toolbar operations: end
+
+
+
+ // Common function for all "Advanced View" page
+ function InitPage()
+ {
+ addCommonActions();
+ initToolbar('mainToolBar', actionHandler);
+ initCheckBoxes(null, false);
+ //toggleMenu();
+ }
+
+ function AddButtonAction(actionname,actionval)
+ {
+ var item = new Array(actionname,actionval);
+ actionlist[actionlist.length] = item;
+ }
+
+ function actionHandler(button)
+ {
+ for(i=0; i<actionlist.length;i++)
+ {
+ a = actionlist[i];
+ if(button.action == a[0])
+ {
+ eval(a[1]);
+ break;
+ }
+ }
+ }
+
+ function addCommonActions()
+ {
+ AddButtonAction('edit',"check_submit('','edit');"); //edit
+ AddButtonAction('delete',"check_submit('$admin/advanced_view','delete');"); //delete
+ AddButtonAction('approve',"check_submit('$admin/advanced_view','approve');"); //approve
+ AddButtonAction('decline',"check_submit('$admin/advanced_view','decline');"); //decline
+ AddButtonAction('print',"window.print();"); //print ?
+ AddButtonAction('view',"toggleMenu(); window.FW_showMenu(window.cat_menu,getRealLeft(button) - ((document.all) ? 6 : -2),getRealTop(button)+32);");
+ }
+
+ function check_submit(page,actionValue)
+ {
+
+ if (actionValue.match(/delete$/))
+ if (!theMainScript.Confirm(lang_DeleteConfirm)) return;
+
+ var formname = '';
+ var action_prefix ='';
+
+ if (activeTab)
+ {
+ form_name = activeTab.id;
+ action_prefix = activeTab.getAttribute("ActionPrefix");
+ if(page.length == 0) page = activeTab.getAttribute("EditURL");
+
+ if ( action_prefix.match("k4:(.*)") )
+ {
+ act = RegExp.$1;
+ act = act.replace('$\$event$$', actionValue);
+ act = act.replace('$\$prefix$$', activeTab.getAttribute("PrefixSpecial") );
+ eval(act);
+ return;
+ }
+ }
+
+ var f = document.getElementsByName(form_name+'_form')[0];
+ if(f)
+ {
+ f.Action.value = action_prefix + actionValue;
+ f.action = '$rootURL' + page + '.php?'+ env;
+ f.submit();
+ }
+ }
+
+ function flip_current(field_suffix)
+ {
+ if(activeTab)
+ {
+ field = activeTab.getAttribute("tabTitle")+field_suffix;
+ return flip(eval(field));
+ }
+ }
+
+ function config_current(field_suffix,value)
+ {
+ if(activeTab)
+ {
+ field = activeTab.getAttribute("tabTitle")+field_suffix;
+ config_val(field,value);
+ }
+ }
+
+ \$fw_menus['c_view_menu'] = function()
+ {
+ // filtring menu
+ \$Menus['c_filtring_menu'] = new Menu(lang_View);
+ \$Menus['c_filtring_menu'].addMenuItem(lang_All,"config_val('Category_View', 127);",CategoryView==127);
+ \$Menus['c_filtring_menu'].addMenuSeparator();
+ \$Menus['c_filtring_menu'].addMenuItem(lang_Active,"FlipBit('Category_View',CategoryView,6);",BitStatus(CategoryView,6));
+ \$Menus['c_filtring_menu'].addMenuItem(lang_Pending,"FlipBit('Category_View',CategoryView,5);", BitStatus(CategoryView,5));
+ \$Menus['c_filtring_menu'].addMenuItem(lang_Disabled,"FlipBit('Category_View',CategoryView,4);",BitStatus(CategoryView,4));
+ \$Menus['c_filtring_menu'].addMenuSeparator();
+ \$Menus['c_filtring_menu'].addMenuItem(lang_New,"FlipBit('Category_View',CategoryView,3);",BitStatus(CategoryView,3));
+ \$Menus['c_filtring_menu'].addMenuItem(lang_EdPick,"FlipBit('Category_View',CategoryView,0);",BitStatus(CategoryView,0));
+
+ // sorting menu
+ \$Menus['c_sorting_menu'] = new Menu(lang_Sort);
+ \$Menus['c_sorting_menu'].addMenuItem(lang_Asc,"config_val('Category_Sortorder','asc');",RadioIsSelected(Category_Sortorder,'asc'));
+ \$Menus['c_sorting_menu'].addMenuItem(lang_Desc,"config_val('Category_Sortorder','desc');",RadioIsSelected(Category_Sortorder,'desc'));
+ \$Menus['c_sorting_menu'].addMenuSeparator();
+ \$Menus['c_sorting_menu'].addMenuItem(lang_Default,"config_val('Category_Sortfield','Name');","");
+ \$Menus['c_sorting_menu'].addMenuItem(lang_Name,"config_val('Category_Sortfield','Name');",RadioIsSelected(Category_Sortfield,'Name'));
+ \$Menus['c_sorting_menu'].addMenuItem(lang_Description,"config_val('Category_Sortfield','Description');",RadioIsSelected(Category_Sortfield,'Description'));
+ \$Menus['c_sorting_menu'].addMenuItem(lang_CreatedOn,"config_val('Category_Sortfield','CreatedOn');",RadioIsSelected(Category_Sortfield,'CreatedOn'));
+ \$Menus['c_sorting_menu'].addMenuItem(lang_SubCats,"config_val('Category_Sortfield','CachedDescendantCatsQty');",RadioIsSelected(Category_Sortfield,'CachedDescendantCatsQty'));
+ \$Menus['c_sorting_menu'].addMenuItem(lang_SubItems,"config_val('Category_Sortfield','SubItems');",RadioIsSelected(Category_Sortfield,'SubItems'));
+
+ // perpage menu
+ \$Menus['c_perpage_menu'] = new Menu(lang_PerPage);
+ \$Menus['c_perpage_menu'].addMenuItem("10","config_val('Perpage_Category', '10');",RadioIsSelected(Category_Perpage,10));
+ \$Menus['c_perpage_menu'].addMenuItem("20","config_val('Perpage_Category', '20');",RadioIsSelected(Category_Perpage,20));
+ \$Menus['c_perpage_menu'].addMenuItem("50","config_val('Perpage_Category', '50');",RadioIsSelected(Category_Perpage,50));
+ \$Menus['c_perpage_menu'].addMenuItem("100","config_val('Perpage_Category', '100');",RadioIsSelected(Category_Perpage,100));
+ \$Menus['c_perpage_menu'].addMenuItem("500","config_val('Perpage_Category', '500');",RadioIsSelected(Category_Perpage,500));
+
+ // select menu
+ \$Menus['c_select_menu'] = new Menu(lang_Select);
+ \$Menus['c_select_menu'].addMenuItem(lang_All,"javascript:selectAllC('"+activeTab.id+"');","");
+ \$Menus['c_select_menu'].addMenuItem(lang_Unselect,"javascript:unselectAll('"+activeTab.id+"');","");
+ \$Menus['c_select_menu'].addMenuItem(lang_Invert,"javascript:invert('"+activeTab.id+"');","");
+
+ // view menu
+ \$Menus['c_view_menu'] = new Menu(lang_Categories);
+ \$Menus['c_view_menu'].addMenuItem( \$Menus['c_filtring_menu'] );
+ \$Menus['c_view_menu'].addMenuItem( \$Menus['c_sorting_menu'] );
+ \$Menus['c_view_menu'].addMenuItem( \$Menus['c_perpage_menu'] );
+ \$Menus['c_view_menu'].addMenuItem( \$Menus['c_select_menu'] );
+ }
+
+ function toggleMenu()
+ {
+ var prefix_special = activeTab.getAttribute('PrefixSpecial');
+ \$fw_menus[prefix_special+'_view_menu']();
+ window.cat_menu = \$Menus[prefix_special+'_view_menu'];
+ window.triedToWriteMenus = false;
+ window.cat_menu.writeMenus();
+ }
+
+ function toggleTabB(tabId, atm)
+ {
+ var hl = document.getElementById("hidden_line");
+ var activeTabId;
+
+ if (activeTab) activeTabId = activeTab.id;
+
+
+ if (activeTabId != tabId)
+ {
+ if (activeTab)
+ {
+ //alert('switching to tab');
+ toggleTab(tabId, true)
+ }
+ else
+ {
+ //alert('opening tab');
+ toggleTab(tabId, atm)
+ }
+
+ if (hl) hl.style.display = "none";
+ }
+ tab_hdr = document.getElementById('tab_headers');
+ if (!tab_hdr) return;
+
+ // process all module tabs
+ var active_str = '';
+ for (var i = 0; i < tabIDs.length; i++)
+ {
+ var tabHeader;
+ TDs = tab_hdr.getElementsByTagName("TD");
+ // find tab
+ for (var j = 0; j < TDs.length; j++)
+ if (TDs[j].getAttribute("tabHeaderOf") == tabIDs[i])
+ {
+ tabHeader = TDs[j];
+ break;
+ }
+ if (!tabHeader) continue;
+
+ var tab = document.getElementById(tabIDs[i]);
+ if (!tab) continue;
+ active_str = (tab.active) ? "tab_active" : "tab_inactive";
+ if (TDs[j].getAttribute("tabHeaderOf") == tabId) {
+ // module tab is selected
+ TabActive = tabId;
+ SetBackground('l_' + tabId, "$imagesURL/itemtabs/" + active_str + "_l.gif");
+ SetBackground('m_' + tabId, "$imagesURL/itemtabs/" + active_str + ".gif");
+ SetBackground('m1_' + tabId, "$imagesURL/itemtabs/" + active_str + ".gif");
+ SetBackground('r_' + tabId, "$imagesURL/itemtabs/" + active_str + "_r.gif");
+ }
+ else
+ {
+ // module tab is not selected
+ SetBackground('l_' +tabIDs[i], "$imagesURL/itemtabs/" + active_str + "_l.gif");
+ SetBackground('m_' + tabIDs[i], "$imagesURL/itemtabs/" + active_str + ".gif");
+ SetBackground('m1_' + tabIDs[i], "$imagesURL/itemtabs/" + active_str + ".gif");
+ SetBackground('r_' + tabIDs[i], "$imagesURL/itemtabs/" + active_str + "_r.gif");
+ }
+
+ var images = tabHeader.getElementsByTagName("IMG");
+ if (images.length < 1) continue;
+
+ images[0].src = "$imagesURL/itemtabs/" + ((tab.active) ? "divider_up" : "divider_empty") + ".gif";
+ }
+ }
+
+ function SetBackground(element_id, img_url)
+ {
+ // set background image of element specified by id
+ var el = document.getElementById(element_id);
+ el.style.backgroundImage = 'url('+img_url+')';
+ }
+
+ function initContextMenu()
+ {
+ window.contextMenu = new Menu("Context");
+ contextMenu.addMenuItem("Edit","check_submit('','edit');","");
+ contextMenu.addMenuItem("Delete","check_submit('admin/advanced_view','delete');","");
+ contextMenu.addMenuSeparator();
+ contextMenu.addMenuItem("Approve","check_submit('admin/advanced_view','approve');","");
+ contextMenu.addMenuItem("Decline","check_submit('admin/advanced_view','decline');","");
+
+ window.triedToWriteMenus = false;
+ window.contextMenu.writeMenus();
+ return true;
+ }
+
+ // Event Handling Stuff Cross-Browser
+ getEvent = window.Event
+ ? function(e){return e}
+ : function() {return event}
+
+ getEventSrcElement = window.Event
+ ? function(e){var targ=e.target;return targ.nodeType==1?targ:targ.parentNode}
+ : function() {return event.srcElement}
+
+ function getKeyCode(e){return e.charCode||e.keyCode}
+
+ function getKey(eMoz)
+ {
+ var e = getEvent(eMoz)
+ var keyCode = getKeyCode(e)
+
+ if(keyCode == 13)
+ {
+ var el = document.getElementById(TabActive+'_imgSearch');
+ if(typeof(el) != 'undefined') el.onclick();
+ }
+
+ }
+</script>
+
+END;
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/kernel/admin/include/toolbar/advanced_view.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/core/kernel/processors/tag_processor.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/core/kernel/processors/tag_processor.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/core/kernel/processors/tag_processor.php (revision 5303)
@@ -0,0 +1,153 @@
+<?php
+
+ class TagProcessor extends kBase {
+
+ /**
+ * Processes tag
+ *
+ * @param Tag $tag
+ * @return string
+ * @access public
+ */
+ function ProcessTag(&$tag)
+ {
+ return $this->ProcessParsedTag($tag->Tag, $tag->NP, $tag->getPrefixSpecial());
+
+ /*$Method=$tag->Tag;
+ if(method_exists($this, $Method))
+ {
+ //echo htmlspecialchars($tag->GetFullTag()).'<br>';
+ return $this->$Method($tag->NP);
+ }
+ else
+ {
+ if ($this->Application->hasObject('TagsAggregator')) {
+ $aggregator =& $this->Application->recallObject('TagsAggregator');
+ $tag_mapping = $aggregator->GetArrayValue($tag->Prefix, $Method);
+ if ($tag_mapping) {
+
+ $mapped_tag =& new Tag('', $this->Application->Parser);
+ $mapped_tag->CopyFrom($tag);
+ $mapped_tag->Processor = $tag_mapping[0];
+ $mapped_tag->Tag = $tag_mapping[1];
+ $mapped_tag->NP['PrefixSpecial'] = $tag->getPrefixSpecial();
+ $mapped_tag->RebuildTagData();
+ return $mapped_tag->DoProcessTag();
+ }
+ }
+ trigger_error('Tag '.$Method.' Undefined in '.get_class($this).'[Agregated Tag]:<br><b>'.$tag->RebuildTagData().'</b>',E_USER_WARNING);
+ return false;
+ }*/
+ }
+
+ function ProcessParsedTag($tag, $params, $prefix)
+ {
+ $Method = $tag;
+ if(method_exists($this, $Method))
+ {
+ if ($this->Application->isDebugMode() && constOn('DBG_SHOW_TAGS')) {
+ $this->Application->Debugger->appendHTML('Processing PreParsed Tag '.$Method.' in '.$this->Prefix);
+ }
+
+ //echo htmlspecialchars($tag->GetFullTag()).'<br>';
+ $ret = $this->$Method($params);
+ if (isset($params['js_escape']) && $params['js_escape']) {
+ $ret = str_replace('\'', ''', $ret);
+ $ret = addslashes($ret);
+ $ret = str_replace(Array("\r", "\n"), Array('\r', '\n'), $ret);
+ }
+ return $ret;
+ }
+ else
+ {
+ if ($this->Application->hasObject('TagsAggregator')) {
+ $aggregator =& $this->Application->recallObject('TagsAggregator');
+ $tmp = $this->Application->processPrefix($prefix);
+ $tag_mapping = $aggregator->GetArrayValue($tmp['prefix'], $Method);
+ if ($tag_mapping) {
+ $tmp = $this->Application->processPrefix($tag_mapping[0]);
+ $__tag_processor = $tmp['prefix'].'_TagProcessor';
+ $processor =& $this->Application->recallObject($__tag_processor);
+ $processor->Prefix = $tmp['prefix'];
+ $processor->Special = getArrayValue($tag_mapping, 2) ? $tag_mapping[2] : $tmp['special'];
+ $params['PrefixSpecial'] = $prefix;
+ return $processor->ProcessParsedTag($tag_mapping[1], $params, $prefix);
+ }
+ trigger_error('Tag <b>'.$Method.'</b> Undefined in '.get_class($this).'[Agregated Tag]:<br><b>'.$tag.'</b>', E_USER_WARNING);
+ }
+ trigger_error('Tag Undefined:<br><b>'.$prefix.':'.$tag.'</b>',E_USER_WARNING);
+ return false;
+ }
+ }
+
+
+ /**
+ * Not tag, method for parameter
+ * selection from list in this TagProcessor
+ *
+ * @param Array $params
+ * @param string $possible_names
+ * @return string
+ * @access public
+ */
+ function SelectParam($params, $possible_names)
+ {
+ if (!is_array($params)) return;
+ if (!is_array($possible_names))
+
+ $possible_names = explode(',', $possible_names);
+ foreach ($possible_names as $name)
+ {
+ if( isset($params[$name]) ) return $params[$name];
+ }
+ return false;
+ }
+ }
+
+/*class ProcessorsPool {
+ var $Processors = Array();
+ var $Application;
+ var $Prefixes = Array();
+ var $S;
+
+ function ProcessorsPool()
+ {
+ $this->Application =& KernelApplication::Instance();
+ $this->S =& $this->Application->Session;
+ }
+
+ function RegisterPrefix($prefix, $path, $class)
+ {
+ // echo " RegisterPrefix $prefix, $path, $class <br>";
+ $prefix_item = Array(
+ 'path' => $path,
+ 'class' => $class
+ );
+ $this->Prefixes[$prefix] = $prefix_item;
+ }
+
+ function CreateProcessor($prefix, &$tag)
+ {
+ // echo " prefix : $prefix <br>";
+ if (!isset($this->Prefixes[$prefix]))
+ die ("<b>Filepath and ClassName for prefix $prefix not defined while processing ".htmlspecialchars($tag->GetFullTag())."!</b>");
+ include_once($this->Prefixes[$prefix]['path']);
+ $ClassName = $this->Prefixes[$prefix]['class'];
+ $a_processor =& new $ClassName($prefix);
+ $this->SetProcessor($prefix, $a_processor);
+ }
+
+ function SetProcessor($prefix, &$a_processor)
+ {
+ $this->Processors[$prefix] =& $a_processor;
+ }
+
+ function &GetProcessor($prefix, &$tag)
+ {
+ if (!isset($this->Processors[$prefix]))
+ $this->CreateProcessor($prefix, $tag);
+ return $this->Processors[$prefix];
+ }
+}*/
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/core/kernel/processors/tag_processor.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/core/units/users/users_item.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/core/units/users/users_item.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/core/units/users/users_item.php (revision 5303)
@@ -0,0 +1,163 @@
+<?php
+ class UsersItem extends kDBItem {
+
+ var $persistantVars = Array();
+
+ function LoadPersistantVars()
+ {
+ $sql = 'SELECT VariableValue, VariableName
+ FROM '.TABLE_PREFIX.'PersistantSessionData
+ WHERE PortalUserId = '.$this->GetID();
+ $this->persistantVars = $this->Conn->GetCol($sql, 'VariableName');
+ }
+
+ function setPersistantVar($var_name, $var_value)
+ {
+ $this->persistantVars[$var_name] = $var_value;
+
+ if ($this->GetID() > 0) {
+ $replace_hash = Array( 'PortalUserId' => $this->GetID(),
+ 'VariableName' => $var_name,
+ 'VariableValue' => $var_value
+ );
+ $this->Conn->doInsert($replace_hash, TABLE_PREFIX.'PersistantSessionData', 'REPLACE');
+ }
+ else {
+ $this->Application->StoreVar($var_name, $var_value);
+ }
+ }
+
+ function getPersistantVar($var_name)
+ {
+ return getArrayValue($this->persistantVars, $var_name);
+ }
+
+ function Load($id, $id_field_name = null)
+ {
+ $ret = parent::Load($id, $id_field_name);
+ if ($ret) {
+ $this->LoadPersistantVars();
+ }
+ return $ret;
+ }
+
+ /**
+ * Returns IDs of groups to which user belongs and membership is not expired
+ *
+ * @return Array
+ * @access public
+ */
+ function getMembershipGroups($force_reload = false)
+ {
+ $user_groups = $this->Application->RecallVar('UserGroups');
+ if($user_groups === false || $force_reload)
+ {
+ $sql = 'SELECT GroupId FROM %s WHERE (PortalUserId = %s) AND ( (MembershipExpires IS NULL) OR ( MembershipExpires >= UNIX_TIMESTAMP() ) )';
+ $sql = sprintf($sql, TABLE_PREFIX.'UserGroup', $this->GetID() );
+ return $this->Conn->GetCol($sql);
+ }
+ else
+ {
+ return explode(',', $user_groups);
+ }
+ }
+
+ /**
+ * Set's Login from Email if required by configuration settings
+ *
+ */
+ function setLogin()
+ {
+ if( $this->Application->ConfigValue('Email_As_Login') )
+ {
+ $this->SetDBField('Login', $this->GetDBField('Email') );
+ }
+ }
+
+ function SendEmailEvents()
+ {
+ switch( $this->GetDBField('Status') )
+ {
+ case 1:
+ $this->Application->EmailEventAdmin('USER.ADD', $this->GetID() );
+ $this->Application->EmailEventUser('USER.ADD', $this->GetID() );
+ break;
+
+ case 2:
+ $this->Application->EmailEventAdmin('USER.ADD.PENDING', $this->GetID() );
+ $this->Application->EmailEventUser('USER.ADD.PENDING', $this->GetID() );
+ break;
+ }
+ }
+
+ function isSubscriberOnly()
+ {
+ $subscribers_group_id = $this->Application->ConfigValue('User_SubscriberGroup');
+ $sql = 'SELECT PortalUserId
+ FROM '.TABLE_PREFIX.'UserGroup
+ WHERE GroupId = '.$subscribers_group_id.' AND
+ PortalUserId = '.$this->GetDBField('PortalUserId').' AND
+ PrimaryGroup = 1';
+ return $this->Conn->GetOne($sql) == $this->GetDBField('PortalUserId');
+ }
+
+ function Create($force_id=false, $system_create=false)
+ {
+ $ret = parent::Create($force_id, $system_create);
+ if ($ret) {
+ // find out how to syncronize user only when it's copied to live table
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('createUser', $this->FieldValues);
+ }
+ return $ret;
+ }
+
+
+ function Update($id=null, $system_update=false)
+ {
+ $ret = parent::Update($id, $system_update);
+ if ($ret) {
+ // find out how to syncronize user only when it's copied to live table
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('updateUser', $this->FieldValues);
+ }
+ return $ret;
+ }
+
+ /**
+ * Deletes the record from databse
+ *
+ * @access public
+ * @return bool
+ */
+ function Delete($id = null)
+ {
+ $ret = parent::Delete($id);
+ if ($ret) {
+ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize');
+ $sync_manager->performAction('deleteUser', $this->FieldValues);
+ }
+
+ return $ret;
+ }
+
+ function setName($full_name)
+ {
+ $full_name = explode(' ', $full_name);
+
+ if (count($full_name) > 2) {
+ $last_name = array_pop($full_name);
+ $first_name = implode(' ', $full_name);
+ }
+ else {
+ $last_name = $full_name[1];
+ $first_name = $full_name[0];
+ }
+
+ $this->SetDBField('FirstName', $first_name);
+ $this->SetDBField('LastName', $last_name);
+ }
+
+
+ }
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/core/units/users/users_item.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/core/units/help/help_tag_processor.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/core/units/help/help_tag_processor.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/core/units/help/help_tag_processor.php (revision 5303)
@@ -0,0 +1,90 @@
+<?php
+
+ class HelpTagProcessor extends kDBTagProcessor
+ {
+
+ function SectionTitle($params)
+ {
+ $rets = explode('.', $this->Application->GetVar('h_prefix') );
+ $this->Prefix = $rets[0];
+ $this->Special = isset($rets[1]) ? $rets[1] : '';
+ //$this->Prefix = $this->Application->GetVar('h_prefix');
+
+ $title_preset_name = replaceModuleSection($this->Application->GetVar('h_title_preset'));
+ $this->Application->SetVar('h_title_preset', $title_preset_name);
+ $title_presets = $this->Application->getUnitOption($this->Prefix,'TitlePresets');
+
+ $format = $title_presets[$title_preset_name]['format'];
+ $format = preg_replace('/[ ]*( ([\'"]{1}) | ([\(]{1}) ) \#.*\# (?(2) \1 | \) )[ ]*/Ux', ' ', $format);
+ $title_presets[$title_preset_name]['format'] = $format;
+ $this->Application->setUnitOption($this->Prefix,'TitlePresets',$title_presets);
+
+ $params['title_preset'] = $title_preset_name;
+ return parent::SectionTitle($params);
+ }
+
+ function ShowHelp($params)
+ {
+ $module = $this->Application->GetVar('h_module');
+ if (!$module) $module = $this->Application->RecallVar('module');
+
+ $module = explode(':', $module);
+ $module = $module[0];
+
+ $title_preset = $this->Application->GetVar('h_title_preset');
+
+ $sql = 'SELECT Path FROM '.TABLE_PREFIX.'Modules WHERE LOWER(Name)='.$this->Conn->qstr( strtolower($module) );
+ $module_path = $this->Conn->GetOne($sql);
+
+ $help_file = FULL_PATH.'/'.$module_path.'module_help/'.$title_preset.'.txt';
+
+ if( $this->Application->isDebugMode() && constOn('DBG_EDIT_HELP') )
+ {
+ global $debugger;
+ $ret = 'Help file: <b>'.$debugger->getLocalFile($help_file).'</b><hr>';
+ }
+ else
+ {
+ $ret = '';
+ }
+
+ $help_data = file_exists($help_file) ? file_get_contents($help_file) : false;
+
+ if( $this->Application->isDebugMode() && constOn('DBG_HELP') )
+ {
+ $this->Application->Factory->includeClassFile('FCKeditor');
+ $oFCKeditor = new FCKeditor('HelpContent');
+
+ $oFCKeditor->BasePath = $this->Application->BaseURL('/admin/editor/cmseditor');
+ $oFCKeditor->Width = '100%';
+ $oFCKeditor->Height = '300';
+ $oFCKeditor->ToolbarSet = 'Advanced';
+ $oFCKeditor->Value = $help_data;
+
+ $oFCKeditor->Config = Array(
+ 'UserFilesPath' => FULL_PATH.'kernel/user_files',
+ 'ProjectPath' => $this->Application->ConfigValue('Site_Path'),
+ 'CustomConfigurationsPath' => rtrim( $this->Application->BaseURL('/admin/editor/inp_fckconfig.js'), '/'),
+ );
+
+ $ret .= $oFCKeditor->CreateHtml();
+ }
+ else
+ {
+ $ret .= $help_data ? $help_data : $this->Application->Phrase('la_section_help_file_missing');
+ }
+
+ return $ret;
+ }
+
+ function GetIcon($params)
+ {
+ $icon_var = getArrayValue($params,'var_name');
+ $icon = replaceModuleSection($this->Application->GetVar($icon_var));
+
+ if(!$icon) $icon = getArrayValue($params,'default_icon');
+ return $icon;
+ }
+ }
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/core/units/help/help_tag_processor.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/core/admin_templates/logs/visits/visits_list.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/core/admin_templates/logs/visits/visits_list.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/core/admin_templates/logs/visits/visits_list.tpl (revision 5303)
@@ -0,0 +1,122 @@
+<inp2:m_set nobody="yes"/>
+<inp2:m_include t="incs/header"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+
+<inp2:m_ParseBlock name="section_header" icon="icon46_visits" title="!la_title_Visits!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="visits" title_preset="visits_list" module="in-portal" icon="icon46_visits"/>
+
+<!-- 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();
+
+ function edit()
+ {
+
+ }
+
+ a_toolbar.AddButton( new ToolBarButton('search', '<inp2:m_phrase label="la_ToolTip_Search" escape="1"/>',
+ function() {
+ set_hidden_field('grid_name', 'Default');
+ submit_event('visits','OnSearch');
+ } ) );
+
+ a_toolbar.AddButton( new ToolBarButton('search_reset', '<inp2:m_phrase label="la_ToolTip_SearchReset" escape="1"/>',
+ function() {
+ set_hidden_field('grid_name', 'Default');
+ submit_event('visits','OnSearchReset');
+ } ) );
+
+ a_toolbar.AddButton( new ToolBarButton('refresh', '<inp2:m_phrase label="la_ToolTip_Refresh" escape="1"/>', function() {
+ window.location.href = window.location.href;
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarButton('reset', '<inp2:m_phrase label="la_ToolTip_Reset" escape="1"/>', function() {
+ std_delete_items('visits');
+ }
+ ) );
+
+ a_toolbar.AddButton( new ToolBarSeparator('sep1') );
+
+ a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
+ show_viewmenu(a_toolbar,'view');
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+
+ </td>
+ </tr>
+</tbody>
+</table>
+<script type="text/javascript" src="incs/calendar.js"></script>
+
+<inp2:m_DefineElement name="search_calendar_td" class="">
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <inp2:m_inc param="tab_index" by="1"/>
+ <td class="text"><inp2:m_phrase label="la_from_date"/>:</td>
+
+ <td>
+ <input type="text" name="<inp2:SearchInputName field="$field" type="datefrom"/>" id="<inp2:SearchInputName field="$field" type="datefrom"/>" value="<inp2:SearchField field="$field" format="_regional_InputDateFormat" type="datefrom"/>" size="<inp2:SearchFormat field="{$field}_date" input_format="1" edit_size="1"/>" datepickerIcon="<inp2:m_ProjectBase/>admin/images/ddarrow.gif">
+ <span class="small">(<inp2:SearchFormat field="{$field}_date" input_format="1" human="true"/>)</span>
+ <script type="text/javascript">
+ initCalendar("<inp2:SearchInputName field="$field" type="datefrom"/>", "<inp2:SearchFormat field="{$field}_date" input_format="1"/>");
+ </script>
+
+ </td>
+ <td class="error"><inp2:SearchError field="$field" type="datefrom"/> </td>
+
+ <td class="text"><inp2:m_phrase label="la_to_date"/>:</td>
+
+ <td>
+ <input type="text" name="<inp2:SearchInputName field="$field" type="dateto"/>" id="<inp2:SearchInputName field="$field" type="dateto"/>" value="<inp2:SearchField field="$field" format="_regional_InputDateFormat" type="dateto"/>" size="<inp2:SearchFormat field="{$field}_date" input_format="1" edit_size="1"/>" datepickerIcon="<inp2:m_ProjectBase/>admin/images/ddarrow.gif">
+ <span class="small">(<inp2:SearchFormat field="{$field}_date" input_format="1" human="true"/>)</span>
+ <script type="text/javascript">
+ initCalendar("<inp2:SearchInputName field="$field" type="dateto"/>", "<inp2:SearchFormat field="{$field}_date" input_format="1"/>");
+ </script>
+
+ </td>
+ <td class="error"><inp2:SearchError field="$field" type="dateto"/> </td>
+ </tr>
+</inp2:m_DefineElement>
+
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder" style="border-bottom: 0px;">
+ <inp2:m_ParseBlock name="search_calendar_td" prefix="visits" field="VisitDate"/>
+</table>
+
+<inp2:m_block name="grid_userlink_td" />
+ <td valign="top" class="text">
+ <inp2:m_if check="UserFound" user_field="$user_field">
+ <a href="<inp2:$PrefixSpecial_UserLink user_field="$user_field"/>" title="<inp2:m_phrase name="la_Edit_User"/>"><inp2:$PrefixSpecial_field field="$field" grid="$grid"/></a>
+ <inp2:m_else/>
+ <inp2:$PrefixSpecial_field field="$field" grid="$grid"/>
+ </inp2:m_if>
+ </td>
+<inp2:m_blockend />
+
+<inp2:m_block name="grid_referer_td" />
+ <td valign="top" class="text">
+ <div style="overflow: hidden">
+ <inp2:m_if check="FieldEquals" field="$field" value="">
+ <span style="white-space: nowrap;"><inp2:m_Phrase label="la_visit_DirectReferer"/></span>
+ <inp2:m_else/>
+ <a href="<inp2:Field field="$field" grid="$grid"/>"><inp2:Field field="$field" grid="$grid" /></a>
+ </inp2:m_if>
+ </div>
+ </td>
+<inp2:m_blockend />
+
+<inp2:m_SaveReturnScript/>
+
+<inp2:m_ParseBlock name="grid" PrefixSpecial="visits" IdField="VisitId" grid="Default" header_block="grid_column_title" data_block="grid_data_td" search="on" no_toolbar="no_toolbar"/>
+<script type="text/javascript">
+ Grids['visits'].SetDependantToolbarButtons( new Array('reset') );
+</script>
+<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/core/admin_templates/logs/visits/visits_list.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/admin/users/user_addimage.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/admin/users/user_addimage.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/admin/users/user_addimage.php (revision 5303)
@@ -0,0 +1,287 @@
+<?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
+
+/* set the destination of the image upload, relative to the root path */
+$DestDir = 'kernel/images/';
+
+$pathtolocal = $pathtoroot."kernel/";
+require_once ($pathtoroot.$admin."/include/elements.php");
+require_once ($pathtoroot."kernel/admin/include/navmenu.php");;
+require_once($pathtoroot.$admin."/browse/toolbar.php");
+require_once($pathtoroot.$admin."/listview/listview.php");
+
+$m = GetModuleArray();
+foreach($m as $key=>$value)
+{
+ $path = $pathtoroot. $value."admin/include/parser.php";
+ if(file_exists($path))
+ {
+ include_once($path);
+ }
+}
+
+unset($objEditItems);
+
+$objEditItems = new clsUserManager();
+$objEditItems->SourceTable = $objSession->GetEditTable("PortalUser");
+$objEditItems->EnablePaging = FALSE;
+//Multiedit init
+$en = (int)$_GET["en"];
+$objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable);
+$itemcount=$objEditItems->NumItems();
+$c = $objEditItems->GetItemByIndex($en);
+
+unset($objEditItems);
+
+$objEditItems = new clsImageList();
+$objEditItems->SourceTable = $objSession->GetEditTable("Images");
+
+if(isset($_POST["itemlist"]))
+{
+ if(is_array($_POST["itemlist"]))
+ {
+ $ImageId = $_POST["itemlist"][0];
+ }
+ else
+ {
+ $ImageId = $_POST["itemlist"];
+ }
+
+ $img = $objEditItems->GetItem($ImageId);
+// print_r($img);
+ $action = "m_img_edit";
+ $name = $img->Get("Name");
+}
+else
+{
+ $img = new clsImage();
+ $img->Set("ResourceId",$c->Get("ResourceId"));
+ $action = "m_img_add";
+ $name = "'New Image'";
+
+}
+
+$envar = "env=" . BuildEnv() . "&en=$en";
+$section = 'in-portal:edituser_image';
+$ado = &GetADODBConnection();
+$charset = GetRegionalOption('Charset');
+/* page header */
+print <<<END
+<html>
+<head>
+ <title>In-portal</title>
+ <meta http-equiv="content-type" content="text/html;charset=$charset">
+ <meta http-equiv="Pragma" content="no-cache">
+ <script language="JavaScript">
+ imagesPath='$imagesURL'+'/';
+ </script>
+ <script src="$browseURL/common.js"></script>
+ <script src="$browseURL/toolbar.js"></script>
+ <script src="$browseURL/utility.js"></script>
+ <script src="$browseURL/checkboxes.js"></script>
+ <script language="JavaScript1.2" src="$browseURL/fw_menu.js"></script>
+ <link rel="stylesheet" type="text/css" href="$browseURL/checkboxes.css">
+ <link rel="stylesheet" type="text/css" href="$cssURL/style.css">
+ <link rel="stylesheet" type="text/css" href="$browseURL/toolbar.css">
+END;
+
+
+$title = GetTitle("la_Text_User", "la_Text_General", $c->Get('PortalUserId'), $c->Get('Login'));//prompt_language("la_Text_Editing")." ".prompt_language("la_Text_User")." '".$c->Get("Login")."' - ".prompt_language("la_Text_Image");
+$title .= " '".$name."'";
+$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('user','UserEditStatus','".$admin."/users/adduser_images.php',0);",$imagesURL."/toolbar/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('user','UserEditStatus','".$admin."/users/adduser_images.php',-1);",$imagesURL."/toolbar/tool_cancel.gif");
+
+//echo "<pre>"; print_r($objCatToolBar); echo "</pre>";
+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 cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
+<FORM enctype="multipart/form-data" ID="user" NAME="user" method="POST" ACTION="">
+<?php int_subsection_title(prompt_language("la_Text_Image")); ?>
+<TR <?php int_table_color(); ?> >
+ <TD><?php echo prompt_language("la_prompt_ImageId"); ?></TD>
+ <TD><?php if ($img->Get("ImageId") != -1) echo $img->Get("ImageId"); ?></TD>
+ <TD></TD>
+</TR>
+
+<TR <?php int_table_color(); ?> >
+ <TD><SPAN class="text" id="prompt_imgName"><?php echo prompt_language("la_prompt_Name"); ?></SPAN></TD>
+ <TD><input type=text NAME="imgName" ValidationType="exists" tabindex="1" size="30" VALUE="<?php echo inp_htmlize($img->parsetag("image_name")); ?>"></TD>
+ <TD></TD>
+</TR>
+
+<TR <?php int_table_color(); ?> >
+ <TD><SPAN class="text" id="prompt_imgAlt"><?php echo prompt_language("la_prompt_AltName"); ?></SPAN></TD>
+ <TD><input type=text NAME="imgAlt" ValidationType="exists" size="30" tabindex="2" VALUE="<?php echo inp_htmlize($img->parsetag("image_alt")); ?>"></TD>
+ <TD></TD>
+</TR>
+
+<TR <?php int_table_color(); ?> >
+ <TD><?php echo prompt_language("la_prompt_Status"); ?></TD>
+ <TD>
+ <input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==1) echo "CHECKED"; ?> VALUE="1"><?php echo prompt_language("la_Text_Enabled"); ?>
+ <input type=RADIO NAME="imgEnabled" tabindex="3" <?php if($img->Get("Enabled")==0) echo "CHECKED"; ?> VALUE="0"><?php echo prompt_language("la_Text_Disabled"); ?>
+ </TD>
+ <TD></TD>
+</TR>
+
+<TR <?php int_table_color(); ?> >
+ <TD><?php echo prompt_language("la_prompt_Primary"); ?></TD>
+ <TD><input type=checkbox NAME="imgDefault" tabindex="4" <?php if($img->Get("DefaultImg")==1) echo "CHECKED"; ?> VALUE="1"></TD>
+ <TD></TD>
+</TR>
+
+<TR <?php int_table_color(); ?> >
+ <TD><?php echo prompt_language("la_prompt_Priority"); ?></TD>
+ <TD><input type=text SIZE="5" NAME="imgPriority" tabindex="5" VALUE="<?php echo $img->Get("Priority"); ?>"></TD>
+ <TD></TD>
+</TR>
+
+
+<?php int_subsection_title(prompt_language("la_text_Thumbnail_Image")); ?>
+
+<TR <?php int_table_color(); ?> >
+ <TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
+ <?php
+ if($img->Get("LocalThumb")==1 || strlen($img->Get("LocalThumb"))==0)
+ {
+ $local="checked";
+ $remote = "";
+ }
+ else
+ {
+ $remote="checked";
+ $local = "";
+ }
+ ?>
+ <TD>
+ <TABLE border=0>
+ <tr>
+ <TD>
+ <input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
+ </td>
+ <td>
+ <input type=FILE NAME="imgThumbFile" tabindex="7" VALUE=""> <br />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="radio" name="imgLocalThumb" tabindex="6" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
+ </td>
+ <td>
+ <input type=text size=32 NAME="imgThumbUrl" tabindex="8" VALUE="<?php echo $img->Get("ThumbUrl"); ?>"> <br />
+ </td>
+ </tr>
+ </table>
+ </TD>
+
+
+ <TD ALIGN="RIGHT">
+ <IMG SRC="<?php echo $img->ThumbURL(); ?>">
+ </TD>
+</TR>
+
+<?php int_subsection_title(prompt_language("la_Text_Full_Size_Image")); ?>
+
+<TR <?php int_table_color(); ?>>
+ <TD><?php echo prompt_language("la_text_Same_As_Thumbnail"); ?></TD>
+ <?php
+
+ if(($img->Get("SameImages")=="1") || !$img->Get("ImageId") || ($img->Get("ImageId") == "-1"))
+ {
+
+ $checked = "CHECKED";
+ $disabled = "DISABLED=\"true\"";
+ }
+ ?>
+ <TD><input type=checkbox id="imgSameImages" NAME="imgSameImages" tabindex="9" VALUE="1" <?php echo $checked; ?> ONCLICK="enableFullImage(this);"></TD>
+ <TD></TD>
+</TR>
+<TR <?php int_table_color(); ?>>
+ <TD><?php echo prompt_language("la_prompt_Location"); ?></TD>
+ <?php
+ if($img->Get("LocalImage")==1 || strlen($img->Get("LocalImage"))==0)
+ {
+ $local="checked";
+ $remote = "";
+ }
+ else
+ {
+ $remote="checked";
+ $local = "";
+ }
+ ?>
+ <TD>
+ <TABLE border=0>
+ <tr>
+ <TD>
+ <input id="full1" type="radio" name="imgLocalFull" tabindex="10" <?php echo $local; ?> VALUE="1"><?php echo prompt_language("la_prompt_upload"); ?>:
+ </td>
+ <td>
+ <input type=FILE ID="imgFullFile" NAME="imgFullFile" tabindex="11" VALUE=""> <br />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input id="full2" type="radio" name="imgLocalFull" tabindex="10" <?php echo $remote; ?> VALUE="0"> <?php echo prompt_language("la_prompt_remote_url"); ?>:
+ </td>
+ <td>
+ <input type=text size=32 ID="imgFullUrl" tabindex="12" NAME="imgFullUrl" VALUE="<?php echo $img->Get("Url"); ?>"> <br />
+ </td>
+ </tr>
+ </table>
+ </td>
+ <TD ALIGN="RIGHT">
+ <IMG SRC="<?php echo $img->FullURL(); ?>">
+ </TD>
+</TR>
+ <input type=hidden NAME="Action" VALUE="<?php echo $action; ?>">
+ <input type="hidden" name="UserEditStatus" VALUE="0">
+ <input type="hidden" name="DestDir" VALUE="<?php echo $DestDir; ?>">
+ <INPUT TYPE="hidden" NAME="ImageId" VALUE="<?php echo $img->Get("ImageId"); ?>">
+ <input TYPE="HIDDEN" NAME="ResourceId" VALUE="<?php echo $c->Get("ResourceId"); ?>">
+</FORM>
+</TABLE>
+
+<!-- CODE FOR VIEW MENU -->
+<form method="post" action="user_groups.php?<?php echo $envar; ?>" name="viewmenu">
+<input type="hidden" name="fieldname" value="">
+<input type="hidden" name="varvalue" value="">
+<input type="hidden" name="varvalue2" value="">
+<input type="hidden" name="Action" value="">
+</form>
+<script language="JavaScript">
+ enableFullImage(document.getElementById('imgSameImages'));
+ MarkAsRequired(document.getElementById("user"));
+</script>
+<!-- END CODE-->
+<?php int_footer(); ?>
+
Property changes on: branches/unlabeled/unlabeled-1.11.2/admin/users/user_addimage.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/admin/include/style.css
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/admin/include/style.css (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/admin/include/style.css (revision 5303)
@@ -0,0 +1,412 @@
+.CURRENT_PAGE {font-size:12px; background-color: #C4C4C4; font-family: verdana; font-weight:bold; padding-left:1px; padding-right:1px}
+.NAV_URL {font-size:12px; color: #1F569A; font-family: verdana; font-weight:bold; }
+.NAV_ARROW {font-size:12px; color: #1F569A; font-family: verdana; font-weight:normal; padding-left:3px; padding-right:3px}
+.NAV_CURRENT_ITEM {font-size:12px; color:#666666; font-family: verdana; font-weight:normal; font-weight:bold; }
+.priority {color: #ff0000; padding-left:1px; padding-right:1px; font-size:11px; }
+
+.validation_error {
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 12px;
+ FONT-FAMILY: verdana, arial;
+ TEXT-DECORATION: none;
+ color: red;
+}
+
+.checksection {
+ BORDER-RIGHT: 1px; BORDER-TOP: 1px; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #acacac
+}
+.text {
+ FONT-WEIGHT: normal; FONT-SIZE: 12px; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.small {
+ FONT-SIZE: 9px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+.tab {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica; TEXT-DECORATION: none
+}
+.tab2 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: verdana, arial, helvetica; TEXT-DECORATION: none
+}
+.tab2:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica; TEXT-DECORATION: none
+}
+.tab:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica; TEXT-DECORATION: none
+}
+.tab_border {
+ BORDER-RIGHT: #000000 0px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 0px solid; BORDER-BOTTOM: #000000 0px solid
+}
+.table_tab {
+ FONT-WEIGHT: bold; FONT-SIZE: 20px; COLOR: #ffffff; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #666666; TEXT-DECORATION: none
+}
+.button {
+ FONT-WEIGHT: normal; FONT-SIZE: 12px; BACKGROUND: url(../images/button_back.gif) #f9eeae repeat-x; COLOR: black; FONT-FAMILY: arial, verdana; TEXT-DECORATION: none
+}
+.button1 {
+ FONT-SIZE: 9px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #a3d799
+}
+.button2 {
+ FONT-SIZE: 9px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #fe8b7e
+}
+.button3 {
+ FONT-SIZE: 9px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #999999
+}
+.buttonsmall {
+ FONT-SIZE: 9px; CURSOR: hand; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #f9eeae
+}
+.toolbar {
+ BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 0px solid; FONT-SIZE: 10pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #f0f1eb
+}
+.actionborder_full {
+ BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.actiontitle {
+ FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #999999
+}
+.action_link {
+ FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+.action_link:hover {
+ FONT-SIZE: 10px; COLOR: #009ff0; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+}
+.pagenav {
+ BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 0px solid; FONT-SIZE: 10pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #e0e0da
+}
+.navbar {
+ FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #006699; FONT-FAMILY: verdana, arial, sans-serif; TEXT-DECORATION: none
+}
+.navbar:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #009ff0; FONT-FAMILY: verdana, arial, sans-serif; TEXT-DECORATION: none
+}
+.navbar_selected {
+ FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: verdana, arial, sans-serif; BACKGROUND-COLOR: #006699; TEXT-DECORATION: none
+}
+.tablenav {
+ FONT-WEIGHT: bold;
+ FONT-SIZE: 14px;
+ COLOR: white;
+ FONT-FAMILY: verdana, arial;
+ BACKGROUND-COLOR: #73c4f5;
+ TEXT-DECORATION: none;
+}
+.tablenav_link {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: white; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.tablenav_link:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffcc00; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.selection {
+ BACKGROUND-COLOR: #c6d6ef
+}
+.error {
+ FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ff0000; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.error2 {
+ FONT-WEIGHT: bold; FONT-SIZE: 7pt; COLOR: #ff0000; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.disabled_text {
+ FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #CCCCCC; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+
+.marg {
+ MARGIN: 5px
+}
+.table_header_text {
+ MARGIN-BOTTOM: 2px; MARGIN-LEFT: 5px
+}
+.table_text {
+ PADDING-RIGHT: 8px; PADDING-LEFT: 8px; PADDING-BOTTOM: 8px; PADDING-TOP: 8px
+}
+.divider {
+ BACKGROUND-COLOR: #999999
+}
+.divider_tab {
+ BACKGROUND-COLOR: #999999
+}
+.admintitle, .admintitle-white {
+ FONT-WEIGHT: bold; FONT-SIZE: 20px; COLOR: #009ff0; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.admintitle-white {
+ color: #fff
+}
+.tabletitle {
+ FONT-WEIGHT: bold; FONT-SIZE: 17px; COLOR: white; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #73c4f5; TEXT-DECORATION: none
+}
+.subsectiontitle {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: white; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none; height: 24px
+}
+.subsectiontitle:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffcc00; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none
+}
+.columntitle {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: white; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none
+}
+.columntitle:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffcc00; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none
+}
+.columntitle_small {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: white; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none
+}
+.columntitle_small:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffcc00; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #999999; TEXT-DECORATION: none
+}
+.permissions1 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #bb0000; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions1:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #bb0000; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions2 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #c8601a; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions2:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #c8601a; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions3 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ea8c00; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions3:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ea8c00; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions4 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #e6b800; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions4:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #e6b800; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions5 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #92bc2e; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions5:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #92bc2e; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions6 {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #339900; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions6:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #339900; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.permissions1_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #bb0000; TEXT-DECORATION: none
+}
+.permissions2_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #c8601a; TEXT-DECORATION: none
+}
+.permissions3_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #ea8c00; TEXT-DECORATION: none
+}
+.permissions4_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #e6b800; TEXT-DECORATION: none
+}
+.permissions5_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #92bc2e; TEXT-DECORATION: none
+}
+.permissions6_cell {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #339900; TEXT-DECORATION: none
+}
+.table_color1 {
+ FONT-WEIGHT: normal; FONT-SIZE: 14px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #f6f6f6; TEXT-DECORATION: none
+}
+.table_color2 {
+ FONT-WEIGHT: normal; FONT-SIZE: 14px; COLOR: black; FONT-FAMILY: verdana, arial; BACKGROUND-COLOR: #ebebeb; TEXT-DECORATION: none
+}
+.head_version {
+ PADDING-RIGHT: 5px; FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: white; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.form_note {
+ FONT-WEIGHT: normal; FONT-SIZE: 10px; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.tree_head {
+ FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: white; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.tree_head_credits {
+ FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: white; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+.tree_head_credits:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: white; FONT-FAMILY: verdana, arial; TEXT-DECORATION: none
+}
+H1.selector {
+ FONT-WEIGHT: bold; FONT-SIZE: 18pt; FONT-FAMILY: Arial
+}
+BODY {
+ SCROLLBAR-FACE-COLOR: #009ffd; FONT-SIZE: 12px; SCROLLBAR-HIGHLIGHT-COLOR: #009ffd; SCROLLBAR-SHADOW-COLOR: #009ffd; COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #333333; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #88d2f8; FONT-FAMILY: Verdana, Arial, Helvetica, Sans-serif; SCROLLBAR-DARKSHADOW-COLOR: #333333;
+ OVERFLOW-X: auto; OVERFLOW-Y: auto;
+}
+TD {
+ FONT-SIZE: 10pt; FONT-FAMILY: verdana,helvetica; TEXT-DECORATION: none
+}
+.tableborder {
+ BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 0px solid; FONT-SIZE: 10pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.tableborder_full {
+ BORDER-RIGHT: #000000 1px solid;
+ BORDER-TOP: #000000 1px solid;
+ FONT-SIZE: 10pt;
+ BORDER-LEFT: #000000 1px solid;
+ BORDER-BOTTOM: #000000 1px solid;
+ FONT-FAMILY: Arial, Helvetica, sans-serif;
+ background-image: url(../images/tab_middle.gif);
+ background-repeat: repeat-x;
+}
+
+.header_left_bg {
+ background-image: url(../images/tabnav_left.jpg);
+ background-repeat: no-repeat;
+}
+
+.tableborder_full_a {
+ BORDER-RIGHT: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+
+
+A {
+ COLOR: #006699; TEXT-DECORATION: none
+}
+A:hover {
+ COLOR: #009ff0; TEXT-DECORATION: none
+}
+.control_link {font-size:12px; color: #1F569A; font-family: verdana; font-weight:bold; }
+
+.control_link:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #009ff0; FONT-FAMILY: verdana, arial
+}
+.header_link {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #003399; FONT-FAMILY: verdana, arial
+}
+.header_link:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #009ff0; FONT-FAMILY: verdana, arial
+}
+.tree {
+ FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: helvetica, arial, verdana, helvetica; TEXT-DECORATION: none
+}
+.cat {
+ FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #003399; FONT-FAMILY: arial, helvetica, sans-serif
+}
+.cat:hover {
+ FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #009ff0; FONT-FAMILY: arial, helvetica, sans-serif
+}
+.catsub {
+ FONT-SIZE: 8pt; COLOR: #000090; FONT-FAMILY: arial, helvetica, sans-serif
+}
+.catsub:hover {
+ FONT-SIZE: 8pt; COLOR: #9d9ddc; FONT-FAMILY: arial, helvetica, sans-serif
+}
+.cat_no {
+ FONT-SIZE: 10px; COLOR: #707070; FONT-FAMILY: arial, verdana, sans-serif
+}
+.cat_desc {
+ FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: arial,verdana,sans-serif
+}
+.cat_new {
+ FONT-SIZE: 12px; VERTICAL-ALIGN: super; COLOR: blue; FONT-FAMILY: arial, verdana, sans-serif
+}
+.cat_pick {
+ FONT-SIZE: 12px; VERTICAL-ALIGN: super; COLOR: #009900; FONT-FAMILY: arial, helvetica, sans-serif
+}
+.cats_stats {
+ FONT-SIZE: 11px; COLOR: #707070; FONT-FAMILY: arial,verdana,sans-serif;
+}
+
+.cat_detail {
+ FONT-SIZE: 8pt; COLOR: #707070; FONT-FAMILY: arial,verdana,sans-serif
+}
+.cat_fullpath {
+ FONT-SIZE: 8pt; COLOR: #707070; FONT-FAMILY: arial,verdana,sans-serif
+}
+
+.action1 {
+ FONT-SIZE: 12px; COLOR: #006600; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action1:link {
+ FONT-SIZE: 12px; COLOR: #006600; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action1:hover {
+ FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action2 {
+ FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #990000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action2:link {
+ FONT-SIZE: 12px; COLOR: #990000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action2:hover {
+ FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action3 {
+ FONT-SIZE: 12px; COLOR: #a27900; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action3:link {
+ FONT-SIZE: 12px; COLOR: #a27900; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action3:hover {
+ FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action4 {
+ FONT-SIZE: 12px; COLOR: #800080; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action4:link {
+ FONT-SIZE: 12px; COLOR: #800080; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action4:hover {
+ FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action5 {
+ FONT-SIZE: 12px; COLOR: #0079a2; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action5:link {
+ FONT-SIZE: 12px; COLOR: #0079a2; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.action5:hover {
+ FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
+}
+.hint {
+ FONT-SIZE: 12px; COLOR: #666666; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+
+.hint_red {
+ FONT-SIZE: 10px; COLOR: #FF0000; FONT-STYLE: normal; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+
+.tabTable {
+ background-color: #d7d7d7;
+ border-width: 1px;
+ border-style: solid;
+ border-color: black;
+}
+.navbar_link {
+ FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #006699; FONT-FAMILY: verdana, arial, sans-serif; TEXT-DECORATION: underline;
+}
+form{
+ display : inline;
+}
+
+.admintitle-white {
+ color: #fff
+}
+
+.tableborder {
+ BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 0px solid; FONT-SIZE: 10pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.tableborder_full {
+ BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+.tableborder_full_a {
+ BORDER-RIGHT: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif
+}
+
+.link
+{
+ cursor: hand;
+}
+
+.cat_link {
+ font-family: arial, helvetica, sans-serif;
+ font-size: 10pt;
+ color: #006699;
+}
+
+.help_box
+{
+ padding: 5px 10px 5px 10px;
+
+}
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/admin/include/style.css
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/admin/install/inportal_remove.sql
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/admin/install/inportal_remove.sql (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/admin/install/inportal_remove.sql (revision 5303)
@@ -0,0 +1,210 @@
+DROP TABLE Addresses
+# --------------------------------------------------------
+DROP TABLE AffiliatePayments
+# --------------------------------------------------------
+DROP TABLE AffiliatePlans
+# --------------------------------------------------------
+DROP TABLE AffiliatePlansBrackets
+# --------------------------------------------------------
+DROP TABLE AffiliatePlansItems
+# --------------------------------------------------------
+DROP TABLE AffiliatePaymentTypes
+# --------------------------------------------------------
+DROP TABLE Affiliates
+# --------------------------------------------------------
+DROP TABLE Currencies
+# --------------------------------------------------------
+DROP TABLE GatewayConfigFields
+# --------------------------------------------------------
+DROP TABLE GatewayConfigValues
+# --------------------------------------------------------
+DROP TABLE Gateways
+# --------------------------------------------------------
+DROP TABLE Manufacturers
+# --------------------------------------------------------
+DROP TABLE OrderItems
+# --------------------------------------------------------
+DROP TABLE Orders
+# --------------------------------------------------------
+DROP TABLE PaymentTypeCurrencies
+# --------------------------------------------------------
+DROP TABLE PaymentTypes
+# --------------------------------------------------------
+DROP TABLE ProductFiles
+# --------------------------------------------------------
+DROP TABLE Products
+# --------------------------------------------------------
+DROP TABLE ProductsCouponItems
+# --------------------------------------------------------
+DROP TABLE ProductsCoupons
+# --------------------------------------------------------
+DROP TABLE ProductsDiscountItems
+# --------------------------------------------------------
+DROP TABLE ProductsDiscounts
+# --------------------------------------------------------
+DROP TABLE ProductsPricing
+# --------------------------------------------------------
+DROP TABLE ShippingBrackets
+# --------------------------------------------------------
+DROP TABLE ShippingCosts
+# --------------------------------------------------------
+DROP TABLE ShippingQuoteEngines
+# --------------------------------------------------------
+DROP TABLE ShippingType
+# --------------------------------------------------------
+DROP TABLE ShippingZones
+# --------------------------------------------------------
+DROP TABLE ShippingZonesDestinations
+# --------------------------------------------------------
+DROP TABLE TaxZones
+# --------------------------------------------------------
+DROP TABLE TaxZonesDestinations
+# --------------------------------------------------------
+DROP TABLE UserDownloads
+# --------------------------------------------------------
+DROP TABLE UserFileAccess
+# --------------------------------------------------------
+DROP TABLE Censorship
+# --------------------------------------------------------
+DROP TABLE Emoticon
+# --------------------------------------------------------
+DROP TABLE Topic
+# --------------------------------------------------------
+DROP TABLE Posting
+# --------------------------------------------------------
+DROP TABLE PrivateMessageBody
+# --------------------------------------------------------
+DROP TABLE PrivateMessages
+# --------------------------------------------------------
+DROP TABLE Link
+# --------------------------------------------------------
+DROP TABLE LinkValidation
+# --------------------------------------------------------
+DROP TABLE ListingTypes
+# --------------------------------------------------------
+DROP TABLE Listings
+# --------------------------------------------------------
+DROP TABLE News
+# --------------------------------------------------------
+DROP TABLE Pages
+# --------------------------------------------------------
+DROP TABLE PageContent
+# --------------------------------------------------------
+DROP TABLE BanRules
+# --------------------------------------------------------
+DROP TABLE Cache
+# --------------------------------------------------------
+DROP TABLE Category
+# --------------------------------------------------------
+DROP TABLE CategoryItems
+# --------------------------------------------------------
+DROP TABLE ConfigurationAdmin
+# --------------------------------------------------------
+DROP TABLE ConfigurationValues
+# --------------------------------------------------------
+DROP TABLE CountCache
+# --------------------------------------------------------
+DROP TABLE CustomField
+# --------------------------------------------------------
+DROP TABLE CustomMetaData
+# --------------------------------------------------------
+DROP TABLE EmailLog
+# --------------------------------------------------------
+DROP TABLE EmailMessage
+# --------------------------------------------------------
+DROP TABLE EmailQueue
+# --------------------------------------------------------
+DROP TABLE EmailSubscribers
+# --------------------------------------------------------
+DROP TABLE Events
+# --------------------------------------------------------
+DROP TABLE Favorites
+# --------------------------------------------------------
+DROP TABLE IdGenerator
+# --------------------------------------------------------
+DROP TABLE IgnoreKeywords
+# --------------------------------------------------------
+DROP TABLE Images
+# --------------------------------------------------------
+DROP TABLE ImportScripts
+# --------------------------------------------------------
+DROP TABLE ItemRating
+# --------------------------------------------------------
+DROP TABLE ItemReview
+# --------------------------------------------------------
+DROP TABLE ItemTypes
+# --------------------------------------------------------
+DROP TABLE Language
+# --------------------------------------------------------
+DROP TABLE Modules
+# --------------------------------------------------------
+DROP TABLE PermCache
+# --------------------------------------------------------
+DROP TABLE PermissionConfig
+# --------------------------------------------------------
+DROP TABLE Permissions
+# --------------------------------------------------------
+DROP TABLE PersistantSessionData
+# --------------------------------------------------------
+DROP TABLE Phrase
+# --------------------------------------------------------
+DROP TABLE PhraseCache
+# --------------------------------------------------------
+DROP TABLE PortalGroup
+# --------------------------------------------------------
+DROP TABLE PortalUser
+# --------------------------------------------------------
+DROP TABLE Relationship
+# --------------------------------------------------------
+DROP TABLE SearchConfig
+# --------------------------------------------------------
+DROP TABLE SearchLog
+# --------------------------------------------------------
+DROP TABLE SessionData
+# --------------------------------------------------------
+DROP TABLE SpamControl
+# --------------------------------------------------------
+DROP TABLE StatItem
+# --------------------------------------------------------
+DROP TABLE StdDestinations
+# --------------------------------------------------------
+DROP TABLE StylesheetSelectors
+# --------------------------------------------------------
+DROP TABLE Stylesheets
+# --------------------------------------------------------
+DROP TABLE SuggestMail
+# --------------------------------------------------------
+DROP TABLE SysCache
+# --------------------------------------------------------
+DROP TABLE TagAttributes
+# --------------------------------------------------------
+DROP TABLE TagLibrary
+# --------------------------------------------------------
+DROP TABLE Theme
+# --------------------------------------------------------
+DROP TABLE ThemeFiles
+# --------------------------------------------------------
+DROP TABLE UserGroup
+# --------------------------------------------------------
+DROP TABLE UserSession
+# --------------------------------------------------------
+DROP TABLE Visits
+# --------------------------------------------------------
+DROP TABLE ProductOptions
+# --------------------------------------------------------
+DROP TABLE ProductOptionCombinations
+# --------------------------------------------------------
+DROP TABLE CategoryCustomData
+# --------------------------------------------------------
+DROP TABLE LinkCustomData
+# --------------------------------------------------------
+DROP TABLE NewsCustomData
+# --------------------------------------------------------
+DROP TABLE PortalUserCustomData
+# --------------------------------------------------------
+DROP TABLE ProductsCustomData
+# --------------------------------------------------------
+DROP TABLE TopicCustomData
+# --------------------------------------------------------
+DROP TABLE ImportCache
+#
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.11.2/admin/install/inportal_remove.sql
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.11.2/admin/category/addcategory_permissions.php
===================================================================
--- branches/unlabeled/unlabeled-1.11.2/admin/category/addcategory_permissions.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.11.2/admin/category/addcategory_permissions.php (revision 5303)
@@ -0,0 +1,226 @@
+<?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/category');
+$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
+
+// Permissions tab is opened first -> Home category live permissions editing
+$item_resource_id = $application->GetVar('item');
+if (($item_resource_id !== false) && ((int)$item_resource_id === 0)) {
+ $objSession->SetVariable('IsHomeCategory', 1);
+}
+
+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");
+require_once($pathtoroot.$admin."/listview/listview.php");
+
+$m = GetModuleArray();
+foreach($m as $key=>$value)
+{
+ $path = $pathtoroot. $value."admin/include/parser.php";
+ if(file_exists($path))
+ {
+ include_once($path);
+ }
+}
+
+unset($objEditItems);
+
+$objEditItems = new clsCatList();
+$objEditItems->SourceTable = $objSession->GetEditTable("Category");
+
+$live_editing = $objSession->GetVariable('IsHomeCategory');
+if ($live_editing) {
+ $objEditItems->SourceTable = TABLE_PREFIX.'Category';
+}
+
+//Multiedit init
+$en = (int)$_GET["en"];
+$objEditItems->Query_Item("SELECT * FROM ".$objEditItems->SourceTable.($objEditItems->isLiveTable() ? ' WHERE CategoryId = 0' : ''));
+$itemcount = $objEditItems->NumItems();
+if(isset($_GET["en"]))
+{
+ $c = $objEditItems->GetItemByIndex($en);
+}
+
+if(!is_object($c))
+{
+ $c = new clsCategory($m_var_list["cat"]);
+ $c->Set("CategoryId",$m_var_list["cat"]);
+}
+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_category";
+
+/* -------------------------------------- Section configuration ------------------------------------------- */
+$envar = "env=" . BuildEnv() . "&en=$en";
+$section = 'in-portal:editcategory_permissions';
+
+$sec = $objSections->GetSection($section);
+if($c->Get("CategoryId")==0)
+{
+ $sec->Set("left",NULL);
+ $sec->Set("right",NULL);
+
+}
+if($c->Get("CategoryId")!=0)
+{
+ $title = admin_language("la_Text_Editing")." ".admin_language("la_Text_Category")." '".$c->Get("Name")."' - ".admin_language("la_tab_Permissions");
+}
+else
+ $title = admin_language("la_Text_Editing")." ".admin_language("la_Text_Root")." ".admin_language("la_Text_Category")." - ".admin_language("la_tab_Permissions");
+
+$SortFieldVar = "GroupPerm_SortField";
+$SortOrderVar = "GroupPerm_SortOrder";
+$DefaultSortField = "FullName";
+$PerPageVar = "Perpage_Grouplist";
+$CurrentPageVar = "Page_Grouplist";
+$CurrentFilterVar = "CatImg_View";
+
+$ListForm = "permlistform";
+$CheckClass = "PermChecks";
+/* ------------------------------------- Configure the toolbar ------------------------------------------- */
+$saveURL = $admin."/category/category_maint.php";
+$cancelURL = $admin."/".$objSession->GetVariable('ReturnScript');
+$objListToolBar = new clsToolBar();
+$objListToolBar->Add("img_save", "la_Save","#","swap('img_save','toolbar/tool_select_f2.gif');", "swap('img_save', 'toolbar/tool_select.gif');","do_edit_save('save_edit_buttons','CatEditStatus','$saveURL',1);","tool_select.gif");
+$objListToolBar->Add("img_cancel", "la_Cancel","#","swap('img_cancel','toolbar/tool_cancel_f2.gif');", "swap('img_cancel', 'toolbar/tool_cancel.gif');","do_edit_save('save_edit_buttons','CatEditStatus','".$cancelURL."',2);","tool_cancel.gif");
+if($itemcount == 1) $objListToolBar->Add("divider");
+
+$objListToolBar->Set("section",$section);
+$objListToolBar->Set("load_menu_func","");
+$objListToolBar->Set("CheckClass",$CheckClass);
+$objListToolBar->Set("CheckForm",$ListForm);
+
+if ( isset($en_prev) || isset($en_next) )
+{
+ $url = $RootUrl.$admin."/category/addcategory_permissions.php";
+ $StatusField = "CatEditStatus";
+ $form = "category";
+ MultiEditButtons($objListToolBar,$en_next,$en_prev,$form,$StatusField,$url,$sec->Get("OnClick"),'','la_PrevCategory','la_NextCategory');
+ $objListToolBar->Add("divider");
+}
+
+$listImages = array();
+ //$img, $alt, $link, $onMouseOver, $onMouseOut, $onClick
+
+$objListToolBar->Add("new_perm", "la_ToolTip_New_Permission","#","swap('new_perm','toolbar/tool_new_permission_f2.gif');",
+ "swap('new_perm', 'toolbar/tool_new_permission.gif');",
+ "OpenGroupSelector('$envar&source=addcategory_permissions&CatId=".$c->Get("CategoryId")."&destform=popup&destfield=itemlist');",
+ "tool_new_permission.gif");
+
+$objListToolBar->Add("perm_edit","Edit","#", "if (PermChecks.itemChecked()) swap('perm_edit','toolbar/tool_edit_f2.gif');",
+ "if (PermChecks.itemChecked()) swap('perm_edit', 'toolbar/tool_edit.gif');","if (PermChecks.itemChecked()) PermChecks.check_submit('addpermission_modules', '');",
+ "tool_edit.gif",TRUE,TRUE);
+$listImages[] = "PermChecks.addImage('perm_edit','$imagesURL/toolbar/tool_edit.gif','$imagesURL/toolbar/tool_edit_f3.gif',1); ";
+
+$objListToolBar->Add("perm_del","Delete","#", "if (PermChecks.itemChecked()) swap('perm_del','toolbar/tool_delete_f2.gif');",
+ "if (PermChecks.itemChecked()) swap('perm_del', 'toolbar/tool_delete.gif');","if (PermChecks.itemChecked()) PermChecks.check_submit('addcategory_permissions', 'm_perm_delete_group');",
+ "tool_delete.gif",FALSE,TRUE);
+$listImages[] = "PermChecks.addImage('perm_del','$imagesURL/toolbar/tool_delete.gif','$imagesURL/toolbar/tool_delete_f3.gif',1); ";
+
+$objListToolBar->Add("divider");
+$objListToolBar->AddToInitScript($listImages);
+
+/* ------------------------------------ Build the SQL statement to populate the list ---------------------------*/
+$objGroupList = new clsGroupList();
+$order = $objConfig->Get("Group_SortOrder");
+$objGroupList->Clear();
+
+$sql = 'SELECT ResourceId, g.name AS Name, ELT(g.Personal + 1,"Group ","User ") AS UserGroup
+ FROM '.TABLE_PREFIX.'Permissions p
+ LEFT JOIN '.TABLE_PREFIX.'PortalGroup g ON p.GroupId = g.GroupId
+ WHERE (p.CatId = '.(int)$c->Get('CategoryId').') AND (g.Personal = 0) AND (p.Type = 0)
+ GROUP BY Name';
+//$sql = "SELECT GroupId, count(*) as PermCount FROM ".GetTablePrefix()."Permissions WHERE CatId=".$c->Get("CategoryId")." GROUP BY GroupId";
+$objGroupList->Query_Item($sql);
+
+if($objSession->HasSystemPermission("DEBUG.LIST"))
+ echo htmlentities($sql,ENT_NOQUOTES)."<br>\n";
+
+/* ---------------------------------------- Configure the list view ---------------------------------------- */
+$objListView = new clsListView($objListToolBar,$objGroupList);
+$objListView->IdField = "ResourceId";
+$objListView->PageLinkTemplate = $pathtoroot. "admin/templates/user_page_link.tpl";
+
+$objListView->ColumnHeaders->Add("Name",admin_language("la_prompt_Name"),1,0,$order,"width=\"20%\"",$SortFieldVar,$SortOrderVar,"Name");
+$objListView->ColumnHeaders->Add("UserGroup",admin_language("la_Colheader_GroupType"),1,0,$order,"width=\"30%\"",$SortFieldVar,$SortOrderVar,"UserGroup");
+
+$objListView->ColumnHeaders->SetSort($objConfig->Get($SortFieldVar),$order);
+
+$objListView->PrintToolBar = FALSE;
+$objListView->CurrentPageVar = $CurrentPageVar;
+$objListView->PerPageVar = $PerPageVar;
+$objListView->CheckboxName = "itemlist[]";
+
+int_header($objListToolBar,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 } ?>
+<FORM method="POST" ACTION="" NAME="<?php echo $ListForm; ?>" ID="<?php echo $ListForm; ?>">
+<?php
+print $objListView->PrintList();
+?>
+<input type="hidden" name="Action" value="">
+<INPUT TYPE="hidden" NAME="CategoryId" VALUE="<?php echo $c->Get("CategoryId"); ?>">
+</FORM>
+<FORM NAME="save_edit_buttons" ID="save_edit_buttons" method="POST" ACTION="">
+ <input type="hidden" NAME="Action" VALUE="save_category_edit">
+ <INPUT TYPE="hidden" NAME="CategoryId" VALUE="<?php echo $c->Get("CategoryId"); ?>">
+ <input type="hidden" name="CatEditStatus" VALUE="0">
+</FORM>
+
+<FORM NAME="popup" ID="popup" METHOD="POST" ACTION="addpermission_modules.php?<?php echo $envar; ?>">
+<INPUT TYPE="hidden" NAME="itemlist">
+</FORM>
+<!-- CODE FOR VIEW MENU -->
+<form ID="viewmenu" method="post" action="<?php echo $_SERVER["PHP_SELF"]."?".$envar; ?>" name="viewmenu">
+<input type="hidden" name="fieldname" value="">
+<input type="hidden" name="varvalue" value="">
+<input type="hidden" name="varvalue2" value="">
+<input type="hidden" name="Action" value="">
+</form>
+
+<script src="<?php echo $adminURL; ?>/listview/listview.js"></script>
+<script>
+initSelectiorContainers();
+<?php echo $objListToolBar->Get("CheckClass").".setImages();"; ?>
+</script>
+<!-- END CODE-->
+<?php int_footer(); ?>
Property changes on: branches/unlabeled/unlabeled-1.11.2/admin/category/addcategory_permissions.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.11
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Event Timeline
Log In to Comment