PressRelease/DataObjects/Pressrelease_auto_import.php
authorAlan Knowles <alan@roojs.com>
Mon, 29 Feb 2016 01:43:15 +0000 (09:43 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Feb 2016 01:43:15 +0000 (09:43 +0800)
PressRelease/DataObjects/Pressrelease_beats.php
PressRelease/DataObjects/Pressrelease_beats_seq.php
PressRelease/DataObjects/Pressrelease_category.php
PressRelease/DataObjects/Pressrelease_contact.php
PressRelease/DataObjects/Pressrelease_entry_related.php
PressRelease/DataObjects/Pressrelease_regionmap.php
PressRelease/DataObjects/Pressrelease_saved.php
PressRelease/DataObjects/Pressrelease_search.php
PressRelease/DataObjects/pman.links.ini
PressRelease/DataObjects/Pressrelease_notify.php
PressRelease/DataObjects/Pressrelease_entry.php
PressRelease/DataObjects
PressRelease/HtDig
PressRelease/HtDig/templates
PressRelease/HtDig/Index.php
PressRelease/HtDig/templates/footer.html
PressRelease/HtDig/templates/header.html
PressRelease/HtDig/templates/nomatch.html
PressRelease/HtDig/templates/syntax.html
PressRelease/HtDig/templates/template.html
PressRelease/Import/LocalSearch/Fetch.php
PressRelease/Import/LocalSearch/Init.php
PressRelease/Import/LocalSearch/Run.php
PressRelease/Import/LocalSearch/Search.php
PressRelease/Import/LocalSearch
PressRelease/Import/Search/Baidu.php
PressRelease/Import/Search/Base.php
PressRelease/Import/Search/Bing.php
PressRelease/Import/Search/Google.php
PressRelease/Import/Search/Weibo.php
PressRelease/Import/Search/Yahoo.php
PressRelease/Import/Search/Yam.php
PressRelease/Import/Search/baidu.html
PressRelease/Import/Search/bing.html
PressRelease/Import/Search/weibo.html
PressRelease/Import/Search/yahho.html
PressRelease/Import/Search
PressRelease/Import/Journalist.php
PressRelease/Import/Search.php
PressRelease/Import/SearchFetch.php
PressRelease/Import/TestProviders.php
PressRelease/Import/Debug.php
PressRelease/Import/UpdateFails.php
PressRelease/Import
PressRelease/compiled
PressRelease/compiled/PressRelease-202103_115403.js
PressRelease/compiled/PressRelease-2031_165055.js
PressRelease/compiled/PressRelease-2051_135946.js
PressRelease/compiled/_translation_.js
PressRelease/sql/CampaignAssign.sql
PressRelease/sql/Clipping.sql
PressRelease/sql/Images.sql
PressRelease/sql/Projects.sql
PressRelease/sql/pressrelease_auto_import.sql
PressRelease/sql/pressrelease_beats.sql
PressRelease/sql/pressrelease_category.sql
PressRelease/sql/pressrelease_contact.sql
PressRelease/sql/pressrelease_entry_related.sql
PressRelease/sql/pressrelease_notify.sql
PressRelease/sql/pressrelease_regionmap.sql
PressRelease/sql/pressrelease_saved.sql
PressRelease/sql/pressrelease_search.sql
PressRelease/sql/reader_article.sql
PressRelease/sql
PressRelease/sql/pressrelease_entry.sql
PressRelease/templates/images
PressRelease/templates/view.html
PressRelease/templates/view.ja.html
PressRelease/templates/view.ko.html
PressRelease/templates/view.plain.html
PressRelease/templates/view.plain.style.html
PressRelease/templates/view.zh_CN.html
PressRelease/templates/view.zh_HK.html
PressRelease/templates/mail/test_providers.txt
PressRelease/templates/mail/dashboardmaster.body.html
PressRelease/templates/mail/dashboardmaster.html
PressRelease/templates/mail/dashboardmaster.txt
PressRelease/templates/mail/exportmaster.html
PressRelease/templates/mail/DISTRIBUTION_END.html
PressRelease/templates/mail/DISTRIBUTION_START.html
PressRelease/templates/mail/dashboard.report.word.html
PressRelease/templates/mail/dashboardmail.bjs
PressRelease/templates/mail/dashboardmail.html
PressRelease/templates/mail/dashboardmail.js
PressRelease/templates/mail/email_delivery.txt
PressRelease/templates/mail/email_delivery.body.html
PressRelease/templates/mail
PressRelease/templates/distribution.html
PressRelease/templates/mediaexport_template.abw
PressRelease/templates/press.html
PressRelease/templates/viewMaster.html
PressRelease/templates/graphs/master.html
PressRelease/templates/graphs/volume_over_time.html
PressRelease/templates/graphs/breakdown_by_language.html
PressRelease/templates/graphs/breakdown_by_country.html
PressRelease/templates/graphs/breakdown_by_reach.html
PressRelease/templates/graphs/breakdown_by_news_coverage.html
PressRelease/templates/graphs
PressRelease/templates/master.html
PressRelease/templates
PressRelease/ExcelToText.php
PressRelease/MediaListExport.php
PressRelease/Pman.Dialog.PressReleaseCategory.bjs
PressRelease/Pman.Dialog.PressReleaseCategory.js
PressRelease/Pman.Dialog.PressReleaseContact.bjs
PressRelease/Pman.Dialog.PressReleaseContact.js
PressRelease/Pman.Dialog.PressReleaseJournalistImport.bjs
PressRelease/Pman.Dialog.PressReleaseJournalistImport.js
PressRelease/Pman.Dialog.PressReleaseMediaList.bjs
PressRelease/Pman.Dialog.PressReleaseMediaList.js
PressRelease/Pman.Dialog.PressReleaseSearch.bjs
PressRelease/Pman.Dialog.PressReleaseSearch.js
PressRelease/Pman.Tab.PressReleaseImages.bjs
PressRelease/Pman.Tab.PressReleaseImages.js
PressRelease/Pman.Tab.PressReleaseSaved.bjs
PressRelease/Pman.Tab.PressReleaseSaved.js
PressRelease/Pman.Tab.PressReleaseTab.bjs
PressRelease/Pman.Tab.PressReleaseTab.js
PressRelease/Pman.Tab.ReleaseJournalistTab.bjs
PressRelease/Pman.Tab.ReleaseJournalistTab.js
PressRelease/Pman.Tab.ReleaseRegionMgr.bjs
PressRelease/Pman.Tab.ReleaseRegionMgr.js
PressRelease/PressRelease.perms.json
PressRelease/PressRelease.readers.js
PressRelease/notes.txt
PressRelease/pressrelease.css
PressRelease/DistributionReport/BreakdownByLanguage.php
PressRelease/DistributionReport/BreakdownByReach.php
PressRelease/DistributionReport/VolumeOverTime.php
PressRelease/DistributionReport/BreakdownByCountry.php
PressRelease/DistributionReport/BreakdownByNewsCoverage.php
PressRelease/DistributionReport/ExportWord.php
PressRelease/DistributionReport/ExportXLS.php
PressRelease/DistributionReport
PressRelease/Pman.Dialog.PressReleaseReportNotify.bjs
PressRelease/Pman.Dialog.PressReleaseReportNotify.js
PressRelease/Pman.Dialog.PressReleaseImage.bjs
PressRelease/Pman.Dialog.PressReleaseImage.js
PressRelease/Pman.Tab.ReleaseAutoImport.bjs
PressRelease/Pman.Tab.ReleaseAutoImport.js
PressRelease/domtemplates/pressrelease_entry.html
PressRelease/domtemplates
PressRelease/Pman.Tab.ReleaseClippingReview.bjs
PressRelease/Pman.Tab.ReleaseClippingReview.js
PressRelease/Migration/Domain.php
PressRelease/Migration/PressRelease_is_feed.php
PressRelease/Migration
PressRelease/Pman.Dialog.PressReleasePreview.js
PressRelease/ViewDistribution.php
PressRelease/Pman.Dialog.PressReleasePreview.bjs
PressRelease/View.php
PressRelease/Pman.Tab.ReaderArticle.bjs
PressRelease/Pman.Tab.ReaderArticle.js
PressRelease/DistributionReport.php
PressRelease/Reports
PressRelease/mysql
PressRelease/Pman.Tab.PressReleaseContactRejects.bjs
PressRelease/Pman.Tab.PressReleaseContactRejects.js
PressRelease/Reports/EmailDelivery.php
PressRelease/mysql/pressrelease_notify_trigger_after_update.sql
PressRelease/mysql/pressrelease_contact_trigger_before_update.sql
PressRelease/Pman.Tab.PressReleaseDistribution.bjs
PressRelease/Pman.Tab.PressReleaseDistribution.js
PressRelease/Pman.Tab.PressReleaseCompanies.bjs
PressRelease/Pman.Tab.PressReleaseCompanies.js
PressRelease/Pman.Tab.PressReleaseApprovals.bjs
PressRelease/Pman.Tab.PressReleaseApprovals.js
PressRelease/Pman.Tab.PressReleaseEntry.bjs
PressRelease/Pman.Tab.PressReleaseEntry.js
PressRelease/Pman.Dialog.PressReleasePreviewSend.bjs
PressRelease/Pman.Dialog.PressReleasePreviewSend.js
PressRelease
PressRelease/Pman.Dialog.PressReleaseEdit.bjs
PressRelease/Pman.Dialog.PressReleaseEdit.js

158 files changed:
PressRelease/DataObjects/Pressrelease_auto_import.php [deleted file]
PressRelease/DataObjects/Pressrelease_beats.php [deleted file]
PressRelease/DataObjects/Pressrelease_beats_seq.php [deleted file]
PressRelease/DataObjects/Pressrelease_category.php [deleted file]
PressRelease/DataObjects/Pressrelease_contact.php [deleted file]
PressRelease/DataObjects/Pressrelease_entry.php [deleted file]
PressRelease/DataObjects/Pressrelease_entry_related.php [deleted file]
PressRelease/DataObjects/Pressrelease_notify.php [deleted file]
PressRelease/DataObjects/Pressrelease_regionmap.php [deleted file]
PressRelease/DataObjects/Pressrelease_saved.php [deleted file]
PressRelease/DataObjects/Pressrelease_search.php [deleted file]
PressRelease/DataObjects/pman.links.ini [deleted file]
PressRelease/DistributionReport.php [deleted file]
PressRelease/DistributionReport/BreakdownByCountry.php [deleted file]
PressRelease/DistributionReport/BreakdownByLanguage.php [deleted file]
PressRelease/DistributionReport/BreakdownByNewsCoverage.php [deleted file]
PressRelease/DistributionReport/BreakdownByReach.php [deleted file]
PressRelease/DistributionReport/ExportWord.php [deleted file]
PressRelease/DistributionReport/ExportXLS.php [deleted file]
PressRelease/DistributionReport/VolumeOverTime.php [deleted file]
PressRelease/ExcelToText.php [deleted file]
PressRelease/HtDig/Index.php [deleted file]
PressRelease/HtDig/templates/footer.html [deleted file]
PressRelease/HtDig/templates/header.html [deleted file]
PressRelease/HtDig/templates/nomatch.html [deleted file]
PressRelease/HtDig/templates/syntax.html [deleted file]
PressRelease/HtDig/templates/template.html [deleted file]
PressRelease/Import/Debug.php [deleted file]
PressRelease/Import/Journalist.php [deleted file]
PressRelease/Import/LocalSearch/Fetch.php [deleted file]
PressRelease/Import/LocalSearch/Init.php [deleted file]
PressRelease/Import/LocalSearch/Run.php [deleted file]
PressRelease/Import/LocalSearch/Search.php [deleted file]
PressRelease/Import/Search.php [deleted file]
PressRelease/Import/Search/Baidu.php [deleted file]
PressRelease/Import/Search/Base.php [deleted file]
PressRelease/Import/Search/Bing.php [deleted file]
PressRelease/Import/Search/Google.php [deleted file]
PressRelease/Import/Search/Weibo.php [deleted file]
PressRelease/Import/Search/Yahoo.php [deleted file]
PressRelease/Import/Search/Yam.php [deleted file]
PressRelease/Import/Search/baidu.html [deleted file]
PressRelease/Import/Search/bing.html [deleted file]
PressRelease/Import/Search/weibo.html [deleted file]
PressRelease/Import/Search/yahho.html [deleted file]
PressRelease/Import/SearchFetch.php [deleted file]
PressRelease/Import/TestProviders.php [deleted file]
PressRelease/Import/UpdateFails.php [deleted file]
PressRelease/MediaListExport.php [deleted file]
PressRelease/Migration/Domain.php [deleted file]
PressRelease/Migration/PressRelease_is_feed.php [deleted file]
PressRelease/Pman.Dialog.PressReleaseCategory.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseCategory.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseContact.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseContact.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseEdit.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseEdit.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseImage.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseImage.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseJournalistImport.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseJournalistImport.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseMediaList.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseMediaList.js [deleted file]
PressRelease/Pman.Dialog.PressReleasePreview.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleasePreview.js [deleted file]
PressRelease/Pman.Dialog.PressReleasePreviewSend.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleasePreviewSend.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseReportNotify.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseReportNotify.js [deleted file]
PressRelease/Pman.Dialog.PressReleaseSearch.bjs [deleted file]
PressRelease/Pman.Dialog.PressReleaseSearch.js [deleted file]
PressRelease/Pman.Tab.PressReleaseApprovals.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseApprovals.js [deleted file]
PressRelease/Pman.Tab.PressReleaseCompanies.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseCompanies.js [deleted file]
PressRelease/Pman.Tab.PressReleaseContactRejects.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseContactRejects.js [deleted file]
PressRelease/Pman.Tab.PressReleaseDistribution.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseDistribution.js [deleted file]
PressRelease/Pman.Tab.PressReleaseEntry.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseEntry.js [deleted file]
PressRelease/Pman.Tab.PressReleaseImages.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseImages.js [deleted file]
PressRelease/Pman.Tab.PressReleaseSaved.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseSaved.js [deleted file]
PressRelease/Pman.Tab.PressReleaseTab.bjs [deleted file]
PressRelease/Pman.Tab.PressReleaseTab.js [deleted file]
PressRelease/Pman.Tab.ReaderArticle.bjs [deleted file]
PressRelease/Pman.Tab.ReaderArticle.js [deleted file]
PressRelease/Pman.Tab.ReleaseAutoImport.bjs [deleted file]
PressRelease/Pman.Tab.ReleaseAutoImport.js [deleted file]
PressRelease/Pman.Tab.ReleaseClippingReview.bjs [deleted file]
PressRelease/Pman.Tab.ReleaseClippingReview.js [deleted file]
PressRelease/Pman.Tab.ReleaseJournalistTab.bjs [deleted file]
PressRelease/Pman.Tab.ReleaseJournalistTab.js [deleted file]
PressRelease/Pman.Tab.ReleaseRegionMgr.bjs [deleted file]
PressRelease/Pman.Tab.ReleaseRegionMgr.js [deleted file]
PressRelease/PressRelease.perms.json [deleted file]
PressRelease/PressRelease.readers.js [deleted file]
PressRelease/Reports/EmailDelivery.php [deleted file]
PressRelease/View.php [deleted file]
PressRelease/ViewDistribution.php [deleted file]
PressRelease/compiled/PressRelease-202103_115403.js [deleted file]
PressRelease/compiled/PressRelease-2031_165055.js [deleted file]
PressRelease/compiled/PressRelease-2051_135946.js [deleted file]
PressRelease/compiled/_translation_.js [deleted file]
PressRelease/domtemplates/pressrelease_entry.html [deleted file]
PressRelease/mysql/pressrelease_contact_trigger_before_update.sql [deleted file]
PressRelease/mysql/pressrelease_notify_trigger_after_update.sql [deleted file]
PressRelease/notes.txt [deleted file]
PressRelease/pressrelease.css [deleted file]
PressRelease/sql/CampaignAssign.sql [deleted file]
PressRelease/sql/Clipping.sql [deleted file]
PressRelease/sql/Images.sql [deleted file]
PressRelease/sql/Projects.sql [deleted file]
PressRelease/sql/pressrelease_auto_import.sql [deleted file]
PressRelease/sql/pressrelease_beats.sql [deleted file]
PressRelease/sql/pressrelease_category.sql [deleted file]
PressRelease/sql/pressrelease_contact.sql [deleted file]
PressRelease/sql/pressrelease_entry.sql [deleted file]
PressRelease/sql/pressrelease_entry_related.sql [deleted file]
PressRelease/sql/pressrelease_notify.sql [deleted file]
PressRelease/sql/pressrelease_regionmap.sql [deleted file]
PressRelease/sql/pressrelease_saved.sql [deleted file]
PressRelease/sql/pressrelease_search.sql [deleted file]
PressRelease/sql/reader_article.sql [deleted file]
PressRelease/templates/distribution.html [deleted file]
PressRelease/templates/graphs/breakdown_by_country.html [deleted file]
PressRelease/templates/graphs/breakdown_by_language.html [deleted file]
PressRelease/templates/graphs/breakdown_by_news_coverage.html [deleted file]
PressRelease/templates/graphs/breakdown_by_reach.html [deleted file]
PressRelease/templates/graphs/master.html [deleted file]
PressRelease/templates/graphs/volume_over_time.html [deleted file]
PressRelease/templates/images [deleted symlink]
PressRelease/templates/mail/DISTRIBUTION_END.html [deleted file]
PressRelease/templates/mail/DISTRIBUTION_START.html [deleted file]
PressRelease/templates/mail/dashboard.report.word.html [deleted file]
PressRelease/templates/mail/dashboardmail.bjs [deleted file]
PressRelease/templates/mail/dashboardmail.html [deleted file]
PressRelease/templates/mail/dashboardmail.js [deleted file]
PressRelease/templates/mail/dashboardmaster.body.html [deleted file]
PressRelease/templates/mail/dashboardmaster.html [deleted file]
PressRelease/templates/mail/dashboardmaster.txt [deleted file]
PressRelease/templates/mail/email_delivery.body.html [deleted file]
PressRelease/templates/mail/email_delivery.txt [deleted file]
PressRelease/templates/mail/exportmaster.html [deleted file]
PressRelease/templates/mail/test_providers.txt [deleted file]
PressRelease/templates/master.html [deleted file]
PressRelease/templates/mediaexport_template.abw [deleted file]
PressRelease/templates/press.html [deleted file]
PressRelease/templates/view.html [deleted symlink]
PressRelease/templates/view.ja.html [deleted symlink]
PressRelease/templates/view.ko.html [deleted symlink]
PressRelease/templates/view.plain.html [deleted symlink]
PressRelease/templates/view.plain.style.html [deleted symlink]
PressRelease/templates/view.zh_CN.html [deleted symlink]
PressRelease/templates/view.zh_HK.html [deleted symlink]
PressRelease/templates/viewMaster.html [deleted file]

diff --git a/PressRelease/DataObjects/Pressrelease_auto_import.php b/PressRelease/DataObjects/Pressrelease_auto_import.php
deleted file mode 100644 (file)
index 5d6e696..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_auto_import
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_auto_import extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_auto_import';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $url;                             // blob(65535)  blob
-    public $language;                        // string(6)  not_null
-    public $local_search_url;
-    public $use_local_search;
-    public $is_active;
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    
-    function applyFilters($q, $au, $roo)
-    {
-        $this->selectAdd("
-            (SELECT
-                lval
-            FROM
-                i18n
-            WHERE
-                i18n.lkey = pressrelease_auto_import.language
-                AND
-                i18n.ltype = 'l'
-                AND
-                i18n.inlang = 'en'
-            ) AS language_name
-        ");
-    }
-    
-    
-    function beforeUpdate($old, $q,$roo)
-    {
-        if($this->checkURL($q['url']) && $old->url != $q['url']){
-            $roo->jerr('URL already existing');
-        }
-    }
-    
-    function beforeInsert($q,$roo)
-    {
-        if($this->checkURL($q['url'])){
-            $roo->jerr('URL already existing');
-        }
-    }
-    
-    /**
-     * Check the url is already existing or not
-     * 
-     * the URL must be unique
-     * 
-     * 
-     * @param string $url
-     * @return boolean
-     * 
-     * 
-     */
-    function checkURL($url)
-    {
-        $x = DB_DataObject::factory($this->tableName());
-        if($x->get('url', $url)){
-            return true;
-        }
-        return false;
-    }
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_beats.php b/PressRelease/DataObjects/Pressrelease_beats.php
deleted file mode 100644 (file)
index 4cb3837..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_beats
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_beats extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_beats';    // table name
-    public $id;                              // int(11)  not_null primary_key
-    public $contact_id;                      // int(11)  not_null multiple_key
-    public $category_id;                     // int(11)  not_null
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_beats_seq.php b/PressRelease/DataObjects/Pressrelease_beats_seq.php
deleted file mode 100644 (file)
index 67994d0..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_beats_seq
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_beats_seq extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_beats_seq';    // table name
-    public $id;                              // int(10)  not_null primary_key unsigned auto_increment
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-}
diff --git a/PressRelease/DataObjects/Pressrelease_category.php b/PressRelease/DataObjects/Pressrelease_category.php
deleted file mode 100644 (file)
index 7c360ea..0000000
+++ /dev/null
@@ -1,338 +0,0 @@
-<?php
-/**
- * Table Definition for Category
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_category extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_category';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $parent_id;                       // int(11)  not_null multiple_key
-    public $name;                            // string(128)  not_null
-    public $display_order;                   // int(11)  not_null
-    public $visible;                         // int(1)  not_null
-    public $hgroup;                          // string(128)  not_null
-    public $clist;                           // blob(65535)  not_null blob
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    
-     
-    function applyFilters($q, $au, $roo)
-    {
-       // DB_Dataobject::debugLevel(1);
-        if (!empty($q['for_beat'])) {
-            if (empty($q['contact_id'])) {
-                $this->selectAdd('0 as member');
-            } else {
-                $uid = (int) $q['contact_id'];
-                $this->selectAdd('IFNULL( (SELECT id
-                        FROM pressrelease_beats
-                        WHERE 
-                            category_id=pressrelease_category.id  AND 
-                            contact_id='. $uid.'), 0) as member');
-            }
-            
-        }
-        
-        
-        if (!empty($q['query']['with_empty_member'])) {
-            //DB_DataObject::debugLevel(1);
-            $this->selectAdd('0 as member');
-        }
-        if (!empty($q['query']['hide_empty_member'])) {
-            // only list beats with members in them...
-             $this->whereAdd('
-                    pressrelease_category.id IN (
-                        SELECT distinct(category_id) as cid FROM pressrelease_beats
-                    )');
-             
-            
-        }
-        
-        
-        
-        /// possibly deprecated...
-        if (isset($q['query']['only_countries'])) { /// show countries..
-            if (empty($q['query']['only_countries'])) {
-                $this->whereAdd('1=0');
-                return;
-            }
-            
-            // this is more complex now..
-            
-            // get all the scope types.
-            
-            $pc = DB_DataObject::factory('pressrelease_category');
-            $pc->get('name', 'Publication Scope');
-            $pcid = $pc->id;
-            $pc = DB_DataObject::factory('pressrelease_category');
-            $pc->parent_id = $pcid;
-            $smap = $pc->fetchAll('name','id');
-            foreach($smap as $n=>$id) {
-                $smap[strtolower($n)] = $id;
-            }
-            
-            // DB_Dataobject::debugLevel(1);
-            $b = DB_DataObject::factory('pressrelease_beats');
-            $b->autoJoin(array('joinType'=>'INNER'));
-            
-            $b->selectAdd();
-            $b->selectAdd('distinct(pressrelease_beats.category_id) as distinct_cats');
-            
-            $wq = array();
-            foreach(explode(",",$q['query']['only_countries']) as $c) {
-                if (empty($c)) {
-                    continue;
-                }
-                list($ct,$scope) = explode('_', $c); //
-                $ct = $this->escape($ct);
-                $wq[] =  "
-                        (
-                            join_contact_id_id.country = '$ct'
-                             AND 
-                            join_contact_id_id.category_scope_id = {$smap[$scope]}
-                        )
-                        ";
-            }
-            $ar = array();
-            if (!empty($wq)) {
-                // no countries specified.
-                $b->whereAdd(implode(' OR ', $wq));
-                $ar = $b->fetchAll('distinct_cats');
-            }
-            if (empty($ar)) {
-                $this->whereAddIn('pressrelease_category.id', $ar, 'int');
-            } else {
-                $this->whereAdd( '1= 0');
-            }
-            
-        }
-        // this is the type list..
-        // we only want to list pub scope and type of db if matches are found.
-        $this->applyFilterCountryTree($q,$au);
-        
-        if (isset($q['_tree']) && $q['parent_id'] == 'REGIONS') {
-            
-            
-            
-            $roo->jdata(array());
-            exit;
-            
-            
-            
-            
-        }
-        
-        
-    }
-    
-    function applyFilterCountryTree($q,$au)
-    {
-         
-        $general = false;
-        $international = false;
-        $regions = array();
-        
-        /// possibly deprecated...
-        if (!isset($q['query']['only_countries_tree'])) {
-            return;
-        }
-        //DB_DataObject::DebugLevel(1);
-            /// show countries..
-        if (empty($q['query']['only_countries_tree'])) {
-            $this->whereAdd('1=0');
-            return;
-        }
-            
-            // this is more complex now..
-        $cn = array();
-        $ar = explode(',', $q['query']['only_countries_tree']);
-        foreach($ar as $k) {
-            switch ($k) {
-                case '_international':
-                    $international = true;
-                    break;
-                
-                case '_generalnews':
-                    $general = true;
-                    break;
-                
-                case ($k[1] == '-'): // regional.
-                    $regions[] = array_pop(explode('-', $k));
-                    break;
-                
-                default:
-                    $cn[] = $k;
-                
-            }
-        }
-        
-        $pscope = DB_DAtaObject::Factory('pressrelease_category');
-        $pscope->parent_id = 0;
-        $pscope->get('name', 'Publication Scope');
-        
-        // always hide the 'general data...
-        
-        $this->whereAdd("pressrelease_category.hgroup  != 'General News'");
-        
-        // build the countries for the regions..
-        
-        
-        // look through contacts with matching data..
-        // and use that with _beats to determine what to show..
-        $match  = array();
-        if ($international) {
-            $international = $pscope->childCalled('International');
-            $match[] = "pressrelease_contact.category_scope_id =  {$international->id}";
-        }
-        
-        
-        if ($regions) {
-            $r = DB_DAtaObject::Factory('pressrelease_regionmap');
-            $r->whereAddIn('category_id', $regions,'int');
-            $regions = $r->fetchAll('country');
-            $region = $pscope->childCalled('Regional');
-            // get the region category.
-            $match[] = "
-                pressrelease_contact.category_scope_id =  {$region->id}
-                AND
-                pressrelease_contact.country in ('". implode("','", $regions) . "')
-            ";
-        }
-        if ($cn) {
-            
-            $local = $pscope->childCalled('Local');
-            // get the region category.
-            $match[] = "
-                pressrelease_contact.category_scope_id =  {$local->id}
-                AND
-                pressrelease_contact.country in ('". implode("','", $cn) . "')
-            ";
-        }
-        
-        // mysql is stupidly slow on inner joins..
-        $b = DB_DAtaObject::Factory('pressrelease_beats');
-        
-        $b->whereAdd( !empty($match) ? "
-                    pressrelease_beats.contact_id IN (
-                        SELECT DISTINCT(pressrelease_contact.id) FROM pressrelease_contact WHERE
-                            (" . implode(') OR (' ,$match) . ") 
-                            
-                    ) 
-            " : " 1 = 0 "
-        );
-        
-        $b->selectAdd();
-        $b->selectAdd('DISTINCT(pressrelease_beats.category_id) as category_id');
-        $ids = $b->fetchAll('category_id');
-                     
-        
-        $this->whereAddIn("pressrelease_category.id", $ids, 'int'); 
-        
-        
-        
-        return;
-             
-    }
-    
-     
-
-    
-    function childCalled($name)
-    {
-        $d = DB_DataObject::factory('Pressrelease_category');
-        $d->parent_id = $this->id;
-        $d->visible = 1;
-        $d->get('name', $name);
-        return $d;
-        
-    }
-    function children($opts = array())
-    {
-        //DB_DataObject::debugLevel(1);
-        $d = DB_DataObject::factory('Pressrelease_category');
-//        $dc = DB_DataObject::factory('cms_category_type');
-//        $d->joinAdd( $dc,'LEFT');
-        $d->selectAs();
-        
-  //      $d->selectAs($dc, 'category_type_id_%s');
-        $d->parent_id = $this->id;
-        $d->orderBy('display_order ASC, name ASC');
-        $d->visible = 1;
-        return $d->fetchAll();
-    }
-    
-    function parents() {
-        
-        if (!$this->parent_id) {
-            return false;
-        }
-        $ret = $this->parent()->parents();
-        $ret = $ret || array();
-        
-        $ret[] = $this->parent_id;
-        return $ret;
-        
-    }
-    
-    
-    function parent() {
-        if (!$this->parent_id) {
-            return false;
-        }
-        $d = DB_DataObject::factory('Pressrelease_category');
-        //$dc = DB_DataObject::factory('cms_category_type');
-        //$d->joinAdd( $dc,'LEFT');
-        $d->selectAs();
-        //$d->selectAs($dc, 'category_type_id_%s');
-        $d->id = $this->parent_id;
-        $d->limit(1);
-        $d->find(true);
-        
-        return $d;
-    }
-    
-    
-    
-    function toName() {
-        if (!$this->parent_id) {
-            return '';
-        }
-        $pn = $this->parent()->toName();
-        
-        $ret = strlen($pn) ? $pn .': ' : '';
-        return $ret . (strlen($this->hgroup ) ? ($this->hgroup . ' - ' ) : '') . $this->name;
-    }
-    
-    function onUpdate($old, $r,$roo) 
-    {
-        if (!empty($r['_update_regionmap'])) {
-            // trusting?
-            $ar = implode( "','", explode(',',$r['_update_regionmap']));
-           // DB_DataObject::DebugLevel(1);
-            $q= DB_DataObject::Factory('pressrelease_regionmap');
-            $q->query("UPDATE
-                        pressrelease_regionmap
-                        SET category_id = {$this->id}
-                        WHERE
-                        country IN ('{$ar}')
-                      ");
-            
-            
-            
-            
-        }
-        
-        
-        
-    }
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_contact.php b/PressRelease/DataObjects/Pressrelease_contact.php
deleted file mode 100644 (file)
index 7eba655..0000000
+++ /dev/null
@@ -1,1015 +0,0 @@
-<?php
-/**
- * Table Definition for builder
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_contact extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_contact';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $category_type_id;                // int(11)  not_null
-    public $honor;                           // string(8)  
-    public $name;                            // string(255)  not_null
-    public $name_alt;                        // string(255)  not_null
-    public $company_id_name;                 // string(255)  not_null
-    public $role;                            // string(255)  not_null
-    public $email;                           // string(255)  not_null
-    public $email2;                           // string(255)  not_null
-    public $email3;                           // string(255)  not_null
-    public $email_personal;                  // string(255)  not_null
-    public $phone;                           // string(255)  not_null
-    public $fax;                             // string(128)  not_null
-    public $address;                         // blob(65535)  blob
-    public $category_media_id;               // int(11)  not_null
-    public $submission_time;                 // string(64)  not_null
-    public $contact_language;                // string(8)  not_null
-    public $url;                             // string(255)  not_null
-    public $remarks;                         // blob(65535)  blob
-    public $phone_mobile;                    // string(255)  not_null
-    public $phone_direct;                    // string(255)  not_null
-    public $firstname;                       // string(255)  not_null
-    public $lastname;                        // string(255)  not_null
-    public $firstname_alt;                   // string(255)  not_null
-    public $lastname_alt;                    // string(255)  not_null
-    public $publication_name;                // string(255)  not_null
-    public $publication_name_alt;            // string(255)  not_null
-    public $publication_lang;                // string(8)  not_null
-    public $category_scope_id;               // int(11)  not_null
-    public $contact_language_alt;            // string(8)  not_null
-    public $country;                         // string(8)  not_null
-    public $best_contact_method;             // string(32)  not_null
-    public $best_contact_from;               // string(8)  not_null
-    public $best_contact_to;                 // string(8)  not_null
-    public $best_contact_days;               // string(8)  not_null
-    public $publication_lang_alt;            // string(8)  not_null
-    public $city;                            // string(255)  not_null
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    function applyFilters($q, $au,$roo)
-    {
-        $tn = $this->tableName();
-        // DB_Dataobject::debugLevel(1);
-        
-        $this->selectAdd("i18n_translate('c' , pressrelease_contact.country, 'en') as country_name"); 
-        
-        $this->_extra_cols = array( 'country_name' );
-        
-        $c = DB_DataObject::factory('pressrelease_category');
-            
-        if (!empty($q['query']['category_id']) &&
-            $c->get((int)$q['query']['category_id']) &&
-            $c->parent_id
-            )  {
-            $cp = DB_DataObject::factory('pressrelease_category');
-            $cp->get($c->parent_id);
-            switch(strtolower($cp->name)) {
-                case 'news beat':
-                    $this->whereAdd('
-                        pressrelease_contact.id in ( SELECT DISTINCT(contact_id) FROM pressrelease_beats WHERE category_id = '. $c->id .')
-                    ');
-                    break;
-                    
-                case 'type of database':
-                    $this->category_type_id = $c->id;
-                    break;
-                    
-                case 'type of media':
-                    $this->category_media_id = $c->id;
-                    break;
-                case 'publication scope':
-                    $this->category_scope_id = $c->id;
-                    break;
-                
-            }
-        }
-        if (!empty($q['query']['countries']) ) {
-            $this->whereAddIn('country', explode(',', $q['query']['countries']), 'string');
-        }
-        
-        
-        if (!empty($q['query']['search_name']) ) {
-            $v= $this->escape($q['query']['search_name']);
-            
-            // find matching beats.
-            $cp = DB_DataObject::factory('pressrelease_category');
-            $cp->whereAdd(" hgroup like '%$v%' OR name like '%$v%' ");
-            $gq = '';
-            if ($cp->count()) {
-                $grps = implode(',', $cp->fetchAll('id'));
-                $gq = " OR
-                    pressrelease_contact.id IN (
-                        SELECT distinct(contact_id)
-                            FROM pressrelease_beats
-                            WHERE category_id IN ($grps)
-                    )
-                ";
-            }
-            
-            
-            $this->whereAdd("
-                pressrelease_contact.firstname like '%$v%'
-                OR
-                pressrelease_contact.lastname like '%$v%'
-                OR
-                pressrelease_contact.firstname_alt like '%$v%'
-                OR
-                pressrelease_contact.lastname_alt like '%$v%'
-                OR
-                pressrelease_contact.email like '%$v%'
-                OR
-                pressrelease_contact.email2 like '%$v%'
-                OR
-                pressrelease_contact.email3 like '%$v%'
-                OR
-                pressrelease_contact.publication_name  like '%$v%'
-                  OR 
-                pressrelease_contact.company_id_name  like '%$v%'
-                  OR
-                i18n_translate('c' , pressrelease_contact.country, 'en')  like '%$v%'
-                $gq
-                
-                
-            ");
-            
-            
-            
-            //DB_DATaObject::debugLevel(1);
-       
-        }
-        
-        
-        // OLD distribution filter
-        
-        if (!empty($q['query']['members']) && is_array($q['query']['members'])) {
-           // DB_DATaObject::debugLevel(1);
-            $ids = array();
-            $maps = DB_DataObject::factory('pressrelease_category');
-            $maps->whereAdd("parent_id = 0 OR name='Regional'");
-            
-            $map = $maps->fetchAll('id', 'name');
-            
-            
-            foreach($q['query']['members'] as $k=>$v) {
-                // clean it..
-                $x = explode(',',$v);
-                $v = array();
-                foreach($x as $xx) {
-                    $v[] = (int) $xx;
-                }
-                switch (strtolower($map[$k])) {
-                     case 'news beat':
-               
-                        $this->whereAdd('
-                            pressrelease_contact.id in (
-                                SELECT DISTINCT(contact_id)
-                                    FROM pressrelease_beats WHERE
-                                        category_id IN( '. implode(',', $v) .')
-                            )
-                        ');
-                        break;
-                    case 'type of database':
-                        $this->whereAddIn('pressrelease_contact.category_type_id', $v, 'int');
-                        break;
-                        
-                    case 'type of media':
-                        $this->whereAddIn('pressrelease_contact.category_media_id', $v, 'int');
-                        break;
-                    case 'publication scope':
-                        $this->whereAddIn('pressrelease_contact.category_scope_id', $v, 'int');
-                        break;
-                    case 'regional':
-                        $this->category_scope_id = $k;
-                        
-                        $r = DB_DAtaObject::Factory('pressrelease_regionmap');
-                        $r->whereAddIn('category_id', $v ,'int');
-                        $regions = $r->fetchAll('country');
-                        
-                        // get the region category.
-                        $this->whereAdd( "
-                        
-                            pressrelease_contact.country in ('". implode("','", $regions) . "')
-                        ");
-                        
-                        
-                        //$q['search']['country'] = $
-                        break;
-                        
-                    
-                        
-                }
-                
-                
-                 
-            }
-            
-        }
-        
-        
-        
-        if (!empty($q['query']['country_pick'])) {
-            $this->whereAdd("country != ''");
-            $this->selectAdd();
-            $this->selectAdd('
-                    DISTINCT( pressrelease_contact.country) as country,
-                    count(pressrelease_contact.id) as country_num,
-                    0 as country_match,
-
-                    0 as member' );
-             
-            
-            $this->groupBy('pressrelease_contact.country');
-            
-        }
-        
-        if (isset($q['_with_country_name'])) {
-             $lang = $this->escape($au->lang); 
-            $this->selectAdd("i18n_translate('c', pressrelease_contact.country, '$lang') as country_name");
-             $this->orderBy('country_name ASC');
-        }
-        
-        if (isset($q['search']['country'])) {
-            //DB_DataObject::debugLevel(1);
-            $lang = $this->escape($au->lang); // just in case..
-            //DB_DATAOBJECT::debugLevel(1);
-            $this->selectAdd("i18n_translate('c', pressrelease_contact.country, '$lang') as country_name");
-            if (!empty($q['search']['country'])) { 
-                $pn = $this->escape($q['search']['country']); // just in case..
-                $this->having("country_name like '$pn%'");
-            }
-            // manually add sort
-            if (!empty($q['sort']) && $q['sort'] == 'country_name') {
-                $this->orderBy('country_name ASC');
-            }
-            
-        }
-        if (isset($q['search']['role'])) {
-            $ar = json_decode($q['search']['role']);
-           // DB_DataObject::debugLevel(1);
-            if (!empty($ar)) { 
-                $this->whereAddIn('pressrelease_contact.role', $ar, 'string');
-            }
-            
-        }
-         if (isset($q['search']['category_media_id'])) {
-            $ar = json_decode($q['search']['category_media_id']);
-           // DB_DataObject::debugLevel(1);
-            if (!empty($ar)) { 
-                $this->whereAddIn('pressrelease_contact.category_media_id', $ar, 'int');
-            }
-            
-        }
-        if (isset($q['search']['country_ar'])) {
-            $ar = json_decode($q['search']['country_ar']);
-           // DB_DataObject::debugLevel(1);
-            if (!empty($ar)) { 
-                $this->whereAddIn('pressrelease_contact.country', $ar, 'string');
-            }
-            
-        }
-        
-        // role based permissions.
-        
-        if (!empty($au->role)) {
-            
-            $this->whereAddIn('pressrelease_contact.country', explode(',', $au->role), 'string');
-            
-        }
-         
-        
-        if (isset($q['search']['publication_lang'])) {
-             //DB_DataObject::debugLevel(1);
-            $lang = $this->escape($au->lang); // just in case..
-            $this->selectAdd("
-                            i18n_translate('l', pressrelease_contact.publication_lang, '$lang') as publication_lang_name,
-                            i18n_translate('l', pressrelease_contact.publication_lang_alt, '$lang') as publication_lang_alt_name
-                            ");
-            if (!empty($q['search']['publication_lang'])) {
-                if ($q['search']['publication_lang'] == '??') {
-                    $this->whereAdd("pressrelease_contact.publication_lang = ''");
-                    
-                } else {
-                    // this is a bit strange why are we searching by country name???
-                    $pn = $this->escape($q['search']['publication_lang']); // just in case..
-                    /*
-                    $this->having("
-                            publication_lang_name like '$pn%'
-                            OR
-                            publication_lang_alt_name like '$pn%'
-                            ");
-                    */
-                    $this->whereAdd("publication_lang = '$pn' OR publication_lang_alt = '$pn'" );
-                    
-                }
-            }  
-        }
-        if (!empty($q['search']['publication_name'])) {
-            //DB_DataObject::debugLevel(1);
-            $pn = $this->escape($q['search']['publication_name']); // just in case..
-            $this->whereAdd("pressrelease_contact.publication_name like '$pn%'");
-        }
-        /*if (!empty($q['search']['role'])) {
-            //DB_DataObject::debugLevel(1);
-            $pn = $this->escape($q['search']['role']); // just in case..
-            $this->whereAdd("pressrelease_contact.role like '$pn%'");
-        }
-        */
-        if (!empty($q['search']['category_media_id_name'])) {
-            //DB_DataObject::debugLevel(1);
-            $pn = $this->escape($q['search']['category_media_id_name']); // just in case..
-            $this->whereAdd("join_category_media_id_id.name like '$pn%'");
-        }
-        
-        
-        // approvals...
-        if (!empty($q['query']['for_approval'])) {
-           
-            
-            
-            // this should really be a query on the core_notify table with
-            // information available from this table.
-            
-            // to do this we need to really implement a method on the core_notify table
-            // that can join the source table, 
-            
-            // search for approvals.
-            //DB_DataObject::debugLevel(1);
-            $n = DB_DataObject::factory('core_notify');
-            $n->autoJoin();
-            $n->person_id = $au->id;
-            $n->ontable = $this->tableName();
-            $n->whereAdd('sent < act_when'); // not issued yet..
-            $n->whereAdd("join_watch_id_id.medium = 'APPROVAL'");
-            $tp  = '';
-            if (!empty($q['query']['_edited_by'])) {
-                $n->trigger_person_id = $q['query']['_edited_by'];
-               $tp = "AND
-                    join_core_notify.trigger_person_id = " . (int) $q['query']['_edited_by'];
-            }
-            $nn = clone($n);
-            $ids = $n->fetchAll('onid');
-           // print_R($ids);exit;
-            $this->whereAddIn('pressrelease_contact.id', $ids , 'int');
-            //$this->selectAdd('')
-            if (empty($ids)) {
-                $this->whereAdd('1=0');
-                return;
-            }
-            
-            $this->_join .= "
-                INNER JOIN core_notify join_core_notify
-                        ON
-                            join_core_notify.onid = {$tn}.id
-                        AND
-                            join_core_notify.ontable = '{$tn}'
-                        AND
-                            join_core_notify.sent < join_core_notify.act_when
-                        AND
-                            join_core_notify.person_id = {$au->id}
-                        AND
-                            join_core_notify.id IN (". implode(',', $nn->fetchAll('id')) . ") 
-                        $tp
-                          
-                LEFT JOIN core_watch join_watch_id_id
-                    ON
-                        join_watch_id_id.id = join_core_notify.watch_id
-                    AND
-                        join_watch_id_id.medium = 'APPROVAL'
-                    
-                
-                LEFT JOIN Person join_core_notify_trigger_person_id_id
-                    ON
-                        join_core_notify_trigger_person_id_id.id = join_core_notify.trigger_person_id
-            ";
-            
-            //$this->_extra_cols = isset($this->_extra_cols ) ? $this->_extra_cols  : array();
-            
-            $cn = DB_DataObject::Factory('core_notify');
-            $this->selectAs($cn, 'core_notify_%s', 'join_core_notify');
-            
-            
-            // this should be supoorted by dataobject..
-            foreach($cn->table() as $k=>$t) {
-                //$this->_extra_cols[sprintf("core_notify_%s", $k)] = 'join_core_notify.' . $k;
-                $this->_extra_cols[] = sprintf("core_notify_%s", $k);
-                
-            }
-            
-            
-            $cn = DB_DataObject::Factory('Person');
-            $this->selectAs($cn, 'core_notify_trigger_person_id_%s', 'join_core_notify_trigger_person_id_id');
-            
-            
-            // this should be supoorted by dataobject..
-            foreach($cn->table() as $k=>$t) {
-                
-                //$this->_extra_cols[sprintf("core_notify_%s", $k)] = 'join_core_notify.' . $k;
-                $this->_extra_cols[] = sprintf("join_core_notify_trigger_person_id_%s", $k);
-                
-            }
-           // echo '<PRE>';print_r($this->_extra_cols);exit;
-            
-            
-            /*
-             $n = DB_DataObject::factory('core_notify');
-            $n->autoJoin();
-            $n->person_id = $au->id;
-            $n->ontable = $this->tableName();
-            $n->whereAddIn('core_notify.onid', $ids, 'int');
-            $n->whereAdd('sent < act_when'); // not issued yet..
-            $n->whereAdd("join_watch_id_id.medium = 'APPROVAL'");
-            $n->orderBy('act_when ASC'); // so latest deletes oldest
-            $n->find();
-            while ($n->fetch()) {
-                $ret[$map[$n->onid]] = array_merge(
-                    $ret[$map[$n->onid]] ,
-                    $n->toArray('core_notify_%s')
-                );
-            }
-            */
-            
-            
-        } 
-        
-        if (!$au->hasPerm('PressRelease.JournalistAll','S')) {
-            // they can only view their own entries.
-            
-            $e = DB_DataObject::Factory('Events');
-            $e->on_table = 'pressrelease_contact';
-            $e->person_id = $au->id;
-            $e->selectAdd();
-            $e->selectAdd('distinct(on_id) as on_id');
-            $ar = $e->fetchAll('on_id');
-            if ($ar) { 
-                $this->whereAddIn('pressrelease_contact.id', $ar, 'int');
-            }
-            
-        }
-        if (isset($q['distfilter'])) {
-            $this->applyDistributionFilter($q['distfilter']);
-        }
-        
-        if (isset($q['query']['failed']) || isset($q['query']['with_failed_flag'])) {
-            // need to find address that have failed, and are still stored on our system..
-            
-            // if we are looking for failed, and not revieweed yet..
-            // then we can claim that if something was delivered to that person,
-            // after the failure then we can update the fail-reviewed = 1
-            $pn = DB_DataObject::factory('pressrelease_notify');
-            $pnt = $pn->tableName(); 
-            
-            // does not handle the review stuff..
-            
-            // failed_reviewed is part of notify.. - or stored proc might need to check that..
-            
-            $this->selectAdd("
-                CASE WHEN
-                        email_fails > 0 OR email2_fails > 0 OR email3_fails > 0
-                    THEN 1
-                  ELSE 0
-                  END
-                as is_failed
-            ");
-            
-            if (!empty($q['query']['bad_only'])) {
-                $this->whereAdd("(email_fails > 0 OR email2_fails > 0 OR email3_fails > 0)");
-            }
-            
-            
-            if (!isset($q['query']['with_failed_flag'])) {
-                // we are only looking for failures..
-                 
-                $this->whereAdd("
-                    email_fails > 0 OR email2_fails > 0 OR email3_fails > 0
-                ");
-                 
-                 
-               // $this->having("is_failed = 1");
-            }
-            /*
-            //DB_DataObject::debugLevel(1);
-            $pn = DB_DataObject::factory('pressrelease_notify');
-            $pn->setFrom(array(
-                'ontable' => 'pressrelease_entry',
-                
-            ));
-            $args = array(
-                    'vtype' => 'FAILED'
-                );
-            if (!empty($q['query']['unreviewed']) || isset($q['query']['with_failed_flag'])) {
-                $args['fail_reviewed'] = 0;
-            }
-            $pn->applyFilters( $args, $au, $roo);
-            $pn->selectAdd();
-            $pn->selectAdd('DISTINCT(person_id) as person_id' );
-            $ids = $pn->fetchAll('person_id');
-            
-            if (isset($q['query']['with_failed_flag'])) {
-                $this->selectAdd(" 
-                    ( {$tn}.id IN (". implode(',', $ids) .")  ) as is_failed
-                " );
-            } else {
-            
-                $this->whereAddIn("{$tn}.id", $ids , 'int');
-            }
-            */
-            
-        }
-         
-        
-    }
-    
-    /**
-     * tree filtered :
-     * countries : - HK,CN,XX,_international,_general..
-     * beats
-     * ignores general ... in coutnreis unless beats is set.. 
-     */
-    function applyDistributionFilter($cfg)
-    {
-         $general = false;
-        $international = false;
-        $regions = array();
-        
-        //DB_DataObject::DebugLevel(1);
-            // this is more complex now..
-        $cn = array();
-        $ar = explode(',', $cfg['countries']);
-        foreach($ar as $k) {
-            switch ($k) {
-                case '_international':
-                    $international = true;
-                    break;
-                
-                case '_generalnews':
-                    $general = true;
-                    break;
-                
-                case (!empty($k) && ($k[1] == '-')): // regional.
-                    $regions[] = array_pop(explode('-', $k));
-                    break;
-                
-                default:
-                    $cn[] = $k;
-                
-            }
-        }
-        
-        $pscope = DB_DAtaObject::Factory('pressrelease_category');
-        $pscope->parent_id = 0;
-        $pscope->get('name', 'Publication Scope');
-        
-        // always hide the 'general data...
-         
-        // build the countries for the regions..
-        
-        
-        // look through contacts with matching data..
-        // and use that with _beats to determine what to show..
-        $match  = array();
-        if ($international) {
-            $international = $pscope->childCalled('International');
-            $match[] = "pressrelease_contact.category_scope_id =  {$international->id}";
-        }
-        
-        
-        if ($regions) {
-            $r = DB_DAtaObject::Factory('pressrelease_regionmap');
-            $r->whereAddIn('category_id', $regions,'int');
-            $regions = $r->fetchAll('country');
-            $region = $pscope->childCalled('Regional');
-            // get the region category.
-            $match[] = "
-                pressrelease_contact.category_scope_id =  {$region->id}
-                AND
-                pressrelease_contact.country in ('". implode("','", $regions) . "')
-            ";
-        }
-        if ($cn) {
-            
-            $local = $pscope->childCalled('Local');
-            // get the region category.
-            $match[] = "
-                pressrelease_contact.category_scope_id =  {$local->id}
-                AND
-                pressrelease_contact.country in ('". implode("','", $cn) . "')
-            ";
-        }
-        
-        // mysql is stupidly slow on inner joins..
-        if (!empty($match) ) {
-         
-            $this->whereAdd(  "(" . implode(') OR (' ,$match) . ")");
-        }
-        // ontop of that...
-        // apply beats..
-        $v = strlen($cfg['beats']) ? explode(',' , $cfg['beats']) : array();
-        if ($general) {
-          
-            $pc = DB_DAtaObject::Factory('pressrelease_category');
-            
-            // always hide the 'general data...
-            
-            $pc->hgroup  = 'General News';
-            $vv = $pc->fetchAll('id');
-            if ($vv) { 
-                $v = array_merge($v, $vv);
-            }
-        }
-        
-           
-        if (empty($v)) {
-            $this->whereAdd('1=0');
-            return;
-        }
-        $this->whereAdd('
-                pressrelease_contact.id in (
-                    SELECT DISTINCT(contact_id)
-                        FROM pressrelease_beats WHERE
-                            category_id IN( '. implode(',', $v) .')
-                )
-            ');
-        //echo '<PRE>';print_r($cfg);
-        if (isset($cfg['blacklist'])) {
-            $blacklist = $this->escape($cfg['blacklist']);
-            $this->selectAdd("
-                  LOCATE( CONCAT(',', pressrelease_contact.id, ','), ',{$blacklist},') AS blacklist_pos
-            ");
-        }
-        
-        
-    }
-    
-    
-    function onUpdate($old, $req)
-    {
-        $this->updateBeats($req);
-        
-        $this->updateFailReview($old);
-        
-    }
-    
-    
-    function onInsert($req)
-    {
-        $this->updateBeats($req);
-        
-    }   
-    function updateBeats($req) 
-    {
-        
-        if (!isset($req['beats'])) {
-            return;
-        }
-       
-        $cur = $this->beats();
-        
-        $new = explode(',', $req['beats']);
-        $nochange = array();
-        foreach($cur as $c) {
-            if (!in_array($c->category_id, $new)) {
-                // removed..
-                $c->delete();
-                continue;
-            }
-            // it's in there,, we can ignore
-            $nochange[] = $c->category_id;
-        }
-        
-        // what to add..
-        
-        foreach($new as $n) {
-            if (in_array($n, $nochange)) {
-                continue;
-            }
-            $c = DB_DataObject::factory('pressrelease_beats');
-            $c->contact_id = $this->id;
-            $c->category_id = $n;
-            $c->insert();
-        }
-        
-         
-        
-    }
-    
-    
-    function beforeDelete(&$ar)
-    {
-        
-        // permissions have already be checked...
-        
-        foreach($ar as $do)
-        {
-            $deps = $do->fetchAll();
-            foreach($deps as $d) {
-                $d->delete(); // we do not log this!!!
-            }
-            
-        }
-        $ar = array();
-        
-        
-        
-    }
-    
-    
-    
-    function beats()
-    {
-        $c = DB_DataObject::factory('pressrelease_beats');
-       //  DB_DataObject::debugLevel(1);
-        $c->autoJoin();
-        $c->contact_id = $this->id;
-        $c->orderBy('category_id_name ASC');
-        return  $c->fetchAll();
-    }
-    
-    function toRooArray($request)
-    {
-        $ret = $this->toArray();
-        if (!empty($request['query']['count_members'])) {
-            $x = DB_DataObject::Factory('pressrelease_contact');
-            $x->country = $this->country;
-            $ret['country_match'] = $x->numberMatch($request);
-             
-        }
-        
-        
-        if (!empty($request['query']['_with_beats'])) {
-                
-            $beats = array();
-            $ar = $this->beats() ;
-            if (count($ar) > 10) {
-                $ret['beats'] = 'More than 10 news beats';
-            } else { 
-                foreach( $this->beats() as $b) {
-                    $beats[] = ($b->category_id_hgroup ?  $b->category_id_hgroup . ' : ' : '') . $b->category_id_name;
-                }
-                $ret['beats'] = implode(', ', $beats);
-            }
-        }
-        return $ret;
-    }
-    function postListFilter($ret, $au, $request)
-    { 
-        
-        if (!empty($request['query']['for_approval'])) {
-            //DB_DataObject::debugLevel(1);
-            /*
-            $ids = array();
-            foreach($ret as $n=>$c) {
-                $ids[] = $c['id'];
-                $map[$c['id']] = $n;
-            }
-            
-            // need to fill in who and when they where edited last.
-            // this is actually available from notify.
-            $n = DB_DataObject::factory('core_notify');
-            $n->autoJoin();
-            $n->person_id = $au->id;
-            $n->ontable = $this->tableName();
-            $n->whereAddIn('core_notify.onid', $ids, 'int');
-            $n->whereAdd('sent < act_when'); // not issued yet..
-            $n->whereAdd("join_watch_id_id.medium = 'APPROVAL'");
-            $n->orderBy('act_when ASC'); // so latest deletes oldest
-            $n->find();
-            while ($n->fetch()) {
-                $ret[$map[$n->onid]] = array_merge(
-                    $ret[$map[$n->onid]] ,
-                    $n->toArray('core_notify_%s')
-                );
-            }
-            */
-           
-        }
-        
-        return $ret;
-        
-        
-    }
-    
-    function numberMatch($q)
-    {
-        static $map = false;
-        
-        if ($map === false) { 
-            //DB_DATaObject::debugLevel(1); print_R($q);
-            $ids = array();
-            $maps = DB_DataObject::factory('pressrelease_category');
-            $maps->parent_id = 0;
-            $map = $maps->fetchAll('id', 'name');
-        }
-        //DB_DATaObject::debugLevel(1); 
-       //echo '<PRE>';print_r($q);
-       //print_R($map);
-        
-        foreach($q['query']['count_members'] as $k=>$vv) {
-            // clean it..
-            $x = explode(',',$vv);
-            $v = array();
-            foreach($x as $xx) {
-                $v[] = (int) $xx;
-            }
-            //var_Dump(strtolower($map[$k]));
-            switch (strtolower($map[$k])) {
-                 case 'news beat':
-           
-                    $this->whereAdd('
-                        pressrelease_contact.id in (
-                            SELECT DISTINCT(contact_id)
-                                FROM pressrelease_beats WHERE
-                                    category_id IN( '. implode(',', $v) .')
-                        )
-                    ');
-                    break;
-                case 'type of database':
-                    $this->whereAddIn('pressrelease_contact.category_type_id', $v, 'int');
-                    break;
-                    
-                case 'type of media':
-                    $this->whereAddIn('pressrelease_contact.category_media_id', $v, 'int');
-                    break;
-                
-                case 'publication scope':
-                    $this->whereAddIn('pressrelease_contact.category_scope_id', $v, 'int');
-                    break;
-                    
-            }
-            
-            
-             
-        }
-        return $this->count();
-    
-        
-        
-        
-    }
-    
-    function updateFailReview($old)
-    {
-        // when a contact has been edited, if the email addresses have been changed, then we can
-        // flag 'fail_reveiewd' in the notify list for email
-        // to_email != "" AND to_email IS NOT NULL and to_email NOT IN (... list of valid email)
-        //DB_DataObject::debugLevel(1);
-        $changed  = false;
-         foreach (array(
-                'email','email2', 'email3', 'email_personal'
-            ) as $e) {
-            
-            if ($old->$e != $this->$e) {
-                $changed = true;
-            }
-            
-        }
-        if (!$changed) {
-            return;
-        }
-        
-        
-        
-        // make this considerably simpler...
-        
-        $n = DB_DataObject::factory('pressrelease_notify');
-        $n->query("
-            UPDATE
-                pressrelease_notify
-            SET
-                fail_reviewed = 1
-            WHERE
-                person_id = {$this->pid()}
-                  
-        ");
-        return;
-        
-        // ----------------- old more complex version...
-        
-        
-        $n = DB_DataObject::factory('pressrelease_notify');
-        
-        $addrs = array();
-        foreach (array(
-                $this->email,
-                $this->email2,
-                $this->email3,
-                $this->email_personal,
-            ) as $e) {
-            if (empty($e) || !strlen(Trim($e))) {
-                continue;
-            }
-            $addrs[] = $n->escape($e);
-        }
-        
-        
-        
-        $n->setFrom(array(
-            'ontable' => 'pressrelease_entry',
-            //'vtype' => 'FAILED', // ???
-            'fail_reviewed' => 0,
-            'person_id' => $this->id,
-        ));
-        // FAILED.
-        $n->whereAdd("
-                   (pressrelease_notify.msgid IS NULL OR LENGTH(pressrelease_notify.msgid) < 1) AND
-                   pressrelease_notify.event_id  > 0
-                   ");
-        
-       
-        $n->whereAdd("
-                        to_email != ''
-                        AND
-                        to_email IS NOT NULL
-        ");
-        if (count($addrs)) { 
-            $n->whereAdd( " 
-                        to_email NOT IN ('" . implode("','", $addrs) ."')
-            ");
-            
-            
-            
-        }
-        
-        $n->find();
-        while ($n->fetch()) {
-            $nn = clone($n);
-            $nn->fail_reviewed = 1;
-            $nn->update($n);
-        }
-        
-        // now if we are updating and not changing the name..
-        
-        if (!count($addrs)) {
-            return;
-        }
-        
-        $n = DB_DataObject::factory('pressrelease_notify');
-        $n->setFrom(array(
-            'ontable' => 'pressrelease_entry',
-            //'vtype' => 'FAILED', // ???
-            'fail_reviewed' => 0,
-            'person_id' => $this->id,
-        ));
-        
-        $n->autoJoin();
-        $n->orderBy('join_event_id_id.event_when DESC');
-        
-        // FAILED.
-        $failed = clone($n);
-        $tn = $n->tableName();
-        $failed->whereAdd("
-               ({$tn}.msgid IS NULL OR LENGTH({$tn}.msgid) < 1) AND
-               {$tn}.event_id  > 0
-               ");
-        
-        $delivered= clone($n);
-        $delivered->whereAdd("
-                ({$tn}.msgid IS NOT NULL AND LENGTH({$tn}.msgid) > 0) AND
-                {$tn}.event_id  > 0
-                ");
-        
-        foreach($addrs as $email) {
-            $ff = clone($failed);
-            $ff->limit(1);
-            $ff->to_email = $email;
-            $dd = clone($delivered);
-            $dd->to_email = $email;
-            $dd->limit(1);
-            if (!$dd->find(true)) {
-                continue;
-            }
-            if (!$ff->find(true)) {
-                continue;
-            }
-            if (strtotime($ff->event_id_event_when) > strtotime($dd->event_id_event_when) ) {
-                continue; // failed is after delivered.
-            }
-            // update all the failed to say reviewed..
-            $ff = clone($failed);
-            $ff->to_email = $email;
-            $ff->find();
-            while ($ff->fetch()) {
-                $ffnn = clone($ff);
-                $ff->fail_reviewed = 1;
-                $ff->update($n);
-            }
-        
-            
-        }
-        
-        
-        
-        
-        
-    }
-    function toEventString()
-    {
-        return implode(' ', array($this->email , $this->firstname, $this->lastname));
-    }
-    
-}
\ No newline at end of file
diff --git a/PressRelease/DataObjects/Pressrelease_entry.php b/PressRelease/DataObjects/Pressrelease_entry.php
deleted file mode 100644 (file)
index c783b91..0000000
+++ /dev/null
@@ -1,2291 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_entry
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_entry extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_entry';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $client_id;                       // int(11)  not_null multiple_key
-    public $language;                        // string(5)  not_null
-    public $publish_dt;                      // datetime(19)  not_null binary
-    public $publish_dt_tz;                   // real(6)  not_null
-    public $headline;                        // string(254)  not_null
-    public $content;                         // blob(4294967295)  not_null blob
-    public $content_data;                    // blob(4294967295)  not_null blob
-    public $content_links;                   // blob(4294967295)  not_null blob
-    public $updated;                         // datetime(19)  not_null binary
-    public $created;                         // datetime(19)  not_null binary
-    public $created_by;                      // int(11)  not_null
-    public $updated_by;                      // int(11)  not_null
-    public $owner_id;                        // int(11)  not_null
-    public $publish_status;                  // int(11)  not_null
-    public $subheadline;                     // string(254)  not_null
-    public $stockcode;                       // string(64)  not_null
-    public $contact1_id;                     // int(11)  not_null
-    public $contact2_id;                     // int(11)  not_null
-    public $contact3_id;                     // int(11)  not_null
-    public $content_about;                   // blob(4294967295)  not_null blob
-    public $content_forward;                 // blob(4294967295)  not_null blob
-    public $company_name_alt;                // string(254)  not_null
-    public $country;                         // string(4)  not_null
-    public $industry;                        // string(254)  not_null
-    public $contact1_displaytype;            // int(4)  not_null
-    public $contact2_displaytype;            // int(4)  not_null
-    public $contact3_displaytype;            // int(4)  not_null
-    public $contact_txt;                     // blob(65535)  not_null blob
-    public $publish_sum;                     // string(64)  not_null
-    public $published;                       // datetime(19)  not_null binary
-    public $distribution_contacts;           // blob(4294967295)  not_null blob
-    public $distribution_config;             // blob(65535)  not_null blob
-    public $parent_id;                       // int(11)  not_null
-    public $distribution_countries;          // blob(65535)  not_null blob
-    public $industry_name;                   // string(128)  not_null
-    public $best_contact_days;               // string(8)  not_null
-    public $stock_exchange_id;               // int(11)  not_null
-    public $source_name;                     // string(254)  not_null
-    public $email;                          // string(254)  not_null
-    public $email2;                          // string(254)  not_null
-    public $email3;                          // string(254)  not_null
-    public $word_count;                      // int(11)  not_null
-    public $blacklist_ids;              // list of contact id's that are blacklisted for this release.
-    public $revisions;
-
-
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-   
-     
-    function applyFilters($q, $au,$roo)
-    {
-        if (!empty($q['query']['collapse_translation'])) {
-            $this->whereAdd('pressrelease_entry.parent_id = 0');
-            
-        }
-        if (!empty($q['query']['with_distr_summary'])) {
-               $this->selectAddDistSummary(); 
-            
-        }
-        if (!empty($q['_build_feed'])) {
-            
-            $p = DB_DataObject::Factory('Projects');
-            $p->get((int)$q['_build_feed']);
-            
-            // delete exiting keywords..
-            $key = DB_DataObject::factory('clipping_keywords');
-            $key->project_id = $p->id;
-            foreach($key->fetchAll() as $kk) {
-                $kk->delete();
-            }
-            
-            $this->get($p->pressrelease_id);
-            
-            $this->buildFeeds();
-            $roo->jok("done");
-            
-        }
-        $this->selectAdd("
-            (SELECT
-                id
-            FROM
-                Projects
-            WHERE
-                Projects.pressrelease_id = pressrelease_entry.id
-            ) AS project_id
-        ");
-       
-       
-    }
-    function children()
-    {
-        $x= DB_DataObject::Factory('pressrelease_entry');
-        $x->parent_id = $this->id;
-        return $x->fetchAll();
-        
-        
-    }
-    
-    
-    function content_data() // financial data.
-    {
-        // this used to be plain text formated, now it's rich text.
-        return  $this->content_data;
-    }
-    /**
-     * content_Data_emtpy:
-     *
-     * Used to check on emails if the financial data is empty..
-     */
-    function content_data_empty()
-    {
-        $d = trim(strip_tags($this->content_data));
-        return strlen($d) ? 0 : 1;
-    }
-    
-    function content_links()
-    {
-        
-        $match = array();
-        if (!preg_match_all('#^(.*)(http\S+)(.*)$#im', $this->content_links, $match)) {
-            return '';
-        }
-        //echo '<PRE>';print_r($match);echo '</PRE>';
-        $ret  = array();
-        foreach($match[0] as $k=>$v)
-        {
-            $vv = strlen(trim($match[1][$k])) ? trim($match[1][$k]) : '';
-            $vv = strlen(trim($match[3][$k])) ? trim($match[3][$k]) : $vv;
-            $vv = strlen($vv) ? $vv : $v;
-            
-            $ret[] = '<a href="'. $match[2][$k]  .'">'. $vv . '</a>';
-        }
-            
-        //
-        return implode (' <br/>', $ret);
-    
-    }
-    
-    function content()
-    {
-        // swaps <div class="youtube" with <iframe...
-        return preg_replace('/<div\s+class="youtube"([^<]+)<\/div>/','<iframe\1</iframe>', $this->content);
-        
-    }
-    
-    function contentShortPreview($len_want = 160){
-        $string = strip_tags($this->content());
-        $len_act = mb_strlen($this->content, 'utf-8');
-         
-        if($len_act > $len_want){
-            return  $this->maxChars($string, $len_want) ;
-        }
-        return $string;
-    }
-
-    function maxChars($string, $length = 80, $etc = '...', $charset='UTF-8',
-                                  $break_words = false, $middle = false) {
-        
-          if ($length == 0) {
-            return '';
-        }
-        if (mb_strlen($string) <= $length) {
-            return $string;
-        }
-           $length -= min($length, mb_strlen($etc));
-        if (!$break_words && !$middle) {
-            $string = preg_replace('/\s+?(\S+)?$/u', '', mb_substr($string, 0, $length+1, $charset));
-        }
-        if(!$middle) {
-            return mb_substr($string, 0, $length, $charset) . $etc;
-        } 
-        return mb_substr($string, 0, $length/2, $charset) . $etc . mb_substr($string, -$length/2, (mb_strlen($string)-$length/2), $charset);
-        
-        
-    }
-    
-    function content_about()
-    {
-        // return a richer version of the text..
-        $data = htmlspecialchars($this->content_about);
-        
-        $data = nl2br( $data);
-        $data=preg_replace("/(http:\/\/|www|[a-zA-Z0-9-]+\.|[a-zA-Z0-9\.-]+@)(([a-zA-Z0-9-][a-zA-Z0-9-]+\.)+[a-zA-Z0-9-\.\/\_\?\%\#\&\=\;\~\!\(\)]+)/",
-                    "<a  href=\"http://\\1\\2\">\\1\\2</a>",$data);
-                // aboive regex adds http twice..
-        $data=preg_replace("/http:\/\/http:\/\//", "http://",$data);
-
-        return $data;
-        
-        
-    }
-    
-    
-    function publish_dt($format)
-    {
-        return date($format, strtotime($this->publish_dt));
-    }
-    /**
-     * use: release.language(authUser)
-     */
-    function language($to=false)
-    {
-        if ($to === false) {
-            $to = $this->language;
-        }
-        return DB_DataObject::factory('i18n')->translate($to,'l',$this->language);
-        
-        //require_once 'Pman/Core/I18n.php';
-        //$l = new Pman_Core_i18n;
-        //return $l->translate($to, 'l', $this->language); 
-
-    }
-    
-    function client()
-    {
-        $c = DB_DataObject::factory('Companies');
-        $c->get($this->client_id);
-        return $c;
-    }
-    
-    function selectAddDistSummary()
-    {
-        //DB_DataObjecT::debugLevel(1);
-         $this->selectAdd(" 
-                    (SELECT count(pressrelease_notify.id) FROM   pressrelease_notify
-                         WHERE
-                            pressrelease_notify.onid = pressrelease_entry.id
-                            AND
-                            pressrelease_notify.ontable = 'pressrelease_entry'
-                            AND
-                            pressrelease_notify.evtype = 'MAIL'
-                    ) AS dist_summary_all,
-                    
-                     (SELECT count(pressrelease_notify.id) FROM   pressrelease_notify
-                         WHERE
-                            pressrelease_notify.onid = pressrelease_entry.id
-                            AND
-                            pressrelease_notify.ontable = 'pressrelease_entry'
-                            AND
-                            pressrelease_notify.sent < NOW()
-                            AND
-                            pressrelease_notify.event_id > 0
-                            AND
-                            pressrelease_notify.evtype = 'MAIL'
-                    ) AS dist_summary_complete,
-                    
-                     (SELECT count(pressrelease_notify.id) FROM   pressrelease_notify
-                         WHERE
-                            pressrelease_notify.onid = pressrelease_entry.id
-                            AND
-                            pressrelease_notify.ontable = 'pressrelease_entry'
-                            AND
-                            pressrelease_notify.event_id > 0
-                            AND
-                            pressrelease_notify.evtype = 'MAIL'
-                            AND
-                            pressrelease_notify.msgid = ''
-                            
-                            
-                            
-                    ) AS dist_summary_fail,
-                    
-                    (SELECT count(pressrelease_notify.id) FROM   pressrelease_notify
-                            WHERE
-                               pressrelease_notify.onid = pressrelease_entry.id
-                               AND
-                               pressrelease_notify.ontable = 'pressrelease_entry'
-                               AND
-                               pressrelease_notify.evtype = 'MAIL'
-                               AND
-                               is_open = 1
-
-                       ) AS dist_open_summary
-                ");
-        
-    }
-    
-    
-    
-    
-    function toRooArray($q)
-    {
-        if(!empty($q['_pressrelease_clipping_review'])){
-            return $this->clipping_review($q);
-        }
-        
-        $ret = $this->toArray();
-        
-        if (empty($q['query']['collapse_translation'])) {
-            return $ret;
-        }
-        //DB_DataObject::debugLevel(1);
-        // just get the basic children..
-        $x = DB_DataObject::factory('pressrelease_entry');
-        $x->parent_id = $this->id;
-        if (!empty($q['query']['with_distr_summary'])) {
-            $x->selectAddDistSummary(); 
-        }
-        
-        $x->find();
-        $ar = array();
-        while ($x->fetch()) {
-            $ar[ ]  = $x->toArray();
-        }
-        $ret['children'] = $ar;
-         
-        return $ret;
-    }
-    
-    
-    function toRooSingleArray()
-    {
-        // called on single get..
-        $ret = $this->toArray();
-        $ret['publish_dt_hr'] = date('H:i', strtotime($this->publish_dt));
-        $ret['publish_dt_day'] = date('Y-m-d', strtotime($this->publish_dt));
-        if($this->parent_id > 0 && empty($this->project_id)){
-            $p = DB_DataObject::factory('Projects');
-            $p->get('pressrelease_id', $this->parent_id);
-            $ret['parent_id_project_id'] = $p->id;
-        }
-        return $ret;
-    }
-    function setFromRoo($req)
-    {
-        $ret = $this->setFrom($req);
-        if (isset($req['publish_dt_hr']) && isset($req['publish_dt_day'])) {
-            $this->publish_dt = date('Y-m-d H:i:00', strtotime($req['publish_dt_day'] . ' '. $req['publish_dt_hr'] . ':00'));
-        }
-        return $ret;
-    }
-    
-    function  beforeUpdate($old, $request,$roo) //- after update - jerr() will stop insert..
-    {
-        
-//         DB_DataObject::debugLevel(1);
-        // this has to be done to resize images..
-        // it depends on Pman_Image['public_baseURL']
-        if ($old->content != $this->content) {
-            require_once 'Pman/Core/Images.php';
-            
-            $this->content = Pman_Core_Images::replaceImageURLS( $this->content );
-        }
-        
-        $this->revisions = (empty($old->revisions)) ? 1 : ($old->revisions + 1);
-        
-        
-    }
-    function beforeDelete($dependants_array, $roo)
-    {
-        if ($this->publish_status > -1) {
-            $roo->jerr("You can not delete published releases. - change the status to draft then delete them.");
-        }
-        $pe = $this->factory('pressrelease_entry');
-        $pe->parent_id = $this->id;
-        foreach($pe->fetchAll() as $pe) {
-            $pe->beforeDelete(array(), $roo);
-            $pe->delete();
-            // $pe->onDelete();
-        }
-        
-        
-        
-        
-        $img = DB_DataObject::factory('Images');
-        $img->ontable = $this->tableName();
-        $img->onid = $this->id;
-        if ($img->count()) {
-            $roo->jerr("Delete all the images on  press release #{$this->id} first");
-        }
-         
-        $pn = DB_DataObject::factory('pressrelease_notify');
-        $img->ontable = $this->tableName();
-        $img->onid = $this->id;
-        if ($img->count()) {
-            $roo->jerr("Delete all pending messages onpress release #{$this->id} first");
-        }
-        
-        
-        // ready to delete?!?
-        return true;   
-    }
-
-    
-    
-    function onUpdate($old, $request,$roo) 
-    {
-        // when an release is change from draft (-1? to 0)
-        // then update any notify events to match the correct time..
-      
-        if(
-                $this->publish_status != -1 && 
-                (
-                    strtotime($this->publish_dt) != strtotime($old->publish_dt) ||
-                    $this->publish_dt_tz != $old->publish_dt_tz
-                )
-        ){
-            $this->buildDistributionStartNotification();
-        
-            $this->buildDistributionEndNotification();
-        }
-        
-        if (($this->publish_status != 0)  || ($this->publish_status == $old->publish_status))  {
-            return;
-        }
-        // change to publish..
-        $no = $this->notifications();
-        
-        
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-                    // hard code our default timezone (HKT!)
-        $offset = 8 - (1 * $tz_ar[0]);
-        // assume only 30 minute intervals...
-        $ptime = date("Y-m-d H:i:s", strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"));
-    
-        
-        
-        foreach($no as $n) {
-            if ($n->delivered()) { // not likely..
-                continue;
-            }
-            $new  = clone($n);
-            $new->act_start($ptime);
-            $new->update($n);
-            
-            
-        }    
-    }
-    
-    /**
-     *
-     * @param $dom DomDocument - to create elements
-     * @param $parsent DomNode - parent to add to
-     * @param $content_type String text/html or text/plan
-     * @param $opts (really the REQUEST ..)
-     *   valid modifiers.
-     *   ?with_first_image = 1    = use the first non-logo image as the image tag.
-     *   ?skip_no_images = 1  = only show entries with images..
-     *   ?rfc = 1 (do not show images - and make it rfc complient...)
-     *   
-     */
-   function toRSSXML($dom, $parent, $content_type='text/html', $opts = array())
-   {
-        $images = array();
-        if (!empty($opts['with_first_image'])) {
-            $db = DB_Dataobject::Factory('Images');
-            $db->whereAdd("Images.imgtype != 'LOGO'");
-            $db->orderBy('id ASC'); // first...
-            $db->limit(1);
-            $images = $db->gather($this, 'image/%');
-        }
-        if (!empty($opts['skip_no_images']) && empty($images)) {
-            return;
-        }
-    
-        $entry = $dom->createElement('entry');
-        $parent->appendChild($entry);
-
-        // published
-        
-        
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-        $offset = 8 - (1 * $tz_ar[0]);
-        //  strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"))
-                
-        
-        
-        $pub = $dom->createElement('published');
-        $pub->appendChild($dom->createTextNode(date("Y-m-d\TH:i:sP",strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"))));
-        $entry->appendChild($pub);
-
-        // updated
-        $updated = $dom->createElement('updated');
-        $updated->appendChild($dom->createTextNode(date("Y-m-d\TH:i:sP",strtotime($this->updated))));
-        $entry->appendChild($updated);
-
-        // title
-        $title = $dom->createElement('title');
-        $title->appendChild($dom->createTextNode($this->headline));
-        $entry->appendChild($title);
-
-        
-        $findata = ( strlen($this->content_forward)  ? ($this->content_forward . '<br/><br/>') : '') .
-            (
-                (strlen(trim($this->content_data)) && (substr(trim($this->content_data),0,1) != '<')) ?
-                    ('<pre>' . $this->content_data  .'</pre>' ) : $this->content_data
-            );
-         
-        if ($content_type != 'text/plain') {
-            // content
-            $content = $dom->createElement('content');
-            $attr = $dom->createAttribute('type');
-            $attr->value = 'html';
-            $content->appendChild($attr);
-
-            $cdata = $this->content();
-            $cdata .= '<br /><br />'.$this->content_about;          
-                          
-            $roo = HTML_FlexyFramework::get()->page;
-            
-            $trackurl = "http://{$_SERVER['HTTP_HOST']}{$roo->baseURL}/FeedTrack/{$this->id}";
-                                 
-            $imagefeedtrack = '<img src="'. $trackurl . '" width="1" height="1">';
-            
-            $content->appendChild($dom->createTextNode(
-                                $cdata .
-                               (strlen($findata) ? ('<br/></br/>' . $findata ): '') .
-                                $imagefeedtrack
-                               ));
-            $entry->appendChild($content );
-
-        } else {
-            // plain text 
-            $content = $dom->createElement('content');
-            $attr = $dom->createAttribute('type');
-            $attr->value = 'plain';
-            $content->appendChild($attr);
-            
-            $cdata = $this->content;
-            $cdata .= '<br /><br />'.$this->content_about;
-             
-            require_once 'File/Convert.php';
-            require_once 'System.php';
-            $tmpdir  = System::mktemp("-d convert");
-            $path = $tmpdir . '/' . $this->id . '.html';
-            
-            file_put_contents($path, $cdata);
-            
-            $fc = new File_Convert($path, 'text/html' );
-            $plain = $fc->convert('text/plain');
-            
-            $content->appendChild($dom->createTextNode(file_get_contents($plain)));
-            $entry->appendChild($content);
-            
-        }
-        
-        // link
-        $link = $dom->createElement('link');
-        $attr = $dom->createAttribute('type');
-        $attr->value = 'text/html';
-        $link->appendChild($attr);
-
-        $attr = $dom->createAttribute('rel');
-        $attr->value = 'alternate';
-        $link->appendChild($attr);
-
-        
-        //$attr = $dom->createAttribute('releaseid');
-        //$attr->value = $this->id;
-        //$link->appendChild($attr);
-        
-        $attr = $dom->createAttribute('href');
-        $attr->value = 'http://www.media-outreach.com/release.php/View/'.$this->id.'#Contact';
-        $link->appendChild($attr);
-        $entry->appendChild($link);
-
-        // id
-        $id = $dom->createElement('id');
-        //$id->appendChild($dom->createTextNode('MEDIA-OUTREACH-'.$this->id));
-        $id->appendChild($dom->createTextNode('http://www.media-outreach.com/release.php/View/'.$this->id.'#Contact'));
-        $entry->appendChild($id);
-
-        // author
-        $name = $dom->createElement('name');
-        $name->appendChild($dom->createTextNode($this->client()->name));
-
-        $auth = $dom->createElement('author');
-        $auth->appendChild($name);
-        $entry->appendChild($auth);
-        
-        // default is to add the logo...
-        if (empty($opts['rfc']) && empty($images)) {
-            // image - logo
-            $image = $dom->createElement('image');
-    
-            $db = DB_Dataobject::Factory('Images');
-            $ar = $db->gather($this, 'image/%');
-            foreach($ar as $img) {
-                if($img->imgtype == 'LOGO') {
-                    $imgUrl = $dom->createElement('url');
-                    $imgUrl->appendChild($dom->createTextNode('http://'.$_SERVER['HTTP_HOST'].$img->URL("x100",'/Images/Thumb'))); 
-                    $image->appendChild($imgUrl);
-    
-                    $imgTitle = $dom->createElement('title');
-                    $imgTitle->appendChild($dom->createTextNode($img->title));
-                    $image->appendChild($imgTitle);
-    
-                    $entry->appendChild($image);
-                }
-            }
-            
-        }
-        
-        if (!empty($images)) {
-            $img = $images[0];
-            
-            $image = $dom->createElement('image');
-            $imgUrl = $dom->createElement('url');
-            $imgUrl->appendChild($dom->createTextNode('http://'.$_SERVER['HTTP_HOST'].$img->URL(-1,'/Images/Thumb'))); 
-            $image->appendChild($imgUrl);
-
-            $imgTitle = $dom->createElement('title');
-            $imgTitle->appendChild($dom->createTextNode($img->title));
-            $image->appendChild($imgTitle);
-
-            $entry->appendChild($image);
-        }
-        
-       
-        
-        
-    } 
-    
-      
-   function toRSS2XML($dom, $parent, $view="standard", $request) {
-            
-        $entry = $dom->createElement('item');
-        $parent->appendChild($entry);
-        
-        //link
-        $link = $dom->createElement('link');
-        $link->appendChild($dom->createTextNode('http://www.media-outreach.com/release.php/View/'.$this->id.'#Contact'));
-         $entry->appendChild($link);
-         
-        // title
-        $title = $dom->createElement('title');
-        $title->appendChild($dom->createTextNode($this->headline));
-        $entry->appendChild($title);
-        
-        // author
-        if ($view == "standard") {                       
-            $name = $dom->createElement('author');
-            $name->appendChild($dom->createTextNode($this->client()->name));
-            $entry->appendChild($name);
-        }
-        
-        // category
-        $name = $dom->createElement('category');
-        $name->appendChild($dom->createTextNode($this->industry_name));
-        $entry->appendChild($name);
-        
-        
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-        $offset = 8 - (1 * $tz_ar[0]);
-        //  strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES")
-       
-        
-        // published 
-        $pub = $dom->createElement('pubDate');
-        $pub->appendChild($dom->createTextNode(date('r', strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"))));
-        $entry->appendChild($pub);
-        
-        // id
-        
-        $id = $dom->createElement('guid');
-        
-        if ($view == "standard") {       
-            $id->appendChild($dom->createTextNode(md5('MEDIA-OUTREACH-'.$this->id)));
-        }
-        if ($view == "rfc") {                    
-            $id->appendChild($dom->createTextNode('http://www.media-outreach.com/release.php/View/'.$this->id.'#Contact'));
-        }
-        $entry->appendChild($id);
-                  
-        // content
-         $cdata = $this->content();
-        $cdata .= '<br /><br />'.$this->content_about;
-
-        $findata = ( strlen($this->content_forward)  ? ($this->content_forward . '<br/><br/>') : '') .
-                (
-                    (strlen(trim($this->content_data)) && (substr(trim($this->content_data),0,1) != '<')) ?
-                        ('<pre>' . $this->content_data  .'</pre>' ) : $this->content_data
-                );
-        $findata_contents = (strlen($findata) ? ('<br/></br/>' . $findata ): '');
-        
-        $roo = HTML_FlexyFramework::get()->page;
-        
-        $trackurl = "http://{$_SERVER['HTTP_HOST']}{$roo->baseURL}/FeedTrack.php?{$this->id}";
-                                 
-        $imagefeedtrack = '<img src="'. $trackurl . '" width="1" height="1">';
-          
-        
-        
-        
-        $content = $dom->createElement('description');    
-       
-        if (!empty($request['content_type']) && $request['content_type'] == 'text/plain') {
-            $cdata = strip_tags($cdata); // not sure if this is a great idea...
-            if (!empty($request['clean_breaks'])) {
-                $cdata  = preg_replace("/([^\n])\n([^\n])/", '$1 $2', $cdata);
-            }
-            
-            
-            $imagefeedtrack = '';
-        }
-        
-        if ($view == "standard") {
-            $content->appendChild($dom->createTextNode($cdata . $imagefeedtrack ));
-        }
-        if ($view == "rfc") {
-             $content->appendChild($dom->createTextNode($cdata . $findata_contents . $imagefeedtrack));
-        }
-        $entry->appendChild($content);
-                        
-        // detail -- only for non rfc
-        if($view == "standard") {
-            $content = $dom->createElement('detail');
-            $content->appendChild($dom->createTextNode($cdata . $findata_contents. $imagefeedtrack));
-            $entry->appendChild($content);
-        } 
-        
-                   
-    }
-    
-    function toFeedXML($dom, $parent, $with_images = false, $striplf = false, $striphtml = false)  
-    {
-        $e = $dom->createElement('NewsItem');
-        $parent->appendChild($e);
-         
-        $c = $this->client();
-        
-        $company = array(
-            'Name' => $c->name,
-            'ChineseName' => $this->company_name_alt,
-            'Code' => $this->stockcode,
-            'Country' => $this->country,
-            'Industry' => $this->industry_name,
-           
-        );
-        
-        $cel  = $dom->createElement('Company');
-        $e->appendChild($cel);
-        foreach($company as $k=>$v) {
-            
-            $kk  = $dom->createElement($k);
-            $kk->appendChild($dom->createCDATASection($v));
-            $cel->appendChild($kk);
-        }
-        
-        $ff = HTML_FlexyFramework::get();
-        $host = empty($_SERVER['HTTP_HOST']) ? $ff->Factiva['HTTP_HOST'] : $_SERVER['HTTP_HOST'];
-        $fbase = empty($ff->baseURL) ? $ff->Factiva['baseURL'] : $ff->baseURL;
-        $baseURL = 'http://'. $host. $fbase;
-        // Media..
-        $im = DB_DataObject::factory('Images');
-          
-        $ar = $im->gather($this);
-        
-        $media = array();
-       
-        foreach($ar as $img)  {
-            if (preg_match('#^image/#', $img->mimetype)) {
-                $media[] = $img->title . ': <a href="'. $baseURL . '/Images/'. $img->id .'/'. $img->filename. '">'. 
-                    $baseURL . '/Images/'. $img->id .'/'. $img->filename . '</a>';
-                    
-                continue;
-            }
-            $media[] = $img->title . ': <a href="' . $baseURL . '/Images/Download'. $img->id .'/'. $img->filename. '">'. 
-                    $baseURL . '/Images/Download'. $img->id .'/'. $img->filename . '</a>';
-            
-        }
-        
-        $contact = '<br/><br/>' .
-                    '<a href="http://www.media-outreach.com/release.php/View/'. $this->id .'#Contact"><h3>Contacts</h3></a>';
-                    
-        
-        $content =  ($striplf ? $this->contentLFStrip() : $this->content());
-                    //$this->plainToHtml($this->contact_txt);
-        
-        $findata = (strlen(trim($this->content_data)) && (substr(trim($this->content_data),0,1) != '<')) ?
-                 ('<pre>' . $this->content_data  .'</pre>' ) : $this->content_data;
-                 
-        if ($striphtml) {
-            $content =  strip_tags( $this->contentLFStrip("\n\n") ). "\n\n";
-            $contact =  "\n\nContacts:\n".
-                    "http://www.media-outreach.com/release.php/View/{$this->id}#Contact\n";
-                    //$this->contact_txt;
-            $findata = strip_tags($this->content_data);
-            
-            
-        }
-                 
-        // add company data..
-        
-        $add = array(
-            'ID' => 'MEDIA-OUTREACH-'. $this->id,
-            //'Type' => 'Press Release',
-            'Lang' => $this->language,
-            'IssueDate' => date('Y-m-d', strtotime($this->publish_dt)),
-            'Headline' => $this->headline,
-            'SubHeadline' => $this->subheadline,
-            'Content' => $content,
-                           
-            'AboutCompany' => ($striphtml ? $this->content_about : $this->plainToHtml($this->content_about)) .
-                                $contact,
-            'FinancialForward' => $striphtml ? $this->content_forward  : $this->plainToHtml($this->content_forward),
-            'FinancialData' => $findata,
-                
-            'Media' =>  $striphtml ? $media  : implode('<br/>', $media),
-        );
-        
-        
-       
-         
-        $cel  = $dom->createElement('Release');
-        $e->appendChild($cel);
-        foreach($add as $k=>$v) {
-            $kk  = $dom->createElement($k);
-            if ($k == 'ID') {
-                $kk->setAttribute('updated' , $this->updated);
-                $kk->setAttribute('created' , $this->created);
-            }
-            $v = @iconv('UTF8','UTF8//IGNORE',$v);
-            $kk->appendChild($dom->createCDATASection($v));
-            $cel->appendChild($kk);
-        }
-        
-        if ($with_images) {
-            // grab the logo and the images relating to this relese.
-            $ff = HTML_FlexyFramework::get();
-            $imgs  = $cel->appendChild($dom->createElement('Images'));
-            
-            $havelogo = false;
-            $i = DB_DataObject::Factory('Images');
-            $ar = $i->gather($this,'image/%');
-            //echo '<PRE>';print_r($ar);
-            foreach($ar as $i) {
-                if ($i->imgtype == 'LOGO') {
-                    $havelogo = true;
-                }
-                $img = $imgs->appendChild($dom->createElement('Image'));
-                $img->setAttribute('id', $i->id);
-                $img->setAttribute('imgtype', $i->imgtype);
-                $img->appendChild($dom->createCDATASection(
-                        'http://'. $_SERVER['HTTP_HOST'] . 
-                        $i->URL(-1,'/Images')));
-            }
-            
-            if (!$havelogo) { 
-                //DB_DataObject::DebugLevel(1);
-                $c = DB_DataObject::factory('Companies');
-                $c->id = $this->client_id;
-                $i = DB_DataObject::Factory('Images');
-                $i->imgtype='LOGO';
-                $ar = $i->gather($c,'image/%');
-                if (count($ar)) {
-                    $img = $imgs->appendChild($dom->createElement('Image'));
-                    $img->setAttribute('id', $ar[0]->id);
-                    $img->setAttribute('imgtype', $ar[0]->imgtype);
-                    $img->appendChild($dom->createCDATASection(
-                            'http://'. $_SERVER['HTTP_HOST'] . 
-                            $ar[0]->URL("x100",'/Images/Thumb')));
-                }
-                //DB_DataObject::debugLvel(1);
-            }
-            
-        }
-        
-        
-        
-    }
-    
-    function contentLFStrip($lb = "\n")
-    {
-        $ret = $this->content;
-        $ret = str_replace("\n", " ", $ret);
-        $ret = preg_replace('#(<p[^>]*>)#i', "\\1".$lb, $ret);
-        return $ret;
-    
-        
-    }
-    
-    
-    function plainToHtml($str)
-    {
-        $str = str_replace("\n", "<BR>\n", $str);
-        $str = str_replace("<BR>\n<BR>\n", "\n<P>\n", $str);
-        return $str;
-    }
-    
-    
-    
-    function logoImageHTML($size, $provider = '/Images/Thumb') {
-        //DB_DataObject::debugLevel(1);
-        $i = DB_DataObject::Factory('Images');
-        $i->imgtype == 'LOGO';
-        $ar = $i->gather($this,'image/%');
-        return $ar ? $ar[0]->toHTML($size, $provider) : '' ;
-    }
-    
-    function logoImageURL($size, $provider = '/Images/Thumb') {
-        //DB_DataObject::debugLevel(1);
-        $i = DB_DataObject::Factory('Images');
-        $i->imgtype == 'LOGO';
-        $ar = $i->gather($this,'image/%');
-        return $ar ? $ar[0]->URL($size, $provider) : '' ;
-    }
-    
-    function logo() {
-        $i = DB_DataObject::Factory('Images');
-        $i->imgtype == 'LOGO';
-        $ar = $i->gather($this,'image/%');
-        return $ar ? $ar[0] : '' ;
-    }
-    
-    function toEventString()
-    {
-        return '#' . $this->id . ' ' . $this->client()->name . ': ' . ($this->language) . ' ' . $this->headline;
-    }
-    
-    function distributionList($what=false)
-    {
-        
-        
-        //DB_DataObject::debugLevel(1);
-        $pg = HTML_Flexyframework::get()->page;
-        
-        $x = DB_DataObject::factory('pressrelease_contact');
-        $x->autoJoin();
-        $x->applyDistributionFilter(array(
-            'beats' =>$this->distribution_config,
-            'countries'=> $this->distribution_countries,
-            'blacklist' => $this->blacklist_ids, // just flags them...
-        ), $pg->authUser);
-        
-        
-        return  $x->fetchAll($what);
-        //print_r($this->distlist);
-    }
-    
-    function buildNotification()
-    {
-       
-//        $this->buildFeeds();
-        
-        
-//        DB_DataObject::debugLevel(1);
-        // This needs handling here, as we should not distribute translations
-        // if they are not ready yet.
-        $pe = DB_DataObject::factory('pressrelease_entry');
-        $pe->parent_id = $this->id;
-        $pe->whereAdd("language != ''");
-        $pe->find();
-        $versions = array();
-        $version_obj = array();
-        while ($pe->fetch()) {
-            $versions[$pe->language] = $pe->id;
-            $version_obj[$pe->id] = clone($pe);
-        }
-        $versions[$this->language] = $this->id;
-        $version_obj[$this->id] = clone($this);
-        
-         // find who is already queued..
-        $nc = DB_DataObject::factory('pressrelease_notify');
-        $nc->ontable = 'pressrelease_entry';
-        $nc->whereAddIn('onid', array_values($versions), 'int');
-        $nc->evtype = 'MAIL';
-        
-        $ar = $nc->fetchAll();
-        $queued  = array();
-        foreach($ar as $q) {
-            $queued[ $q->person_id . '-'.  $q->field ] = $q;
-        }
-        //DB_DataObject::DebugLevel(1);
-        //echo '<PRE>';print_R($queued);exit;
-        $ar = $this->distributionList();
-        $added = 0;
-        $nc = DB_DataObject::factory('pressrelease_notify');
-        
-        $done = array();
-//        print_r($ar);
-        foreach($ar as $c) {
-           
-            if ($c->blacklist_pos > 0) {
-                continue;
-            }
-           
-           
-            // which version to send..
-            $version = 0;
-            if (!empty($versions[$c->contact_language])) {
-                $version  = $versions[$c->contact_language];
-            } elseif (!empty($versions[$c->contact_language_alt])) {
-                $version  = $versions[$c->contact_language_alt];
-            }
-            
-            // check if $version->?? what ever langue it is in...
-             // matche eisth c->contact_lang or alt.... do not add if it is not in there.
-            if(empty($version)){
-                if(empty($versions['en'])){// if english version is not found  then skip that
-                    continue;
-                }
-                $version = $versions['en'];// set to default send a english version
-            }
-            
-            foreach(array('email','email2','email3') as $email_field) {
-                if (empty($c->{$email_field}) || !strlen(trim($c->{$email_field}))) {
-                    continue; // nothing in alternative email field.
-                }
-                // prevent dupes to same email..
-                if (isset($done[$c->{$email_field}])) {
-                    continue;
-                }
-                $done[$c->{$email_field}] = 1;
-                
-                if (isset($queued[$c->id .'-'.$email_field  ])) {
-                    // we already have a reference to it..
-                    // if it has been sent, we skip it!!!!
-                    if ($queued[$c->id .'-'.$email_field  ]->delivered()) {
-                        continue;
-                    }
-                    // = should we try failed??
-                    //if ($queued[$c->id .'-'.$email_field  ]->delivered()) {
-                    //    continue;
-                    //}
-                    // not delivered, we can alter it...
-                    
-                    $n = clone($queued[$c->id .'-'.$email_field  ]);
-                    $nn = $queued[$c->id .'-'.$email_field  ];
-                } else {
-                    $nn = false;
-                    $n = clone($nc);
-                }
-                
-                
-                
-                $n->setFrom(array(
-                    'person_id' => $c->id,
-                    'ontable' => 'pressrelease_entry',
-                    'onid' => $version,
-                    'event_id' => 0,
-                    'evtype' => 'MAIL',
-                    'msgid' => '',
-                    'field' => $email_field,
-                    'bounced' => 0,
-                ));
-                //var_dump($this->publish_dt . ' GMT' . $off . $this->publish_dt_tz);
-                $sv = $version_obj[$version];
-                
-                //if ($sv->publish_status != 0) {
-                    // not ready...
-                //    $n->act_start(date('Y-m-d H:i:s', strtotime("NOW + 30 DAYS"))); << this was causing issues.
-            //                                                                it's here to prevent problems, but causes them instead..?
-                //} else {
-                    
-                    
-                    
-                    $tz_ar = explode('.',  $sv->publish_dt_tz);
-                    // hard code our default timezone (HKT!)
-                    $offset = 8 - (1 * $tz_ar[0]);
-                    // assume only 30 minute intervals...
-                    $n->act_start(date("Y-m-d H:i:s", strtotime("{$sv->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES")));
-                
-                //}
-                //print_r($n);exit;
-                if ($n->id) { 
-                    $n->update($nn);
-                }else {
-                    $n->insert();
-                }
-                $added++;
-            }
-           
-        }
-        
-        return $added;
-        
-    }
-    
-    function notifications()
-    {
-        
-        $n = DB_DataObject::factory('pressrelease_notify');
-        $n->ontable = 'pressrelease_entry';
-        $n->onid = $this->id;
-        return $n->fetchAll();
-        
-    }
-    
-    function notifyDistributionReport($rcpt, $last_sent_date, $notify, $force)
-    {
-        
-       // print_R($notify);
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-                    // hard code our default timezone (HKT!)
-        $offset = 8 - (1 * $tz_ar[0]);
-        // calculate which report from the notify->act_start..
-        $offdate =  strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES");
-        $days = round( ( strtotime($notify->act_start) - $offdate) / (60*60*24));
-        require_once 'Pman/PressRelease/DistributionReport.php';
-        $dr = new Pman_PressRelease_DistributionReport();
-        $dr->baseURL = '/index.php'; ///??? from where else?
-        
-        
-        $em = $dr->buildReport($this->id,$days,$notify->to_email);
-        $ret = $em->toData();
-        $ret['send-to'] = $notify->to_email;
-        //print_R($ret);
-        return $ret;
-        
-        
-    }
-    
-    /**
-     * email distirbution
-     *
-     *
-     *  @arg  $person - person object (could be authenticated user or a pressrelease_person...) -- or empty (manual send)
-     *  @arg $lasttime - ignored?
-     *  @arg $notify - the notification object.
-     *  @arg $force - ignore the entries publish time.
-     * 
-     * 
-     * calls $object->toEmail($person,$last_send) to generate an email struct with
- *  array (
- *      headers =>
- *      recipients =>
- *      body =>
- *  )
-     */
-    
-   
-    
-    function toEmail($person, $lasttime, $notify, $force = false)
-    {
-         
-        // check it's ok to send out..
-        //var_dump($force);
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-                    // hard code our default timezone (HKT!)
-        $offset = 8 - (1 * $tz_ar[0]);
-        // assume only 30 minute intervals...
-        $when = date("Y-m-d H:i:s", strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"));
-    
-        if ($notify->person_id < 0) {
-            // it's a direct send.
-            $force = true;
-            
-        }
-    
-        // not ready to go out..
-        // this should not happen???
-        // force can overrie delivery time.
-        if (!$force && strtotime($when) > time()) {
-            return array('later' => date('Y-m-d H:i:s', strtotime("NOW + 1 HOUR")) );
-        }
-        if (!$force && $this->publish_status != 0) {
-            return array('later' => date('Y-m-d H:i:s', strtotime("NOW + 5 HOUR") ) );
-        }
-        
-        // if the person wants different languages, and they are available
-        // send them that verison..
-        
-        // check release time, and status..
-        
-        if (empty($notify)) {
-            $this->email = $person->email;
-        }
-        
-        
-        // overwrite email, address if notify is using a different field.
-        if ($notify) {
-            
-            if (!empty($notify->field)) {
-                $this->email = $person->{$notify->field};
-                $person->email = $person->{$notify->field};
-            }
-            if ($notify->person_id < 0) {
-                // manual send... - create a  fake person
-                $this->email = $notify->to_email;
-                $person = DB_DataObject::Factory('pressrelease_contact');
-                $person->setFrom(array(
-                    'id' => -1,
-                    'email' => $notify->to_email,
-                    'firstname' => $notify->firstname,
-                    'contact_language' => $notify->contact_language,
-                ));
-                
-            }
-        }
-        
-         
-        
-        
-        $ff = HTML_FlexyFramework::get(); // used to work out url to show..
-        
-        
-        $out = new StdClass;
-
-        // images..
-        $img = DB_DataObject::factory('Images');
-        //$img->whereAdd("imgtype != 'LOGO'");
-        $this->images = $img->gather($this); ///, 'image/%');
-        
-        // logo..
-        $c = DB_DataObject::Factory('Companies');
-        $c->get($this->client_id);
-        $img = DB_DataObject::factory('Images');
-        $img->imgtype = 'LOGO'; // Images from the main list page.
-        // not upload any imgtypes.. at present?
-        $logos = $img->gather($c, 'image/%');
-        if ($logos) {
-            $this->logo = $logos[0];
-        }
-        $img = DB_DataObject::factory('Images');
-        $img->imgtype = 'LOGO';
-        $logos = $img->gather($this, 'image/%');
-        if (empty($this->logo) && $logos) {
-            $this->logo = $logos[0];
-        }
-       // print_r($this->logo);
-        
-        // related.. not currently used..
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $p->language = $this->language;
-        $p->client_id = $this->client_id;
-        $p->whereAdd('id != '. $this->id);
-        $p->whereAdd('publish_status = 0');
-        $p->whereAdd('publish_dt < NOW()'); // timezone!
-        $p->whereAdd('publish_dt > NOW() - INTERVAL 3 MONTH'); // timezone!
-        $p->orderBy('id DESC');
-        $p->limit(10);
-        $related = $p->fetchAll();
-        $out->related = array();
-        foreach($related as $r) {
-            $y = $r->publish_dt("Y");
-            if (empty($this->related[$y])) {
-                $out->related[$y] = array();
-            }
-            $out->related[$y][] = clone($r);
-        }
-        
-        
-        // different versions.. "langs"
-        
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $pid = $this->parent_id ? $this->parent_id : $this->id;
-        $p->whereAdd("id = $pid OR  parent_id = $pid");
-        $p->whereAdd('id != '. $this->id);
-        $p->whereAdd('publish_status = 0');
-        $p->whereAdd('publish_dt < NOW() + INTERVAL 24 HOUR'); // timezone!
-        $p->orderBy('id DESC');
-        $p->selectAdd();
-        $p->selectAdd('id,language,headline');
-        $out->langs = $p->fetchAll();
-        
-        
-        
-        
-        $out->release = clone($this);
-         
-        $out->HOST= empty($ff->HTTP_HOST) ? 'release.media-outreach.com' : $ff->HTTP_HOST;
-        $out->rootURL = 'http://' . $out->HOST;
-        $out->baseURL = $out->rootURL . '/release.php';
-        $out->cls = 'Embed';
-        $out->isEmbed = 1;
-        $out->isMail =  1;
-        $out->person =  $person;
-        $out->imageURL = $out->baseURL . '/Images/Thumb';
-        
-        if ($notify && !empty($notify->id)) {
-            $out->notify = $notify;
-        }
-        
-        $out->bodyTemplate = 'view.html';
-        // body language is dependant on desired language..
-        
-        
-        $lang = isset($person->contact_language) ? $person->contact_language : 'en';
-        if ($lang != 'en') {
-            $test = 'view.'.$lang .'.html';
-            //echo "checking for $test\n";
-            if (file_exists(dirname(__FILE__).'/../templates/'.$test)) {
-                $out->bodyTemplate = $test;
-            }
-        }
-        
-        
-        
-        
-        /* use the regex compiler, as it doesnt parse <tags */
-        require_once 'HTML/Template/Flexy.php';
-        $template = new HTML_Template_Flexy( array(
-                                                   
-                                                   
-                                ));
-          
-        $template->compile("view.plain.html");
-        
-        /* use variables from this object to ouput data. */
-        $htmlbody = $template->bufferedOutputObject($out);
-        
-        
-         
-        //print_R($htmlbody);exit;
-        
-        
-        require_once 'Mail/mime.php';
-        
-        $m = new Mail_Mime(array(
-                
-            'head_charset' => 'UTF-8',
-            'text_charset' => 'UTF-8',
-            'html_charset' => 'UTF-8',
-            //'html_encoding' => '8bit'
-        ));
-        $m->setHTMLBody($htmlbody);
-        $m->setTxtBody("This is a HTML email, please change your settings to view this email");
-        $ret = array();
-        $ret['headers'] = $m->headers(array(
-           //'To'     =>     'jenniferkokmn@yahoo.com.hk',
-           'To'   => $this->email,
-           'From'   => '"Media OutReach Press Release" <jennifer.kok@release.media-outreach.com>',
-           'Reply-To' => 'jennifer.kok@media-outreach.com',
-           'Subject'=> $this->headline,
-           'Message-Id' => '<RELEASE-'. $person->id . '-'.$this->id.'@media-outreach.com>',
-           'Date' => date('r'),
-        ));
-        
-        
-        //$ret['recipients'] = 'jenniferkokmn@yahoo.com.hk';
-        $ret['recipients'] = $this->email;
-         //   print_r($ret);exit;
-        $ret['body'] = $m->get();
-        
-        if ($notify) {
-            $this->logSend($notify, $ret);
-        }
-        
-        
-        //print_r($ret);
-        
-        //file_put_contents('/tmp/pr.output.txt', print_R($ret,true));
-        
-        
-        return $ret;
-        // basically we have to use the 
-        
-        
-    }
-    /**
-     *
-     * write to log directory the file.
-     */
-    function logSend($notify, $ret)
-    {
-         
-        $ff  = HTML_FlexyFramework::get();
-        if (empty($ff->Pman['event_log_dir'])) {
-            return false;
-        }
-        $file = $ff->Pman['event_log_dir']. '/Pressrelease_entry_nofify'. date('/Y/m/d/'). $notify->id. ".log";
-        if (!file_exists(dirname($file))) {
-            mkdir(dirname($file),0700,true);
-        }
-        file_put_contents($file, print_R($ret, true));
-        
-        
-        
-    }
-    
-    function watchedNewRSSArticle($event, $notify)
-    {
-        
-        
-        
-        if ($event->on_table != 'reader_article') {
-            return true;
-        }
-        $art = $event->object();
-        if (!empty($art->campaign_id)) {
-            echo "createFromReaderArticle\n";
-            $this->createFromReaderArticle($art);
-            return true;
-        }
-        print_R($art);exit;
-        
-        // we force creation of a real notification event..
-        // this is so that when we run the fetch it's run as a seperte process.
-        // with a new enviroment???
-        
-        $id = explode(':', $event->remarks);// strim out the :
-        
-        $notify->ontable    = $this->tableName();
-        $notify->onid       = $id[1];
-        $notify->evtype     = 'createFromRSSArticle';
-        $notify->act_when   = date('Y-m-d H:i:s'); ///, strtotime('+1 HOUR')); -- why an hour?
-        $notify->act_start  = date('Y-m-d H:i:s'); //, strtotime('+1 HOUR'));
-//        print_r($event);
-//        print_r($notify);
-//        exit;
-        
-        
-        return false;
-    }
-     
-    
-     function createFromReaderArticle($article)
-    {
-        echo "createFromReaderArticle::\n";
-       // print_r($article);exit;
-        $camp = DB_DataObject::factory('Projects');
-        $camp->get($article->campaign_id);
-        //print_r($camp);
-       // print_r($camp);
-        
-        if (empty($article->src_id)) { // this is the auto-import - no assign..
-            $companies = DB_DataObject::factory('companies');
-            $enum = DB_DataObject::Factory('core_enum')->lookup('COMPTYPE', 'SUPPLIER');
-            $companies->comptype_id = $enum;
-            $companies->get('code', 'local_search_engine');
-            
-            $assign = false;
-            
-       
-        } else {
-            $assign = DB_DAtaObject::Factory('CampaignAssign');
-            $assign->get($article->src_id);
-            $companies = DB_DataObject::factory('companies');
-            $companies->get($assign->supplier_id); // CHECK
-        }
-        $p = DB_DataObject::factory($this->tableName());
-        $p->get($camp->pressrelease_id);
-        
-            //print_r(array($rfa, $rs, $p));exit;
-        
-        // fix any issue where press release is not parent..
-        if (!empty($p->parent_id)) {
-            $pChild = DB_DataObject::factory($this->tableName());
-            $pChild->get($p->parent_id);
-            $p = $pChild;
-        }
-        
-            
-            //check for child 
-        $pChild = DB_DataObject::factory($this->tableName());
-        $pChild->language = $article->language;
-        $pChild->parent_id = $p->id;
-        if($pChild->find(true)){
-            $p = $pChild;
-        }
-        $pr_same_lang = $p;   
-        // p == press release..
-        
-        // #2354
-        //DB_DataObject::debugLevel(1);
-        
-        $prAll = DB_DataObject::factory($p->tableName());
-        if($p->parent_id > 0){
-            $prAll->whereAdd("parent_id = {$p->parent_id} OR id = {$p->parent_id} OR same_as_id = {$p->parent_id}");
-        }else{
-            $prAll->whereAdd("parent_id = {$p->id} OR id = {$p->id} OR same_as_id = {$p->id}");
-        }
-        $percent = 0;
-        
-        // find the best matched language..
-        
-        
-        foreach($prAll->fetchAll() as $prItem){
-            
-            //all auto imports are assumed to be correct..
-            if(empty($article->src_id) && ($prItem->language == $article->language)){
-                //if($prItem->id != $reader->src_id){
-                //    echo "SRC ID NOT MATCH SKIP Release: {$prItem->id} \n";
-                //    continue;
-                // }
-                //if using our ID
-                
-                $p = $prItem;
-                $percent = 100;
-                echo  "Overriding MATCHING as src_id is set - {$article->real_url}\n";
-        
-                
-                break;
-            }
-            
-            $percent = $this->diffWords($article, $prItem);
-            if($percent < 35){
-                echo "Less then $percent% try the other language...\n";
-               
-                continue;
-            }
-            
-            $p = $prItem;
-            //more then 50% then quit 
-//            $percent = $per;
-            break;
-        }
-        
-        $isRejected = false;
-        
-        echo "Article ID : $article->id \n";
-        
-        if($percent < 35){
-            echo  "Similar by {$percent} = set is rejected\n";
-            $pr_same_lang->relatedLinks($article);
-            
-            //if less then 5% then DO NOT insert the clippings
-            if($percent < 5){
-                echo  "Similar by {$percent} = ignoring .... \n";
-                
-                
-                return true;
-            }
-            
-            $isRejected = true;
-//            return true;
-        }
-        echo  "Similar by {$percent} = FETCHING  - {$article->real_url}\n";
-        
-        
-        // this is so wrong...
-        $head = $article->headline;
-        //$head = $this->fetchHeadline($reader->real_url);
-        
-        $country = $this->findCountry($article->real_url);
-        
-        
-        //$pai = DB_DataObject::factory('pressrelease_auto_import');
-        //if(!$pai->get('url', $reader->real_url)){
-        //    echo 'this url is not existing :'. $reader->real_url;
-       // }
-         
-        
-        $pro = $camp;
-        //if(!$pro->get('pressrelease_id', !empty($p->parent_id) ? $p->parent_id : $p->id)){
-        //    echo "ERROR getting Project... ID={$p->id} : PARENT={$p->parent_id}\n";
-        //    return true;
-        //}
-        
-        echo "ReleaseID : {$p->id} \n";
-        
-        $rand = md5(rand(). date('Y-m-d h:i:s'));
-        
-        require_once 'Pman/Clipping/Import/FromRssReader.php';
-        $rss = new Pman_Clipping_Import_FromRssReader();
-        $rss->cli = 1;
-        
-        $remoteURL = trim($article->real_url);
-        
-        $dom = DB_DataObject::factory('clipping_domain')->lookupUrl($remoteURL);
-        if ($dom && $dom->is_ignore) {
-            echo "SKIP - ignored domain\n";
-            return true;
-        
-        }
-        // while dom may not be available .. - it should be the second time round.
-        
-        if ($dom->id > 0) {
-            $checkURL = DB_DataObject::factory('Clipping');
-            $checkURL->setFrom(array(
-                    'project_id' => $pro->id,
-                    'language' =>  $article->language ? $article->language : $p->language,
-                    'domain_id' => $dom->id,
-            ));
-                                     
-            
-            if($checkURL->count()){
-                echo  "SKIP - project({$pro->id}) /lang {$checkURL->language}) / domain ({$dom->id}) - already in database\n";
-                return true;
-            }
-            
-        }
-        
-        
-        // #2521 == NOte this does not work --- as fetching is concurrent..
-        //check for duplicate urls
-        //DB_DataObject::debugLevel(1);
-        $clipp = DB_DataObject::factory('Clipping');
-        $clipp->pressrelease_id = $p->id;
-        $clipp->remote_url = $remoteURL;
-        if($clipp->count()){
-            echo "SKIP - already in database\n";
-            return true;
-        }
-        
-        $isFeed = 0;
-        
-        $remoteUrlHost = parse_url($remoteURL);
-        
-        if(!empty($remoteUrlHost['host'])){
-            $pressrelease_auto_import = DB_DataObject::factory('pressrelease_auto_import');
-            $pressrelease_auto_import->is_active = 1;
-            $pressrelease_auto_import->whereAdd("url LIKE '%{$remoteUrlHost['host']}%'");
-
-            if($pressrelease_auto_import->count()){
-                $isFeed = 1;
-            }
-        }
-        
-        $arg = array(
-            'media_type' => 'ONLINE',
-            
-             
-            'remote_url' => $remoteURL,
-            
-            'pressrelease_id' => $p->id,
-            'headline' => $head,
-            //for testing
-//            'summary' => ($isRejected) ? "Rejected by system, is not similar the article (articleID: {$reader->id}) ReleaseID: ($p->id) (match less then $percent%)" : "Pickup form articleID: ({$reader->id}) ReleaseID: ($p->id) $percent% - ".$head['body'], // #2354,,
-            'summary' => ($isRejected) ?
-                    "Rejected by system, is not similar the article (articleID: {$article->id}) ReleaseID: ($p->id) (match less then $percent%)" :
-                    (strlen($article->body) ? $article->body : strip_tags($p->content)), // #2354,,
-            'project_id' => $pro->id,
-            'language' =>   $article->language ? $article->language : $p->language, // using the pressrelease_auto_import language which are user fill in..
-            'country' => ($country !== false) ? $country : $p->country,// using the pressrelease country
-            'supplier_id' => (!empty($assign))? $assign->supplier_id : $companies->id,
-//            'uploaded_by' => $ca->supplier_id,
-            'rejected' => ($isRejected) ? 1 : 0, // #2354
-            'rejected_reason' => ($isRejected) ? "Rejected by system, is not similar the article (match less then $percent%)" : '', // #2354
-            'domain_id' => $dom->id,
-            'release_is_feed' => $isFeed
-        );
-        
-        
-        
-        //print_r($arg);
-        //dont check duplicate url???
-//        $cp = DB_DataObject::factory('Clipping');
-//        if($cp->get('remote_url', $arg['remote_url'])){
-//            return true;
-//            continue; 
-//        }
-         echo "Attempting import\n";
-
-        $res = $rss->createArticle($arg);
-        
-        //print_r($res);
-//        exit;
-        return true; // idicates success.
-    }
-    
-    
-    function relatedLinks($reader)
-    {
-        
-        $data = file_get_contents( $reader->toFilenameUnsafe() );
-        
-        libxml_use_internal_errors (true);
-        $doc = new DOMDocument();
-        $doc->loadHTML($data);
-//        $doc->loadHTML($data);
-        $xpath = new DOMXpath($doc);
-        $links = array();
-        
-        $ar = parse_url($reader->real_url);
-        $host  = $ar['host'];
-        
-        require_once 'HTML/WordDiff.php';
-         
-        $wd = new HTML_WordDiff(array(
-            'lang' => $reader->language,
-            'string' =>  '<div>' . $this->headline .'</div>'
-        ));
-        // echo '<PRE>'; print_r($wd);
-        $skip = array();
-        
-       
-        
-        foreach ($xpath->query('//a[@href]') as $a) {
-            
-            $contents = $a->ownerDocument->saveHTML($a);
-            
-            $url = $reader->relPath($reader->real_url , $a->getAttribute('href'));
-            
-             
-            $ar = parse_url($url);
-            if (!in_array(strtolower($ar['scheme']), array('http','https'))) {
-                continue;
-            }
-            if ($ar['host'] != $host) {
-                continue;
-            }
-            // should not really happen...
-             $dom = DB_DataObject::factory('clipping_domain')->lookupUrl($url);
-            if ($dom && $dom->is_ignore) {
-                continue;
-            
-            }
-        
-            
-            if (strlen($contents) < 10) {
-                continue;
-            }
-            // check contents against release headline..
-            
-            $score = $wd->compare(array('string'=>$contents));
-            
-            if ($score < 20) {
-                $skip[$url] =  "$score : $contents";
-                continue;
-            }
-            //echo '<PRE>';print_R($wd);
-            
-            
-            $links[$url ] = "$score : $contents";
-        }
-        if (empty($links)) {
-            return;
-        }
-        $skip = array();
-        foreach($links as $url => $contents) {
-            // create a reader article.. similar to the one we got...
-            $ar = parse_url($url);
-            if (isset($skip[$ar['host']])) {
-                continue;
-            }
-            
-            $ra = DB_DataObject::Factory('reader_article');
-            $ra->url_md5 = md5($url);
-            if ($ra->get('url', $url)) {
-                continue;
-            }
-            $ra = DB_DataObject::Factory('reader_article');
-            $ra->real_url_md5 = md5($url);
-            if ($ra->get('real_url', $url)) {
-                continue;
-            }
-            // if we have too many in the queue for this domain... - skip related...
-            
-            $ra = DB_DataObject::Factory('reader_article');
-            $ra->fetched = 0;
-            $ra->whereAdd("url LIKE '%/". $ra->escape($ar['host'])."/%'");
-            if ($ra->count() > 50) {
-                $skip[$ar['host']] = true;
-                continue;
-            }
-            
-            
-            $ra = DB_DataObject::Factory('reader_article');
-            $ra->setFrom(array(
-                'feed_id' => 0,
-                'src_id'=> $reader->src_id,
-                'url'=> $url,
-                'url_md5' => md5($url),
-                'is_displayed'=> 0,
-                'fetched'=> 0,
-                'tries'=> 0,
-                'act_when'=> date('Y:m:d H:i:s'),
-                'language'=> $reader->language,
-                'campaign_id'=> $reader->campaign_id,
-                
-            ));
-            $ra->insert();
-            
-        }
-        
-        
-        
-    }
-    
-    
-    
-    
-    
-    function diffWords($reader, $p)
-    {
-        
-        $fn = $reader->toFilenameUnsafe();
-        if (file_exists($fn) && filesize($fn) > 2000000) {
-            echo "SKIP - file to large to study";
-            return 0;
-        }
-        
-        // if using our API then return 100% 
-        if(file_exists($fn)){
-            $dom = file_get_contents($fn);
-            if(preg_match('/release\.media\-outreach\.com\/Release\/Embed\_full\.js/i',$dom)
-               &&
-               preg_match('/style=full/i',$dom)) // only full page widgets will work.
-            {
-                return 100;
-            }
-        }
-        
-        require_once 'HTML/WordDiff.php';
-        $fn = file_exists($fn) ? $fn : $reader->toFilename();
-        
-        if (!empty($this->debug_on)) {
-            echo "<PRE>DIFF\n". $this->content."\nTO\n\n".file_get_contents($fn) ."\n\n";
-            
-        }
-        
-       //  var_dump($this->debug_on);
-        $wd = new HTML_WordDiff(array(
-            'lang' => $p->language,
-            'debug_on' => !empty($this->debug_on) ? 1 : 0 ,
-            'string' => implode('<br/>',array(
-                
-                        $p->content,
-//                        $p->content_data,
-//                        $p->headline,
-//                        $p->subheadline,
-//                        $p->content_about,
-//                        $p->content_forward
-                ))
-        ));
-        
-        return $wd->compare($fn);
-    }
-    
-    /*
-     * move to clipping_domain
-     */
-    function findCountry($url)
-    {
-        $cdd = DB_DataObject::factory('clipping_domain');
-        return $cdd->findCountry($url);
-    }
-    
-    function fetchHeadline($url)
-    {
-        
-        $context = stream_context_create(array(
-            'http' => array(
-                'header'  => 'User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11.1 (KHTML, like Gecko) Version/3.0.3 Safari/522.12.1'
-            )
-        ));
-        
-        $response = file_get_contents($url, 0, $context);
-        
-        $ret = array();
-        
-        $pageDom = new DomDocument('1.0', 'utf-8');    
-        $pageDom->formatOutput = true;
-        $searchPage = mb_convert_encoding($response, 'HTML-ENTITIES', "UTF-8"); 
-        
-        @$pageDom->loadHTML($searchPage);
-        $xp = new DOMXPath($pageDom);
-        
-        //get the headline
-        $q = "//title";
-        $lists = $xp->query($q);
-        $ret['headline'] = $lists->item(0)->textContent;
-//        print_r($lists->item(0)->textContent);
-
-        //get the summary
-        $q = "//meta[@name='description']";
-        $lists = $xp->query($q);
-//        print_r($lists->item(0)->getAttribute('content'));
-//        exit;
-        $lists = $lists && $lists->item(0) ? $lists : false;
-        
-        $ret['body'] = ($lists) ? $lists->item(0)->getAttribute('content') : $ret['headline'];
-        
-        return $ret;
-    }
-    
-    function project()
-    {
-        $c = DB_DataObject::factory('Projects');
-        if(!$c->get('pressrelease_id', !empty($this->parent_id) ? $this->parent_id : $this->id)){
-            return false;
-        }
-        return $c;
-            
-        
-    }
-    
-    function buildFeeds()
-    {
-        
-        if ($this->parent_id) {
-            return; // this should only be called on parent feeds.
-        }
-        //DB_DataObject::debugLevel(1);
-        $c = $this->project();
-        $key = DB_DataObject::factory('clipping_keywords');
-        $key->keyword = substr($this->headline, 0, 128); // max length
-        $key->alternatives = $this->headline . "\n" . $this->subheadline;
-        $key->ignore_title = 1;
-        $key->project_id = $c->id;
-        $key->language = $this->language;
-
-        if(!$key->find(true)){
-            $key->insert();
-        }  
-
-        //# 2028 create the suppliers...
-
-        $supp = DB_DataObject::factory('Companies');
-        $supp->comptype_id = DB_DataObject::factory('core_enum')->lookup('COMPTYPE','SUPPLIER');
-        $supp->whereAdd("Companies.code LIKE '%_RSS%'");
-
-        $psub = $this->versionsAll();
-        $multiLang = array($this->language);
-        if(!empty($psub)){
-            foreach($psub as $sub){
-                $multiLang[] = $sub->language;
-                $key = DB_DataObject::factory('clipping_keywords');
-                $key->keyword = substr($sub->headline, 0, 128); // max length
-                $key->alternatives = $sub->headline . "\n" . $sub->subheadline;
-                $key->ignore_title = 1;
-                $key->project_id = $c->id;
-                $key->language = $sub->language;
-
-                if(!$key->find(true)){
-                    $key->insert();
-                }
-            }
-            
-        }
-
-         
-         
-        foreach($supp->fetchAll() as $s){
-            // #2411 add the Yam Search Engine
-            // www.yam.com is using the google CSE,
-            // so.... the result should same with our google search engine....
-            
-//            if($s->code == 'yam_search_RSS' && !in_array('zh_TW', $multiLang)){
-//                continue;
-//            }
-            
-            $ca = DB_DataObject::factory('CampaignAssign');
-            $ca->project_id = $c->id;
-            $ca->supplier_id = $s->id;
-
-            $update = false;
-            if($ca->find(true)){
-                $update = true;
-            }
-
-            $fn = explode(' ', $s->name);
-            array_pop($fn);// remove the last word..
-            $ca->description = implode(' ', $fn);
-            $ca->assigntype = 'SUMMARY';
-            $ca->languages = implode(',', $multiLang);
-            $ca->countries = $c->countries;
-            $ca->sourcelanguages = implode(',', $multiLang);//mssing source language???
-
-            if($update){
-                $ca->update();
-            }else{
-                $ca->insert();
-            }
-            
-           // $ca->createSearchFeed();// search ffeds are not done now..
-        }
-
-          
-//        $this->jok('Done?');
-    }
-    
-    function versions()
-    {
-        
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $pid = $this->parent_id ? $this->parent_id : $this->id;
-        $p->whereAdd("id = $pid OR  parent_id = $pid");
-        //$p->whereAdd('id != '. $id);
-        $p->whereAdd('publish_status > -1');
-        $p->whereAdd('publish_dt < NOW()'); // timezone!
-        $p->orderBy('id DESC');
-       
-        return $p->fetchAll();
-        
-    }
-    function versionsAll()
-    {
-        
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $pid = $this->parent_id ? $this->parent_id : $this->id;
-        $p->whereAdd("id = $pid OR  parent_id = $pid OR same_as_id = $pid");
-        //$p->whereAdd('id != '. $id);
-        $p->whereAdd('publish_status > -1');
-        $p->whereAdd('publish_dt < NOW()'); // timezone!
-        $p->orderBy('id DESC');
-       
-        return $p->fetchAll();
-        
-    }
-    function distributionSummary()
-    {
-        
-        $ret = array(
-            'general' => false,
-            'international' => false,
-            'regions' => array(),
-            'countries' => array(),
-            'beats' => array(),
-        );
-        
-        
-        //DB_DataObject::DebugLevel(1);
-            // this is more complex now..
-        require_once 'Pman/Core/I18n.php';
-        $x = new Pman_Core_I18n();
-        
-        foreach(explode(',',  $this->distribution_countries ) as $k)
-        {
-            
-            switch (true) {
-                case ($k == '_international'):
-                    $ret['international'] = true;
-                    break;
-                
-                case ($k == '_generalnews'):
-                    $ret['general']  = true;
-                    break;
-                
-                case (strlen($k) > 2 && $k[1] == '-'): // regional.
-                    $cg = DB_DataObject::factory('pressrelease_category');
-                    $cg->get(array_pop(explode('-', $k)));
-                    
-                    $ret['regions'][] = $cg->name;
-                    break;
-                
-                default:
-                    $ret['countries'][] = $x->translate('en', 'c', $k);
-                
-            }
-         
-        }
-        // this part is to summarize the selections. 
-        
-        //print_r($this->distlist);
-        
-        
-        $d = DB_DataObject::factory('pressrelease_category');
-        $d->whereAddIn('id', explode(',',  $this->distribution_config), 'int');
-        $d->selectAdd();
-        $d->selectAdd("IF(LENGTH(hgroup), CONCAT(hgroup , ': ', name), name ) as name");
-        $d->orderBy('name');
-        $ret['beats']  = $d->fetchAll('name' );
-        return $ret;
-    }
-    
-    function headlineDash()
-    {
-        return str_replace(array(" ", "%"), "-",  $this->headline);
-    }
-    
-    function clipping_review($q)
-    {
-        $ret = $this->toArray();
-        
-        $p = DB_DataObject::factory('pressrelease_entry');
-        $pid = $this->parent_id ? $this->parent_id : $this->id;
-        $p->whereAdd("id = $pid OR  parent_id = $pid");
-        $p->whereAdd('id != '. $this->id);
-        $p->whereAdd('publish_status > -1');
-        $p->whereAdd('publish_dt < NOW()  + INTERVAL 24 HOUR'); // timezone!
-        $p->orderBy('id DESC');
-        $p->selectAdd();
-        $p->selectAdd('id,language,headline');
-        
-        $ret['languages'] = array();
-        
-        foreach ($p->fetchAll() as $lang){
-            $ret['languages'][] = array(
-                'id' => $lang->id,
-                'language' => $lang->language,
-                'language_translate' => $lang->language()
-            );
-        }
-        
-        $ret['content_formated'] = $this->content();
-        
-        $ret['content_data_empty'] = $this->content_data_empty();
-        
-        $ret['content_about_formated'] = $this->content_about();
-        
-        return $ret;
-    }
-    
-    function buildDistributionStartNotification()
-    {
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-        
-        $offset = 8 - (1 * $tz_ar[0]);
-        
-        $ptime = date("Y-m-d H:i:s", strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"));
-            
-        $nc = DB_DataObject::factory('pressrelease_notify');
-        $nc->setFrom(array(
-            'ontable' => 'pressrelease_entry',
-            'onid' => $this->id,
-            'person_id' => 0,
-            'field' => 'email',
-            'evtype' => 'START'
-        ));
-        
-        if(!$nc->find(true)){
-            $nc->setFrom(array(
-                'act_when' => $ptime,
-                'act_start' => $ptime
-            ));
-            
-            $nc->insert();
-            return;
-        }
-        
-        if($nc->delivered()){
-            return;
-        }
-        
-        $o = clone ($nc);
-        
-        $nc->setFrom(array(
-            'act_when' => $ptime,
-            'act_start' => $ptime
-        ));
-        
-        $nc->update($o);
-        
-    }
-    
-    function buildDistributionEndNotification()
-    {
-        $tz_ar = explode('.',  $this->publish_dt_tz);
-        
-        $offset = 8 - (1 * $tz_ar[0]) + 1;
-        
-        $ptime = date("Y-m-d H:i:s", strtotime("{$this->publish_dt}  +  {$offset} HOURS - {$tz_ar[1]} MINUTES"));
-            
-        $nc = DB_DataObject::factory('pressrelease_notify');
-        $nc->setFrom(array(
-            'ontable' => 'pressrelease_entry',
-            'onid' => $this->id,
-            'person_id' => 0,
-            'field' => 'email',
-            'evtype' => 'END'
-        ));
-        
-        if(!$nc->find(true)){
-            $nc->setFrom(array(
-                'act_when' => $ptime,
-                'act_start' => $ptime
-            ));
-            
-            $nc->insert();
-            return;
-        }
-        
-        if($nc->delivered()){
-            return;
-        }
-        
-        $o = clone ($nc);
-        
-        $nc->setFrom(array(
-            'act_when' => $ptime,
-            'act_start' => $ptime
-        ));
-        
-        $nc->update($o);
-    }
-    
-    function notifySTART($person, $last, $notify, $force)
-    {   
-        $bcc = $this->distribution_bcc();
-        
-        $person = DB_DataObject::factory('Person');
-        
-        if(!$person->get($this->created_by)){
-            return false;
-        }
-        
-        $distlistN = count($this->distributionList());
-        
-        $content = array(
-            'template'      => 'DISTRIBUTION_START',
-            'person'        => $person,
-            'distlistN'     => $distlistN,
-            'subject'       => "[PressRelease] Distribution started for #{$this->id} - {$this->headline}.",
-        );
-        
-        if(!empty($bcc)){
-            $content['bcc'] = $bcc;
-        }
-        
-        $ret = DB_DataObject::factory('core_email')->send($content, false, false);
-        
-        $ret['send-to'] = $person->email;
-        
-        return $ret;
-    }
-
-    function notifyEND($person, $last, $notify, $force)
-    {
-        if(strtotime("NOW") - strtotime($notify->act_when) < 86400){
-            $nc = DB_DataObject::factory('pressrelease_notify');
-            $nc->evtype = 'MAIL';
-            $nc->whereAdd("                        
-                pressrelease_notify.event_id  < 1
-            ");
-
-            if($nc->count()){
-                $next = date('Y-m-d H:i:s', strtotime("+ 1 HOURS"));
-                return array('later' => $next);
-            }
-        }
-        
-        $bcc = $this->distribution_bcc();
-        
-        $person = DB_DataObject::factory('Person');
-        
-        if(!$person->get($this->created_by)){
-            return false;
-        }
-        
-        $distlistN = count($this->distributionList());
-        
-        $delivered = DB_DataObject::factory('pressrelease_notify');
-        $delivered->setFrom(array(
-            'evtype' => 'MAIL',
-            'ontable' => 'pressrelease_entry',
-            'onid' => $this->id
-        ));
-        $delivered->whereAdd("                        
-            ( pressrelease_notify.msgid IS NOT NULL AND LENGTH(pressrelease_notify.msgid) > 0) AND pressrelease_notify.event_id  > 0
-        ");
-        
-        $failed = DB_DataObject::factory('pressrelease_notify');
-        $failed->setFrom(array(
-            'evtype' => 'MAIL',
-            'ontable' => 'pressrelease_entry',
-            'onid' => $this->id
-        ));
-        $failed->whereAdd("                        
-            (pressrelease_notify.msgid IS NULL OR LENGTH(pressrelease_notify.msgid) < 1) AND pressrelease_notify.event_id  > 0
-        ");
-            
-        $pending = DB_DataObject::factory('pressrelease_notify');
-        $pending->setFrom(array(
-            'evtype' => 'MAIL',
-            'ontable' => 'pressrelease_entry',
-            'onid' => $this->id
-        ));
-        $pending->whereAdd("                        
-            pressrelease_notify.event_id  < 1
-        ");
-        
-        $content = array(
-            'template'      => 'DISTRIBUTION_END',
-            'person'        => $person,
-            'distlistN'     => $distlistN,
-            'delivered'     => $delivered->count(),
-            'failed'        => $failed->count(),
-            'pending'       => $pending->count(),
-            'subject'       => "[PressRelease] Distribution complete for #{$this->id} - {$this->headline}.",
-        );
-        
-        if(!empty($bcc)){
-            $content['bcc'] = $bcc;
-        }
-        
-        $ret = DB_DataObject::factory('core_email')->send($content, false, false);
-        
-        $ret['send-to'] = $person->email;
-        
-        return $ret;
-        
-        
-        
-    }
-    
-    function distribution_bcc()
-    {
-        $bcc = array();
-        
-        $group = DB_DataObject::factory('groups');
-        if($group->get('name', 'pressrelease-bcc-distribution')){
-            $member = DB_DataObject::factory('group_members');
-            $member->group_id = $group->id;
-            $mids = $member->fetchAll('user_id');
-
-            $p = DB_DataObject::factory('Person');
-            $p->whereAddIn('id', $mids, 'int');
-            $p->active = 1;
-            $bcc = $p->fetchAll('email');
-        }
-        
-        return $bcc;
-    }
-}
diff --git a/PressRelease/DataObjects/Pressrelease_entry_related.php b/PressRelease/DataObjects/Pressrelease_entry_related.php
deleted file mode 100644 (file)
index 512d05b..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_entry_related
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_entry_related extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_entry_related';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $entry_id;                        // int(11)  
-    public $relationship;                    // string(128)  
-    public $table_name;                      // string(128)  
-    public $table_id;                        // int(11)  
-
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-}
diff --git a/PressRelease/DataObjects/Pressrelease_notify.php b/PressRelease/DataObjects/Pressrelease_notify.php
deleted file mode 100644 (file)
index e6c0ade..0000000
+++ /dev/null
@@ -1,287 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_notify
- */
-require_once 'Pman/Core/DataObjects/Core_notify.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_notify extends Pman_Core_DataObjects_Core_notify
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_notify';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $act_start;
-    public $act_when;                        // datetime(19)  not_null multiple_key binary
-    public $onid;                            // int(11)  not_null
-    public $ontable;                         // string(128)  not_null
-    public $person_id;                       // int(11)  not_null
-    public $msgid;                           // string(128)  not_null
-    public $sent;                            // datetime(19)  not_null binary
-    public $event_id;                        // int(11)
-    public $evtype;
-    public $field;
-    public $to_email;
-    public $fail_reviewed;
-    public $is_open; 
-
-    public $firstname;
-    public $contact_language;
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    
-    function applyFilters($q, $au, $roo)
-    {
-        $tn = $this->tableName();
-        $this->setFrom($q);
-        if (isset($q['vtype'])) {
-            switch ($q['vtype']) {
-                case 'FAILED':
-                    $this->evtype = 'MAIL';
-                    $this->whereAdd("
-                        ({$tn}.msgid IS NULL OR LENGTH({$tn}.msgid) < 1) AND
-                        {$tn}.event_id  > 0
-                        ");
-                     
-                    
-                    break;
-                case 'DELIVERED':
-                    $this->evtype = 'MAIL';
-                    $this->whereAdd("
-                        ({$tn}.msgid IS NOT NULL AND LENGTH({$tn}.msgid) > 0) AND
-                        {$tn}.event_id  > 0
-                        ");
-                    break;
-                    
-                    
-                case 'PENDING':
-                    $this->evtype = 'MAIL';
-                    $this->whereAdd("                        
-                        {$tn}.event_id  < 1
-                        ");
-                    break;
-                    
-                case 'ONLINE':
-                    $this->whereAdd("{$tn}.evtype != 'MAIL'");
-                    
-                    break;
-                        
-            }
-        }
-        
-        if (!empty($q['search']['remarks'])) {
-            $this->whereAdd("join_event_id_id.remarks like '%{$this->escape($q['search']['remarks'])}%'");
-            
-        }
-        
-        
-        
-        
-    }
-    
-    
-    /**
-     * has a message been delivered.
-     * basically if no event_id or msgid is empty.. NO..
-     *
-     */
-    function delivered()
-    {
-        if (!$this->event_id) {
-            return false;
-        }
-        
-        if (strlen($this->msgid)) {
-            return true;
-        }
-        return false;
-         
-    }
-    
-    function person($set=false)
-    {
-         
-        if ($set !== false) {
-            $this->person_id = is_object($set) ? $set->id : $set;
-            return;
-        }
-        if ($this->evtype == 'REPORT') { // reports go to real users..
-            return parent::person();
-        }
-        if ($this->person_id < 1){
-            return false;
-        }
-        $c = DB_DataObject::Factory('Pressrelease_contact');
-        $c->get($this->person_id);
-        return $c;
-        
-    }
-    
-    
-    
-    function act_start($date, $force = false)
-    {
-        $d = strtotime($date);
-        // minium send out time is now+15minutes..
-        if (!$force && $d < strtotime('NOW + 15 MINUTES')) {
-            $date = date('Y-m-d H:i:s',strtotime('NOW + 15 MINUTES'));
-        }
-        
-        return parent::act_start($date);
-        
-        
-        
-    }
-    
-    
-    /**
-     * Distribution report...
-     *
-     */
-    
-    function toEmail( $person,$last, $notify, $force)
-    {
-        if (empty($person->id)) {
-            return array('error' => 'person is not set');
-        }
-        
-        //print_R($person);exit;
-        //print_r($person);exit;
-        if ($notify->evtype != 'REPORT')  {
-            return false;
-        }
-        // for reports this dataobject contains nothing...
-          
-          
-          
-         $contents = "
-
-Distirbution report For the last 24 hours since ".   date('d/M/Y H:i', strtotime($notify->act_when)) ." 
-          
-          ";
-        
-        
-          
-        // list press releases that have bee actioned on..
-       // DB_DataObject::debugLevel(1);
-        $pn = DB_DataObject::factory('pressrelease_notify');
-        
-       
-        $pn->ontable = 'pressrelease_entry';
-        $pn->evtype = 'MAIL';
-        
-        $prs = clone($pn);
-        $prs->whereAdd("
-            (sent > '{$notify->act_when}' - INTERVAL 1 DAY AND sent < '{$notify->act_when}' )
-            OR
-            (act_when> '{$notify->act_when}' - INTERVAL 1 DAY AND act_when < '{$notify->act_when} + INTERVAL 1 DAY' )
-        ");
-        
-        $prs->selectAdd();
-        $prs->selectAdd('distinct(onid) as release_id');
-        
-        $ids = $prs->fetchAll('release_id');
-        if (empty($ids)) {
-            
-            return array('error' => 'Nothing was sent out in the last 24 hours');
-        }
-        
-        sort($ids);
-        
-        // list total distribution, and how many got sent out..
-        
-        foreach($ids as $prid) {
-            $pr = DB_DataObject::Factory('pressrelease_entry');
-            $pr->get($prid);
-            
-            $contents .="
-----------------------------------
-#{$prid} - {$pr->headline}\n";
-            
-            // list pending next. = only in future in theory..
-            $pend = clone($pn);
-            $pend ->whereAdd('event_id = 0');
-            $pend ->whereAdd("(act_when > '{$notify->act_when}')");
-            $pend ->onid = $prid;
-            $pending = $pend->count();
-            
-            if ($pending) {
-                $contents .= "$pending emails are due to go out today\n";
-            }
-            $sent = clone($pn);
-            $sent->whereAdd('event_id = -1');
-            $sent->whereAdd("(sent > '{$notify->act_when}' - INTERVAL 1 DAY AND sent < '{$notify->act_when}') ");
-            $sent->onid = $prid;
-            $ysent= $sent->count();
-            
-            $sent = clone($pn);
-            $sent->whereAdd('event_id = -1');
-            $sent->whereAdd("sent < '{$notify->act_when}' ");
-            $sent->onid = $prid;
-            $asent= $sent->count();
-            
-            $contents .= "$ysent emails went out in the last 24 hours, totally $asent emails have been sent\n";
-            
-            
-            // list errors first.
-            $fails = clone($pn);
-            $fails->whereAdd('event_id > 0');
-            $fails->whereAdd("(sent > '{$notify->act_when}' - INTERVAL 1 DAY AND sent < '{$notify->act_when}' )");
-            $fails->autoJoin();
-            $fails->onid = $prid;
-            $ar = $fails->fetchAll();
-            if (!empty($ar)) {
-                $contents .= "\nFailed to send to: \n";
-                foreach($ar as $x) {
-                    $contents .= "{$x->person_id_email}    {$x->event_id_remarks}\n";
-                }
-            } else {
-                $contents .= "\nNo messages Failed: \n";
-            }
-            
-             
-            
-        }
-        
-        // then list who got a copy.
-        
-        
-        
-        
-          
-          
-          
-        require_once 'Mail/mime.php';
-        
-        $m = new Mail_Mime(array(
-                
-            'head_charset' => 'utf8',
-            'text_charset' => 'utf8',
-            'html_charset' => 'utf8',
-        ));
-      
-        $m->setTxtBody($contents);
-        
-        
-        
-        
-        $ret = array();
-        $ret['headers'] = $m->headers(array(
-           'To'     =>     $person->email,
-           'From'   => '"REPORT - Media Outreach Press Release Summary" <jennifer.kok@media-outreach.com>',
-           'Subject'=> "Distribution Report . " . date('d/M/Y', strtotime($notify->act_when)),
-           'Message-Id' => '<RELEASE-REPORT-'. $person->id . '-'.$notify->id.'@media-outreach.com>',
-           'Date' => date('r'),
-        ));
-        $ret['recipients'] = 'alan@akbkhome.com';
-      //   print_r($ret);exit;
-        $ret['body'] = $m->get();
-        
-        
-        return $ret;
-        
-    }
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_regionmap.php b/PressRelease/DataObjects/Pressrelease_regionmap.php
deleted file mode 100644 (file)
index f4f8acf..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_regionmap
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_regionmap extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_regionmap';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $category_id;                     // int(11)  not_null multiple_key
-    public $country;                         // string(8)  
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    function applyFilters($q, $au)
-    {
-        $x= DB_DataObject::factory('pressrelease_regionmap');
-        if (!$x->count()) {
-            $this->initData();
-        }
-        $this->selectAdd(" i18n_translate('c' , country, 'en') as country_name");
-        $this->orderBy('country_name ASC');
-        if (!empty($q['_tree'])) {
-            return $this->outputTree($q);
-        }
-    }
-    
-    function outputTree($q)
-    {
-        $r = DB_DataObject::Factory('pressrelease_category');
-        $r->get('name', 'Publication Scope');
-        $pid = $r->id;
-        
-        $regions = array();
-        
-        if ($q['node'] == '_root') {
-            $r = DB_DataObject::Factory('pressrelease_category');
-            $r->parent_id = $pid;
-            $r->get('name', 'International');
-            $rid = $r->id;
-            
-            $r = DB_DataObject::Factory('pressrelease_contact');
-            $r->category_scope_id = $rid;
-            $n  = $r->count();
-            $regions= array(
-                 array(
-                    'text' => 'General News ',
-                    'name' => 'General News',
-                    'id' => '_generalnews',
-                    'leaf' => true
-                ),
-                array(
-                    'text' => 'International (' . $n . ')',
-                    'name' => 'International',
-                    'id' => '_international',
-                    'leaf' => false
-                )
-               
-            );
-            $pg = HTML_FlexyFramework::get()->page;
-            $pg->jdata( $regions );
-            return; // dies technically..
-            
-        }
-        
-        
-        if ($q['node'] == '_international') { 
-            // first output all the regions.
-            //DB_DataObject::debugLevel(1);
-            $r = DB_DataObject::Factory('pressrelease_category');
-            $r->parent_id = $pid;
-            $r->get('name', 'Regional');
-            
-            $rid = $r->id;
-            $r = DB_DataObject::Factory('pressrelease_category');
-            $r->parent_id = $rid;
-            $r->orderBy('name ASC');
-            $r->selectAdd();
-            $r->selectAdd("
-                id, name,
-                (SELECT COUNT(id)
-                        FROM pressrelease_contact
-                        WHERE
-                            pressrelease_contact.country IN (
-                                SELECT country
-                                    FROM pressrelease_regionmap
-                                    WHERE
-                                        pressrelease_regionmap.category_id = pressrelease_category.id
-                            )
-                        AND
-                            category_scope_id = $rid
-                    ) as members
-            ");
-            
-            
-            
-            $r->find();
-            while ($r->fetch()) { 
-                $regions[] = array(
-                        'text' => 'Region: ' . $r->name . ' ('.$r->members .')',
-                        'name' => 'Region: ' . $r->name,
-                        'id' => 'r-' . $r->id,
-                        'leaf' => false
-                );
-            }
-            
-            $regions[] = array(
-                'text' => 'Other',
-                'id' => 'r-0',
-                'leaf' => false
-            );
-            $pg = HTML_FlexyFramework::get()->page;
-            $pg->jdata( $regions );
-            return; // dies technically..
-        }
-        
-        $id = (int) substr($q['node'],2);
-        $r = DB_DataObject::Factory('pressrelease_category');
-        $r->parent_id = $pid;
-        $r->get('name', 'Local');
-        $rid = $r->id;
-        //DB_DataObject::debugLevel(1);
-        // fetch all the countries on bulk.
-        $rm = DB_DataObject::Factory('pressrelease_regionmap');
-        $rm->selectAdd();
-        $rm->category_id = $id;
-        $rm->selectAdd("id, category_id, country, 
-                    i18n_translate('c' , country, 'en') as name,
-                    (SELECT COUNT(id)
-                        FROM pressrelease_contact
-                        WHERE
-                            pressrelease_contact.country = pressrelease_regionmap.country
-                        AND
-                            category_scope_id = $rid
-                    ) as members
-            ");
-        $rm->orderBy('name ASC');
-        
-        $rm->having('members > 0');
-        
-        $rm->find();
-        while ($rm->fetch()) {
-            $regions[]  = array(
-                    'text' => $rm->name .' ('. $rm->members.')',
-                    'name' => $rm->name,
-                    'id' => $rm->country,
-                    'country' => $rm->country,
-                    'leaf' => true,
-            );           
-        }
-        
-        // now convert this into data that we can give to the tree..
-        
-          $pg = HTML_FlexyFramework::get()->page;
-            $pg->jdata( $regions );
-        
-    }
-    
-    
-    function initData()
-    {
-        $x = DB_DataObject::factory('i18n');
-        $x->ltype = 'c';
-        $x->inlang = 'en';
-        $a = $x->fetchAll('lkey');
-        foreach($a as $c) {
-            $x= DB_DataObject::factory('pressrelease_regionmap');
-            $x->country = $c;
-            
-            if (!$x->count()) {
-                $x->category_id = 0;
-                $x->insert();
-            }
-        }
-        
-        
-    }
-    
-    
-    
-    
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_saved.php b/PressRelease/DataObjects/Pressrelease_saved.php
deleted file mode 100644 (file)
index 9846379..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_search
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_saved extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_saved';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $name;                            // string(255)  not_null multiple_key
-    public $json;                            // blob(65535)  not_null blob
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-     
-    
-}
diff --git a/PressRelease/DataObjects/Pressrelease_search.php b/PressRelease/DataObjects/Pressrelease_search.php
deleted file mode 100644 (file)
index 5c452e9..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-/**
- * Table Definition for pressrelease_search
- */
-require_once 'DB/DataObject.php';
-
-class Pman_PressRelease_DataObjects_Pressrelease_search extends DB_DataObject 
-{
-    ###START_AUTOCODE
-    /* the code below is auto generated do not remove the above tag */
-
-    public $__table = 'pressrelease_search';    // table name
-    public $id;                              // int(11)  not_null primary_key auto_increment
-    public $person_id;                       // int(11)  not_null multiple_key
-    public $title;                           // blob(65535)  not_null blob
-    public $data;                            // blob(65535)  not_null blob
-
-    
-    /* the code above is auto generated do not remove the tag below */
-    ###END_AUTOCODE
-    
-    function toRooArray() {
-        if (empty($this->data)) {
-            $this->title = 'Invalid search';
-            return $this->toArray();
-        }
-        
-        $cfg = (array) json_decode($this->data);
-        
-        //echo '<PRE>';print_r($cfg);
-        
-        require_once 'Pman/Core/I18n.php';
-        $x = new Pman_Core_I18N();
-        $au = HTML_FlexyFramework::get()->page->authUser;
-         
-        
-        $title = array();
-        foreach($cfg as $k=>$v) {
-            
-            if (empty($v)) {
-                continue;
-            }
-            switch($k) {
-                case 'query[search_name]':
-                    $title[] = "Search: " . $v;
-                    continue;
-                
-                case 'publication_name':
-                    $title[] = "Publication: " . $v;
-                    continue;
-                 
-                case 'publication_lang': // => en
-                    $cfg['publication_lang_name'] = $x->translate($au, 'l', $v);
-                    $title[] = "Language: " . $cfg['publication_lang_name'];
-                    
-                    continue;
-                
-                case 'country': //  CN
-                    $cfg['country_name'] = $x->translate($au, 'c', $v);
-                    $title[] = "Country: " . $cfg['country_name'] ;
-                    continue;
-                
-                    
-                case 'category_media_id': //  123
-                    $cg = DB_DataObject::Factory('pressrelease_category');
-                    $cg->get($v);
-                    $cfg['category_media_id_name'] = $cg->toName();
-                    $title[] = "Media Type: " . $cfg['category_media_id_name'];
-                    continue;
-                
-                case 'query[category_id]': //  123
-                    $cg = DB_DataObject::Factory('pressrelease_category');
-                    $cg->get($v);
-                    
-                    //echo '<PRE>';print_r($cg);
-                    $pars = $cg->parents();
-                    $cgp = DB_DataObject::Factory('pressrelease_category');
-                    $cgp->get($pars[0]);
-                    
-                    $cfg['category_id_parents'] = $pars;
-                    $title[] = $cgp->name .": " . $cg->toName();
-                    continue;
-                
-                
-                case 'role':
-                    $title[] = "Role: " . $v;
-                    continue;
-    
-                    //[role] => Editorial Director
-    
-            }  
-             
-        }
-        $this->data = json_encode($cfg);
-        
-         $ret = $this->toArray();
-         $ret['title'] = implode(', ', $title);
-        return $ret;
-        
-        
-    }
-    
-}
diff --git a/PressRelease/DataObjects/pman.links.ini b/PressRelease/DataObjects/pman.links.ini
deleted file mode 100644 (file)
index f3f1095..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-
-[pressrelease_entry]
-client_id = Companies:id
-created_by = Person:id
-updated_by = Person:id
-owner_id = Person:id
-contact1_id = Person:id
-contact2_id = Person:id
-contact3_id = Person:id
-parent_id = pressrelease_entry:id
-same_as_id = pressrelease_entry:id
-stock_exchange_id = core_enum:id
-
-[pressrelease_entry_related]
-entry_id = pressrelease_entry:id
-
-
-[pressrelease_category]
-parent_id = pressrelease_category:id
-
-[pressrelease_regionmap]
-category_id = pressrelease_category:id
-
-
-[pressrelease_contact]
-category_type_id= pressrelease_category:id
-category_media_id = pressrelease_category:id
-category_scope_id = pressrelease_category:id
-
-
-[pressrelease_beats]
-contact_id = pressrelease_contact:id
-category_id = pressrelease_category:id
-
-[pressrelease_notify]
-person_id = pressrelease_contact:id
-event_id = Events:id
-
-
-[reader_article]
-campaign_id = Projects:id
-src_id = CampaignAssign:id
-
-
-
-[database__render]
-pressrelease_entry = headline
diff --git a/PressRelease/DistributionReport.php b/PressRelease/DistributionReport.php
deleted file mode 100644 (file)
index c65c2b8..0000000
+++ /dev/null
@@ -1,519 +0,0 @@
-<?php
-require_once 'Pman.php';
-
-class Pman_PressRelease_DistributionReport extends Pman {
-    
-    var $masterTemplate = 'mail/dashboardmaster.html';
-    var $template = 'mail/dashboardmail.html';
-    
-    var $days = 10;
-    var $email = false;
-    var $direct_news_feed = false;
-    var $from = false;
-    var $subject = false;
-    
-    var $urlmap=  array(
-            'https://release.media-outreach.com/' => 'http://localhost/'
-        );
-
-    
-    function getAuth() 
-    {
-        
-        $au = $this->getAuthUser();
-        if (!$au) {
-             $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        $this->authUser = $au;
-        // check that it's a supplier!!!! 
-        
-        return true; 
-    }
-    function post()
-    {
-        $args = array('id','email','days');
-        foreach($args as $a) {
-            if (!empty($_REQUEST[$a])) {
-                continue;
-            }
-            
-            $this->jerr("missing : $a");
-        }
-        
-        if(!empty($_REQUEST['name'])){
-            $this->name = $_REQUEST['name'];
-        }
-        
-        if(!empty($_REQUEST['subject'])){
-            $this->subject = $_REQUEST['subject'];
-        }
-        
-        $direct_news_feed = empty($_REQUEST['direct_news_feed']) ? false : true;
-        
-        $email = array_unique(array_filter(json_decode($_REQUEST['email'])));
-        
-        $m = $this->buildReport( $_REQUEST['id'], $_REQUEST['days'], $email, $direct_news_feed);
-        $err = $m->send();
-        if ($err !== true) {
-            $this->jerr($err->toString());
-        }
-        $this->jok("SENT");
-        
-        
-    }
-    
-    function get($id='')
-    {
-        if (empty($id)) {
-            $this->jerr("no id!?");
-        } // debuggin
-        
-        $days = empty($_REQUEST['days']) ? 10 : (int) $_REQUEST['days'];
-        
-        $direct_news_feed = empty($_REQUEST['direct_news_feed']) ? false : true;
-        
-        $this->buildReport($id, $days, false, $direct_news_feed);
-        
-    }
-    function buildReport($id, $days, $email = false, $direct_news_feed = false)
-    {   
-        $this->days = $days;
-        $this->email = $email;
-        $this->direct_news_feed = $direct_news_feed;
-        
-        
-        $ff = HTML_FlexyFramework::get();
-        $http_host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : 'pman.HTTP_HOST.not.set';
-        if (isset($ff->Pman['HTTP_HOST'])) {
-            $http_host  = $ff->Pman['HTTP_HOST'];
-        }
-        $this->HTTP_HOST = $http_host;
-        $this->fullBaseImageURL = 'https://'.$http_host . $this->baseURL . '/Images/Thumb';
-       
-        
-        $this->release  = DB_DataObject::Factory('pressrelease_entry');
-        $this->release->get($id);
-        
-        $this->overview();
-        
-        $pr = DB_DataObject::Factory('Projects');
-        if (!$pr->get('pressrelease_id', $this->release->id)) {
-            return;
-        }
-        $this->project = $pr;
-        $pr = DB_DataObject::Factory('Projects');
-        $pr->whereAddIn('pressrelease_id', array_keys($this->languages), 'int');
-        
-        $this->projects_ids = $pr->fetchAll('id');
-        
-        
-        $this->searchEngines();
-        
-        $this->clippingSummary($this->release);
-        $this->historical();
-        
-        if(empty($email)){
-            return;
-        }
-        
-        return $this->buildEmail();
-       
-    }
-    
-    function overview()
-    {
-        //DB_DataObject::debugLevel(1);
-        $versions = $this->release->versionsAll();
-        $this->languages_total = count($versions);
-        $this->versions = $versions;
-        
-        
-        
-        require_once 'Pman/Core/I18n.php';
-        $x = new Pman_Core_I18n();
-        
-        $langs=  array();
-        
-        $this->releases = array();
-        $countries = array();
-        $regions = array();
-        
-        foreach($versions as $v) {
-            $langs[$v->id] = $x->translate('en', 'l', $v->language);
-            $v->inlanguages = '';
-            if (!$v->parent_id) {
-                $this->releases[$v->id] = $v;
-            }
-            $ld = $v->distributionSummary();
-             
-            if (!empty($v->distribution_countries)) {
-                $countries = array_unique(array_merge($countries, $ld['countries']));
-            }
-            if (!empty($ld['regions'])) {
-                $regions = array_unique(array_merge($regions, $ld['regions']));
-            }
-            
-        }
-        ksort($this->releases);
-        foreach($versions as $v) {
-            $pid = empty($v->parent_id)  ? $v->id : $v->parent_id;
-            $this->releases[$pid]->inlanguages .= strlen($this->releases[$pid]->inlanguages) ? ", " : '';
-            $this->releases[$pid]->inlanguages .=  $x->translate('en', 'l', $v->language);
-        }
-        
-        
-        $this->languages = $langs;
-        
-        $this->releaseDistribution($this->release);
-        
-        
-        $distribution = $this->release->distributionSummary();
-         
-        $this->beats_total = count($distribution['beats']);
-         
-        $this->countries_total = count($countries);
-        $distribution['countries'] = $countries;
-        $distribution['regions'] = $regions;
-        
-        // gen/internationl/regiona apac / hk/thailand
-         $this->distribution = (object) $distribution;
-        
-        
-    }
-    function releaseDistribution($release)
-    {
-        $versions = $release->versionsAll();
-        
-        $ids = array();
-        foreach($versions as $v) {
-            $ids[] = $v->id;
-        }
-         
-//        $langs = $this->languages;
-        
-        $pn = DB_DataObject::factory('pressrelease_notify');
-        $pn->autoJoin();
-        $pn->whereAdd("
-            (
-                (pressrelease_notify.msgid IS NOT NULL AND LENGTH(pressrelease_notify.msgid) > 0) AND
-                pressrelease_notify.event_id > 0
-            ) AND
-                ( pressrelease_notify.onid IN (" . implode(',', $ids ) . ")) 
-            AND
-                ( pressrelease_notify.ontable = 'pressrelease_entry' )
-            AND
-                ( pressrelease_notify.evtype = 'MAIL' )
-        ");
-        $release->delivered_total = $pn->count();
-        
-    }
-    
-    
-    function searchEngines()
-    {
-        
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->selectAdd();
-        $cl->selectAdd('distinct(company_id) as company_id');
-        $cl->whereAddIn('project_id',  $this->projects_ids , 'int');
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        $cl->useIndex('lookup_company');
-        $coids = $cl->fetchAll('company_id');
-        
-        $co = DB_DataObject::Factory('Companies');
-        $co->whereAddIn('id', $coids , 'int');
-        $this->suppliers = $co->fetchAll();
-        
-        
-        
-        
-        
-    }
-    function clippingSummary($release)
-    {
-        $versions = $release->versionsAll();
-        $ids = array();
-        foreach($versions as $v) {
-            $ids[] = $v->id;
-        }
-        $pr = DB_DataObject::Factory('Projects');
-        $pr->whereAddIn('pressrelease_id', $ids, 'int');
-        
-        $projects_ids = $pr->fetchAll('id');
-        
-        //$pr = DB_DataObject::Factory('Projects');
-        //if (!$pr->get('pressrelease_id', $release->id)) {
-        //    return;
-        //}
-        
-//        DB_DataObject::debugLevel(1);
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->selectAdd();
-        $cl->whereAddIn('project_id',  $projects_ids , 'int');
-        //$cl->project_id =$pr->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->selectAdd("
-            count(distinct media_name) as media_total,
-            count(id) as clipping_total,
-            sum(circulation) as reach_total
-            "
-        );
-        $cl->whereAdd("published < '{$release->publish_dt}' + INTERVAL {$this->days} DAY");
-        
-        $cl->find(true);
-        foreach(array('media', 'clipping', 'reach') as $k) {
-            $release->{$k .'_total'} = number_format($cl->{$k .'_total'},0);
-        }
-        //DB_Dataobject::debugLevel(1);
-        // now let's get the clippings..
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->selectAdd("
-            i18n_translate('c', Clipping.country, 'en') as country_name,
-            i18n_translate('l', language, 'en') as language_tr
-        ");
-        $cl->whereAddIn('project_id',  $projects_ids , 'int');
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        
-        $cl->whereAdd("published < '{$release->publish_dt}' + INTERVAL {$this->days} DAY");
-       // $cl->useIndex('lookup_company');
-        $cl_dist = clone($cl);
-        $cl_dist->orderBy('circulation DESC');
-        
-        $release->clippings_dist = array();
-        $release->clippings_dist_feed = array();
-        
-        foreach ($cl_dist->fetchAll() as $c){
-            if(!empty($c->release_is_feed) && !empty($this->direct_news_feed)){
-                $release->clippings_dist_feed[] = $c;
-                continue;
-            }
-            
-            $release->clippings_dist[] = $c;
-        }
-        
-        $cl->orderBy('country_name ASC, circulation DESC');
-        
-        $release->clippings = array();
-        $release->clippings_feed = array();
-        
-        foreach ($cl->fetchAll() as $c){
-            $advalue = empty($c->release_is_feed) ? 2000 : 1000;
-            $c->advalue = number_format($advalue, 0);
-            
-            if(!empty($c->release_is_feed) && !empty($this->direct_news_feed)){
-                $release->clippings_feed[] = $c;
-                continue;
-            }
-            
-            $release->clippings[] = $c;
-        }
-        
-        $release->advalue_total = number_format(1000 * count($release->clippings_feed) + 2000 * count($release->clippings));
-        
-    }
-    
-    function historical()
-    {
-        // find all the main press releases done by this company.
-        $pr = DB_DataObject::Factory('pressrelease_entry');
-        $pr->client_id = $this->release->client_id;
-        $pr->whereAdd('id != '. $this->release->id);
-        $pr->whereAdd('id < '. $this->release->id); // do not show newer ones..
-        $pr->whereAdd('parent_id = 0 AND same_as_id = 0');
-        $pr->limit(10);
-        $pr->whereAdd('publish_status > -1');
-        $pr->whereAdd('publish_dt > NOW() - INTERVAL 1 YEAR'); // timezone!
-        $pr->orderBy('id DESC');
-        $this->history= $pr->fetchAll();
-        
-        foreach($this->history as $i=>$h) {
-//            $this->releaseDistribution($h);
-            $this->clippingSummary($h);
-        }
-        
-        
-    }
-    
-    function show_direct_news_feed()
-    {
-        return $this->direct_news_feed;
-    }
-     
-    function days()
-    {
-        $ends = array('th','st','nd','rd','th','th','th','th','th','th');
-        if (($this->days %100) >= 11 && ($this->days %100) <= 13) {
-           return $this->days . 'th';
-        }
-        return $this->days .  $ends[$this->days % 10];
-    }
-    
-    function daysHtml()
-    {
-        $ends = array('th','st','nd','rd','th','th','th','th','th','th');
-        if (($this->days %100) >= 11 && ($this->days %100) <= 13) {
-           return $this->days . 'th';
-        }
-        return $this->days .  '<sup>' . $ends[$this->days % 10] .'</sup>';;
-    }
-    
-    function buildEmail()
-    {
-       
-        
-        /* output the body if no masterTemplate is set */
-  
-          
-        $template_engine = new HTML_Template_Flexy();
-        $template_engine->compile($this->masterTemplate);
-        
-        
-        $html = $template_engine->bufferedOutputObject($this,$this->elements);
-        
-        require_once 'Pman/Core/Mailer.php';
-        
-      
-        $m = new Pman_Core_Mailer(array(
-            'template'=> 'dashboardmaster',
-            'page' => $this,
-            'cache_images' => false,  // force regeneration..
-            'replaceImages' => true,
-            'urlmap' => $this->urlmap,
-            'css_embed' => true,
-            'contents' => array(
-                'sender' => (empty($this->name)) ? 'support@media-outreach.com' : ('"' . addslashes($this->name) . '" <support@media-outreach.com>'),
-                'email' => is_array($this->email) ? implode(',', $this->email) : $this->email, //'alan@roojs.com',
-                'subject' => (empty($this->subject)) ? "#{$this->release->id} - Media OutReach News Dashboard {$this->days()} Day Report - " . $this->release->headline : $this->subject,
-            ),
-            //'debug' => 1,
-            
-            
-            
-            
-        ));
-        //print_R($m);
-        return $m;
-        
-        //$m->send();
-        
-        
-        
-    }
-    
-    function toWordUrl()
-    {
-        if(!empty($this->direct_news_feed)){
-            return "https://{$_SERVER['HTTP_HOST']}{$this->baseURL}/PressRelease/DistributionReport/ExportWord/{$this->release->id}?days={$this->days}&direct_news_feed=1";
-        }
-        return "https://{$_SERVER['HTTP_HOST']}{$this->baseURL}/PressRelease/DistributionReport/ExportWord/{$this->release->id}?days={$this->days}";
-    }
-    
-    function toExcelUrl()
-    {
-        if(!empty($this->direct_news_feed)){
-            return "https://{$_SERVER['HTTP_HOST']}{$this->baseURL}/PressRelease/DistributionReport/ExportXLS/{$this->release->id}?days={$this->days}&direct_news_feed=1";
-        }
-        return "https://{$_SERVER['HTTP_HOST']}{$this->baseURL}/PressRelease/DistributionReport/ExportXLS/{$this->release->id}?days={$this->days}";
-    }
-    
-    function releaseLogo()
-    {
-        $img = DB_DataObject::factory('Images');
-        $c = DB_DataObject::Factory('Companies');
-        $c->get($this->release->client_id);
-        $img->imgtype = 'LOGO';
-        $logo = $img->gather($c, 'image/%');
-        
-        if(empty($logo)){
-            return '';
-        }
-        $logo = array_shift($logo);
-        
-        $width = 260;
-        $height = $logo->height * ($width / $logo->width);
-        
-        if($height > 60){
-            $height = 60;
-            $width = $logo->width * ($height / $logo->height);
-        }
-        
-        return $logo->toHTML("{$width}x{$height}", $this->fullBaseImageURL);
-    }
-    
-    function hasClippingsDist()
-    {
-        return empty($this->release->clippings_dist) ? false : true;
-    }
-    
-    function hasClippingsDistFeed()
-    {
-        return empty($this->release->clippings_dist_feed) ? false : true;
-    }
-    
-    function hasClippings()
-    {
-        return empty($this->release->clippings) ? false : true;
-    }
-    
-    function hasClippingsFeed()
-    {
-        return empty($this->release->clippings_feed) ? false : true;
-    }
-    
-    function media_write_up_total()
-    {
-        return empty($this->release->clippings) ? 0 : count($this->release->clippings);
-    }
-    
-    function news_online_posting_total()
-    {
-        return empty($this->release->clippings_feed) ? 0 : count($this->release->clippings_feed);
-    }
-    
-    function release_is_feed()
-    {
-        return empty($this->direct_news_feed) ? false : true;
-    }
-    
-    function advalue_total($type)
-    {   
-        $total = array(
-            'media' => 0,
-            'posting' => 0,
-            'all' => 0,
-        );
-        
-        if(!array_key_exists($type, $total)){
-            return 0;
-        }
-        
-        $all = array_merge($this->release->clippings, $this->release->clippings_feed);
-        
-        foreach ($all as $a){
-            $total['media'] += (empty($a->release_is_feed)) ? 2000 : 0;
-            $total['posting'] += (empty($a->release_is_feed)) ? 0 : 1000;
-            $total['all'] += (empty($a->release_is_feed)) ? 2000 : 1000;
-        }
-        
-        return number_format($total[$type], 0);
-        
-    }
-    function mapurl($in)
-    {
-        
-        foreach($this->urlmap as $o=>$n) {
-            if (strpos($in,$o) === 0) {
-                $ret =$n . substr($in,strlen($o));
-              //  $this->log("mapURL in $in = $ret");
-                return $ret;
-            }
-        }
-        //$this->log("mapurl no change - $in");
-        return $in;
-         
-        
-    }
-}
diff --git a/PressRelease/DistributionReport/BreakdownByCountry.php b/PressRelease/DistributionReport/BreakdownByCountry.php
deleted file mode 100644 (file)
index 6aa3bd6..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-
-require_once 'Pman/PressRelease/DistributionReport/VolumeOverTime.php';
-
-class Pman_PressRelease_DistributionReport_BreakdownByCountry extends Pman_PressRelease_DistributionReport_VolumeOverTime {
-    
-    
-    var $template = 'graphs/breakdown_by_country.html';
-    var $driver = "g.pie.js";
-    
-    /**
-     * 
-     *
-     *
-     */
-    
-    function genJs()
-    {
-        $data = $this->genData();
-        
-        $cols = $labels = $titles = array();
-        
-        foreach($data as $d) {
-            $cols[] = $d['qty']*1;
-            $labels[] = $d['qty'] . '';
-            $titles[] = $d['country'] . ' ('. $d['qty'] .')';
-        }
-       
-        $js = "
-r.piechart(100, 120, 80, ". json_encode($cols) . ", {
-            cut : ". count($cols) .",
-            
-            legend:  ". json_encode($titles) . ",
-            legendpos: 'east'
-           
-        });
-print(r.toSVG());
-        ";
-        return $js;
-    }
-    
-    
-    function genData()
-    {
-        
-        // get a history summary of dates..
-        //DB_DataObject::debugLevel(1);
-        
-         
-     
-        
-       
-        //DB_Dataobject::debugLevel(1);
-        // now let's get the clippings..
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->whereAddIn('project_id',  $this->projects_ids , 'int');
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->orderBy('circulation DESC');
-        $cl->selectAdd();
-        $cl->selectAdd("
-            i18n_translate('c', country, 'en') as country_tr,
-            count(id) as qty
-        ");
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        $cl->groupBy('country_tr');
-        $cl->orderBy('qty DESC');
-        $data = $cl->fetchAll('country_tr', 'qty');
-        //print_r($data);
-        // from release to today
-        $out = array();
-        foreach($data as $l=>$q) {
-            $out[] = array(
-                'country' =>  $l,
-                'qty' => $q
-            );
-            
-        }
-        return $out; 
-        
-    }
-   
-        
-        
-        
-
-         
-}
\ No newline at end of file
diff --git a/PressRelease/DistributionReport/BreakdownByLanguage.php b/PressRelease/DistributionReport/BreakdownByLanguage.php
deleted file mode 100644 (file)
index 4634564..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-
-require_once 'Pman/PressRelease/DistributionReport/VolumeOverTime.php';
-
-class Pman_PressRelease_DistributionReport_BreakdownByLanguage extends Pman_PressRelease_DistributionReport_VolumeOverTime {
-    
-    
-    var $template = 'graphs/breakdown_by_language.html';
-    var $driver = "g.pie.js";
-    
-    
-       
-     function genJs()
-    {
-        $data = $this->genData();
-        
-        $cols = $labels = $titles = array();
-        
-        foreach($data as $d) {
-            $cols[] = $d['qty'] *1;
-            $labels[] = $d['qty'] . '';
-            $titles[] = $d['language'] . ' ('. $d['qty'] .')';
-        }
-       
-        $js = "
-r.piechart(100, 120, 80, ". json_encode($cols) . ", {
-            cut : ". count($cols) .",
-            
-            legend:  ". json_encode($titles) . ",
-            legendpos: 'east'
-           
-        });
-print(r.toSVG());
-        ";
-        return $js;
-    }
-    
-    function genData()
-    {
-        
-        // get a history summary of dates..
-        //DB_DataObject::debugLevel(1);
-        
-        
-        //DB_Dataobject::debugLevel(1);
-        // now let's get the clippings..
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->whereAddIn('project_id',  $this->projects_ids , 'int');
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->orderBy('circulation DESC');
-        $cl->selectAdd();
-        $cl->selectAdd("
-            i18n_translate('l', language, 'en') as language_tr,
-            count(id) as qty
-        ");
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        $cl->groupBy('language_tr');
-        $cl->orderBy('qty DESC');
-        $data = $cl->fetchAll('language_tr', 'qty');
-        //print_r($data);
-        // from release to today
-        $out = array();
-        foreach($data as $l=>$q) {
-            $out[] = array(
-                'language' =>  $l,
-                'qty' => $q
-            );
-            
-        }
-        return $out;
-        $this->jdata($out);
-        
-        
-    }
-   
-        
-        
-        
-
-         
-}
\ No newline at end of file
diff --git a/PressRelease/DistributionReport/BreakdownByNewsCoverage.php b/PressRelease/DistributionReport/BreakdownByNewsCoverage.php
deleted file mode 100644 (file)
index 2873f5c..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-require_once 'Pman/PressRelease/DistributionReport/VolumeOverTime.php';
-
-class Pman_PressRelease_DistributionReport_BreakdownByNewsCoverage extends Pman_PressRelease_DistributionReport_VolumeOverTime {
-    
-    
-    var $template = 'graphs/breakdown_by_news_coverage.html';
-    var $driver = "g.pie.js";
-    
-    /**
-     * 
-     *
-     *
-     */
-    
-    function genJs()
-    {
-        $data = $this->genData();
-        
-        $cols = $labels = $titles = array();
-        
-        foreach($data as $d) {
-            $cols[] = $d['qty']*1;
-            $labels[] = $d['qty'] . '';
-            $titles[] = $d['newsType'] . ' ('. $d['qty'] .')';
-        }
-       
-        $js = "
-r.piechart(100, 120, 80, ". json_encode($cols) . ", {
-            cut : ". count($cols) .",
-            
-            legend:  ". json_encode($titles) . ",
-            legendpos: 'east'
-           
-        });
-print(r.toSVG());
-        ";
-        return $js;
-    }
-    
-    
-    function genData()
-    {
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->whereAddIn('project_id',  $this->projects_ids , 'int');
-        $cl->whereAdd('rejected = 0');
-        $cl->selectAdd();
-        $cl->selectAdd("
-            release_is_feed,
-            count(id) as qty
-        ");
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        
-        $cl->groupBy('release_is_feed');
-        $cl->orderBy('qty DESC');
-        $data = $cl->fetchAll('release_is_feed', 'qty');
-        
-        // from release to today
-        $out = array();
-        foreach($data as $l=>$q) {
-            $out[] = array(
-                'newsType' =>  empty($l) ? 'Media Write-up Coverage' : 'Online News Posting',
-                'qty' => $q
-            );
-            
-        }
-        return $out; 
-        
-    }
-   
-        
-        
-        
-
-         
-}
\ No newline at end of file
diff --git a/PressRelease/DistributionReport/BreakdownByReach.php b/PressRelease/DistributionReport/BreakdownByReach.php
deleted file mode 100644 (file)
index 83922be..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-require_once 'Pman/PressRelease/DistributionReport/VolumeOverTime.php';
-
-class Pman_PressRelease_DistributionReport_BreakdownByReach extends Pman_PressRelease_DistributionReport_VolumeOverTime {
-    
-    
-    var $template = 'graphs/breakdown_by_reach.html';
-    var $driver = "g.pie.js";
-    
-    
-          
-     function genJs()
-    {
-        $data = $this->genData();
-        
-        $cols = $labels = $titles = array();
-        
-        foreach($data as $d) {
-            $cols[] = $d['qty']*1;
-            $labels[] = $d['qty'] . '';
-            $titles[] = $d['media_name'] . ' ('. $d['qtyf'] .')';
-        }
-       
-        $js = "
-r.piechart(100, 120, 80, ". json_encode($cols) . ", {
-            cut : ". count($cols) .",
-            
-            legend:  ". json_encode($titles) . ",
-            legendpos: 'east'
-           
-        });
-print(r.toSVG());
-        ";
-        return $js;
-    }
-   
-      
-    function genData()
-    {
-        
-        
-        //DB_Dataobject::debugLevel(1);
-        // now let's get the clippings..
-        $cl = DB_DataObject::Factory('Clipping');
-        $cl->whereAddIn('project_id',  $this->projects_ids , 'int');
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->orderBy('circulation DESC');
-        $cl->selectAdd();
-        $cl->selectAdd("
-            media_name,
-            sum(circulation) as qty
-        ");
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        $cl->groupBy('media_name');
-        $cl->orderBy('qty DESC');
-        $cl->limit(20);
-        $data = $cl->fetchAll('media_name', 'qty');
-        //print_r($data);
-        // from release to today
-        $out = array();
-        foreach($data as $l=>$q) {
-            $out[] = array(
-                'media_name' =>  $l,
-                'qty' => $q,
-                'qtyf' => number_format($q,0)
-            );
-            
-        }
-        return $out;
-        
-    }
-   
-        
-        
-        
-
-         
-}
\ No newline at end of file
diff --git a/PressRelease/DistributionReport/ExportWord.php b/PressRelease/DistributionReport/ExportWord.php
deleted file mode 100644 (file)
index 5e77ffc..0000000
+++ /dev/null
@@ -1,756 +0,0 @@
-<?php
-require_once 'Pman/PressRelease/DistributionReport.php';
-
-class Pman_PressRelease_DistributionReport_ExportWord extends Pman_PressRelease_DistributionReport {
-    
-    var $masterTemplate = 'mail/exportmaster.html';
-    
-    var $lastTask = 'task_create_file';
-    
-    var $docType = 'Word';
-    
-    
-    function getAuth()
-    {
-        
-        $au = $this->getAuthUser();
-        
-        $this->authUser = $au;
-        return true; // everyone is allowed in.. as it's a public link on the mails..
-    }
-    
-    function post($id = '')
-    {
-        set_time_limit(0);
-        
-        if(empty($_REQUEST['release_id'])){
-            $this->jerr("no id!?");
-        }
-        
-        $this->release_id = $_REQUEST['release_id'];
-        $this->days = empty($_REQUEST['days']) ? $this->days : (int) $_REQUEST['days'];
-        $this->direct_news_feed = empty($_REQUEST['direct_news_feed']) ? 0 : 1;
-        
-        if (isset($_REQUEST['task'])) {
-            return $this->nextTask();
-        }
-        
-        $this->buildReport($this->release_id, $this->days, false, $this->direct_news_feed);
-        
-        if (!empty($_REQUEST['file'])) {
-            $this->serveFile($_REQUEST['file']);
-        }
-        
-        $this->createTaskList();
-        
-    }
-    
-    function get($id = '')
-    {
-        if (empty($id)) {
-            $this->jerr("no id!?");
-        }
-        
-        $this->release_id = $id;
-        $this->days = empty($_REQUEST['days']) ? $this->days : (int) $_REQUEST['days'];
-        $this->direct_news_feed = empty($_REQUEST['direct_news_feed']) ? 0 : 1;
-        
-        return;
-    }
-    
-    function createTaskList()
-    {
-        $tasks = array();
-        
-        $types = array(
-            'release-logo',
-            'volume-over-time',
-            'breakdown-language',
-            'breakdown-country'
-        );
-        
-        if(!empty($this->direct_news_feed)){
-            $types[] = 'breakdown-news-coverage';
-        }
-        
-        $tot = count($this->release->clippings) + count($this->release->clippings_feed) + count($types);
-        
-        $i = 0;
-        
-        foreach ($types as $t){
-            $i++;
-            $tasks[] = array(
-                'm' => 'task_create_image',
-                't' => $t,
-                'id' => $this->release->id,
-                'r' => false,
-                'desc' => 'Processing image  ' . $i .'/' . $tot
-            );
-        }
-        
-        foreach($this->release->clippings as $n => $c){
-            $i++;
-            $tasks[] = array(
-                'm' => 'task_create_image',
-                'target' => $c->getStoreName(),
-                'mimetype' => $c->mimetype,
-                'id' => $c->id,
-                'r' => false, // resulting filename.
-                'desc' => 'Processing image  ' . $i .'/' . $tot
-            );
-            
-        }
-        
-        foreach($this->release->clippings_feed as $n => $c){
-            $i++;
-            $tasks[] = array(
-                'm' => 'task_create_image',
-                'target' => $c->getStoreName(),
-                'mimetype' => $c->mimetype,
-                'id' => $c->id,
-                'r' => false, // resulting filename.
-                'desc' => 'Processing image  ' . $i .'/' . $tot
-            );
-            
-        }
-        
-        $tasks[] = array(
-            'm' => 'task_create_file', 
-            'r' => false, //resulting 
-            'desc' => 'Creating file',
-        );
-         
-        $this->taskid = md5(time());
-        
-        $this->tasks = $tasks;
-        
-        $this->base64Images = (empty($this->base64Images)) ? array() : $this->base64Images;
-        
-        $this->saveTask(0);
-        
-    }
-    
-    function saveTask($n)
-    {   
-        $_SESSION[get_class($this)][$this->taskid] = array(
-            'tasks' => $this->tasks,
-            'taskid' => $this->taskid,
-            'base64Images' => $this->base64Images
-        );
-        
-        $this->jok(array(
-            'total' => count($this->tasks),
-            'done' =>  $n,
-            'result' => $this->tasks[$n],
-            'task' => $this->taskid,
-            'desc' => isset($this->tasks[$n])  ? $this->tasks[$n]['desc']: '?'
-        ));
-    }
-    
-    function nextTask()
-    {   
-        $this->taskid = empty($_REQUEST['task']) ?  '' : $_REQUEST['task'];
-        
-        if (empty($this->taskid) || empty($_SESSION[get_class($this)][$this->taskid])) {
-            $this->jerr('invalid task id sent');
-        }
-        
-        foreach($_SESSION[get_class($this)][$this->taskid] as $k=>$v) {
-            $this->$k = $v;
-        }
-        
-        foreach($this->tasks as $n=> $t) {
-            
-            if ($t['r'] !== false) {
-                continue;
-            }
-            
-            $m = $t['m'];
-            $this->task = $t;
-            $this->$m();
-            $this->tasks[$n] = $this->task;
-            
-            if ($m == $this->lastTask) {
-                $_SESSION[get_class($this)][$this->taskid] = $this->task['r'];
-                $this->jok(array(
-                    'file' => basename( $this->task['r'])
-                ));
-            }
-            
-            $this->saveTask($n);
-        }
-        // we must have finished.. = send the resutl of the last task as the return value..
-         $this->jerr("no more tasks?");
-    }
-    
-    function task_create_image()
-    {
-        $this->task['r'] = '';
-        
-        if(empty($this->task['t']) && !empty($this->task['target']) && !empty($this->task['mimetype'])){
-            
-            if (preg_match('/^video/i', $this->task['mimetype'])) {
-                $this->task['err'] = "Video thumbs not allowed";
-                return;
-
-            }
-            
-            clearstatcache();
-            
-            if(!file_exists($this->task['target'])){
-                $this->task['err'] = "Image does not exist";
-                return;
-            }
-            
-            /*
-             * more faster then request the image from url
-             */
-            require_once 'File/Convert.php';
-            
-            $fc = new File_Convert($this->task['target'], $this->task['mimetype']);
-            $img = $fc->convert('image/jpeg', 200,0);
-            
-            if (!$img) {
-                $this->task['err'] = "Could not convert image";
-                return;
-            }
-//            $img = "http://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/thumb/{$v->id}.jpg?authkey=";
-            
-            $this->base64Images['clipping-detail-' . $this->task['id']] = array(
-                'dataid' => 'clipping-detail-' . $this->task['id'],
-                'ext' => 'image/jpeg',
-                'data' => base64_encode(file_get_contents($img))
-            );
-            
-            return;
-        }
-        
-        $ff = HTML_FlexyFramework::get();
-        $http_host = isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : 'pman.HTTP_HOST.not.set';
-        if (isset($ff->Pman['HTTP_HOST'])) {
-            $http_host  = $ff->Pman['HTTP_HOST'];
-        }
-        $this->HTTP_HOST = $http_host;
-        $this->fullBaseImageURL = 'https://'.$http_host . $this->baseURL . '/Images/Thumb';
-        
-        if($this->task['t'] == 'release-logo'){
-            
-            $release  = DB_DataObject::Factory('pressrelease_entry');
-            $release->get($this->task['id']);
-        
-            $img = DB_DataObject::factory('Images');
-            $c = DB_DataObject::Factory('Companies');
-            $c->get($release->client_id);
-            $img->imgtype = 'LOGO';
-            $logo = $img->gather($c, 'image/%');
-
-            if(!empty($logo)){
-
-                $logo = array_shift($logo);
-                
-                $url = $logo->getStoreName();
-                
-                // why is this not using file convert to resize the image?
-                
-                $imageInfo = getimagesize($url);
-
-                $width = 1.33; // inch
-
-                $height = $logo->height * ($width / $logo->width);
-
-                if($height > 1.33){
-                    $height = 1.33;
-                    $width = $logo->width * ($height / $logo->height);
-                }
-
-                $this->base64Images['release-logo'] = array(
-                    'dataid' => 'release-logo-' . $this->task['id'],
-                    'ext' => $imageInfo['mime'],
-                    'width' => $width,
-                    'height' => $height, 
-                    'data' => base64_encode(file_get_contents($url))
-                );
-
-            }
-            
-            return;
-        }
-        
-        if($this->task['t'] == 'volume-over-time'){
-            $volume = $this->mapurl(
-                "https://{$this->HTTP_HOST}{$this->baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={$this->task['id']}&days={$this->days}"
-            );
-            $imageInfo = getimagesize($volume);
-
-            $this->base64Images['volume-over-time'] = array(
-                'dataid' => 'volume-over-time' . $this->task['id'],
-                'ext' => $imageInfo['mime'],
-                'data' => base64_encode(file_get_contents($volume))
-            );
-        }
-        
-        if($this->task['t'] == 'breakdown-language'){
-            
-            $breakdownLanguage = $this->mapurl(
-                "https://{$this->HTTP_HOST}{$this->baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={$this->task['id']}&days={$this->days}"
-            );
-            
-            $imageInfo = getimagesize($breakdownLanguage);
-
-            $this->base64Images['breakdown-language'] = array(
-                'dataid' => 'breakdown-language-' . $this->task['id'],
-                'ext' => $imageInfo['mime'],
-                'data' => base64_encode(file_get_contents($breakdownLanguage))
-            );
-            return;
-        }
-        
-        if($this->task['t'] == 'breakdown-country'){
-            $breakdownCountry = $this->mapurl(
-                "https://{$this->HTTP_HOST}{$this->baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={$this->task['id']}&days={$this->days}"
-            );
-            $imageInfo = getimagesize($breakdownCountry);
-
-            $this->base64Images['breakdown-country'] = array(
-                'dataid' => 'breakdown-country-' . $this->task['id'],
-                'ext' => $imageInfo['mime'],
-                'data' => base64_encode(file_get_contents($breakdownCountry))
-            );
-            return;
-        }
-        
-        if($this->task['t'] == 'breakdown-news-coverage'){
-            $breakdownNewsCoverage = $this->mapurl(
-                    "https://{$this->HTTP_HOST}{$this->baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={$this->task['id']}&days={$this->days}"
-            );
-            $imageInfo = getimagesize($breakdownNewsCoverage);
-
-            $this->base64Images['breakdown-news-coverage'] = array(
-                'dataid' => 'breakdown-news-coverage-' . $this->task['id'],
-                'ext' => $imageInfo['mime'],
-                'data' => base64_encode(file_get_contents($breakdownNewsCoverage))
-            );
-            return;
-        }
-        
-    }
-    
-    function task_create_file()
-    {
-        $this->buildReport($this->release_id, $this->days, false, $this->direct_news_feed);
-        
-        require_once 'HTML/Template/Flexy.php';
-        $template = new HTML_Template_Flexy(array(
-            'locale' => !empty($this->authUser) ? $this->authUser->lang :'en'
-        ));
-
-        /* compile a text file (email template) */
-        $template->compile('mail/dashboard.report.word.html');
-
-        /* use variables from this object to ouput data. */
-        $abw = $template->bufferedOutputObject($this);
-
-        $abw = iconv("UTF-8", "UTF-8//IGNORE", $abw);
-
-        // write it to a file..
-        $fn = $this->tempName('abw');
-        
-        file_put_contents($fn, $abw);
-        
-        $this->task['r'] = $fn;
-
-    }
-    
-    function serveFile($file)
-    {
-        $found = false;
-        
-        foreach($_SESSION[get_class($this)] as $k=>$v) {
-            if (!is_string($v)) {
-                continue;
-            }
-            if ($file  == basename($v)) {
-                $found = $k;
-            }
-        }
-        if ($found === false) {
-            $this->jerr('file not found');
-        }
-        
-        $outfile2 = ini_get('session.save_path') .'/'. $file;
-        
-        $fn = $this->tempName('docx');
-        
-        require_once 'File/Convert/AbiToDocx.php';
-        $fc=  new File_Convert_AbiToDocx($outfile2);
-        $fc->save($fn);
-        
-        require_once 'File/Convert.php';
-            
-        $fc = new File_Convert($fn, 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');
-        $fn = $fc->convert('application/vnd.openxmlformats-officedocument.wordprocessingml.document');
-        
-        $fc->serve('attachment'); 
-        
-        exit;
-    }
-    
-    function direct_news_feed_total()
-    {
-        $rows = array();
-        
-        if(!empty($this->direct_news_feed)){
-            
-            $media_total = $this->advalue_total('media');
-            $posting_total = $this->advalue_total('posting');
-            
-            $rows[] = <<<EOF
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Media Write Up Advalue: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">US\$ {$media_total}</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Online News Posting Advalue: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">US\$ {$posting_total}</c></p>
-EOF;
-                         
-        }
-        
-        $advalue_total = $this->advalue_total('all');
-                
-        $rows[] = <<<EOF
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Total Advalue: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">US\$ {$advalue_total}</c></p>
-EOF;
-
-        if(empty($this->direct_news_feed)){
-            return implode("\n", $rows);
-        }
-        
-        $media_write_up_total = $this->media_write_up_total();
-        $news_online_posting_total = $this->news_online_posting_total();
-        
-        $rows[] = <<<EOF
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Total Media Write-up Coverage: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{$media_write_up_total}</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Total Online News Posting: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{$news_online_posting_total}</c></p>
-EOF;
-        return implode("\n", $rows);
-    }
-    
-    function breakdown_news_coverage()
-    {
-        if(empty($this->direct_news_feed)){
-            return '';
-        }
-        
-        $top = 12;
-        $bot = $top + 1;
-        
-        $rows = array();
-        
-        $dataid = $this->base64Images['breakdown-news-coverage']['dataid'];
-        
-        $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Share of Voice By Type of News Coverage</c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><image dataid="{$dataid}" props="height:2.1528in; width:4.3285in; font-family:Arial"/></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-EOF;
-        return implode("\n", $rows);
-    }
-    
-    function clippings_summary()
-    {
-        $top = 12;
-        
-        if(!empty($this->direct_news_feed)){
-            $top += 1;
-        }
-        
-        $bot = $top + 1;
-        $rows = array();
-        
-        if(!empty($this->release->clippings_dist)){
-         
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Top Media by Reach - Media Write-up Coverage</c></p>
-</cell>
-EOF;
-            $top = $bot;
-            $bot++;
-
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-size:9pt; font-family:Helvetica; font-weight:bold; color:505050">Source</c><c props="font-size:9pt; font-family:Helvetica; color:505050"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Source Link</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Download</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Circulation</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-EOF;
-
-            foreach ($this->release->clippings_dist as $k => $v){
-                $top = $bot;
-                $bot++;
-
-                $url = htmlspecialchars($v->remote_url);
-
-                $mn = htmlspecialchars($v->media_name);
-                $lang = htmlspecialchars($v->language_tr);
-
-                $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn} ({$lang})</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><a xlink:href="{$url}"><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">View</c><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></a></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">View</c><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></a></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->circulationFormated()}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>  
-EOF;
-            }
-        }
-        
-        if(!empty($this->direct_news_feed) && !empty($this->release->clippings_dist_feed)){
-         
-            $top = $bot;
-            $bot++;
-        
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Top Media by Reach - Online News Posting</c></p>
-</cell>
-EOF;
-            $top = $bot;
-            $bot++;
-
-
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-size:9pt; font-family:Helvetica; font-weight:bold; color:505050">Source</c><c props="font-size:9pt; font-family:Helvetica; color:505050"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Source Link</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Download</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Circulation</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-EOF;
-
-            foreach ($this->release->clippings_dist_feed as $k => $v){
-                $top = $bot;
-                $bot++;
-
-                $url = htmlspecialchars($v->remote_url);
-
-                $mn = htmlspecialchars($v->media_name);
-                $lang = htmlspecialchars($v->language_tr);
-
-                $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn} ({$lang})</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><a xlink:href="{$url}"><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">View</c><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></a></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">View</c><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></a></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->circulationFormated()}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>  
-EOF;
-            }
-        }
-        
-        return implode("\n", $rows);
-    }
-    
-    function clippings_details()
-    {
-        $top = 14 + count($this->release->clippings_dist);
-        
-        if(!empty($this->direct_news_feed)){
-            $top = 17 + count($this->release->clippings_dist_feed) + count($this->release->clippings_dist);
-        }
-        
-        $bot = $top + 1;
-        $rows = array();
-        
-        if(!empty($this->release->clippings)){
-            
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Media Write-up Coverage</c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-EOF;
-
-            foreach ($this->release->clippings as $k => $v){
-
-                $top = $bot;
-                $bot++;
-
-                $url = htmlspecialchars($v->remote_url);
-                $headline = htmlspecialchars($v->headline());
-                $mn = htmlspecialchars($v->media_name);
-                $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><image dataid="{$this->base64Images['clipping-detail-' . $v->id]['dataid']}" props="height:1.88in; width:1.33in; font-family:Arial"/></a></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Headline: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:ff0000">{$headline}</c></a></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Media Title: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Published: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->published()}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Country: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->country('en')}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Language: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->language('en')}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">AdValue: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">US\${$v->advalue}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Circulation: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->circulationFormated()}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">URL: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><a xlink:href="{$url}"><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn}</c></a></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-EOF;
-            }
-        }
-        
-        if(!empty($this->direct_news_feed) && !empty($this->release->clippings_feed)){
-            $top = $bot;
-            $bot++;
-
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Online News Posting</c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-EOF;
-        
-            foreach ($this->release->clippings_feed as $k => $v){
-
-                $top = $bot;
-                $bot++;
-
-                $url = htmlspecialchars($v->remote_url);
-                $headline = htmlspecialchars($v->headline());
-                $mn = htmlspecialchars($v->media_name);
-                $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><image dataid="{$this->base64Images['clipping-detail-' . $v->id]['dataid']}" props="height:1.88in; width:1.33in; font-family:Arial"/></a></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Headline: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><a xlink:href="https://{$this->HTTP_HOST}{$this->baseURL}/Clipping/View/download/{$v->id}.pdf?authkey="><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:ff0000">{$headline}</c></a></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Media Title: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Published: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->published()}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Country: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->country('en')}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Language: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->language('en')}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">AdValue: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">US\${$v->advalue}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Circulation: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->circulationFormated()}</c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">URL: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><a xlink:href="{$url}"><c props="font-family:Helvetica; font-size:9pt; color:ff0000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$mn}</c></a></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-EOF;
-            }
-        }
-        
-        return implode("\n", $rows);
-    }
-    
-    function historical_comparison()
-    {
-        $top = 17 + count($this->release->clippings_dist_feed) + count($this->release->clippings_dist) + count($this->release->clippings_feed) + count($this->release->clippings);
-        
-        if(!empty($this->direct_news_feed)){
-            $top += 1;
-        }
-        
-        $bot = $top + 1;
-        $rows = array();
-        
-        $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:12pt; color:404040; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:12pt; color:404040; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; font-size:12pt; color:404040; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Historical Comparison</c></p>
-</cell>
-EOF;
-        $top = $bot;
-        $bot++;
-
-        $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:1; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Date</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:1; right-attach:2; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Headline</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Clippings</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Circulation</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Advalue</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-EOF;
-
-        
-        foreach ($this->history as $k => $v){
-            
-            $top = $bot;
-            $bot++;
-            
-            $headline = htmlspecialchars($v->headline);
-            
-            $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:1; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{$v->publish_dt('d/M/Y')}</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:1; right-attach:2; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">#{$v->id} {$headline}</c><c props="font-family:Helvetica; font-size:9pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:2; right-attach:3; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{$v->clipping_total}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:3; right-attach:4; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{$v->reach_total}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c></p>
-</cell>
-<cell props="bot-attach:{$bot}; left-attach:4; right-attach:5; top-attach:{$top}">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{$v->advalue_total}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:9pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c></p>
-</cell>
-EOF;
-        }
-        
-        $top = $bot;
-        $bot++;
-        
-        $rows[] = <<<EOF
-<cell props="bot-attach:{$bot}; left-attach:0; right-attach:5; top-attach:{$top}; background-color:f4f4f4">
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:8pt; font-family:Helvetica; color:808080">The news clipping shall not be copied, redistributed, reproduced or passed on directly or indirectly to any 3rd party in whole or in part for any purpose at anytime. This news clipping is intended for client's internal usage only.</c><c props="font-size:8pt; font-family:Helvetica; color:808080"></c></p>
-    <p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-EOF;
-        return implode("\n", $rows);
-        
-    }
-    
-}
diff --git a/PressRelease/DistributionReport/ExportXLS.php b/PressRelease/DistributionReport/ExportXLS.php
deleted file mode 100644 (file)
index 4a5e461..0000000
+++ /dev/null
@@ -1,552 +0,0 @@
-<?php
-require_once 'Pman/PressRelease/DistributionReport/ExportWord.php';
-
-class Pman_PressRelease_DistributionReport_ExportXLS extends Pman_PressRelease_DistributionReport_ExportWord {
-    
-    var $masterTemplate = 'mail/exportmaster.html';
-    
-    var $lastTask = 'task_create_file';
-    
-    var $docType = 'Excel';
-    
-    function createTaskList()
-    {
-        $tasks = array();
-        
-        $tot = count($this->release->clippings) + count($this->release->clippings_feed);
-        
-        $i = 0;
-        
-        foreach($this->release->clippings as $n => $c){
-            $i++;
-            $tasks[] = array(
-                'm' => 'task_create_image',
-                'target' => $c->getStoreName(),
-                'mimetype' => $c->mimetype,
-                'id' => $c->id,
-                'r' => false, // resulting filename.
-                'desc' => 'Processing image  ' . $i .'/' . $tot
-            );
-            
-        }
-        
-        foreach($this->release->clippings_feed as $n => $c){
-            $i++;
-            $tasks[] = array(
-                'm' => 'task_create_image',
-                'target' => $c->getStoreName(),
-                'mimetype' => $c->mimetype,
-                'id' => $c->id,
-                'r' => false, // resulting filename.
-                'desc' => 'Processing image  ' . $i .'/' . $tot
-            );
-            
-        }
-        
-        $tasks[] = array(
-            'm' => 'task_create_file', 
-            'r' => false, //resulting 
-            'desc' => 'Creating file',
-        );
-         
-        $this->taskid = md5(time());
-        
-        $this->tasks = $tasks;
-        
-        $this->ImageStoreName = (empty($this->ImageStoreName)) ? array() : $this->ImageStoreName;
-        
-        $this->saveTask(0);
-        
-    }
-    
-    function saveTask($n)
-    {
-        $_SESSION[get_class($this)][$this->taskid] = array(
-            'tasks' => $this->tasks,
-            'taskid' => $this->taskid,
-            'ImageStoreName' => $this->ImageStoreName
-        );
-        
-        $this->jok(array(
-            'total' => count($this->tasks),
-            'done' =>  $n,
-            'result' => $this->tasks[$n],
-            'task' => $this->taskid,
-            'desc' => isset($this->tasks[$n])  ? $this->tasks[$n]['desc']: '?'
-        ));
-    }
-    
-    function task_create_image()
-    {
-        $this->task['r'] = '';
-        
-        if (preg_match('/^video/i', $this->task['mimetype'])) {
-            $this->task['err'] = "Video thumbs not allowed";
-            return;
-
-        }
-
-        clearstatcache();
-
-        if(!file_exists($this->task['target'])){
-            $this->task['err'] = "Image does not exist";
-            return;
-        }
-
-        /*
-         * more faster then request the image from url
-         */
-        require_once 'File/Convert.php';
-
-        $fc = new File_Convert($this->task['target'], $this->task['mimetype']);
-        $img = $fc->convert('image/x-ms-bmp', 75, 0);
-
-        if (!$img) {
-            $this->task['err'] = "Could not convert image";
-        }
-
-        $this->ImageStoreName[$this->task['id']] = $img;
-
-    }
-    
-    function serveFile($file)
-    {
-        $found = false;
-        
-        foreach($_SESSION[get_class($this)] as $k=>$v) {
-            if (!is_string($v)) {
-                continue;
-            }
-            if ($file  == basename($v)) {
-                $found = $k;
-            }
-        }
-        if ($found === false) {
-            $this->jerr('file not found');
-        }
-        
-        $outfile2 = ini_get('session.save_path') .'/'. $file;
-        require_once 'File/Convert.php';
-        $fc=  new File_Convert($outfile2, 'application/vnd.ms-excel');
-        $fn = $fc->convert('application/vnd.ms-excel'); 
-        $fc->serve('attachment'); 
-        
-        exit;
-    }
-    
-    function task_create_file()
-    {
-        $this->buildReport($this->release_id, $this->days, false, $this->direct_news_feed);
-        
-        require_once 'Spreadsheet/Excel/Writer.php';
-        
-        $outfile2 = $this->tempName('xls') ;
-        $workbook = new Spreadsheet_Excel_Writer($outfile2);
-        $workbook->setVersion(8);
-        
-        $format_top = &$workbook->addFormat();
-        $format_top->setAlign('top');
-        $format_top->setTextWrap(1);
-        
-        $format_top_blod_red = &$workbook->addFormat();
-        $format_top_blod_red->setAlign('top');
-        $format_top_blod_red->setBold(1);
-        $format_top_blod_red->setColor('red');
-        $format_top_blod_red->setTextWrap(1);
-        
-        $format_us = &$workbook->addFormat();
-        $format_us->setAlign('top');
-        $format_us->setTextWrap(1);
-        $format_us->setNumFormat('"US$"#,##0_);("US$"#,##0)');
-
-        $format_num = &$workbook->addFormat();
-        $format_num->setAlign('top');
-        $format_num->setTextWrap(1);
-        $format_num->setNumFormat('#,##0');
-
-        $format_link = &$workbook->addFormat();
-        $format_link->setAlign('top');
-        $format_link->setTextWrap(1);
-        $format_link->setColor('blue');
-        $format_link->setUnderline(1);
-        $this->format_link = $format_link;
-
-        
-        // Creating a worksheet
-        $worksheet = &$workbook->addWorksheet('DistributionReport');
-        $worksheet->setInputEncoding('UTF-8'); 
-        
-        $worksheet->setMerge(1, 0, 1, 9);
-        $worksheet->write(1, 0, "Media OutReach News Dashboard - {$this->days()} Day Report", $format_top);
-        
-        $worksheet->setMerge(3, 0, 3, 9);
-        $worksheet->write(3, 0, "Description : {$this->release->headline}", $format_top);
-        
-        $worksheet->setMerge(5, 0, 5, 9);
-        $worksheet->write(5, 0, 'Release Details', $format_top);
-        
-        $last = 5;
-        foreach ($this->releases as $r){
-            $last++;
-            $worksheet->setMerge($last, 0, $last, 9);
-            $worksheet->write($last, 0, "#{$r->id} - {$r->publish_dt('d F Y h:ia')} - {$r->inlanguages}", $format_top);
-        }
-        
-        $summary = array();
-        $country = array();
-        
-        $ad_value_total = 0;
-        $media_ad_value_total = 0;
-        $posting_ad_value_total = 0;
-        $circulation_total = 0;
-        $country_total = array(
-            'media_write_up' => 0,
-            'online_news_posting' => 0,
-            'total_clipping' => 0
-        );
-        
-        $all_clippings = array_merge($this->release->clippings, $this->release->clippings_feed);
-        
-        foreach($all_clippings as $r => $cl) {
-            $title = $cl->mediaTypeToString();
-            if(!isset($summary[$title])){
-                $summary[$title] = array(
-                    'ad_value' => 0,
-                    'media_ad_value' => 0,
-                    'posting_ad_value' => 0,
-                    'circulation' => 0
-                );
-            }
-            
-            if(!isset($country[$cl->country_name])){
-                $country[$cl->country_name] = array(
-                    'media_write_up' => 0,
-                    'online_news_posting' => 0,
-                    'total_clipping' => 0
-                );
-            }
-            
-            $summary[$title]['media_ad_value'] += empty($cl->release_is_feed) ? 2000 : 0;
-            $summary[$title]['posting_ad_value'] += empty($cl->release_is_feed) ? 0 : 1000;
-            $summary[$title]['ad_value'] += empty($cl->release_is_feed) ? 2000 : 1000;
-            $summary[$title]['circulation'] += $cl->circulation;
-            
-            $country[$cl->country_name]['media_write_up'] += empty($cl->release_is_feed) ? 1 : 0;
-            $country[$cl->country_name]['online_news_posting'] += empty($cl->release_is_feed) ? 0 : 1;
-            $country[$cl->country_name]['total_clipping'] += 1;
-            
-            $media_ad_value_total += empty($cl->release_is_feed) ? 2000 : 0;
-            $posting_ad_value_total += empty($cl->release_is_feed) ? 0 : 1000;
-            $ad_value_total += empty($cl->release_is_feed) ? 2000 : 1000;
-            $circulation_total += $cl->circulation;
-            
-            $country_total['media_write_up'] += empty($cl->release_is_feed) ? 1 : 0;
-            $country_total['online_news_posting'] += empty($cl->release_is_feed) ? 0 : 1;
-            $country_total['total_clipping'] += 1;
-        }
-        
-        $last++;$last++;
-        
-        if(empty($this->direct_news_feed)){
-            $worksheet->write($last, 0, "Summary", $format_top);
-            $worksheet->write($last, 1, "AdValue", $format_top);
-            $worksheet->write($last, 2, "Circulation", $format_top);
-
-
-            foreach($summary as $k => $v) {
-                $last++;
-                $worksheet->write($last, 0, $k, $format_top);
-                $worksheet->write($last, 1, $v['ad_value'],  $format_us);
-                $worksheet->write($last, 2, $v['circulation'],$format_num);
-            }
-            $last++;$last++;
-
-            $worksheet->write($last, 0, "Total", $format_top);
-            $worksheet->write($last, 1, $ad_value_total,  $format_us);
-            $worksheet->write($last, 2, $circulation_total,$format_num);
-            $last++;$last++;
-            
-            $worksheet->setMerge($last, 0, $last, 1);
-        
-            $worksheet->write($last, 0, "Breakdown by Country", $format_top);
-
-            foreach($country as $k => $v){
-                $last++;
-                $worksheet->write($last, 0, $k, $format_top);
-                $worksheet->write($last, 1, $v['total_clipping'], $format_num);
-            }
-            $last++;
-            $worksheet->write($last, 0, 'Total:', $format_top);
-            $worksheet->write($last, 1, $country_total['total_clipping'], $format_num);
-            $last++;$last++;
-        } else {
-            $worksheet->write($last, 0, "Summary", $format_top);
-            $worksheet->write($last, 1, "Media Write Up Advalue", $format_top);
-            $worksheet->write($last, 2, "Online News Posting Advalue", $format_top);
-            $worksheet->write($last, 3, "Total AdValue", $format_top);
-            $worksheet->write($last, 4, "Circulation", $format_top);
-
-
-            foreach($summary as $k => $v) {
-                $last++;
-                $worksheet->write($last, 0, $k, $format_top);
-                $worksheet->write($last, 1, $v['media_ad_value'], $format_us);
-                $worksheet->write($last, 2, $v['posting_ad_value'], $format_us);
-                $worksheet->write($last, 3, $v['ad_value'], $format_us);
-                $worksheet->write($last, 4, $v['circulation'], $format_num);
-                
-            }
-            $last++;$last++;
-            
-            $worksheet->write($last, 0, "Total", $format_top);
-            $worksheet->write($last, 1, $media_ad_value_total, $format_us);
-            $worksheet->write($last, 2, $posting_ad_value_total, $format_us);
-            $worksheet->write($last, 3, $ad_value_total, $format_us);
-            $worksheet->write($last, 4, $circulation_total, $format_num);
-
-            $last++;$last++;
-            
-            $worksheet->write($last, 0, "Breakdown by Country", $format_top);
-            $worksheet->write($last, 1, "Media Write Up", $format_top);
-            $worksheet->write($last, 2, "Online News Posting", $format_top);
-            $worksheet->write($last, 3, "Total Clippings", $format_top);
-
-            foreach($country as $k => $v){
-                $last++;
-                $worksheet->write($last, 0, $k, $format_top);
-                $worksheet->write($last, 1, $v['media_write_up'], $format_num);
-                $worksheet->write($last, 2, $v['online_news_posting'], $format_num);
-                $worksheet->write($last, 3, $v['total_clipping'], $format_num);
-            }
-            $last++;$last++;
-            $worksheet->write($last, 0, 'Total:', $format_top);
-            $worksheet->write($last, 1, $country_total['media_write_up'], $format_num);
-            $worksheet->write($last, 2, $country_total['online_news_posting'], $format_num);
-            $worksheet->write($last, 3, $country_total['total_clipping'], $format_num);
-            $last++;$last++;
-        }
-        
-        $cols = array(
-            array(
-                'header'=> "Thumbnail",
-                'dataIndex'=> 'id',
-                'width'=>  75,
-                'renderer' => array($this, 'getThumb')
-            ),
-            array(
-                'header'=>"Headline",
-                'dataIndex'=> 'headline',
-                'width'=> 200,
-                'renderer' => array($this, 'headline')
-            ),
-            array(
-                'header'=>"Media Title",
-                'dataIndex'=> 'media_name',
-                'width'=> 100
-            ),
-            array(
-                'header'=>"Published",
-                'dataIndex'=> 'published',
-                'width'=> 75,
-                'txtrenderer' => array($this, 'published')
-            ),
-            array(
-                'header'=>"Country",
-                'dataIndex'=> 'country',
-                'width'=> 50,
-                'txtrenderer' => array($this, 'country')
-            ),
-            array(
-                'header'=>"Language",
-                'dataIndex'=> 'language',
-                'width'=> 50,
-                'txtrenderer' => array($this, 'language')
-            ),
-            array(
-                'header'=>"AdValue",
-                'dataIndex'=> 'ad_value',
-                'width'=> 50,
-                'format' => $format_us,
-                'txtrenderer' => array($this, 'advalue')
-            ),
-            array(
-                'header'=>"Circulation",
-                'dataIndex'=> 'circulation',
-                'width'=> 60,
-                'format' => $format_num
-            ),
-            array(
-                'header'=>"URL",
-                'dataIndex'=> 'remote_url',
-                'width'=> 100,
-                'txtrenderer' => array($this, 'remote_url')
-            )
-        );
-        
-        if(!empty($this->release->clippings)){
-            $last++;$last++;
-        
-            $worksheet->setMerge($last, 0, $last, 8);
-
-            $worksheet->write($last, 0, "Media Write-up Coverage", $format_top_blod_red);
-
-            $last++;$last++;
-
-            foreach($cols as $c => $cfg) {
-                $h = $cfg['header'];
-                $worksheet->write($last, $c, $h, $format_top);
-                $worksheet->setColumn ($c, $c, $cfg['width'] / 5);
-            }
-
-            foreach($this->release->clippings as $r => $cl) {
-                $last++;
-
-                $worksheet->setRow($last, 85);
-
-                foreach($cols as $c => $cfg) {
-
-                    $v = isset($cl->{$cfg['dataIndex']}) ? $cl->{$cfg['dataIndex']} : '';
-
-                    if (isset($cfg['renderer'])) {
-                        call_user_func($cfg['renderer'], $cl->{$cfg['dataIndex']}, $worksheet, $last, $c, $cl);
-                        continue;
-                    }
-
-                    if (isset($cfg['txtrenderer'])) {
-                        $v = call_user_func($cfg['txtrenderer'], $cl->{$cfg['dataIndex']}, $worksheet, $last, $c, $cl);
-                    }
-
-                    if(empty($v)){
-                        continue;
-                    }
-
-                    $v = @iconv('UTF-8', 'UTF-8//IGNORE', $v);
-
-                    $format = isset($cfg['format']) ? $cfg['format'] : $format_top;
-
-                    $worksheet->write($last, $c, $v, $format);
-                }
-            }
-        }
-        
-        
-        if(!empty($this->direct_news_feed) && !empty($this->release->clippings_feed)){
-            $last++;$last++;
-        
-            $worksheet->setMerge($last, 0, $last, 8);
-
-            $worksheet->write($last, 0, "Online News Posting", $format_top_blod_red);
-
-            $last++;$last++;
-            
-            foreach($cols as $c => $cfg) {
-                $h = $cfg['header'];
-                $worksheet->write($last, $c, $h, $format_top);
-                $worksheet->setColumn ($c, $c, $cfg['width'] / 5);
-            }
-
-            foreach($this->release->clippings_feed as $r => $cl) {
-                $last++;
-
-                $worksheet->setRow($last, 85);
-
-                foreach($cols as $c => $cfg) {
-
-                    $v = isset($cl->{$cfg['dataIndex']}) ? $cl->{$cfg['dataIndex']} : '';
-
-                    if (isset($cfg['renderer'])) {
-                        call_user_func($cfg['renderer'], $cl->{$cfg['dataIndex']}, $worksheet, $last, $c, $cl);
-                        continue;
-                    }
-
-                    if (isset($cfg['txtrenderer'])) {
-                        $v = call_user_func($cfg['txtrenderer'], $cl->{$cfg['dataIndex']}, $worksheet, $last, $c, $cl);
-                    }
-
-                    if(empty($v)){
-                        continue;
-                    }
-
-                    $v = @iconv('UTF-8', 'UTF-8//IGNORE', $v);
-
-                    $format = isset($cfg['format']) ? $cfg['format'] : $format_top;
-
-                    $worksheet->write($last, $c, $v, $format);
-                }
-            }
-        }
-        
-        $workbook->close();
-     
-        $this->task['r'] = $outfile2;
-        
-
-    }
-    
-    function getThumb($v, $ws, $r, $c, $cl) 
-    {
-        $fn = false;
-        
-        if(!empty($this->ImageStoreName[$cl->id]) && file_exists($this->ImageStoreName[$cl->id])){
-            $fn = $this->ImageStoreName[$cl->id];
-        }
-        
-        if (!$fn) {
-            return;
-        }
-        
-        $ws->insertBitmap($r, $c, $fn, 0, 0, 1, 1); 
-        
-        return false;
-    }
-    
-    function headline($v, $ws, $r, $c, $cl)
-    {
-        $ret = $cl->headline();
-        $ret = @iconv('UTF-8', 'UTF-8//IGNORE', substr($ret,0,128));
-        $url = "https://{$_SERVER['HTTP_HOST']}{$this->baseURL}/Clipping/View/download/{$cl->id}.pdf?authkey=";
-        $ret = strlen($ret) ? $ret : 'Missing Headline';
-        
-        $ws->writeURL($r,$c, $url, $ret, $this->format_link);
-        
-        return false;
-    }
-    
-    function published($v, $ws, $r, $c, $cl)
-    {
-        return date('d/M/Y', strtotime($v));
-        
-    }
-    
-    function country($v, $ws, $r, $c, $cl)
-    {
-        $x = new Pman_Core_I18n();
-        return $x->translate($this->authUser, 'c', $v);
-    }
-    
-    function language($v, $ws, $r, $c, $cl)
-    {
-        $x = new Pman_Core_I18n();
-        return $x->translate($this->authUser, 'l', $v);
-    }
-    
-    function advalue($v, $ws, $r, $c, $cl)
-    {
-        return empty($cl->release_is_feed) ? 2000 : 1000;
-    }
-    
-    function remote_url($v, $ws, $r, $c, $cl)
-    {
-        if (!in_array($cl->media_type , array('ONLINE', 'BLOG',  'FACEBOOK'))) {
-            return;
-        }
-        if (empty($v)) {
-            return '';
-        }
-        
-        $ws->writeURL($r, $c, $v, $v, $this->format_link);
-        
-        return false;
-        
-    }
-}
diff --git a/PressRelease/DistributionReport/VolumeOverTime.php b/PressRelease/DistributionReport/VolumeOverTime.php
deleted file mode 100644 (file)
index a59c412..0000000
+++ /dev/null
@@ -1,337 +0,0 @@
-<?php
-
-require_once 'Pman/PressRelease/DistributionReport.php';
-
-class Pman_PressRelease_DistributionReport_VolumeOverTime extends Pman_PressRelease_DistributionReport {
-    
-    var $masterTemplate = 'graphs/master.html';
-    var $template = 'graphs/volume_over_time.html';
-    var $debugtype = '';
-    var $days = 10;
-    var $js_head = "
-
-var r = new Raphael(false,600,300);
-";
-  var $driver = "g.bar.0.51.js";
-    /**
-     * 
-     *
-     *
-     */
-    
-    function getAuth()
-    {
-        return true; // have to allow everyone in here??
-    }
-    
-    function get($id='')
-    {
-        $this->debugtype = isset($_REQUEST['debug']) ?$_REQUEST['debug'] : '';
-        $this->days = isset($_REQUEST['days']) ? (int)$_REQUEST['days'] : $this->days;
-        $this->sessionState(0); // turn off session..
-        $this->initRelease();
-        $this->genSvg();
-        exit;
-        
-          
-        
-    }
-    
-    function genJs()
-    {
-          $data = $this->genData();
-        
-        $cols = $labels = $titles = array();
-        
-        foreach($data as $d) {
-            $cols[] = $d['qty'];
-            $labels[] = $d['qty'] . '';
-            $titles[] = $d['datef'] . '';
-        }
-       
-        $js = "
-r.text(340, 290, 'Date').attr( { 'font-size': 12, 'font-family':  \"'Fontin Sans', Fontin-Sans, sans-serif\" });
-        
-r.barchart(30, 30, 560, 250, ". json_encode($cols) . ", {
-            labels : ". json_encode($labels) . ",
-            axis : '0 0 1 1',
-            axisxlabels :  ". json_encode($titles) . ",
-            axisystep : 10,
-            ymin : 0
-        });
-print(r.toSVG());
-        ";
-        
-        
-        return $js;
-    }
-    
-    function genSvg()
-    {
-        $bar =  realpath($this->rootDir .'/g.raphael/'.$this->driver) ;
-        $js = "
-imports.searchPath.push('" . dirname($bar) ."');
-
-Raphael = imports['". basename($bar)."'].Raphael;\n";
-        
-        $js .=  $this->js_head . $this->genJs();
-        
-        if ($this->debugtype == 'js') {
-            header('Content-type:text/plain');
-            echo $js;
-            exit;
-        }
-        
-        
-        $jsfile = $this->tempName('js');
-        file_put_contents($jsfile, $js);
-        require_once 'System.php';
-        $seed = System::which('seed');
-        
-        $cmd = "$seed $jsfile";
-        if ($this->debugtype == 'cmd') {
-            header('Content-type:text/plain');
-            echo $cmd;
-            exit;
-        }
-        
-        //echo $cmd;exit;
-        $res = `$cmd`;
-        
-        if ($this->debugtype == 'svg') {
-            header('Content-type:image/svg+xml');
-            echo $res;
-            exit;
-        }
-        //header('Content type: image/svg+xml');
-        //echo $res;
-        unlink($jsfile);
-        $svg = $this->tempName('svg');
-        file_put_contents($svg, $res);
-        require_once 'File/Convert.php';
-        $cv = new File_Convert($svg, 'image/svg'); //??
-        //$cv->debug=1;
-        $fn = $cv->convert(
-                'image/png' ,
-                600,
-                300
-        );
-        $cv->serve("image/png");
-//        print_r(base64_encode($fn));exit;
-        unlink($fn);
-        
-        
-        
-        
-        exit;
-        // run seed with that code...
-        
-        
-    }
-    function initRelease()
-    {
-         // example is #1111 - pocari ?
-        $this->release  = DB_DataObject::Factory('pressrelease_entry');
-        if (!$this->release->get($_REQUEST['release_id'])) {
-            $this->jerr("invalid id");
-        }
-        $this->pressrelease_id  = (int) $_REQUEST['release_id'];
-        //$this->client = $this->release->client();
-        
-        $versions = $this->release->versionsAll();
-        
-        require_once 'Pman/Core/I18n.php';
-        $x = new Pman_Core_I18n();
-        
-        $langs=  array();
-        
-        foreach($versions as $v) {
-            $langs[$v->id] = $x->translate('en', 'l', $v->language);
-        }
-        $this->languages = $langs;
-        
-         
-        $pr = DB_DataObject::Factory('Projects');
-        if (!$pr->get('pressrelease_id', $this->release->id)) {
-            $this->jerr("invalid release id");
-        }
-        $this->project = $pr;
-         $pr = DB_DataObject::Factory('Projects');
-        $pr->whereAddIn('pressrelease_id', array_keys($this->languages), 'int');
-        
-        $this->projects_ids = $pr->fetchAll('id');
-    }
-    
-    function genData()
-    {
-        
-        // get a history summary of dates..
-        //DB_DataObject::debugLevel(1);
-        
-        
-       
-       
-        //DB_Dataobject::debugLevel(1);
-        // now let's get the clippings..
-        $cl = DB_DataObject::Factory('Clipping');
-          $cl->whereAddIn('project_id',  $this->projects_ids , 'int'); 
-        //$cl->project_id = $this->project->id;
-        $cl->whereAdd('rejected = 0');
-        $cl->orderBy('circulation DESC');
-        $cl->selectAdd();
-        $cl->selectAdd("
-            DATE_FORMAT(CASE WHEN(published) < '{$this->release->publish_dt}' THEN '{$this->release->publish_dt}' ELSE published END, '%Y-%m-%d') as created_d,
-            count(id) as qty
-        ");
-        $cl->whereAdd("published < '{$this->release->publish_dt}' + INTERVAL {$this->days} DAY");
-        $cl->groupBy('created_d');
-        $cl->orderBy('created_d ASC');
-        $data = $cl->fetchAll('created_d', 'qty');
-        // from release to today
-        $out = array();
-        $dn=0;
-        for($d = date('Y-m-d', strtotime($this->release->publish_dt));
-            $d <= date('Y-m-d');
-            $d = date('Y-m-d',strtotime($d . ' + 1 DAY'))) {
-            
-            if ($dn > $this->days) {
-                continue;
-            }
-            $dn++;
-            $out[] = array(
-                'date' =>  $d,
-                'datef' =>date('d/M', strtotime($d)),
-                'qty' => isset($data[$d]) ? $data[$d] : 0
-            );
-            
-        }
-        
-       return $out;
-        
-    }
-    function post()
-    {
-        
-         $this->sessionState(0);
-        require_once 'File/MimeType.php';
-        $y = new File_MimeType();
-        $src_ext = $y->toExt( 'image/svg' );
-        
-        
-        $tmp = $this->tempName('svg');
-        file_put_contents($tmp, $_REQUEST['data']);
-   
-        require_once 'File/Convert.php';
-        $cv = new File_Convert($tmp, 'image/svg'); //??
-        
-        $fn = $cv->convert(
-                'image/png' ,
-                600,
-                300
-        );
-        $target = dirname($tmp).'/'. basename($_REQUEST['fn']);
-        // where should we put this?
-        copy($fn,$target);
-        unlink($fn);
-        $this->jok($target);
-      
-    }
-    function buildImage($prid)
-    {
-        $this->pressrelease_id = $prid;
-        require_once 'System.php';
-        $wk = System::which('wkhtmltopdf-0.10');
-        if (!$wk) {
-            $wk = System::which('wkhtmltopdf');
-        }
-        $xv = System::which('xvfb-run');
-        
-        
-        $tmp = $this->tempName('png');
-        $tmpb = basename($tmp);
-        $urlb = explode('_', get_class($this));
-        array_shift($urlb);
-        $url =  implode('/',$urlb);
-        $host = empty($_SERVER['HTTP_HOST']) ? 'release.media-outreach.com' : $_SERVER['HTTP_HOST'];
-        
-        $cmd = "$xv -a $wk --javascript-delay 1000  'http://" . $_SERVER['HTTP_HOST'] .
-                $this->baseURL . "/{$url}?release_id=$prid&fn=$tmpb'  /dev/null";
-        `$cmd`;
-        
-        for($i = 0; $i < 10;$i++) { 
-       // echo $cmd;
-            sleep(1);
-            
-            clearstatcache();
-            if (file_exists($tmp)) {
-                break;
-            }
-        }
-        
-        if (!file_exists($tmp)) {
-            echo $cmd;
-            return false;
-        }
-        return $tmp;
-    }
-    function serveImage($tmp)
-    {
-        require_once 'File/Convert.php';
-        $cv = new File_Convert($tmp, 'image/png'); //??
-        $fa = $cv->convert('image/png');
-        $cv->serve('image/png');
-        unlink($fa);
-        unlink($tmp);
-        exit;
-    }
-    function storeImage($fn)
-    {
-        $n = array_pop(explode('_',get_class($this)));
-        $i = DB_DataObject::factory('Images');
-        $i->setFrom(array(
-                'ontable' => 'pressrelease_entry_graph',
-                'onid' => $this->pressrelease_id ,
-                'imgtype' => 'CACHED_GRAPH',
-        ));
-        $ii = clone($i);
-        $ii->filename = $n . '.png';
-        if ($ii->count()) {
-           
-            $ii->find();
-            while ($ii->fetch()) {
-                $ii->beforeDelete();
-                $ii->delete();
-            }
-        }
-        
-        
-        $i->createFrom($fn, $n.'.png');
-        return $i;
-    }
-    function serveStored($prid)
-    {
-        //DB_DataObject::debugLevel(1);
-        $n = array_pop(explode('_',get_class($this)));
-        $i = DB_DataObject::factory('Images');
-        $i->setFrom(array(
-                'ontable' => 'pressrelease_entry_graph',
-                'onid' => $prid ,
-                'imgtype' => 'CACHED_GRAPH',
-                'filename' => $n . '.png'
-        ));
-        if ($i->find(true)) {
-            $fc= $i->toFileConvert();
-            $fa = $fc->convert('image/png');
-            $fc->serve('image/png');
-            unlink($fa);
-            unlink($tmp);
-            exit; // return true?
-        }
-        return false;
-        
-    }
-        
-        
-
-         
-}
\ No newline at end of file
diff --git a/PressRelease/ExcelToText.php b/PressRelease/ExcelToText.php
deleted file mode 100644 (file)
index 5db290c..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
-
-require_once 'Pman.php';
-
-class Pman_PressRelease_ExcelToText extends Pman
-{
-    function getAuth() 
-    {
-        $ff = HTML_Flexyframework::get();
-        if ($ff->cli) {
-            return true;
-        }
-        $au = $this->getAuthUser();
-        if (!$au) {
-             $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        $this->authUser = $au;
-        // check that it's a supplier!!!! 
-        
-        return true; 
-    }
-    function get()
-    {
-        $this->process('/home/alan/financial spreadsheet.xls');
-        
-    }
-    function post()
-    {
-        if (empty($_FILES['imageUpload']['tmp_name']) || 
-            empty($_FILES['imageUpload']['name']) || 
-            empty($_FILES['imageUpload']['type'])
-        ) {
-            $this->jerr ("Missing file details");
-            exit;
-        }
-        $this->process($_FILES['imageUpload']['tmp_name']);
-    }
-        
-    function process($file)
-    {
-        require_once 'System.php';
-        $xlhtml = System::which('xlhtml');
-        $cmd = "$xlhtml -csv -xp:0 ". escapeshellarg($file);
-        
-        
-        $data= `$cmd`;
-        $fh = fopen('php://memory', 'rw');
-        fputs($fh,$data);
-        fseek($fh,0);
-        $rows = array();
-        $max = array();
-        while (false !== ($row = fgetcsv($fh))) {
-           // $row = fgetcsv($fh);
-            
-            foreach($row as $i=>$c) {
-                $c = preg_replace('/[\t \n]+/', ' ', $c);
-                $row[$i] = trim($c);
-            }
-           // var_dump($row);
-          //  print_r($max);
-            $rows[] = $row;
-        }
-       // print_r($max);
-        $out = "<PRE><table>\n";
-        
-        foreach($rows as $r) {
-            $out.='<tr>';
-            foreach($r as $i=>$c) {
-                
-                $out .= '<td align="' . ($i ? 'right' : 'left') . '">'. htmlspecialchars($c) . "</td>\n";
-            }
-            $out.="</tr>\n";
-        }
-        
-        
-        //echo $out;
-        $out.="</table></PRE>";
-        
-        return $this->jok($out);
-
-        
-        
-    }
-    function mb_str_pad ($input, $pad_length, $pad_string, $pad_style, $encoding="UTF-8") {
-        $len = $pad_length - mb_strlen($input,$encoding);
-        $pad = str_repeat(html_entity_decode(' ', ENT_NOQUOTES, "UTF-8"), $len);
-        return $pad_style == STR_PAD_LEFT ? ($input . $pad) : ($pad . $input);
-    } 
-    
-}
\ No newline at end of file
diff --git a/PressRelease/HtDig/Index.php b/PressRelease/HtDig/Index.php
deleted file mode 100644 (file)
index 5737e32..0000000
+++ /dev/null
@@ -1,489 +0,0 @@
-<?php
-
-/**
- * Description of Index
- *
- * @author chris
- */
-//
-require_once 'Pman.php';
-class Pman_PressRelease_HtDig_Index extends Pman
-{
-    //put your code here
-    
-    var $options = array(
-        /**
-         * # VarDir /usr/local/mnogosearch/var
-         * # You may choose alternative working directory for 
-         * # search results cache:
-         */
-//        'VarDir' => '',
-        /**
-         * # DBAddr <URL-style database description>
-         * # Options (type, host, database name, port, user and password) 
-         * # to connect to SQL database.
-         * # Should be used before any other commands.
-         * # Has global effect for whole config file.
-         * # Format:
-         * #DBAddr <DBType>:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/[?dbmode=mode]
-         */
-        'DBAddr' => 'sqlite3://$(DBPath)',
-        /**
-         * # LocalCharset <charset>
-         * # Defines the charset which will be used to store data in the database.
-         * # All other character sets will be converted into the given charset.
-         * # Take a look into mnoGoSearch documentation for detailed explanation 
-         * # how to choose a LocalCharset depending on languages used on your site(s).
-         * # This command should be used once and takes global effect for the config file.
-         * # Only most popular charsets used in Internet are written here.
-         * # Take a look into the documentation to check the whole list of
-         * # supported charsets.
-         */
-        'LocalCharset' => 'UTF-8',
-        /**
-         * # CrossWords yes/no
-         * # Whether to build CrossWords index
-         * # Default value is no
-         */
-        'CrossWords' => 'yes',
-        /**
-         * # Disallow [Match|NoMatch] [NoCase|Case] [String|Regex] <arg> [<arg> ... ]
-         * # Use this to disallow URLs that match (doesn't match) given argument.
-         * # The meaning of first three optional parameters is exactly the same 
-         * # with "Allow" command.
-         * # You can use several arguments for one 'Disallow' command.
-         * # Takes global effect for config file.
-         * Disallow *.js
-         */
-        'Disallow' => array(
-            '*.doc',
-            '*.xls',
-            '*.ppt',
-            '*.pdf',
-            '*.b    *.sh   *.md5  *.rpm',
-            '*.arj  *.tar  *.zip  *.tgz  *.gz   *.z     *.bz2 ',
-            '*.lha  *.lzh  *.rar  *.zoo  *.ha   *.tar.Z',
-            '*.gif  *.jpg  *.jpeg *.bmp  *.tiff *.tif   *.xpm  *.xbm *.pcx',
-            '*.vdo  *.mpeg *.mpe  *.mpg  *.avi  *.movie *.mov  *.wmv',
-            '*.mid  *.mp3  *.rm   *.ram  *.wav  *.aiff  *.ra',
-            '*.vrml *.wrl  *.png  *.ico  *.psd  *.dat',
-            '*.exe  *.com  *.cab  *.dll  *.bin  *.class *.ex_',
-            '*.tex  *.texi *.texinfo',
-            '*.cdf  *.ps',
-            '*.ai   *.eps  *.hqx',
-            '*.cpt  *.bms  *.oda  *.tcl',
-            '*.o    *.a    *.la   *.so ',
-            '*.pat  *.pm   *.m4   *.am   *.css',
-            '*.map  *.aif  *.sit  *.sea',
-            '*.m3u  *.qt',
-            '*.js',
-            // # Exclude Apache directory list in different sort order using "string" match:
-            '*D=A *D=D *M=A *M=D *N=A *N=D *S=A *S=D',
-            // # More complicated case. RAR .r00-.r99, ARJ a00-a99 files 
-            // # and UNIX shared libraries. We use "Regex" match type here:
-            'Regex \.r[0-9][0-9]$ \.a[0-9][0-9]$ \.so\.[0-9]$',
-        ),
-        /**
-         * #AddType [String|Regex] [Case|NoCase] <mime type> <arg> [<arg>...]
-         *   # This command associates filename extensions (for services
-         *   # that don't automatically include them) with their mime types.
-         *   # Currently "file:" protocol uses these commands.
-         *   # Use optional first two parameter to choose comparison type.
-         *   # Default type is "String" "NoCase" (case sensitive string match with
-         *   # '?' and '*' wildcards for one and several characters correspondingly).
-         * AddType image/x-xpixmap     *.xpm
-         */
-        'AddType' => array(
-            'image/x-xpixmap'               => '*.xpm',
-            'image/x-xbitmap'               => '*.xbm',
-            'image/gif'                     => '*.gif',
-            'text/plain'                    => '*.txt  *.pl *.js *.h *.c *.pm *.e',
-            'text/html'                     => '*.html *.htm',
-            'text/xml'                      => '*.xml',
-            'message/rfc822'                => '*.eml *.mht *.mhtml',
-            'text/rtf'                      => '*.rtf',
-            'application/pdf'               => '*.pdf',
-            'application/msword'            => '*.doc',
-            'application/vnd.ms-excel'      => '*.xls',
-            'application/vnd.ms-powerpoint' => '*.ppt',
-            'text/x-postscript'             => '*.ps',
-            'application/unknown'           => '*.*',
-        ),
-        /**
-         * # Document sections.
-         * #
-         * # Format is:
-         * #
-         * #   Section <string> <number> <maxlen> [clone] [sep] [{expr} {repl}]
-         * #
-         * # where <string> is a section name and <number> is section ID
-         * # between 0 and 255. Use 0 if you don't want to index some of 
-         * # these sections. It is better to use different sections IDs
-         * # for different documents parts. In this case during search 
-         * # time you'll be able to give different weight to each part
-         * # or even disallow some sections at a search time.
-         * # <maxlen> argument contains a maximum length of section
-         * # which will be stored in database.
-         * # "clone" is an optional parameter describing whether this
-         * # section should affect clone detection. It can 
-         * # be "DetectClone" or "cdon", or "NoDetectClone" or "cdoff".
-         * # By default, url.* section values are not taken in account
-         * # for clone detection, while any other sections take part
-         * # in clone detection.
-         * # "sep" is an optional argument to specify a separator between
-         * # parts of the same section. It is a space character by default.
-         * # "expr" and "repl" can be used to extract user defined sections,
-         * # for example pieces of text between the given tags. "expr" is
-         * # a regular expression, "repl" is a replacement with $1, $2, etc
-         * # meta-characters designating matches "expr" matches.
-         */
-        'Section' => array(
-                'body                  1       256',
-                'title                 2       256',
-                'meta.keywords         3       256',
-                'meta.description      4       256',
-                'url.file              6       0',
-                'url.path              7       0',
-                'url.host              8       0',
-                'url.proto             9       0',
-                'crosswords            10      0',
-                'Charset               11      32',
-                'Content-Type          12      64',
-                'Content-Language      13      16',
-                'msg.from              18      0',
-                'msg.to                        19      0',
-                'msg.subject           20      0',
-                'CachedCopy            25      64000',
-        ),
-        /**
-         * Server [Method] [SubSection] <URL> [alias]
-         * 
-         */
-        'Server' => array(
-//            'path http://www.dbpower.com.hk/ch/news/news-finance-news-outreach/',
-//            'path http://www.88iv.com/tc/media_outreach_news.html'
-        ),
-        /**
-         * for chinese charset
-         */
-        'Segmenter' => 'cjk',
-    );
-    
-    var $exOptions = array(
-        'Allow' => '',
-        'Disallow' => '',
-    );
-    /*
-    * Where are the executables of htsearch, htdig, htmerge, htfuzzy
-    * located? They should be in the same directory. It does not need
-    * to be in the original instalation directory.
-    */
-    var $varDir_path = "mnogosearch";
-//    var $DBPath = "";
-    /**
-     * configuration file and path
-     * @var type 
-     * 
-     */
-    var $configuration_path = '';
-    var $configuration_file = '';
-    var $db_path = '';
-    
-    function getAuth() 
-    {
-        
-        $au = $this->getAuthUser();
-        if (!$au) {
-             $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        $this->authUser = $au;
-        
-        // check that it's a supplier!!!! 
-        
-        return true; 
-    }
-    
-    
-    function get()
-    {
-        $this->post(); //for testing only
-    }
-    
-    function post()
-    {
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $this->varDir_path = $storedir."/".$this->varDir_path;
-        $this->configuration_path = $this->varDir_path.'/conf/';
-        $this->db_path = $this->varDir_path.'/db/';
-//        print_r($this->database_dir_path);
-        if(!is_dir($this->varDir_path)){
-            if(!mkdir($this->varDir_path, 0777, true)){
-                echo "it was not specified a valid database directory \n";
-                exit;
-            }
-        }
-        
-        if(!is_dir($this->db_path)){
-            if(!mkdir($this->db_path, 0777, true)){
-                echo "it was not specified a valid configuration directory \n";
-                exit;
-            }
-        }
-        chmod($this->db_path, 0777);
-        
-        
-        if(!is_dir($this->configuration_path)){
-            if(!mkdir($this->configuration_path, 0777, true)){
-                echo "it was not specified a valid configuration directory \n";
-                exit;
-            }
-        }
-        chmod($this->configuration_path, 0777);
-        
-//        exit;
-        $autoImport = DB_DataObject::factory('pressrelease_auto_import');
-        $autoImport->use_local_search = 1;
-        
-//        $this->DBPath 
-        
-//        
-//        $urls = $autoImport->fetchAll();
-//        $site = $urls;
-//        $sites = array();
-        foreach($autoImport->fetchAll() as $item){
-            $u = parse_url($item->url);
-//            print_r($u);
-            $this->options['DBAddr'] = str_replace('$(DBPath)', $this->db_path.$u['host'].'.sqlite3/', $this->options['DBAddr']);
-//            print_r($u);
-            
-            $lsu = explode(',', $item->local_search_url);
-            
-            if(!empty($item->local_search_allow)){
-                $this->exOptions['Allow'] = array(
-                    $lsu[0],
-                    $item->local_search_allow,
-                );
-                $this->exOptions['Disallow'] = 'http://'.$u['host'].'/*';
-            }
-            
-            foreach($lsu as $k=>$l){
-                $lsu[$k] = 'path '.$l;
-            }
-            
-            $this->options['Server'] = $lsu;
-            
-            $this->configuration_file = $this->configuration_path.$u['host'].'.conf';
-            
-            if(!$this->generateConfiguration()){
-                echo 'generating configuration error.';
-                exit;
-            }
-            
-        }
-        
-        //must match this format 
-//        88iv
-//        Server path http://www.88iv.com/tc/media_outreach_news.html
-//        Allow http://www.88iv.com/tc/media_outreach_news.html
-//        Allow  *media_outreach*
-//        Disallow  http://www.88iv.com/*
-        
-//        bizwireexpress
-//        Server path http://www.bizwireexpress.com/MediaOutreach.php
-//        Allow http://www.bizwireexpress.com/MediaOutreach.php
-//        Allow  *showstoryMediaOutreach.php*
-//        Disallow http://www.bizwireexpress.com/*
-        
-        //businesses
-//        http://www.businesses.com.au/business-updates/mediaoutreachcom/
-        
-        //hksilicon
-//        Server path http://www.hksilicon.com/kb/authors/1647/Media-OutReach
-//        Server path http://www.hksilicon.com/kb/articles/
-//        Allow http://www.hksilicon.com/kb/authors/1647/Media-OutReach
-//        Allow  http://www.hksilicon.com/kb/articles/*
-//        Disallow http://www.hksilicon.com/*
-
-        
-        
-        //cannot do 
-//        http://www.asiatoday.com/pressreleasebycategory/3319
-//        http://sharejunction.com/sharejunction/news.htm?recordCount=0
-
-        
-        if($this->cacheIndex($this->configuration_file)){
-            $ret = $this->search('media', 'www.businesses.com.au');
-            print_r($ret);
-        }
-        
-        
-        
-        exit;
-        
-    }
-    
-    function generateConfiguration()
-    {
-//        if(!is_dir($this->options['VarDir'])){
-//            echo "it was not specified a valid database directory\n";
-//            return false;
-//        }
-        
-        if(empty($this->options["Server"])){
-            echo "it was not specified a valid start url\n";
-            return false;
-        }
-        
-        //if config file is not generated
-        if(!file_exists($this->configuration_file)){
-            //create empty file at first time
-            touch($this->configuration_file);
-            chmod($this->configuration_file, 0777);
-        }
-        
-        $configuration = "";
-        foreach($this->options as $k=>$o){
-            if(is_array($o)){
-                foreach($o as $opt){
-                    if(empty($opt)){
-                        continue;
-                    }
-                    $configuration .= $k.' '.$opt."\n";
-                }
-                continue;
-            }
-            $configuration .= $k.' '.$o."\n";
-        }
-        
-        foreach($this->exOptions as $k=>$o){
-            if(is_array($o)){
-                foreach($o as $opt){
-                    if(empty($opt)){
-                        continue;
-                    }
-                    $configuration .= $k.' '.$opt."\n";
-                }
-                continue;
-            }
-            $configuration .= $k.' '.$o."\n";
-        }
-        
-        if(!($file=fopen($this->configuration_file,"w"))){
-            //if not existing then should create the new one...
-            echo "could not open the configuration file \"".$this->configuration_file."\" for writing \n";
-            return false;
-        }
-
-        if(strcmp($configuration,"") && (!fwrite($file,$configuration) || !fclose($file))){
-            echo "could not write to the configuration file \n";
-            return false;
-        }
-        
-        // after generated the config file then create the database
-        require_once 'System.php';
-        $indexer = System::which('/usr/sbin/indexer');
-        
-        if (empty($indexer)) {
-            echo "The indexer not found, please install it.\n";
-            return false;
-        }
-        
-        $cmd = "$indexer -Ecreate ".$this->configuration_file;
-        $ret = `$cmd`;
-        
-        echo "The config file are generated.\n";
-        
-//        print_r($_REQUEST);
-        return true;
-    }
-
-    function cacheIndex($conf)
-    {
-        require_once 'System.php';
-        $indexer = System::which('/usr/sbin/indexer');
-        
-        if (empty($indexer)) {
-            echo "The indexer not found, please install it.\n";
-            return false;
-        }
-
-        /**
-         * indexer -Ecreate // create the sqlite3 table
-         * 
-         * indexer -m // get the site
-         * 
-         * indexer --index  // cache and insert to db
-         * 
-         */
-        
-        $cmd = "$indexer -m $conf";
-        echo "indexing $cmd ....\n";
-        $ret = `$cmd`;
-//        print_r($ret);
-        
-        echo "indexed ......\n";
-        
-        $cmd = "$indexer --index $conf";
-        $ret = `$cmd`;
-//        'indexer --index'
-//        print_r($ret);
-        return true;
-    }
-
-//    function search($words,$options,&$results)
-    function search($str,$domain)
-    {
-        
-        /*
-         * chinese search format must add " and space bar
-         * '"適 合 任 何 場 合"'
-         */
-//        $str = '"適 合 任 何 場 合"';
-//        $str = '"Philip Pearce"';
-        
-        $loc = str_replace('$(DBPath)', $this->db_path.$domain.'.sqlite3/', $this->options['DBAddr']);
-//        print_r($loc);
-//        exit;
-        $udm_agent = udm_alloc_agent($loc);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_CHARSET, "utf-8");
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_BROWSER_CHARSET, "utf-8");
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_SEARCH_MODE, UDM_MODE_ALL);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PHRASE_MODE, UDM_PHRASE_ENABLED);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PAGE_SIZE, 100);
-        
-        $res = udm_find($udm_agent, $str);
-        $totalMatches = udm_get_res_param($res,UDM_PARAM_FOUND);
-        $pageSize = udm_get_res_param($res,UDM_PARAM_NUM_ROWS);
-        $firstRow = udm_get_res_param($res,UDM_PARAM_FIRST_DOC);
-        $lastRow = udm_get_res_param($res,UDM_PARAM_LAST_DOC);
-        print_r($totalMatches);
-        $ret = array();
-        if($totalMatches > 0){
-            $row=0;
-            for ($i=$firstRow-1;$i<$lastRow;$i++) {
-                $row++;
-                echo "Match $row:";
-                echo 'Url: ';
-                $url = udm_get_res_field($res,$i,UDM_FIELD_URL);
-                $ret[$i]['url'] = $url;
-                echo "<a href=\"$url\">$url</a>";
-                echo "\nTitle: <b>";
-                $title = udm_get_res_field($res, $i,UDM_FIELD_TITLE);
-                echo $title;
-                $ret[$i]['title'] = $title;
-                echo "</b>\nMeta Desc:";
-                $desc = udm_get_res_field($res, $i,UDM_FIELD_DESC);
-                echo $desc;
-                $ret[$i]['meta'] = $desc;
-                echo "\nPage Text: <b>\n";
-                $text = udm_get_res_field($res, $i,UDM_FIELD_TEXT);
-                echo $text;
-                $ret[$i]['text'] = $text;
-                echo "</b>\n<hr>\n";
-            }
-        }
-        
-        return $ret;
-    }
-    
-}
diff --git a/PressRelease/HtDig/templates/footer.html b/PressRelease/HtDig/templates/footer.html
deleted file mode 100644 (file)
index 281ad29..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-$(PAGEHEADER)
-$(PREVPAGE) $(PAGELIST) $(NEXTPAGE)
-<hr noshade size="4">
-<a href="http://www.htdig.org/">
-<img src="/htdig/htdig.gif" border="0" alt="">ht://Dig $(VERSION)</a>
-</body></html>
diff --git a/PressRelease/HtDig/templates/header.html b/PressRelease/HtDig/templates/header.html
deleted file mode 100644 (file)
index 026bff2..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html><head><title>Search results for '$&(WORDS)'</title></head>
-<body bgcolor="#eef7ff">
-<h2><img src="/htdig/htdig.gif" alt="ht://Dig">
-Search results for '$&(LOGICAL_WORDS)'</h2>
-<hr noshade size="4">
-<form method="get" action="$(CGI)">
-<font size="-1">
-<input type="hidden" name="config" value="$&(CONFIG)">
-<input type="hidden" name="restrict" value="$&(RESTRICT)">
-<input type="hidden" name="exclude" value="$&(EXCLUDE)">
-Match: $(METHOD)
-Format: $(FORMAT)
-Sort by: $(SORT)
-<br>
-Refine search:
-<input type="text" size="30" name="words" value="$&(WORDS)">
-<input type="submit" value="Search">
-</font>
-</form>
-<hr noshade size="1">
-<strong>Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches.
-More <img src="/htdig/star.gif" alt="*">'s indicate a better match.
-</strong>
-<hr noshade size="1">
diff --git a/PressRelease/HtDig/templates/nomatch.html b/PressRelease/HtDig/templates/nomatch.html
deleted file mode 100644 (file)
index 2616ceb..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html><head><title>No match for '$&(LOGICAL_WORDS)'</title></head>
-<body bgcolor="#eef7ff">
-<h1><img src="/htdig/htdig.gif" alt="ht://Dig">
-Search results</h1>
-<hr noshade size="4">
-<h2>No matches were found for '$&(LOGICAL_WORDS)'</h2>
-<p>
-Check the spelling of the search word(s) you used.
-If the spelling is correct and you only used one word,
-try using one or more similar search words with "<strong>Any</strong>."
-</p><p>
-If the spelling is correct and you used more than one
-word with "<strong>Any</strong>," try using one or more similar search
-words with "<strong>Any</strong>."</p><p>
-If the spelling is correct and you used more than one
-word with "<strong>All</strong>," try using one or more of the same words
-with "<strong>Any</strong>."</p>
-<hr noshade size="4">
-<form method="get" action="$(CGI)">
-<font size="-1">
-<input type="hidden" name="config" value="$&(CONFIG)">
-<input type="hidden" name="restrict" value="$&(RESTRICT)">
-<input type="hidden" name="exclude" value="$&(EXCLUDE)">
-Match: $(METHOD)
-Format: $(FORMAT) 
-Sort by: $(SORT)
-<br>
-Refine search:
-<input type="text" size="30" name="words" value="$&(WORDS)">
-<input type="submit" value="Search">
-</font>
-</form>
-<hr noshade size="4">
-<a href="http://www.htdig.org/">
-<img src="/htdig/htdig.gif" border="0" alt="">ht://Dig $(VERSION)</a>
-</body></html>
diff --git a/PressRelease/HtDig/templates/syntax.html b/PressRelease/HtDig/templates/syntax.html
deleted file mode 100644 (file)
index 3e36a37..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html><head><title>Error in Boolean search for '$&(WORDS)'</title></head>
-<body bgcolor="#eef7ff">
-<h1><img src="/htdig/htdig.gif" alt="ht://Dig">
-Error in Boolean search for '$&(LOGICAL_WORDS)'</h1>
-<hr noshade size="4">
-Boolean expressions need to be 'correct' in order for the search
-system to use them.
-The expression you entered has errors in it.<p>
-Examples of correct expressions are: <strong>cat and dog</strong>, <strong>cat
-not dog</strong>, <strong>cat or (dog not nose)</strong>.<br>Note that
-the operator <strong>not</strong> has the meaning of 'without'.
-<blockquote><strong>
-$(SYNTAXERROR)
-</strong></blockquote>
-<hr noshade size="4">
-<form method="get" action="$(CGI)">
-<font size="-1">
-<input type="hidden" name="config" value="$&(CONFIG)">
-<input type="hidden" name="restrict" value="$&(RESTRICT)">
-<input type="hidden" name="exclude" value="$&(EXCLUDE)">
-Match: $(METHOD)
-Format: $(FORMAT)
-Sort: $(SORT)
-<br>
-Refine search:
-<input type="text" size="30" name="words" value="$&(WORDS)">
-<input type="submit" value="Search">
-</font>
-</form>
-<hr noshade size="4">
-<a href="http://www.htdig.org/">
-<img src="/htdig/htdig.gif" border="0" alt="">ht://Dig $(VERSION)</a>
-</body></html>
-
diff --git a/PressRelease/HtDig/templates/template.html b/PressRelease/HtDig/templates/template.html
deleted file mode 100644 (file)
index ae7fd49..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<!--
-To change this license header, choose License Headers in Project Properties.
-To change this template file, choose Tools | Templates
-and open the template in the editor.
--->
-<html>
-    <head>
-        <title>TODO supply a title</title>
-        <meta charset="UTF-8">
-        <meta name="viewport" content="width=device-width">
-    </head>
-    <body>
-        <div>TODO write content</div>
-    </body>
-</html>
diff --git a/PressRelease/Import/Debug.php b/PressRelease/Import/Debug.php
deleted file mode 100644 (file)
index aa2c7ac..0000000
+++ /dev/null
@@ -1,234 +0,0 @@
-<?php
-
-/**
- * Description of Debug
- *
- * @author chris
- */
-require_once 'Pman.php';
-class Pman_PressRelease_Import_Debug extends Pman {
-    //put your code here
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    function get()
-    {
-        if(!empty($_REQUEST['tt'])){
-            $pai = DB_DataObject::factory('pressrelease_auto_import');
-//            $ppppp = parse_url('http://www.businesses.com.au/business-updates/mediaoutreachcom ');
-//            print_r($ppppp);exit;
-            foreach($pai->fetchAll() as $ai){
-
-                $pu = parse_url(trim($ai->url));
-                print_r($ai);
-                print_r($pu);
-                
-                $dom = preg_replace('/^www\./', '' ,$pu['host']);
-                print_r("============== new line ========================");
-                
-//                if($arg['media_name'] == $dom){
-//                    $isSeed = true;
-//                    break;
-//                }
-            }
-            exit;
-        }
-        
-        
-        switch($_REQUEST['action']){
-            case '_download':
-                $this->downloadArticle();
-                break;
-            case '_rebuild':
-                $this->rebuildArticle();
-                break;
-            case '_diff':
-                $this->diffArticle();
-                break;
-            case '_linkcheck':
-                $this->linkCheck();
-                break;
-        }
-        
-    }
-    
-    function rebuildArticle()
-    {
-        $reader = DB_DataObject::factory('reader_article');
-        if(!$reader->get($_REQUEST['reader_id'])){
-            $this->jerr('wrong press release id.');
-        }
-        
-        $reader->debug_on = true;
-//        $strs = file_get_contents('/home/press/rss/2014/05/05/60449.unsafe.html');
-//        var_dump($strs);
-//        var_dump(mb_detect_encoding($strs));
-//        exit;
-        header("Content-type: text/html");
-        $reader->download($this);
-        
-        echo "rebuilt";
-        
-        
-        exit;
-//        $this->downloadArticle();
-        
-    }
-    
-    function diffArticle()
-    {
-        $pr = DB_DataObject::Factory('Projects');
-        if (!$pr->get($_REQUEST['project_id'])) {
-            $this->jerr("could not get project");
-        }
-        
-        
-        $release = DB_DataObject::factory('pressrelease_entry');
-        if(!$release->get($pr->pressrelease_id)){
-            $this->jerr('wrong press release id.');
-        }
-        
-        $reader = DB_DataObject::factory('reader_article');
-        if(!$reader->get($_REQUEST['reader_id'])){
-            $this->jerr('wrong reader article id.');
-        }
-        if ($reader->language != $release->language) {
-            $pid= $release->id;
-            $release = DB_DataObject::factory('pressrelease_entry');
-            $release->parent_id = $pid;
-            $release->language = $reader->language;
-            if (!$release->find(true)) {
-                $this->jerr("could not find release that matches with language ". $reader->language);
-            }
-        }
-        //var_dump($_REQUEST['_debug']);
-        //print_r(array($reader,$release));
-        if (!empty($_REQUEST['_debug'])) {
-            
-            $release->debug_on = 1;
-            
-            
-            
-        }
-        $percent = $release->diffWords($reader, $release);
-        
-        $this->jok($percent);
-    }
-    
-    function linkCheck()
-    {
-        $pr = DB_DataObject::Factory('Projects');
-        if (!$pr->get($_REQUEST['project_id'])) {
-            $this->jerr("could not get project");
-        }
-        
-        
-        $release = DB_DataObject::factory('pressrelease_entry');
-        if(!$release->get($pr->pressrelease_id)){
-            $this->jerr('wrong press release id.');
-        }
-        
-        $reader = DB_DataObject::factory('reader_article');
-        if(!$reader->get($_REQUEST['reader_id'])){
-            $this->jerr('wrong reader article id.');
-        }
-        if ($reader->language != $release->language) {
-            $pid= $release->id;
-            $release = DB_DataObject::factory('pressrelease_entry');
-            $release->parent_id = $pid;
-            $release->language = $reader->language;
-            if (!$release->find(true)) {
-                $this->jerr("could not find release that matches with language ". $reader->language);
-            }
-        }
-        
-        
-        $data = file_get_contents( $reader->toFilenameUnsafe() );
-        
-        libxml_use_internal_errors (true);
-        $doc = new DOMDocument();
-        $doc->loadHTML($data);
-//        $doc->loadHTML($data);
-        $xpath = new DOMXpath($doc);
-        $links = array();
-        
-        $ar = parse_url($reader->real_url);
-        $host  = $ar['host'];
-        
-          require_once 'HTML/WordDiff.php';
-         
-        $wd = new HTML_WordDiff(array(
-            'lang' => $reader->language,
-            'string' =>  '<div>' . $release->headline .'</div>'
-        ));
-        // echo '<PRE>'; print_r($wd);
-        $skip = array();
-        
-        foreach ($xpath->query('//a[@href]') as $a) {
-            
-            $contents = $a->ownerDocument->saveHTML($a);
-            
-            //var_dump($a->getAttribute('href'));
-            $url = $reader->relPath($reader->real_url , $a->getAttribute('href'));
-            
-            $ar = parse_url($url);
-            if (!in_array(strtolower($ar['scheme']), array('http','https'))) {
-                continue;
-            }
-            
-            
-            if ($ar['host'] != $host) {
-                continue;
-            }
-            if (strlen($contents) < 10) {
-                continue;
-            }
-            // check contents against release headline..
-            
-            $score = $wd->compare(array('string'=>$contents));
-            
-            if ($score < 20) {
-                $skip[$url] =  "$score : $contents";
-                continue;
-            }
-            //echo '<PRE>';print_R($wd);
-            
-            
-            $links[$url ] = "$score : $contents";
-        }
-        
-        //echo '<PRE>'.htmlspecialchars(print_R(array('links' => $links,'skip'=>$skip),true)).'</PRE>';exit;
-         
-        $this->jok('<PRE>'.htmlspecialchars(print_R(array('links' => $links,'skip'=>$skip),true)).'</PRE>');
-    }
-    
-    
-    
-    
-    function downloadArticle()
-    {
-        $reader = DB_DataObject::factory('reader_article');
-        if(!$reader->get($_REQUEST['reader_id'])){
-            $this->jerr('wrong reader article id.');
-        }
-        
-        require_once 'File/Convert.php';
-        $fc = new File_Convert($reader->toFilenameUnsafe(), 'text/html');
-        $fc->convert('text/html');
-        $fc->serve();
-        exit;
-    }
-}
diff --git a/PressRelease/Import/Journalist.php b/PressRelease/Import/Journalist.php
deleted file mode 100644 (file)
index aa1b010..0000000
+++ /dev/null
@@ -1,332 +0,0 @@
-<?php
-
-/**
- * generic import routine..
- *
- * - upload a file..
- *
- * - preview the result. / edit?
- *
- * - import..
- * 
- *
- */
-
-
-require_once 'Pman.php';
-class Pman_PressRelease_Import_Journalist extends Pman
-{
-    var $cli  = false;
-    
-    var $map = array(
-        // in excell.      =.  database name
-        'name' =>         'firstname'                  ,
-        'first name' => 'firstname'                    ,
-        'family name'  =>              'lastname'                      ,
-        'mobile'       =>              'phone_mobile'                  ,
-        'extension'    =>              'phone_direct'                  ,
-        'general line' =>              'phone'                         ,
-        'office telephone' => 'phone',
-         'private cellphone no' => 'phone_mobile'   ,
-        'fax'  =>              'fax'                           ,
-        'job title'    =>              'role'                          ,
-        'email'        =>              'email'                         ,
-        'email address' =>   'email'                           ,
-        'website'      =>              'url'                           ,
-        //'notes'      =>              'remarks'                       ,
-         'publication' =>              'publication_name'              ,
-         'publication name'    =>              'publication_name'              ,
-           'country'   =>              'country'                       ,
-        'language'     =>              'language'                      ,
-        'scope'        =>              'publication_scope'             ,
-        'publication scope'    =>              'publication_scope'             ,
-         'media type'  =>              'media_type'                    ,
-        'publication type' => 'media_type',
-
-        'news beat'    =>              'news_beat'                     ,
-        'address'      =>              'remarks'                       ,
-        'comments'     =>              'remarks'                       ,
-        'publication language' => 'publication_lang',
-        
-       
-        
-    );
-    
-     
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    function post()
-    {
-        
-           // should handle uploaded file..
-        if (empty($_FILES['imageUpload']['tmp_name']) || 
-            empty($_FILES['imageUpload']['name']) || 
-            empty($_FILES['imageUpload']['type'])
-        ) {
-            $this->jerr ("Missing file details");
-            exit;
-        }
-        
-        PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
-    
-          
-        $this->transObj = DB_DataObject::factory('core_enum');
-        
-        $this->transObj->query('BEGIN');
-        
-        // first convert the file to a readable format..
-        //$rows = $this->readXLS("/home/alan/Downloads/oll_example.xls") ;
-        $rows = $this->readXLS($_FILES['imageUpload']['tmp_name']) ;
-        $ret = $this->processRows($rows);
-        $this->jdata($this->flat($ret));
-        
-    }
-    
-    
-    function get()
-    {
-        $rows = $this->readXLS("/home/alan/Downloads/singapore journalists 2011v1.xls") ;
-        $ret = $this->processRows($rows);
-        if ($this->cli) { 
-            print_r($this->flat($ret));
-        }
-        $this->jdata($this->flat($ret));
-        exit;
-        
-    }
-    function processRows($rows)
-    { 
-        $ret = array();
-        foreach($rows as $r) {
-            $ret[] = $this->createJ($r);
-            
-        }
-        return $ret;
-    }        
-    
-    function flat($ar) {
-        
-        foreach($ar as $i=>$o) {
-            $add = array();
-            foreach($o as $k=>$v) {
-                if (is_object($v) || is_array($v) || $k[0] == '_') {
-                    continue;
-                }
-                $add[$k] = $v;
-            }
-            $ar[$i] = $add;
-        }
-        return $ar;
-    }
-    var $seq = 1;
-    function createJ($r)
-    {
-        
-        $j = DB_DataObject::Factory('pressrelease_contact');
-        
-        
-        // map is avail. colums, right is required..
-        
-        $req = array();
-        $got = array();
-        foreach($this->map as $v=>$k) {
-            $req[$k] = 1;
-            if (!isset($r[$v])) {
-                continue;
-            }
-            $got[$k] = 1;
-            if (!empty($j->{$k})) {
-                $j->{$k} .= ", " . $r[$v];
-                continue;
-            }
-            $j->{$k} = $r[$v];
-            
-        }
-        foreach(array_keys($got) as $v) {
-            if (isset($req[$v])) {
-                unset($req[$v]);
-            }
-        }
-        if (!empty($req)) {
-                $this->jerr("Missing columns for '". implode ("', '", array_keys($req)). "'");
-        }
-         
-        // language...
-        $l = $j->language;
-        $j->contact_language = strtolower(substr($l,0,2));
-        $bits = explode('/', $l);
-        if (count($bits) > 1) {
-            $j->contact_language_alt =  strtolower(substr($bits[1],0,2));
-        }
-        if ($j->contact_language == 'bi') {
-            $j->contact_language = 'zh_HK';
-            $j->contact_language = 'en';
-        }
-        if ($j->contact_language == 'ch') {
-            $j->contact_language = 'zh_HK';
-        }
-        if ($j->contact_language_alt == 'ch') {
-            $j->contact_language_alt = 'zh_HK';
-        }
-        $j->publication_lang = $j->contact_language;
-        
-        
-        $j->category_type_id = $this->catId('Type of Database', 'Journalist'); // journalist..
-        //$j->country = 'HK'; ... they have to put this in..
-        
-        $j->category_scope_id = $this->catId('Publication Scope', $j->publication_scope);
-        $j->category_scope_id_name = $j->publication_scope;
-        
-        
-        $j->category_media_id = $this->catId('Type of Media', $j->media_type);
-        $j->category_media_id_name = $j->media_type;
-        
-        
-        $j->news_beat_id =  $this->catId('News Beat', $j->news_beat);
-        //$j->news_beat = $j->news_beat;
-        
-        
-        $jj = clone($j);
-        if ($jj->find(true)) {
-            $j->id = $jj->id;
-            return $j;
-        }
-        if (empty($_REQUEST['confirmed'])) {
-            $j->id = ($this->seq++) * -1;
-            return $j;
-        }
-        
-        // we have a confirmed line..
-        $j->insert();
-        
-        // add the item to the news beat..
-        
-        $b = DB_DataObject::factory('pressrelease_beats');
-        $b->category_id =  $this->catId('News Beat', $j->news_beat);
-        $b->contact_id = $j->id;
-        if ($b->count()) {
-            return $j;
-        }
-        $b->insert();
-        return $j;
-         
-    }
-    function catId($top, $sub)
-    {
-        static $tops = array();
-        static $subs = array();
-        if (!isset($tops[$top])) {
-            $c = DB_DataObject::Factory('pressrelease_category');
-            $c->get('name' , $top);
-            $tops[$top] = $c->id;
-            $subs[$top] = array();
-        }
-        
-        if (isset($subs[$top][$sub])) {
-            return $subs[$top][$sub];
-        }
-        
-        $c = DB_DataObject::Factory('pressrelease_category');
-        $c->parent_id = $tops[$top];
-        $c->name = $sub;
-        if ($c->find(true)) {
-            $subs[$top][$sub] = $c->id;
-            return $c->id;
-        }
-        $c->insert();
-        $subs[$top][$sub] = $c->id;
-        return $c->id;
-        
-        
-    }
-    
-    
-    
-    function readXLS($file) {
-        
-        require_once 'System.php';
-        $ssconvert = System::which('ssconvert');
-        if (!$ssconvert) die("ssconvert not installed");
-        $csv = $this->tempName('csv');
-        $cmd = "$ssconvert  -T Gnumeric_stf:stf_csv ". escapeshellarg($file) . ' '.$csv;
-        
-        //echo $cmd;
-        $data= `$cmd`;
-        if (!file_exists($csv)) {
-            $this->jerr("Failed to make file . \n".
-                        $cmd . "\n" .
-                        $data
-                        );
-            
-            
-        }
-        //echo $data;
-        $fh = fopen($csv, 'r');
-        if (!$fh) {
-            $this->jerr("file invalid");
-        }
-        $rows = array();
-        $head = false;
-        $blank = 0;
-        while (false !== ($row = fgetcsv($fh))) {
-             
-            if ($head === false) {
-                
-                $h = $row;
-                // skip header lines.
-                array_shift($h);
-                if (!strlen(implode('', $h))) {
-                    continue;
-                }
-                // how many empty rows..
-                if (count(explode(',',(rtrim(implode(',', $h), " ,")))) < 3) {
-                    continue;
-                }
-                
-                $head = array();
-                foreach($row as $i=>$c) {
-                   $c = preg_replace('/[\t \n]+/', ' ', $c);
-                   $head[$i] = strtolower(trim($c));
-                }
-                continue;
-            }
-            
-            if (!strlen(trim(implode('', $h)))) {
-                $blank++;
-                if ($blank > 3) { 
-                    break;
-                }
-                continue;
-            }
-            
-            $blank = 0;
-            $rrow = array();
-            foreach($row as $i=>$c) {
-                $c = preg_replace('/[\t \n]+/', ' ', $c);
-                $rrow[$head[$i]] = trim($c);
-            }
-           // var_dump($row);
-          //  print_r($max);
-            $rows[] = $rrow;
-        }
-        unlink($csv);
-        return $rows;
-        
-        
-    }
-    
-}
\ No newline at end of file
diff --git a/PressRelease/Import/LocalSearch/Fetch.php b/PressRelease/Import/LocalSearch/Fetch.php
deleted file mode 100644 (file)
index 7f5d16a..0000000
+++ /dev/null
@@ -1,450 +0,0 @@
-<?php
-
-/**
- * Description of LocalFetch
- *
- * @author chris
- */
-require_once 'Pman/PressRelease/Import/LocalSearch/Init.php';
-
-class Pman_PressRelease_Import_LocalSearch_Fetch extends Pman_PressRelease_Import_LocalSearch_Init
-{
-    //put your code here
-    
-    var $cli  = false;
-    
-    static $cli_desc = "Local Search Engine -- Fetch  requires search id as argument";
-    
-    static $cli_opts = array(
-         
-    );
-    var $addCount = 0;
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    function get($id)
-    {
-        $this->sessionState(0);
-        if(!$this->cli){
-            header("Content-type: text/plain");
-        }
-        
-        $autoImport = DB_DataObject::factory('pressrelease_auto_import');
-        
-        if(!$autoImport->get($id)){
-            echo "The auto import ID is wrong. \n";
-            exit;
-        }
-        $this->autoImport = $autoImport;
-//        $this->search(';;;;');exit;
-        require_once 'System.php';
-        
-        $this->createConfig();
-        
-        if ($this->is_updated) {
-            $this->resetDatabase();
-        }
-        
-        $this->cacheIndex();// for test only
-//        exit;
-        $this->searchForArticles();
-        
-        
-        exit;
-        // should include this class and run checkindex method
-    }
-    
-    function createConfig()
-    {
-        // generate the config file data.
-        // if config has changed or did not exist before.. return true
-        // if no change return false
-        if(!$this->initSetting()){
-            echo "Init Setting error.. \n";
-            exit;
-        }
-        
-        if(!$this->buildConfiguration()){
-            exit;
-        }
-        
-        
-        
-    }
-    function resetDatabase()
-    {
-        $indexer = System::which('/usr/sbin/indexer');
-        
-        if (empty($indexer)) {
-            echo "The indexer not found, please install it. \n";
-            return false;
-        }
-        
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $u = parse_url($this->autoImport->local_search_url);
-        $conf = $storedir.'/mnogosearch/conf/'.$this->autoImport->id.'_'.$this->autoImport->language.'.conf';
-        
-        if(!file_exists($conf)){
-            echo "Config file not existing...  \n Please enable local Search and run Init  \n";
-            return false;
-        }
-        
-        $cmd = "$indexer -Cw ". escapeshellarg($conf);
-        echo "Database $conf reset ... \n";
-//        $ret = `$cmd`;
-        if($this->cli){ 
-            $ret = `$cmd`;
-        }else{
-            passthru($cmd);
-        }
-        
-    }
-    
-    
-    function searchForArticles()
-    {
-        
-        // loop through recent press releaese in the same language as this
-        
-        $press = DB_DataObject::factory('pressrelease_entry');
-        $press->whereAdd("publish_dt > (NOW() - INTERVAL {$this->limitDay} DAY) AND publish_dt < NOW()");
-        $pr = $press->fetchAll();
-        
-        if(empty($pr)){
-            echo "No any new release. \n";
-            exit;
-        }
-        
-        foreach($pr as $release){
-            
-            //no import then ignore it
-            if($this->autoImport->language != $release->language){
-                
-                $r_lang = ($release->language == 'zh_HK' || $release->language == 'zh_TW' ) ? 'tc' : false;
-                $ai_lang = ($this->autoImport->language == 'zh_HK' || $this->autoImport->language == 'zh_TW' ) ? 'tc' : false;
-                
-                if(!$r_lang || !$ai_lang){
-                    echo "No any Local search engine by ({$release->language}) language -- release ({$release->id}) skipping \n";
-                    continue;
-                }
-            }
-            
-            if($this->search($release)){
-                echo "release ({$release->id}) created -- {$release->headline}  \n";
-            }
-            
-        }
-        
-        echo "All Done... New Added to Article ({$this->addCount}).. \n";
-        
-        exit;
-        
-        // if we find one
-//           $this->addReaderArticle($pressrelease, $data);
-        
-        
-    }
-    
-    function search($release)
-    {
-//        $release = DB_DataObject::factory('pressrelease_entry');
-//        $release->get(892);
-//        return true;
-        /*
-         * chinese search format must add " and space bar
-         * '"適 合 任 何 場 合"'
-         */
-//        $str = '"適 合 任 何 場 合"';
-//        $str = '"Philip"';
-        
-        $signleWordMode = array('tc', 'zh_TW', 'zh_HK', 'zh_CN', 'ja');
-        require_once 'HTML/WordDiff.php';
-               
-        $str = '"'. $release->headline . '"';
-        
-        if(in_array($release->language, $signleWordMode)){
-//            preg_match_all('/./u', $release->headline, $words);
-            
-            $ddd = new HTML_WordDiff;
-            
-            $str = preg_replace_callback('/'.$ddd->cjkpreg().'/u', array($this, 'addUTF8Word')  , $release->headline);
-            
-//            print_r($str);
-//            preg_match_all('/./u', $testStr, $words);// split the single word
-//            print_r($words[0]);
-//            雅特生科技的全新ATCA系統管理軟件可讓廠商輕易整合複雜的系統,將開發時間縮短達40%
-//            $str = "雅|特|生|科|技|的|全|新|ATCA|系|統|管|理|軟|體|可|讓|廠|商|輕|易|整|合|複|雜|的|系|統|,|將|開|發|時|間|縮|短|達|40%";
-//            $str = '"';
-//            $str.= ''.implode(' ', $words[0]).'"';
-        }
-        
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $u = parse_url($this->autoImport->url);
-        $loc = 'sqlite3://'.$storedir.'/mnogosearch/db/'.$this->autoImport->id.'_'.$this->autoImport->language.'.sqlite3/';
-//        print_r($str);
-//        print_r($loc);
-//        exit;
-        $udm_agent = udm_alloc_agent($loc);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_CHARSET, "utf-8");
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_BROWSER_CHARSET, "utf-8");
-//        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_SEARCH_MODE, UDM_MODE_ANY);
-//        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PHRASE_MODE, UDM_PHRASE_DISABLED);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PAGE_SIZE, 100);
-        
-        echo "Searching... $str \n";
-        $res = udm_find($udm_agent, $str);
-        
-        $totalMatches = udm_get_res_param($res,UDM_PARAM_FOUND);
-        $pageSize = udm_get_res_param($res,UDM_PARAM_NUM_ROWS);
-        $firstRow = udm_get_res_param($res,UDM_PARAM_FIRST_DOC);
-        $lastRow = udm_get_res_param($res,UDM_PARAM_LAST_DOC);
-        
-//        udm_get_res_field(UDM_FIELD_TEXT)
-        
-        if($totalMatches < 1){
-            echo "Not Match with space, trying with |.... \n";
-            $str = preg_replace('/\s+/', '|', trim($str));
-            
-            $res = udm_find($udm_agent, $str);
-            $totalMatches = udm_get_res_param($res,UDM_PARAM_FOUND);
-            $pageSize = udm_get_res_param($res,UDM_PARAM_NUM_ROWS);
-            $firstRow = udm_get_res_param($res,UDM_PARAM_FIRST_DOC);
-            $lastRow = udm_get_res_param($res,UDM_PARAM_LAST_DOC);
-            
-            if($totalMatches < 1){
-                echo "Release ({$release->id}) not matches found -- skipping {$str} \n";
-                return false;
-            }
-        }
-        
-        
-        
-        
-        
-        $ret = array();
-        if($totalMatches > 0){
-            $row=0;
-            echo "Match $totalMatches:  \n";
-            for ($i=$firstRow-1;$i<$lastRow;$i++) {
-                $row++;
-                
-                $url = udm_get_res_field($res,$i,UDM_FIELD_URL);
-                $ret[$i]['url'] = $url;
-                echo "Url: $url  \n";
-                
-                $ret[$i]['title'] = udm_get_res_field($res, $i,UDM_FIELD_TITLE);
-                $ret[$i]['meta'] = udm_get_res_field($res, $i,UDM_FIELD_DESC);
-                $ret[$i]['text'] = udm_get_res_field($res, $i,UDM_FIELD_TEXT);
-                
-                $uid = udm_get_res_field($res, $i, UDM_FIELD_URLID);
-                $handle = new SQLite3($storedir.'/mnogosearch/db/'.$this->autoImport->id.'_'.$this->autoImport->language.'.sqlite3'); 
-                $results = $handle->query('select * from urlinfo where url_id = '.$uid);
-        
-                $tmp = '';
-                while ($row = $results->fetchArray()) {
-                    if($row['sname'] != 'CachedCopy'){
-                        continue;
-                    }
-
-                    if(!empty($row['sval'])){
-                        $tmp = $row['sval'];
-                    }
-
-                }
-                // if the page is the 'start' page - then ignore it...
-                if ($this->autoImport->local_search_url == $url) {
-                    unset($ret[$i]);
-                    echo "ignore !!! matches the base for that search\n\n";
-                    continue;
-                    
-                }
-                
-                
-                //if this does not work 
-                //please change php.ini 
-                //zlib.output_com pression = On
-                
-                $a = gzuncompress(base64_decode($tmp));
-                
-                if (empty($a)) {
-                    
-                    $fn = "/tmp/search-engine-cache-" . md5($url) . 'gz';
-                    echo "Stored data failed. - using url and cache $fn\n";
-                    
-                    if (file_exists($fn)) {
-                        $a =  gzuncompress(file_get_contents($fn));
-                    } else {
-                        $a = file_get_contents($url);
-                        file_put_contents($fn,gzcompress($a));
-                    }
-                    
-                }
-                
-                $init = array(
-                    'lang' => $release->language,
-                    'string' => implode('<br/>',array(
-
-                                $release->content,
-//                                $release->content_data,
-//                                $release->headline,
-//                                $release->subheadline,
-//                                $release->content_about,
-//                                $release->content_forward
-                        ))
-                );
-//                print_r($a);
-//                print_r($release->content);exit;
-                $wd = new HTML_WordDiff($init);
-                $percent = $wd->compare(array('string' => $a));
-                
-                if($percent < 35){
-                    unset($ret[$i]);
-                    echo "ignore !!! $percent% \n\n";
-                    continue;
-                }
-                echo "Add $url \n";
-//                echo "ended compare!!! $percent \n\n";
-            }
-        }
-        
-//        print_r($ret);
-//        return true;
-        
-        if(!$this->addReaderArticle($ret, $release)){
-            echo "creating reader error on release ({$release->id}) \n";
-            return false;
-        }
-        
-        return true;
-    }
-    
-//    var $tmpWords = false;
-    function addUTF8Word($s) {
-//        $this->tmpWords[] = $s[0];
-        return ' '.$s[0].' ';
-    }
-    
-    function addReaderArticle($result, $pressrelease)
-    {
-        // check to see if we have an article already - if so skip.
-        $prid = $pressrelease->parent_id > 0 ? $pressrelease->parent_id : $pressrelease->id;
-        if ($pressrelease->same_as_id > 0) {
-            $prid  = $pressrelease->same_as_id ;
-        }
-        
-        $c = DB_DataObject::Factory('Projects');
-        $c->get('pressrelease_id', $prid);
-        
-        
-        // create an article (not fetched..)
-        foreach($result as $ret){
-            $ra = DB_DataObject::factory('reader_article');
-            $ra->url_md5 = md5($ret['url']);
-            $ra->url = $ret['url'];
-            $ra->language = $pressrelease->language;;
-            $ra->campaign_id = $c->id;
-            
-            // src_id can be 0 or filled, as we do not care... if it was found here or by google etc..
-            if($ra->count()){
-                continue;
-            }
-            $ra->headline = $pressrelease->headline;
-            $ra->act_when = date('Y-m-d', strtotime($pressrelease->publish_dt. '+1 HOUR'));// set to now + 1 hour
-            $ra->published_dt = date('Y-m-d', strtotime($pressrelease->publish_dt. '+1 HOUR'));
-            $ra->language = $pressrelease->language;
-            
-            $ra->src_id = 0; // flag for auto search..
-            $ra->insert();
-            
-            //$this->addEvent('PRESSRELEASED', $ra, $pressrelease->id);
-            //$this->addCount++;
-            echo "Article ({$ra->id}) created... {$ra->url} \n";
-        }
-        return true;
-        
-    }
-    
-    
-    function cacheIndex()
-    {
-        
-        $indexer = System::which('/usr/sbin/indexer');
-        
-        if (empty($indexer)) {
-            echo "The indexer not found, please install it. \n";
-            return false;
-        }
-        
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $u = parse_url($this->autoImport->local_search_url);
-        $conf = $storedir.'/mnogosearch/conf/'.$this->autoImport->id.'_'.$this->autoImport->language.'.conf';
-        
-        if(!file_exists($conf)){
-            echo "Config file not existing...  \n Please enable local Search and run Init  \n";
-            return false;
-        }
-//        $conf = 
-        
-        /**
-         * indexer -Ecreate // create the sqlite3 table
-         * 
-         * indexer -m // get the site
-         * 
-         * indexer --index  // cache and insert to db
-         * 
-         */
-        $timeout = System::which('timeout');
-        $isWeb = "$timeout 10m "; // the outer one will finish in 30mins...
-        if(!$this->cli){ 
-            $isWeb = "$timeout 2m ";
-        }
-        
-        $args = "-am";
-        
-        if($this->is_updated){
-            $args = "-am";
-        }
-        
-        $clear_cmd = "$indexer -Cw ". escapeshellarg($conf) . " 2>&1";
-        echo "clearing $clear_cmd ...\n";
-        `$clear_cmd`;
-        
-        $cmd = "$isWeb $indexer $args ". escapeshellarg($conf) . " 2>&1";
-        echo "indexing $cmd ...\n";
-        if($this->cli){ 
-            $ret = `$cmd`;
-        }else{
-            passthru($cmd);
-        }
-//        print_r($ret);
-        
-        echo "indexed ...... \n";
-        
-        $cmd = "$isWeb $indexer --index $conf 2>&1";
-        
-        // if in web.. do pasthru($cmd);
-        if($this->cli){ 
-            $ret = `$cmd`;
-        }else{
-            passthru($cmd);
-        }
-        
-        echo "Fetch Done..  \n";
-//        'indexer --index'
-//        print_r($ret);
-        return true;
-    }
-}
\ No newline at end of file
diff --git a/PressRelease/Import/LocalSearch/Init.php b/PressRelease/Import/LocalSearch/Init.php
deleted file mode 100644 (file)
index f179815..0000000
+++ /dev/null
@@ -1,441 +0,0 @@
-<?php
-
-/**
- * build the configuration file? - and create the database?
- *
- * @author chris
- */
-require_once 'Pman.php';
-
-class Pman_PressRelease_Import_LocalSearch_Init extends Pman 
-{
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    
-    
-    var $options = array(
-        /**
-         * # VarDir /usr/local/mnogosearch/var
-         * # You may choose alternative working directory for 
-         * # search results cache:
-         */
-//        'VarDir' => '',
-        /**
-         * # DBAddr <URL-style database description>
-         * # Options (type, host, database name, port, user and password) 
-         * # to connect to SQL database.
-         * # Should be used before any other commands.
-         * # Has global effect for whole config file.
-         * # Format:
-         * #DBAddr <DBType>:[//[DBUser[:DBPass]@]DBHost[:DBPort]]/DBName/[?dbmode=mode]
-         */
-        'DBAddr' => 'sqlite3://$(DBPath)/?DBMode=single',
-        /**
-         * # LocalCharset <charset>
-         * # Defines the charset which will be used to store data in the database.
-         * # All other character sets will be converted into the given charset.
-         * # Take a look into mnoGoSearch documentation for detailed explanation 
-         * # how to choose a LocalCharset depending on languages used on your site(s).
-         * # This command should be used once and takes global effect for the config file.
-         * # Only most popular charsets used in Internet are written here.
-         * # Take a look into the documentation to check the whole list of
-         * # supported charsets.
-         */
-        'LocalCharset' => 'UTF-8',
-        /**
-         * # CrossWords yes/no
-         * # Whether to build CrossWords index
-         * # Default value is no
-         */
-        'CrossWords' => 'yes',
-        /**
-         * # Disallow [Match|NoMatch] [NoCase|Case] [String|Regex] <arg> [<arg> ... ]
-         * # Use this to disallow URLs that match (doesn't match) given argument.
-         * # The meaning of first three optional parameters is exactly the same 
-         * # with "Allow" command.
-         * # You can use several arguments for one 'Disallow' command.
-         * # Takes global effect for config file.
-         * Disallow *.js
-         */
-        'Disallow' => array(
-            '*.doc',
-            '*.xls',
-            '*.ppt',
-            '*.pdf',
-            '*.b    *.sh   *.md5  *.rpm',
-            '*.arj  *.tar  *.zip  *.tgz  *.gz   *.z     *.bz2 ',
-            '*.lha  *.lzh  *.rar  *.zoo  *.ha   *.tar.Z',
-            '*.gif  *.jpg  *.jpeg *.bmp  *.tiff *.tif   *.xpm  *.xbm *.pcx',
-            '*.vdo  *.mpeg *.mpe  *.mpg  *.avi  *.movie *.mov  *.wmv',
-            '*.mid  *.mp3  *.rm   *.ram  *.wav  *.aiff  *.ra',
-            '*.vrml *.wrl  *.png  *.ico  *.psd  *.dat',
-            '*.exe  *.com  *.cab  *.dll  *.bin  *.class *.ex_',
-            '*.tex  *.texi *.texinfo',
-            '*.cdf  *.ps',
-            '*.ai   *.eps  *.hqx',
-            '*.cpt  *.bms  *.oda  *.tcl',
-            '*.o    *.a    *.la   *.so ',
-            '*.pat  *.pm   *.m4   *.am   *.css',
-            '*.map  *.aif  *.sit  *.sea',
-            '*.m3u  *.qt',
-            '*.js',
-            // # Exclude Apache directory list in different sort order using "string" match:
-            '*D=A *D=D *M=A *M=D *N=A *N=D *S=A *S=D',
-            // # More complicated case. RAR .r00-.r99, ARJ a00-a99 files 
-            // # and UNIX shared libraries. We use "Regex" match type here:
-            'Regex \.r[0-9][0-9]$ \.a[0-9][0-9]$ \.so\.[0-9]$',
-        ),
-        /**
-         * #AddType [String|Regex] [Case|NoCase] <mime type> <arg> [<arg>...]
-         *   # This command associates filename extensions (for services
-         *   # that don't automatically include them) with their mime types.
-         *   # Currently "file:" protocol uses these commands.
-         *   # Use optional first two parameter to choose comparison type.
-         *   # Default type is "String" "NoCase" (case sensitive string match with
-         *   # '?' and '*' wildcards for one and several characters correspondingly).
-         * AddType image/x-xpixmap     *.xpm
-         */
-        'AddType' => array(
-            'image/x-xpixmap'               => '*.xpm',
-            'image/x-xbitmap'               => '*.xbm',
-            'image/gif'                     => '*.gif',
-            'text/plain'                    => '*.txt  *.pl *.js *.h *.c *.pm *.e',
-            'text/html'                     => '*.html *.htm',
-            'text/xml'                      => '*.xml',
-            'message/rfc822'                => '*.eml *.mht *.mhtml',
-            'text/rtf'                      => '*.rtf',
-            'application/pdf'               => '*.pdf',
-            'application/msword'            => '*.doc',
-            'application/vnd.ms-excel'      => '*.xls',
-            'application/vnd.ms-powerpoint' => '*.ppt',
-            'text/x-postscript'             => '*.ps',
-            'application/unknown'           => '*.*',
-        ),
-        /**
-         * # Document sections.
-         * #
-         * # Format is:
-         * #
-         * #   Section <string> <number> <maxlen> [clone] [sep] [{expr} {repl}]
-         * #
-         * # where <string> is a section name and <number> is section ID
-         * # between 0 and 255. Use 0 if you don't want to index some of 
-         * # these sections. It is better to use different sections IDs
-         * # for different documents parts. In this case during search 
-         * # time you'll be able to give different weight to each part
-         * # or even disallow some sections at a search time.
-         * # <maxlen> argument contains a maximum length of section
-         * # which will be stored in database.
-         * # "clone" is an optional parameter describing whether this
-         * # section should affect clone detection. It can 
-         * # be "DetectClone" or "cdon", or "NoDetectClone" or "cdoff".
-         * # By default, url.* section values are not taken in account
-         * # for clone detection, while any other sections take part
-         * # in clone detection.
-         * # "sep" is an optional argument to specify a separator between
-         * # parts of the same section. It is a space character by default.
-         * # "expr" and "repl" can be used to extract user defined sections,
-         * # for example pieces of text between the given tags. "expr" is
-         * # a regular expression, "repl" is a replacement with $1, $2, etc
-         * # meta-characters designating matches "expr" matches.
-         */
-        'Section' => array(
-                'body                  1       256',
-                'title                 2       256',
-                'meta.keywords         3       256',
-                'meta.description      4       256',
-                'url.file              6       0',
-                'url.path              7       0',
-                'url.host              8       0',
-                'url.proto             9       0',
-                'crosswords            10      0',
-                'Charset               11      32',
-                'Content-Type          12      64',
-                'Content-Language      13      16',
-                'msg.from              18      0',
-                'msg.to                        19      0',
-                'msg.subject           20      0',
-                'CachedCopy            25      64000',
-        ),
-         'Robots' => 'no',
-        /**
-         *
-         * Maximum way in "mouse clicks" from start    URL  given  in  Server
-         * command.    May be used multiple times before every Server command
-         * and takes effect till the end of config file or till  next  Max-
-         * Hops command.
-         * 
-         * Default: 256
-         */
-        'MaxHops' => 2,
-        
-        'StartHops' => 1,
-        /**
-         * Server [Method] [SubSection] <URL> [alias]
-         * 
-         */
-        'Server' => array(
-//            'path http://www.dbpower.com.hk/ch/news/news-finance-news-outreach/',
-//            'path http://www.88iv.com/tc/media_outreach_news.html'
-            
-        ),
-        /**
-         * for chinese charset
-         */
-        'Segmenter' => 'cjk',
-        
-        
-        
-    );
-    
-    var $exOptions = array(
-       
-        'Server Allow' => '',
-        
-        'Allow' => '',
-        'Disallow' => '',
-        
-    );
-    /*
-    * Where are the executables of htsearch, htdig, htmerge, htfuzzy
-    * located? They should be in the same directory. It does not need
-    * to be in the original instalation directory.
-    */
-    var $varDir_path = "mnogosearch";
-//    var $DBPath = "";
-    /**
-     * configuration file and path
-     * @var type 
-     * 
-     */
-    var $configuration_path = '';
-    var $configuration_file = '';
-    var $db_path = '';
-    var $DBAddr = 'sqlite3://$(DBPath)';
-    
-    var $limitDay = 32;
-    
-//    var $newline = "\n";
-    function get($id)
-    {
-    
-        
-        exit;
-        
-    }
-    
-    function initSetting()
-    {
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $this->varDir_path = $storedir."/".$this->varDir_path;
-        $this->configuration_path = $this->varDir_path.'/conf/';
-        $this->db_path = $this->varDir_path.'/db/';
-        
-        if(!is_dir($this->varDir_path)){
-            if(!mkdir($this->varDir_path, 0777, true)){
-                echo "it was not specified a valid database directory  \n";
-                return false;
-            }
-        }
-        
-        if(!is_dir($this->db_path)){
-            if(!mkdir($this->db_path, 0777, true)){
-                echo "it was not specified a valid configuration directory  \n";
-                return false;
-            }
-        }
-        chmod($this->db_path, 0777);
-        
-        
-        if(!is_dir($this->configuration_path)){
-            if(!mkdir($this->configuration_path, 0777, true)){
-                echo "it was not specified a valid configuration directory  \n";
-                return false;
-            }
-        }
-        chmod($this->configuration_path, 0777);
-        
-        
-        return true;
-    }
-    
-    function buildConfiguration()
-    {
-        $u = parse_url($this->autoImport->local_search_url);
-        $this->options['DBAddr'] = $this->DBAddr;
-        $this->options['DBAddr'] = str_replace('$(DBPath)', $this->db_path.$this->autoImport->id.'_'.$this->autoImport->language.'.sqlite3/', $this->options['DBAddr']);
-
-        $lsu = explode(',', $this->autoImport->local_search_url);
-        
-        if(!empty($this->autoImport->local_search_allow)){
-            
-            $lsa = explode(',', $this->autoImport->local_search_allow);
-                
-            $alw = array($lsu[0]);
-
-            foreach($lsa as $k=>$ll){
-                $alw[] = $ll;
-            }
-                
-            $this->exOptions['Allow'] = $alw;
-            $dis = 'http://'.$u['host'].'/*';
-            if (!in_array($dis,$alw)) {
-            
-                $this->exOptions['Disallow'] = 'http://'.$u['host'].'/*';
-            }
-        }
-        
-        foreach($lsu as $k=>$l){
-            $lsu[$k] = 'path '.$l;
-        }
-        
-        $this->exOptions['Server Allow'] = 'http://'.$u['host'];
-        $this->options['Server'] = $lsu;
-
-        $this->configuration_file = $this->configuration_path.$this->autoImport->id.'_'.$this->autoImport->language.'.conf';
-        
-        if(!$this->generateConfiguration()){
-            echo 'generating configuration error.';
-            return false;
-        }
-        
-        return true;
-        
-        //must match this format 
-//        88iv
-//        Server path http://www.88iv.com/tc/media_outreach_news.html
-//        Allow http://www.88iv.com/tc/media_outreach_news.html
-//        Allow  *media_outreach*
-//        Disallow  http://www.88iv.com/*
-        
-//        bizwireexpress
-//        Server path http://www.bizwireexpress.com/MediaOutreach.php
-//        Allow http://www.bizwireexpress.com/MediaOutreach.php
-//        Allow  *showstoryMediaOutreach.php*
-//        Disallow http://www.bizwireexpress.com/*
-        
-        //businesses
-//        http://www.businesses.com.au/business-updates/mediaoutreachcom/
-        
-        //hksilicon
-//        Server path http://www.hksilicon.com/kb/authors/1647/Media-OutReach
-//        Server path http://www.hksilicon.com/kb/articles/
-//        Allow http://www.hksilicon.com/kb/authors/1647/Media-OutReach
-//        Allow  http://www.hksilicon.com/kb/articles/*
-//        Disallow http://www.hksilicon.com/*
-//        local_search_url
-//        http://www.hksilicon.com/kb/authors/1647/Media-OutReach,http://www.hksilicon.com/kb/articles/
-        
-        
-        //cannot do 
-//        http://www.asiatoday.com/pressreleasebycategory/3319
-//        http://sharejunction.com/sharejunction/news.htm?recordCount=0
-    }
-    
-    function generateConfiguration()
-    {
-        if(empty($this->options["Server"])){
-            echo "it was not specified a valid start url \n";
-            return false;
-        }
-        
-        //if config file is not generated
-        if(!file_exists($this->configuration_file)){
-            //create empty file at first time
-            touch($this->configuration_file);
-            chmod($this->configuration_file, 0777);
-            
-        }
-        
-        $tmpFile = $this->tempName('conf');
-        
-        $configuration = "";
-        foreach($this->options as $k=>$o){
-            if(is_array($o)){
-                foreach($o as $opt){
-                    if(empty($opt)){
-                        continue;
-                    }
-                    $configuration .= $k.' '.$opt." \n";
-                }
-                continue;
-            }
-            $configuration .= $k.' '.$o." \n";
-        }
-        
-        foreach($this->exOptions as $k=>$o){
-            if(is_array($o)){
-                foreach($o as $opt){
-                    if(empty($opt)){
-                        continue;
-                    }
-                    $configuration .= $k.' '.$opt." \n";
-                }
-                continue;
-            }
-            if(empty($o)){
-                continue;
-            }
-            $configuration .= $k.' '.$o." \n";
-        }
-        
-        if(!($file=fopen($tmpFile,"w"))){
-            //if not existing then should create the new one...
-            echo "could not open the configuration file \"".$tmpFile."\" for writing  \n";
-            return false;
-        }
-
-        if(strcmp($configuration,"") && (!fwrite($file,$configuration) || !fclose($file))){
-            echo "could not write to the configuration file  \n";
-            return false;
-        }
-        $this->is_updated = false;
-        if(md5(file_get_contents($tmpFile)) != md5(file_get_contents($this->configuration_file))){
-            $this->is_updated = true;
-            $cmd = "diff $tmpFile  {$this->configuration_file}";
-            echo "$cmd\n";
-            echo `$cmd`;
-            
-            
-            if(!copy($tmpFile, $this->configuration_file)){
-                echo "could not open the configuration file \"".$tmpFile."\" for writing  \n";
-                return false;
-            }
-        } else {
-            // clear the database each time, and index???
-            //return true; // file is the same.. no need to reset the database?
-        }
-        
-        // after generated the config file then create the database
-        require_once 'System.php';
-        $indexer = System::which('/usr/sbin/indexer');
-        
-        if (empty($indexer)) {
-            echo "The indexer not found, please install it. \n";
-            return false;
-        }
-        
-        $cmd = "$indexer -Ecreate ".$this->configuration_file;
-        $ret = `$cmd`;
-        
-        echo "{$this->configuration_file} are generated. \n";
-        
-//        print_r($_REQUEST);
-        return true;
-    }
-}
diff --git a/PressRelease/Import/LocalSearch/Run.php b/PressRelease/Import/LocalSearch/Run.php
deleted file mode 100644 (file)
index 3b7ff6d..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-<?php
-
-require_once 'Pman/Core/Notify.php';
-
-class Pman_PressRelease_Import_LocalSearch_Run extends Pman_Core_Notify {
-     static $cli_desc = "Runs the Search on all active localsearches
-                        
-                        /etc/cron.d/pman-pressrelease-localsearch-run
-                        * *  * * *     www-data     /usr/bin/php /home/...../admin.php  PressRelease/Import/LocalSearch/Run > /dev/null
-    
-";
-    
-    
-    static $cli_opts = array(
-        'debug' => array(
-            'desc' => 'Turn on debugging (see DataObjects debugLevel )',
-            'default' => 0,
-            'short' => 'v',
-            'min' => 1,
-            'max' => 1,
-            
-        ),
-        
-    );
-    var $target = 'PressRelease/Import/LocalSearch/Fetch';
-    
-    var $max_pool_size = 10; // not too paralell...
-    
-    var $maxruntime = 1800; // 30minutes...
-    
-    var $limitDay = 31; // do this for a whole month... - as it appears some sites are changing alot...
-    
-    function get($r,$opts)    
-    {
-        if ($opts['debug']) {
-            DB_DataObject::debugLevel($opts['debug']);
-            print_r($opts);
-        }
-        
-        #2544 Prune Reader....
-        $this->pruneReaders();
-        
-        $this->opts = $opts;
-        
-        $this->buildSearch();
-        
-        $w = DB_DataObject::factory('pressrelease_auto_import');
-        $w->use_local_search = 1;
-        $w->is_active = 1; //check if active #2476
-        
-        $ar = $w->fetchAll();
-        
-        
-        //echo "BATCH SIZE: ".  count($ar) . "\n";
-        $pushed = array();
-        $requeue = array();
-        while (true) {
-            
-            
-            $this->logecho("BATCH SIZE: ".  count($ar) );
-            
-            if (empty($ar)) {
-                $this->logecho("COMPLETED MAIN QUEUE - running pushed");
-                
-                if (empty($pushed)) {
-                    break;
-                }
-                $ar = $pushed;
-                $pushed = false;
-                continue;
-            }
-            
-            
-            $p = array_shift($ar);
-            if (!$this->poolfree()) {
-                array_unshift($ar,$p); /// put it back on..
-                sleep(3);
-                continue;
-            }
-            
-            
-            $this->run($p->id,false);
-            
-            
-            
-        }
-        $this->logecho("COMPLETED MAIN QUEUE - waiting for everything to end.");
-        
-        // we should have a time limit here...
-        while(count($this->pool)) {
-            $this->poolfree();
-             sleep(3);
-        }
-          
-        
-        $this->logecho("DONE");
-        exit;
-    }
-    
-    function buildSearch()
-    {
-        
-        $releases = DB_DataObject::factory('Pressrelease_entry');
-        $releases->whereAdd("publish_dt > (NOW() - INTERVAL 60 DAY) AND publish_dt < NOW()");
-        $releases->orderBy('id DESC');
-        foreach($releases->fetchAll() as $p){
-            $c = DB_DataObject::factory('Projects');
-            if(!$c->get('pressrelease_id', !empty($p->parent_id) ? $p->parent_id : $p->id)){
-                echo "Project Not Found at release: {$p->id} skipping...\n";
-                continue;
-            }
-            
-            if (empty($p->parent_id)) {
-                echo "ADD feed for #{$p->id} {$p->headline}\n";
-                $p->buildFeeds();
-            }
-            $this->buildAutoImport($p);
-        }
-        //die("STOP\n");
-    }
-     
-    // fixme --> move to pressrelease_entry..
-    
-    function buildAutoImport($p)
-    {
-        
-        $camp = DB_DAtaObject::Factory('Projects');
-        if (!$camp->get('pressrelease_id',   $p->parent_id ? $p->parent_id : $p->id)) {
-            die("missing project for ". print_R($p,true));
-        }
-        
-        
-        // #2162
-        $x = DB_DataObject::factory('Pressrelease_auto_import');
-        $x->use_local_search = 0;
-        $x->is_active = 1;// check if active #2476
-        
-        $releaseIsTC = ($p->language == 'zh_HK' || $p->language == 'zh_TW' ) ? 'tc' : false;
-        $importIsTC = false;
-        
-        $ff = HTML_Flexyframework::get();
-        
-        foreach($x->fetchAll() as $u){
-            $rr = DB_DataObject::factory('Reader_article');
-            
-            $importIsTC = ($u->language == 'zh_HK' || $u->language == 'zh_TW' ) ? 'tc' : false;
-            
-            if(!empty($u->language)){// if  empty language should check all
-                if($u->language != $p->language){
-                    if(!$releaseIsTC || !$importIsTC){
-                        if($ff->cli){
-                            echo "Not Match Language SKIP Release: {$p->id} \n";
-                        }
-                        continue;
-                    }
-                }
-            }
-            
-            
-            $url = str_replace('{id}', $p->id, $u->url);
-            
-            $rr->url = $url;// replace the id to press releases id
-            $rr->url_md5 = md5($url);
-            $rr->src_id = 0;
-            $rr->campaign_id = $camp->id;
-            $rr->language = empty($u->language) ? $p->language : $u->language; // use the press release language if the import is not set..
-            if(!$rr->find(true)){
-                $rr->real_url = $url;
-                $rr->real_url_md5 = md5($url);
-                $rr->headline = $p->headline; // kludge...
-//                $rr->src_id = $p->id;
-                $rr->act_when = date('Y-m-d', strtotime($p->publish_dt. '+1 HOUR'));// set to the publish date + 1 hour
-                $rr->published_dt = date('Y-m-d', strtotime($p->publish_dt. '+1 HOUR'));
-               // print_r($rr);exit;
-                $rr->insert();
-                if($ff->cli){
-                    echo "ADD reader_article: {$rr->id} $url\n";
-                }
-                //$this->addEvent('PRESSRELEASED', $rr, $p->id);
-            } else {
-                if($ff->cli){
-                    echo "SKIP reader_article: {$rr->id}  $url\n";
-                }
-            }
-        }
-    }
-    
-    function pruneReaders()
-    {
-         return; // not needed..
-         //DB_DataObject::debugLevel(1);
-        $d = DB_DataObject::Factory('reader_sub');
-        $d->selectAdd();
-        $d->selectAdd('reader_sub.id as id');
-        $d->_join  = "
-            left join
-                CampaignAssign
-            on
-                reader_sub.campaign_assign_id = CampaignAssign.id
-            LEFT JOIN
-                Projects
-            ON
-                Projects.id = CampaignAssign.project_id
-        ";
-        $d->whereAdd('Projects.close_date < NOW()');
-        $ar = $d->fetchAll();
-        foreach($ar as $a) {
-            $a->delete();
-        }
-        
-        // now remove all the feeds that do not have any subscriptions
-        
-        $d = DB_DataObject::Factory('reader_feed');
-        $d->selectAdd();
-        $d->selectAdd('id , (select count(id) from reader_sub where feed_id = reader_feed.id) as subs');
-        $d->having('subs < 1');
-        $ar = $d->fetchAll('id', 'subs');
-        //print_R($ar);
-        $d = DB_DataObject::Factory('reader_feed');
-        $d->whereAddIn('id', array_keys($ar), 'int');
-        $ar = $d->fetchAll();
-        foreach($ar as $a) {
-            $a->delete();
-        }
-    }
-}
diff --git a/PressRelease/Import/LocalSearch/Search.php b/PressRelease/Import/LocalSearch/Search.php
deleted file mode 100644 (file)
index 08f5e8b..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-<?php
-
-/**
- * Description of LocalSearch
- * FIXME --- This is not in used????
- * @author chris
- */
-require_once 'Pman.php';
-
-class Pman_PressRelease_Import_LocalSearch_Search extends Pman 
-{
-    //put your code here
-    
-    var $cli  = false;
-    
-    static $cli_desc = "Local Search Engine -- Search\n
-                        Run the Search:
-                        PressRelease/Import/LocalSearch/Search
-                ";
-    
-    static $cli_opts = array(
-         
-    ); 
-    
-    var $addCount = 0;
-    var $newline = "\n";
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    function get($id)
-    {
-        if(!$this->cli){
-             $this->newline = "<br />";
-        }
-//        $params = explode('/', $args);
-        
-//        if(empty($params[0])){
-//            echo "Keyword is empty..\n";
-//            exit;
-//        }
-//        if(empty($id)){
-//            echo "Auto import id is empty..\n";
-//            exit;
-//        }
-        
-        $press = DB_DataObject::factory('pressrelease_entry');
-        $press->whereAdd("publish_dt > (NOW() - INTERVAL 60 DAY) AND publish_dt < NOW()");
-        $pr = $press->fetchAll();
-        
-        if(empty($pr)){
-            echo "No any new release.  $this->newline";
-            exit;
-        }
-        
-        $autoImport = DB_DataObject::factory('pressrelease_auto_import');
-        $autoImport->use_local_search = 1;
-        $aiByLang = array();
-        
-        foreach($autoImport->fetchAll() as $import){
-            $aiByLang[$import->language][] = $import;
-        }
-        
-//        print_r($aiByLang);
-//        exit;
-        foreach($pr as $release){
-            
-            //no import then ignore it
-            if(empty($aiByLang[$release->language])){
-                echo "No any Local search engine by ({$release->language}) language -- release ({$release->id}) skipping  $this->newline";
-                continue;
-            }
-//            print_r($release);
-            foreach($aiByLang[$release->language] as $ai){
-                if($this->search($release, $ai)){
-                    echo "release ({$release->id}) created $this->newline";
-                }
-            }
-        }
-        
-        echo "All Done... New Added to Article ({$this->addCount})..  $this->newline";
-        
-        exit;
-        
-        // should include this class and run search method
-    }
-    
-    /**
-     * 
-     * @param object $release
-     * @param object $autoImport
-     * @return boolean
-     * 
-     * 
-     */
-    
-    function search($release, $autoImport)
-    {
-//        return true;
-        /*
-         * chinese search format must add " and space bar
-         * '"適 合 任 何 場 合"'
-         */
-//        $str = '"適 合 任 何 場 合"';
-//        $str = '"Philip"';
-        
-        $signleWordMode = array('zh_TW', 'zh_HK', 'zh_CN', 'ja');
-        
-        $str = '"'. $release->headline . '"';
-        
-        if(in_array($release->language, $signleWordMode)){
-//            preg_match_all('/./u', $release->headline, $rrrr);
-//            print_r($rrrr);
-            preg_match_all('/./u', $release->headline, $words);// split the single word
-//            print_r($words[0]);
-            
-            
-            $str = '"';
-            $str.= ''.implode(' ', $words[0]).'"';
-        }
-        
-        $storedir = HTML_FlexyFramework::get()->Pman['storedir'];
-        $u = parse_url($autoImport->url);
-        $loc = 'sqlite3://'.$storedir.'/mnogosearch/db/'.$u['host'].'_'.$autoImport->language.'.sqlite3/';
-//        print_r($str);
-//        print_r($loc);
-//        exit;
-        $udm_agent = udm_alloc_agent($loc);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_CHARSET, "utf-8");
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_BROWSER_CHARSET, "utf-8");
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_SEARCH_MODE, UDM_MODE_ALL);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PHRASE_MODE, UDM_PHRASE_ENABLED);
-        Udm_Set_Agent_Param($udm_agent, UDM_PARAM_PAGE_SIZE, 100);
-        
-        $res = udm_find($udm_agent, $str);
-        $totalMatches = udm_get_res_param($res,UDM_PARAM_FOUND);
-        $pageSize = udm_get_res_param($res,UDM_PARAM_NUM_ROWS);
-        $firstRow = udm_get_res_param($res,UDM_PARAM_FIRST_DOC);
-        $lastRow = udm_get_res_param($res,UDM_PARAM_LAST_DOC);
-        
-        if($totalMatches < 1){
-            echo "Release ({$release->id}) not matches found -- skipping {$str} $this->newline";
-            return false;
-        }
-        
-        $ret = array();
-        if($totalMatches > 0){
-            $row=0;
-            echo "Match $totalMatches:  $this->newline";
-            for ($i=$firstRow-1;$i<$lastRow;$i++) {
-                $row++;
-                echo 'Url: ';
-                $url = udm_get_res_field($res,$i,UDM_FIELD_URL);
-                $ret[$i]['url'] = $url;
-                echo "$url  $this->newline";
-                
-                $ret[$i]['title'] = udm_get_res_field($res, $i,UDM_FIELD_TITLE);
-                $ret[$i]['meta'] = udm_get_res_field($res, $i,UDM_FIELD_DESC);
-                $ret[$i]['text'] = udm_get_res_field($res, $i,UDM_FIELD_TEXT);
-            }
-        }
-        
-//        print_r($ret);
-//        return true;
-        
-        if(!$this->createReader($ret, $release)){
-            echo "creating reader error on release ({$release->id})  $this->newline";
-            return false;
-        }
-        
-        return true;
-    }
-    
-    function createReader($result, $release)
-    {
-        
-        die("this code will not work");
-        foreach($result as $ret){
-            $ra = DB_DataObject::factory('reader_article');
-            $ra->real_url = $ret['url'];
-            $ra->real_url_md5 = md5($ret['url']);
-
-            if($ra->find(true)){
-                echo "release ({$release->id}) already existing in reader article. skipping  $this->newline";
-                return true;
-            }
-
-            $ra->act_when = date('Y-m-d', strtotime('1 HOUR'));// set to now + 1 hour
-            $ra->published_dt = date('Y-m-d', strtotime('1 HOUR'));
-            $ra->language = $release->language;
-            $ra->insert();
-            $this->addEvent('PRESSRELEASED', $ra, $release->id);
-            $this->addCount++;
-            echo "Article ({$ra->id}) created...  $this->newline";
-        }
-        return true;
-    }
-}
\ No newline at end of file
diff --git a/PressRelease/Import/Search.php b/PressRelease/Import/Search.php
deleted file mode 100644 (file)
index 06cf434..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-require_once 'Pman/Core/Notify.php';
-
-class Pman_PressRelease_Import_Search extends Pman_Core_Notify
-{
-    
-    static $cli_desc = "Runs the Search for clippings code";
-                    
-    var $target = 'PressRelease/Import/SearchFetch';
-    var $evtype = ''; // any notification...
-    
-    var $max_pool_size = 10;
-    
-    var $nice_level= 19;
-   
-    
-    
-    function get($feed_id='', $opts)
-    {
-        //DB_DAtaObject::debigLevel(1);
-        // active campaigns.
-        $c = DB_DAtaObject::factory('Projects');
-        $c->whereAdd("
-            ( Projects.close_date >= NOW() )
-            AND
-            ( Projects.type IN ('P','N','U') )
-            AND
-            ( Projects.active = 1 )
-        ");
-        
-        $pids = $c->fetchAll('id');
-        
-        // assigns.
-        $c = DB_DAtaObject::factory('CampaignAssign');
-        
-        $c->whereAddIn('project_id', $pids , 'int');
-        $c->whereAdd('lastfetched < NOW() - INTERVAL 4 HOUR');
-        $c->orderBy('CampaignAssign.project_id DESC');
-        
-        $ids = $c->fetchAll('id');
-        
-        
-        //$this->target = 'Reader/Fetch/Feed';
-        
-        while (count($ids)) {
-            $id = $ids[0];
-            if (!$this->poolfree()) {
-                sleep(1);
-                continue;
-            }
-            $this->run(array_shift($ids),'');
-            
-        } 
-        
-        while(count($this->pool)) {
-            $this->poolfree();
-            sleep(3);
-        }
-        
-    }
-    
-}
\ No newline at end of file
diff --git a/PressRelease/Import/Search/Baidu.php b/PressRelease/Import/Search/Baidu.php
deleted file mode 100644 (file)
index 2c0385d..0000000
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-
-/**
- * Description of Baidu
- * 
- * http://www.baidu.com/s?
- * 
- * tn=baiduadv // search method..
- * ie=utf-8 //encoding
- * wd=Sony // Keyword...
- * pn=0 // paging...
- * rn=100 // result count (relate to paging)
- * lm=1
- * 
- * @author chris
- */
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-
-class Pman_PressRelease_Import_Search_Baidu extends Pman_PressRelease_Import_Search_Base {
-    //put your code here
-    
-//   
-//    function getAuth()
-//    {
-//        return true;
-//    }
-    
-    function parseSearch($keyword, $lang = 'en', $country='')
-    {
-        // get url.
-        // parse dom
-        // return an array that looks like the RSS feed..
-        $l = array();
-        $kw = json_decode($keyword);
-        
-        usort($kw,function ($a,$b){
-            return strlen($a)-strlen($b);
-        });
-        //print_R($kw);exit;
-//        $l = array();
-        foreach($kw as $pp){
-            $l[] = '"'.trim($pp).'"';
-            if (strlen(implode('  ', $l)) > 50) {
-                break;
-            }
-        }
-
-//        print_r('(' . implode(" | ", $l).' )');
-        
-        
-        $param = array(
-            'tn' => 'baiduadv', //use the baidu advance search method
-            'ie' => 'UTF-8', // encoding
-            'lm' => 1, // search times... day=1, week=7, month=30, year=360, all = 0
-            'rn' => 100, //no. of results
-            'pn' => 0, // paging / this number should relate to number of results... (page * rn) the first page are 0
-            'wd' => '(' . implode(" | ", $l).' )', // keywords // encode ("Xperia" | "me" | "Sony PlayStation")
-        );
-        
-        $WebSearchURL = 'http://www.baidu.com/s?'.
-            http_build_query($param);
-        
-        print_r($WebSearchURL);
-        
-        $context = stream_context_create(array(
-            'http' => array(
-                'header'  => ''
-            )
-        ));
-
-        print_r($WebSearchURL);
-        $response = file_get_contents($WebSearchURL, 0, $context);
-        
-//        $response = file_get_contents('Pman/Reader/Parse/baidu.html');
-        
-//        print_r($response);
-        
-        $pageDom = new DomDocument('1.0', 'utf-8');    
-        $pageDom->formatOutput = true;
-        $searchPage = mb_convert_encoding($response, 'HTML-ENTITIES', "UTF-8"); 
-        @$pageDom->loadHTML($searchPage);
-        
-        
-        $ret = array();
-        $added = 0;
-        $xp = new DOMXPath($pageDom);
-        $q = "//div[@id='container']/div[@id='content_left']/div";
-//        $q = "//body";
-        $lists = $xp->query($q);
-        
-        
-        require_once 'Net/URL.php';
-        
-//        print_r(get_class($lists));
-//        print_r($pageDom->getElementById('content_left')->tagName);
-//        print_r(mb_convert_encoding($pageDom->saveHTML($lists->item(0)), 'HTML-ENTITIES', "UTF-8"));
-//        exit;
-//        foreach($r as)
-        foreach($lists as $node){
-//            $div = $node->getElementsByTagName('div')->item(0);
-            $t = array();
-            $newDom = new DomDocument('1.0', 'utf-8');
-            $newDom->formatOutput = true;
-            $searchPage = mb_convert_encoding($pageDom->saveHTML($node), 'HTML-ENTITIES', "UTF-8"); 
-            @$newDom->loadHTML($searchPage);
-            
-            $xp = new DOMXPath($newDom);
-            $q = "//div";
-            $tag = $xp->query($q);
-//            print_r(mb_convert_encoding($newDom->saveHTML($tag->item(0)), 'HTML-ENTITIES', "UTF-8"));
-//            print_r($tag->item(0)->getAttribute('tpl'));
-//            exit;
-//            continue;
-            
-            //skip all is not a normal search result. etc. baidu zhidao....
-            if($tag->item(0)->getAttribute('tpl') != 'se_com_default'){// skip
-                
-                continue;
-            }
-            
-            $q = "//div/h3/a";
-            $hl = $xp->query($q); 
-
-            // at this point the url is baidu.. we need to fetch the redirect location to find out the real url..
-            
-//            $heads = get_headers($hl->item(0)->getAttribute('href'),1);
-//            print_r(strip_tags($hl->item(0)->nodeValue));
-//            exit;
-//            if (empty($heads['Location'])) {
-//                continue;
-//            }
-            // why 2 heads?
-            
-            
-            $nu = new Net_URL($hl->item(0)->getAttribute('href'));
-            $t['url'] = $nu->getURL();
-            
-            $t['headline'] = strip_tags($hl->item(0)->nodeValue);
-
-            
-            $q = "//div/div[@class='c-abstract']";
-            $body = $xp->query($q);
-            
-            if(empty($body->item(0)->nodeValue)){
-                $q = "//div/div[@class='c-span18 c-span-last']/div[@class='c-abstract']";
-                $body = $xp->query($q);
-            }
-            
-            // skip the unsafe content??? WTF search engine....
-            $t['body'] = (empty($body->item(0)->nodeValue)) ? '' : $body->item(0)->nodeValue; 
-            
-            if(empty($t['headline']) || empty($t['body']) || empty($t['url'])){
-                continue;
-            }
-            $t['extid'] = md5($t['url']);
-            $t['author'] = '';
-            $t['source'] = '';
-            $ret[] = $t;
-            
-        }
-        
-        //print_r($ret); exit;
-        return $ret;
-        
-        
-        
-        
-    }
-}
-
-//$a = new Pman_Reader_Parse_Baidu;
-//$a->parseSearch('["Xperia","me","Sony","Sony PlayStation"]');
diff --git a/PressRelease/Import/Search/Base.php b/PressRelease/Import/Search/Base.php
deleted file mode 100644 (file)
index c08d1d1..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-
-/**
- * Description of Baidu
- * 
- * http://www.baidu.com/s?
- * 
- * tn=baiduadv // search method..
- * ie=utf-8 //encoding
- * wd=Sony // Keyword...
- * pn=0 // paging...
- * rn=100 // result count (relate to paging)
- * lm=1
- * 
- * @author chris
- */
-class Pman_PressRelease_Import_Search_Base
-{
-    //put your code here
-    
-    function run($feed)
-    {
-       if (!empty($feed->lastfetch_dt) && strtotime($feed->lastfetch_dt . ' + 12 HOURS' ) > time()) {
-            if (HTML_FlexyFramework::get()->cli) {
-                return array();
-            }
-        }
-        $this->feed = $feed;
-        $ret = $this->parseSearch($feed->params, strtolower($feed->language), strtolower($feed->country));
-        $old = clone($feed);
-        $feed->lastfetch_dt = $feed->sqlValue('NOW()');
-        $feed->update($old);
-        
-        return $ret;
-            
-    }
-    
-    var $redirectHosts = array(
-        'ri.search.yahoo.com',  // add more here or add them to the extended class..
-    );
-    
-    
-    function headURL($url)
-    {
-        if (!extension_loaded('http')) {
-            die("no http extension");
-        }
-          // sleep so we do not flood the line..
-        $r = false;
-        //if (class_exists('HttpRequest')) {
-        //    $r = new HttpRequest($url , HttpRequest::METH_GET);
-        //} else {
-            $hcr = new http\Client\Request("HEAD", $url);
-            
-        //}
-        
-        try {
-            for ($i= 0; $i< 10; $i++ ) {
-               // echo "GET $url\n";
-                $uar = parse_url($url);
-               // var_dump($uar['host']);
-                if (!in_array($uar['host'], $this->redirectHosts)) {
-                    return $url;
-                }
-                
-                
-                $hc = new http\Client;
-                $hc->enqueue($hcr)->send();
-                $resp = $hc->getResponse();
-                $rc = $resp->getResponseCode();
-            
-                if ($rc == 200) {
-                    break;
-                }
-                if ($rc == 301 || $rc == 302)  {
-                  //   if ($r) {
-                  //      $r->setUrl($r->getResponseHeader("Location"));
-                  //  } else {
-                    $url = $resp->getHeader("Location");
-                    $hcr = new http\Client\Request("HEAD",$url );
-                  //  }
-                    continue;
-                }
-                
-                return false;
-            }
-            return $url;
-        } catch(Exception $e) {
-            return "ERROR FETCHING {$url}";
-        }
-        return true; // should not get here.
-    }
-    
-}
-    
\ No newline at end of file
diff --git a/PressRelease/Import/Search/Bing.php b/PressRelease/Import/Search/Bing.php
deleted file mode 100644 (file)
index 69b08b8..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-<?php
-
-/*
- * 
- *  &tbs=qdr:s - results of the previous second
- *  &tbs=qdr:n - results of the previous minute
- *  &tbs=qdr:h - results of the previous hour
- *  &tbs=qdr:d - results of the previous day
- *  &tbs=qdr:w -results of the previous week
- *  &tbs=qdr:m - results of the previous month
- *  &tbs=qdr:y - results of the previous year
- * 
- * &count=50  -- MAX are 50
- * first=51  -- one page 50, so the second page should a 51
- * 
- * 
- */
-
-/**
- * Description of Bing
- *
- * @author chris
- */
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-class Pman_PressRelease_Import_Search_Bing extends Pman_PressRelease_Import_Search_Base {
-  
-  
-//    function getAuth()
-//    {
-//        return true;
-//    }
-    
-    var $xpath = array(
-        array(
-            'main' => "//div[@id='results']/ul/li",
-            'head' => "//div/div/div[@class='sb_tlst']/h3/a",
-            'body' => "//div/div/p"
-        ),
-        array(
-            'main' => "//div[@id='b_content']/ol/li",
-            'head' => "//h2/a",
-            'body' => "//div/p"
-        )
-    );
-    
-    var $ret = array();
-    //put your code here
-    function parseSearch($keyword, $lang = 'en', $country='')
-    {
-        
-        $l = array();
-        $kw = json_decode($keyword);
-        foreach($kw as $pp){
-            $l[] = trim($pp);
-        }
-        
-        foreach($l as $ll){
-            $page = 1;
-            while($page < 100){
-            
-                $param = array(
-                    'tbs' => urlencode('qdr:d'), //date
-                    'count' => 50, //no. of results
-                    'first' => $page, // paging
-    //                'FORM' => 'PERE', // ??
-                    'q' => urlencode($ll), // keyword
-                );
-    //            print_r(http_build_query($param));
-                $WebSearchURL = 'http://www.bing.com/search?'.
-                    http_build_query($param);
-    //            $WebSearchURL = 'http://www.bing.com/search?'.
-    //                    implode("&", $param);
-                $context = stream_context_create(array(
-                    'http' => array(
-                        'header'  => 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31'
-                    )
-                ));
-
-    //        $request = $WebSearchURL;
-                echo $WebSearchURL . "\n";
-                $response = file_get_contents($WebSearchURL, 0, $context);
-                echo "Response : " . strlen($response) . "bytes \n";
-    //          file_put_contents('/tmp/bing.html', $response);
-    //          $response = file_get_contents('Pman/Reader/Parse/bing.html');
-
-    //          $nn = $this->getTextFromHTML($response);
-    //          print_r($nn);
-    //          exit;
-                foreach($this->xpath as $xp){
-                    if($this->getResult($response, $xp) > 0){
-                        break;
-                    }
-                }
-                $page += 50;
-            }
-        }
-//        print_r(count($this->ret));
-        return $this->ret;
-    }
-    
-    function getResult($response, $xpath)
-    {   
-        $pageDom = new DomDocument('1.0', 'utf-8');    
-        $pageDom->preserveWhiteSpace = false;
-
-        $searchPage = mb_convert_encoding($response, 'HTML-ENTITIES', "UTF-8"); 
-        @$pageDom->loadHTML($searchPage);
-        //$pageDom->loadHTML($response);
-
-        $pageDom->formatOutput = true;
-
-        $added = 0;
-        $xp = new DOMXPath($pageDom);
-
-        $lists = $xp->query($xpath['main']);
-        
-//        print_r(mb_convert_encoding($pageDom->saveHTML($lists->item(0)), 'HTML-ENTITIES', "UTF-8"));
-        
-        foreach($lists as $node){
-//            $div = $node->getElementsByTagName('div')->item(0);
-
-            echo "got article\n";
-
-
-            $t = array();
-            $newDom = new DomDocument('1.0', 'utf-8');
-            $newDom->formatOutput = true;
-            $searchPage = mb_convert_encoding($pageDom->saveHTML($node), 'HTML-ENTITIES', "UTF-8"); 
-            @$newDom->loadHTML($searchPage);
-
-            $xp = new DOMXPath($newDom);
-
-            $q = $xpath['head'];
-            $hl = $xp->query($q);
-
-            if(!$hl->item(0)){
-                continue;
-            }
-
-            $t['url'] = $hl->item(0)->getAttribute('href');
-            $t['headline'] = strip_tags($hl->item(0)->nodeValue);
-
-
-            $q = $xpath['body'];
-            $body = $xp->query($q);
-
-            $t['body'] = $body->item(0)->nodeValue;
-
-            if(empty($t['headline']) || empty($t['body']) || empty($t['url'])){
-                continue;
-            }
-            $t['extid'] = md5($t['url']);
-            $t['author'] = '';
-            $t['source'] = '';
-            
-            $this->ret[] = $t;
-            $added++;
-
-        }
-//        print_r($ret);
-        return $added;
-    }
-    
-}
-//
-//$a = new Pman_Reader_Parse_Bing;
-//$a->parseSearch('["Real Madrid Star Cristiano Ronaldo to Kick off the World Cup in Hong Kong"]');
\ No newline at end of file
diff --git a/PressRelease/Import/Search/Google.php b/PressRelease/Import/Search/Google.php
deleted file mode 100644 (file)
index 59193c2..0000000
+++ /dev/null
@@ -1,217 +0,0 @@
-<?php
-
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
-
-/**
- * Description of Google
- *
- * @author chris
- */
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-
-
-class Pman_PressRelease_Import_Search_Google extends Pman_PressRelease_Import_Search_Base {
-  
-  
-    
-    
-    
-    /**
-     *
-     * This is for the Google Search Feed 
-     * 
-     * 
-     * @param type $reader_feed
-     * @return type 
-     */
-    
-    function parseSearch($keyword, $lang = 'en', $country='hk')
-    {
-        //var_dump(array($lang,$country));
-        require_once 'google.api/src/Google_Client.php';
-        require_once 'google.api/src/contrib/Google_CustomsearchService.php';
-//        session_start();
-        
-        $l = array();
-        $kw = json_decode($keyword);
-        $raw = array();
-        foreach($kw as $pp){
-            $l[] = '"'.trim($pp).'"';
-            $raw[] = trim($pp);
-        }
-        
-        
-        $key = HTML_FlexyFramework::get()->Pman_Reader['googlekey'];
-        $client = new Google_Client();
-        $client->setApplicationName('Google CustomSearch PHP Starter Application');
-        // Docs: http://code.google.com/apis/customsearch/v1/using_rest.html
-        // Visit https://code.google.com/apis/console?api=customsearch to generate
-        // your developer key (simple api key).
-        $client->setDeveloperKey($key);//
-        $this->search = new Google_CustomsearchService($client);
-        
-        
-
-        $cfg = array(
-            'cx' => '010353084809800240754:jsoaxolbobw', // The custom search engine ID to scope this search query.
-            'num' => 10,
-            //'gl' => $country,
-            'hl' => $lang,
-            'start' => 1,
-            'googlehost' => 'google.com',
-        );
-        
-        $hosts = array('google.com');
-        
-       
-        
-        
-        switch(strtolower($lang)) {
-            case 'en': $hosts[] = 'google.com.hk'; break;
-            case 'zh_hk': $hosts[] = 'google.com.hk'; break;
-            case 'zh_tw': $hosts[] = 'google.com.tw'; break;
-            //case 'zh_CN': $cfg['googlehost'] = 'google.com.tw'; break;
-            //case 'cn': $cfg['googlehost'] = 'google.com.tw'; break; ?? google.com?
-            case 'ja': $hosts[] = 'google.jp'; break;
-            case 'ko': $hosts[] = 'google.co.kr'; break;
-            case 'vi': $hosts[] = 'google.com.vn'; break;
-            case 'id': $hosts[] = 'google.co.id'; break;
-                
-            default:
-                echo "-- ?? unknown language ?? $lang\n";
-                break;
-            
-            
-        }
-        
-        switch(strtoupper($country)) {
-            
-            case 'AU': $hosts[] = 'google.com.au'; break;
-            //case 'SO': $hosts[] = 'google.com.hk'; break;
-            
-            case 'MY': $hosts[] = 'google.com.my'; break;
-            case 'TW':
-            case 'SG':
-            case 'CN':
-                $hosts[] = 'google.com.tw';
-                $hosts[] = 'google.com.sg';
-                $hosts[] = 'google.com.hk';
-                break;
-             
-            //case 'US': $hosts[] = 'google.com.hk'; break;
-            case 'KR': $hosts[] = 'google.co.kr'; break;
-            case 'TH': $hosts[] = 'google.co.th'; break;
-            case 'PH': $hosts[] = 'google.com.ph'; break;
-            case 'GB': $hosts[] = 'google.com.uk'; break;
-            case 'JP': $hosts[] = 'google.jp'; break;
-            case 'MN': $hosts[] = 'google.mn'; break;
-            case 'ID': $hosts[] = 'google.co.id'; break;
-        
-  
-                
-            default:
-            //    echo "-- ?? unknown language ?? $lang\n";
-                break;
-            
-        }   
-        
-                
-        $hosts = array_unique($hosts);
-        print_r($hosts);
-        foreach($hosts as $h) {
-            $cfg['googlehost'] = $h;
-            $this->runSearch($cfg, $l);
-            // run the search without quotes as well..
-            //if (strtolower($lang) !='en') {
-               $this->runSearch($cfg, $raw);
-            //}
-        }
-        
-        
-        
-        
-        
-        return array_values($this->ret);
-        
-    }
-    var $search;
-    var $ret = array();
-    
-    function runSearch($cfg,$words)
-    {
-        
-        $start = 1;
-        while ($start < 100) {
-            $cfg['start'] = $start;
-            
-           
-            $log = "ASSIGNMENT : #{$this->feed->assign->project_id_pressrelease_id} {$this->feed->assign->project_id_name} : {$this->feed->language} / {$this->feed->country}  ($start)";
-            $this->glog($log);
-            
-            try { 
-                $result = $this->search->cse->listCse(implode(" OR ", $words), $cfg);
-        
-            } catch ( Exception $e) {
-                $this->glog($log . " - FAILED - exception " . print_r($e,true));
-                echo "exception\n";
-                return;
-            }
-            
-            
-            
-            
-            if (empty($result['searchInformation']['totalResults'])) {
-                 
-                echo "no results\n";
-                return;
-             
-            }
-            if (!HTML_FlexyFramework::get()->cli) {
-                print_r($result);
-            }
-            $this->glog($log . " : SUCCESS  : ". count($result['items']));
-             
-            foreach($result['items'] as $s){
-                
-                $t = array();
-                
-                $t['extid'] = md5($s['link']);
-    
-                $t['headline'] = $s['title'];
-                $t['body'] = $s['snippet'];
-                $t['url'] = $s['link'];
-                $t['author'] = '';
-                $t['source'] = '';
-                
-                
-                $this->ret[$t['extid'] ] = $t;
-                
-            }
-            if (empty($result['queries']['nextPage'][0]['startIndex'])) {
-                break;
-            }
-            $start = $result['queries']['nextPage'][0]['startIndex'];
-            
-        }
-        
-        
-        
-        
-    }
-    function glog($str)
-    {
-        static $fh = false;
-        if ($fh === false) {
-            $fh = fopen('/tmp/google_search_log', 'a');
-        }
-        fwrite($fh, date("Y-m-d H:i:s") . " "  . $str . "\n");
-        
-    }
-    
-}
-    
-//$a = new Pman_Reader_Parse_Google;
-//$a->parseSearch('["Asian Festival of Children\'s Content Reveals Shortlist for Scholastic Asian Book Award 2014"]');
diff --git a/PressRelease/Import/Search/Weibo.php b/PressRelease/Import/Search/Weibo.php
deleted file mode 100644 (file)
index 251228a..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-
-/**
- * Description of Weibo
- *
- * @author chris
- */
-
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-class Pman_PressRelease_Import_Search_Weibo extends Pman_PressRelease_Import_Search_Base {
-  
-   
-    function getAuth()
-    {
-        return true;
-    }
-    
-    function parseSearch($keyword, $lang = 'en', $country='')
-    {
-        //pl_weibo_direct main
-        
-        $l = array();
-        $kw = json_decode($keyword);
-        foreach($kw as $pp){
-            $l[] = '"'.trim($pp).'"';
-        }
-        
-//        $param = array(
-//            'p' => implode(" OR ", $l), // keyword
-//            'fr2' => 'time', //flag to time
-//            'ei' => 'UTF-8', // encoding
-//            'btf' => 'w', // day -- d / w / m / y
-//            'n' => 100, //no. of results
-//            'b' => 1, // page being // this number should a (n * b + 1)
-//            'pstart' => 1, // paging
-//            
-//        );
-        
-        //FIXME should use the weibo APIs??
-        
-        // keyword must a first param http://s.weibo.com/wb/furla&xsort=hot
-        // && || weibo is using this to get and or 
-        foreach($l as $k){
-            $url = 'http://s.weibo.com/wb/'.$k.'&xsort=hot';
-//            $request = $url.
-//                http_build_query($param);
-
-
-            $context = stream_context_create(array(
-                'http' => array(
-                    'header'  => 'User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11.1 (KHTML, like Gecko) Version/3.0.3 Safari/522.12.1'
-                )
-            ));
-//            echo $url ."\n";
-
-            $response = file_get_contents($url, 0, $context);
-        
-//            $response = file_get_contents(dirname(__FILE__).'/weibo.html');// for debug only
-
-            $pageDom = new DomDocument('1.0', 'utf-8');    
-            $pageDom->formatOutput = true;
-            $searchPage = mb_convert_encoding($response, 'HTML-ENTITIES', "UTF-8"); 
-            @$pageDom->loadHTML($searchPage);
-
-            print_r($response);
-            $ret = array();
-            $added = 0;
-            $xp = new DOMXPath($pageDom);
-            $q = "//script";
-            $lists = $xp->query($q);
-
-            $html = '';
-//            print_r(get_class($lists));
-    //        print_r(mb_convert_encoding($pageDom->saveHTML($lists->item(0)), 'HTML-ENTITIES', "UTF-8"));
-            foreach($lists as $node){
-                if(!preg_match('/\"pid\"\:\"pl_wb_feedlist\"/', $node->nodeValue)){
-                    continue;
-                }
-
-
-                $js = substr(str_replace('STK && STK.pageletM && STK.pageletM.view(', '', $node->nodeValue), 0, -1);
-
-                $json = json_decode($js);
-                $html = $this->getUTFStr($json->html, 'HTML-ENTITIES', "UTF-8");
-    //            print_r(mb_convert_encoding($json->html, 'HTML-ENTITIES', "UTF-8"));
-
-
-    //            print_r(mb_convert_encoding($html[1], 'HTML-ENTITIES', "UTF-8"));
-            }
-
-            $divDom = new DomDocument('1.0', 'utf-8');
-            $divDom->formatOutput = true;
-            @$divDom->loadHTML($html);
-
-            $xp = new DOMXPath($divDom);
-            $c = "feed_lists";
-            $q = "//div[contains(concat(' ', normalize-space(@class), ' '), ' $c ')]/dl";
-            $lists = $xp->query($q);
-
-//            print_r($this->getUTFStr($divDom->saveHTML($lists->item(0))));
-    //        "//*[contains(concat(' ', normalize-space(@class), ' '), ' $classname ')]"
-            foreach($lists as $item){
-                $t = array();
-    //            print_r($item->childNodes->item(1)->nodeValue);
-
-                $newDom = new DomDocument('1.0', 'utf-8');
-                $newDom->formatOutput = true;
-                $searchPage = $this->getUTFStr($divDom->saveHTML($item));
-                @$newDom->loadHTML($searchPage);
-    //            
-                $xp = new DOMXPath($newDom);
-                $q = "//dd[@class='content']/p/a[@node-type='feed_list_item_date']";
-                $tag = $xp->query($q);
-                $t['url'] = $this->getUTFStr($tag->item(0)->getAttribute('href'));
-
-
-                $q = "//dd[@class='content']/p[@node-type='feed_list_content']/a";
-                $tag = $xp->query($q);
-                $t['headline'] = $this->getUTFStr(strip_tags($tag->item(0)->nodeValue));
-
-
-                $q = "//dd[@class='content']/p[@node-type='feed_list_content']/em";
-                $tag = $xp->query($q);
-                $t['body'] = $this->getUTFStr(strip_tags($tag->item(0)->nodeValue));
-
-
-                if(empty($t['headline']) || empty($t['body']) || empty($t['url'])){
-                    continue;
-                }
-                $t['extid'] = md5($t['url']);
-                $t['author'] = $t['headline'];
-                $t['source'] = '';
-//                print_r($t);
-                $ret[] = $t;
-            }
-        }
-        
-        print_r($ret);
-        
-        return $ret;
-    }
-    
-    function getUTFStr($s)
-    {
-        return mb_convert_encoding($s, 'HTML-ENTITIES', "UTF-8"); 
-    }
-    
-}
-
-//$a = new Pman_Reader_Parse_Weibo;
-//$a->parseSearch('["嘉民与顺丰快递在天津北辰区的新发展项目签署第二份租约"]');
diff --git a/PressRelease/Import/Search/Yahoo.php b/PressRelease/Import/Search/Yahoo.php
deleted file mode 100644 (file)
index 707c347..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-
-/*
- * 
- * fr2=time&btf=d - search day
- * 
- * n=100 - max query
- * 
- * p= Sony - keyword
- */
-
-/**
- * Description of Yahoo
- *
- * @author chris
- */
-
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-class Pman_PressRelease_Import_Search_Yahoo extends Pman_PressRelease_Import_Search_Base
-{ 
-  
-  
-    
-    
-    function parseSearch($keyword, $lang = 'en', $country='')
-    {
-        // get url.
-        // parse dom
-        // return an array that looks like the RSS feed..
-        
-        $l = array();
-        $kw = json_decode($keyword);
-        foreach($kw as $pp){
-            $l[] = '"'.trim($pp).'"';
-        }
-        
-        $param = array(
-            'fr2' => 'time', //flag to time
-            'ei' => 'UTF-8', // encoding
-            'btf' => 'm', // day -- d / w / m / y
-            'n' => 100, //no. of results
-            'b' => 1, // page being // this number should a (n * b + 1)
-            'pstart' => 1, // paging
-            'p' => implode(" OR ", $l), // keyword
-        );
-        
-        $url = (!empty($this->url)) ? $this->url : 'http://hk.search.yahoo.com/search?';
-        $request = $url.
-            http_build_query($param);
-            
-        
-        $context = stream_context_create(array(
-            'http' => array(
-                'header'  => 'User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11.1 (KHTML, like Gecko) Version/3.0.3 Safari/522.12.1'
-            )
-        ));
-        echo $request ."\n";
-        
-        $response = file_get_contents($request, 0, $context);
-        
-//        $response = file_get_contents(dirname(__FILE__).'/yahho.html');// for debug only
-
-//        exit;
-        
-        
-        
-        $html = tidy_repair_string(
-                $response,
-                array(
-                  'indent' => TRUE,
-                    'output-xhtml' => TRUE,
-                    'wrap' => 120
-                ),
-                'UTF8'
-        );
-        
-        //print_r($html);exit;
-        $pageDom = new DomDocument('1.0', 'utf-8');    
-        $pageDom->formatOutput = true;
-        $searchPage = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
-//        print_r($searchPage);
-        @$pageDom->loadHTML($searchPage);
-        
-        $ret = array();
-        $count = 1;
-        
-        
-        // this is the bit that changes....
-        
-        $xp = new DOMXPath($pageDom);
-        //$q = "id('web')/ol/li/div"; 
-        $q = "//div[@id='web']/ol/li/div";
-        $lists = $xp->query($q);
-        
-//        print_r($lists->length);
-//        print_r(get_class($lists));
-//        print_r(mb_convert_encoding($pageDom->saveHTML($lists->item(0)), 'HTML-ENTITIES', "UTF-8"));
-//        exit;
-//        foreach($r as)
-        foreach($lists as $node){
-//            $div = $node->getElementsByTagName('div')->item(0);
-            $t = array();
-            $newDom = new DomDocument('1.0', 'utf-8');
-            $newDom->formatOutput = true;
-            $searchPage = mb_convert_encoding($pageDom->saveHTML($node), 'HTML-ENTITIES', "UTF-8");
-            
-            //echo $searchPage;exit;
-            
-            @$newDom->loadHTML($searchPage);
-            
-            $xp = new DOMXPath($newDom);
-            $q = "//a";
-            $tag = $xp->query($q);
-             
-            if(!$tag->item(0)->hasAttribute('class') || !$tag->item(0)->hasAttribute('href')) {
-                continue;
-            }
-            $url = $tag->item(0)->getAttribute('href');
-            
-            
-            $url = $this->headURL($url);
-            if ($url == false) {
-                continue;
-            }
-            
-            
-            $t['url']  = $url;
-            $t['headline'] = preg_replace('/\s+/',' ', $tag->item(0)->textContent);
-            
-            $count++;
-            
-            if(empty($t['headline']) || empty($t['url'])){
-                continue;
-            }
-            $t['extid'] = md5($t['url']);
-            $t['author'] = '';
-            $t['source'] = '';
-            
-//            print_r($t);
-            
-            $ret[] = $t;
-        }
-        //print_r($ret);        exit;
-        return $ret;
-        
-    }
-    
-}
-//
-//
-//// this is for debug only
-//$a = new Pman_Reader_Parse_Yahoo;
-//$a->parseSearch('["Asian Festival of Children\u2019s Content Reveals Shortlist for Scholastic Asian Book Award 2014","Unveiling of Programmes for the Festival Held at The National Library of Singapore from  30 May \u2013 4 June 2014"]');
-//        
diff --git a/PressRelease/Import/Search/Yam.php b/PressRelease/Import/Search/Yam.php
deleted file mode 100644 (file)
index 83062fb..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-
-/**
- * Description of Yam
- *
- * @author chris
- */
-require_once 'Pman/PressRelease/Import/Search/Base.php';
-class Pman_PressRelease_Import_Search_Yam extends Pman_PressRelease_Import_Search_Base
-{
-    //put your code here
-    
-    function parseSearch($keyword, $lang = 'en', $country='')
-    {
-        // get url.
-        // parse dom
-        // return an array that looks like the RSS feed..
-        $l = array();
-        $kw = json_decode($keyword);
-        
-        usort($kw,function ($a,$b){
-            return strlen($a)-strlen($b);
-        });
-        //print_R($kw);exit;
-//        $l = array();
-        foreach($kw as $pp){
-            $l[] = '"'.trim($pp).'"';
-            if (strlen(implode('  ', $l)) > 50) {
-                break;
-            }
-        }
-
-//        print_r('(' . implode(" | ", $l).' )');
-        
-        
-        $param = array(
-            'tn' => 'baiduadv', //use the baidu advance search method
-            'ie' => 'UTF-8', // encoding
-            'lm' => 1, // search times... day=1, week=7, month=30, year=360, all = 0
-            'rn' => 100, //no. of results
-            'pn' => 0, // paging / this number should relate to number of results... (page * rn) the first page are 0
-            'wd' => '(' . implode(" | ", $l).' )', // keywords // encode ("Xperia" | "me" | "Sony PlayStation")
-        );
-        
-        $WebSearchURL = 'http://www.baidu.com/s?'.
-            http_build_query($param);
-        
-        print_r($WebSearchURL);
-        
-        $context = stream_context_create(array(
-            'http' => array(
-                'header'  => ''
-            )
-        ));
-
-        print_r($WebSearchURL);
-        $response = file_get_contents($WebSearchURL, 0, $context);
-        
-//        $response = file_get_contents('Pman/Reader/Parse/baidu.html');
-        
-//        print_r($response);
-        
-        $pageDom = new DomDocument('1.0', 'utf-8');    
-        $pageDom->formatOutput = true;
-        $searchPage = mb_convert_encoding($response, 'HTML-ENTITIES', "UTF-8"); 
-        @$pageDom->loadHTML($searchPage);
-        
-        
-        $ret = array();
-        $added = 0;
-        $xp = new DOMXPath($pageDom);
-        $q = "//div[@id='container']/div[@id='content_left']/div";
-//        $q = "//body";
-        $lists = $xp->query($q);
-        
-        
-//        print_r(get_class($lists));
-//        print_r($pageDom->getElementById('content_left')->tagName);
-//        print_r(mb_convert_encoding($pageDom->saveHTML($lists->item(0)), 'HTML-ENTITIES', "UTF-8"));
-//        exit;
-//        foreach($r as)
-        foreach($lists as $node){
-//            $div = $node->getElementsByTagName('div')->item(0);
-            $t = array();
-            $newDom = new DomDocument('1.0', 'utf-8');
-            $newDom->formatOutput = true;
-            $searchPage = mb_convert_encoding($pageDom->saveHTML($node), 'HTML-ENTITIES', "UTF-8"); 
-            @$newDom->loadHTML($searchPage);
-            
-            $xp = new DOMXPath($newDom);
-            $q = "//div";
-            $tag = $xp->query($q);
-//            print_r(mb_convert_encoding($newDom->saveHTML($tag->item(0)), 'HTML-ENTITIES', "UTF-8"));
-//            print_r($tag->item(0)->getAttribute('tpl'));
-//            exit;
-//            continue;
-            
-            //skip all is not a normal search result. etc. baidu zhidao....
-            if($tag->item(0)->getAttribute('tpl') != 'se_com_default'){// skip
-                
-                continue;
-            }
-            
-            $q = "//div/h3/a";
-            $hl = $xp->query($q); 
-
-            // at this point the url is baidu.. we need to fetch the redirect location to find out the real url..
-            
-//            $heads = get_headers($hl->item(0)->getAttribute('href'),1);
-//            print_r(strip_tags($hl->item(0)->nodeValue));
-//            exit;
-//            if (empty($heads['Location'])) {
-//                continue;
-//            }
-            // why 2 heads?
-            $t['url'] = $hl->item(0)->getAttribute('href');
-            
-            $t['headline'] = strip_tags($hl->item(0)->nodeValue);
-
-            
-            $q = "//div/div[@class='c-abstract']";
-            $body = $xp->query($q);
-            
-            if(empty($body->item(0)->nodeValue)){
-                $q = "//div/div[@class='c-span18 c-span-last']/div[@class='c-abstract']";
-                $body = $xp->query($q);
-            }
-            
-            // skip the unsafe content??? WTF search engine....
-            $t['body'] = (empty($body->item(0)->nodeValue)) ? '' : $body->item(0)->nodeValue; 
-            
-            if(empty($t['headline']) || empty($t['body']) || empty($t['url'])){
-                continue;
-            }
-            $t['extid'] = md5($t['url']);
-            $t['author'] = '';
-            $t['source'] = '';
-            $ret[] = $t;
-            
-        }
-        
-        print_r($ret);
-        return $ret;
-        
-        
-        
-        
-    }
-}
diff --git a/PressRelease/Import/Search/baidu.html b/PressRelease/Import/Search/baidu.html
deleted file mode 100644 (file)
index 457ff9d..0000000
+++ /dev/null
@@ -1,997 +0,0 @@
-<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><style data-for="sug">.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#form .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http://www.baidu.com/img/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}</style><style data-for="result">body{color:#333;background:#fff;padding:6px 0 0;margin:0;position:relative;min-width:900px}body,th,td,.p1,.p2{font-family:arial}p,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}input{padding-top:0;padding-bottom:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}table,img{border:0}td{font-size:9pt;line-height:18px}em{font-style:normal;color:#cc0000}a em{text-decoration:underline}cite{font-style:normal;color:#008000}.m,a.m{color:#666}a.m:visited{color:#606}.g,a.g{color:#008000}.c{color:#77c}.f14{font-size:14px}.f10{font-size:10.5pt}.f16{font-size:16px}.f13{font-size:13px}.bg{background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_37d13939.png);background-repeat:no-repeat;_background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5e61a51c.gif);background-repeat:no-repeat}.bg_tuiguang_browser{width:16px;height:16px;background-position:-600px 0;display:inline-block;vertical-align:text-bottom;font-style:normal;overflow:hidden;margin-right:5px}.bg_tuiguang_browser_big{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-600px -24px}.bg_tuiguang_weishi{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-672px -24px}#u,#head,#tool,#search,#foot{font-size:12px}.logo{width:117px;height:38px;cursor:pointer}.p1{line-height:120%;margin-left:-12pt}.p2{width:100%;line-height:120%;margin-left:-12pt}#wrapper{_zoom:1}#container{word-break:break-all;word-wrap:break-word}.container_s{width:1002px}.container_l{width:1222px}#content_left{width:636px;float:left;padding-left:35px}#content_right{border-left:1px solid #e1e1e1;float:right}.container_s #content_right{width:271px}.container_l #content_right{width:434px}.content_none{padding-left:35px}#u{color:#999;white-space:nowrap;position:absolute;right:10px;top:4px;z-index:299}#u a{color:#00c;margin:0 5px}#u .reg{margin:0}#u .last{margin-right:0}#u .un{font-weight:bold;margin-right:5px}#u ul{width:100%;background:#fff;border:1px solid #9b9b9b}#u li{height:25px}#u li a{width:100%;height:25px;line-height:25px;display:block;text-align:left;text-decoration:none;text-indent:6px;margin:0;filter:none\9}#u li a:hover{background:#ebebeb}#u li.nl{border-top:1px solid #ebebeb}#user{position:relative;display:inline-block}#user_center{position:relative;display:inline-block}#user_center .user_center_btn{margin-right:5px}.userMenu{width:64px;position:absolute;right:7px;_right:2px;top:15px;top:14px\9;*top:15px;padding-top:4px;display:none;*background:#fff}#head{padding-left:35px;margin-bottom:20px;width:900px}.fm{clear:both;position:relative;z-index:297}.nv a,.nv b,.btn,#page,#more{font-size:14px}.s_nav{height:45px}.s_nav .s_logo{margin-right:20px;float:left}.s_nav .s_logo img{border:0;display:block}.s_tab{line-height:18px;padding:20px 0 0;float:left}.s_nav a{color:#0000cc;font-size:14px}.s_nav b{font-size:14px}.s_ipt_wr{width:536px;height:30px;display:inline-block;margin-right:5px;background-position:0 -96px;border:1px solid #b6b6b6;border-color:#7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;vertical-align:top}.s_ipt{width:523px;height:22px;font:16px/22px arial;margin:5px 0 0 7px;padding:0;background:#fff;border:0;outline:0;-webkit-appearance:none}.s_btn{width:95px;height:32px;padding-top:2px\9;font-size:14px;padding:0;background-color:#ddd;background-position:0 -48px;border:0;cursor:pointer}.s_btn_h{background-position:-240px -48px}.s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}.sethf{padding:0;margin:0;font-size:14px}.set_h{display:none;behavior:url(#default#homepage)}.set_f{display:none}.shouji{margin-left:19px}.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#head .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http://www.baidu.com/img/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}#tb_mr{color:#00c;cursor:pointer;position:relative;z-index:298}#tb_mr b{font-weight:normal;text-decoration:underline}#tb_mr small{font-size:11px}#page{font:14px arial;white-space:nowrap;padding-left:35px}#page a,#page strong{display:inline-block;vertical-align:text-bottom;height:66px;text-align:center;line-height:34px;text-decoration:none;overflow:hidden;margin-right:9px;background:white}#page a{cursor:pointer}#page a:hover{background:0}#page .n:hover,#page a:hover .pc{background:#f2f8ff;border:1px solid #38f}#page .n{height:34px;padding:0 18px;border:1px solid #e1e2e3}#page span{display:block}#page .pc{width:34px;height:34px;border:1px solid #e1e2e3;cursor:pointer}#page .fk{width:24px;height:24px;margin-bottom:6px;margin-left:6px;cursor:pointer}#page strong .fk,#page strong .pc{cursor:auto}#page .fk .c-icon-bear-pn{top:-3px;position:relative}#page .fkd .c-icon-bear-pn{top:3px;position:relative}#page .fk_cur .c-icon-bear-p{top:-2px;position:relative}#page strong .pc{border:0;width:36px;height:36px;line-height:36px}#page .nums{display:inline-block;vertical-align:text-bottom;height:36px;line-height:36px;margin-left:10px}#rs{width:900px;background:#fff;padding:8px 0;margin:20px 0 0 15px}#rs td{width:5%}#rs th{font-size:14px;font-weight:normal;line-height:19px;white-space:nowrap;text-align:left;vertical-align:top}#rs .tt{font-weight:bold;padding:0 10px 0 20px}#rs_top{font-size:14px;margin-bottom:22px}#rs_top a{margin-right:18px}#search{width:900px;padding:35px 0 16px 35px}#search .s_help{position:relative;top:10px}#foot{height:20px;line-height:20px;color:#77c;background:#e6e6e6;text-align:center}#foot span{color:#666}.site_tip{font-size:12px;margin-bottom:20px}.site_tip_icon{width:56px;height:56px;background:url(http://www.baidu.com/aladdin/img/tools/tools-3.png) -288px 0 no-repeat}.to_zhidao,.to_tieba,.to_zhidao_bottom{font-size:16px;line-height:24px;margin:20px 0 0 35px}.to_tieba .c-icon-tieba{float:left}.f{line-height:115%;*line-height:120%;font-size:100%;width:33.7em;word-break:break-all;word-wrap:break-word}.h{margin-left:8px;width:100%}.r{word-break:break-all;cursor:hand;width:238px}.t{font-weight:normal;font-size:medium;margin-bottom:1px}.pl{padding-left:3px;height:8px;padding-right:2px;font-size:14px}.mo,a.mo:link,a.mo:visited{color:#666;font-size:100%;line-height:10px}.htb{margin-bottom:5px}.jc a{color:#cc0000}a font[size="3"] font,font[size="3"] a font{text-decoration:underline}div.blog,div.bbs{color:#707070;padding-top:2px;font-size:13px}.result{width:33.7em;table-layout:fixed}.result-op .f{word-wrap:normal}.nums{font-size:12px;color:#999}.tools{position:absolute;top:10px;white-space:nowrap}#mHolder{width:62px;position:relative;z-index:296;top:-18px;margin-left:9px;margin-right:-12px;display:none}#mCon{height:18px;position:absolute;right:7px;top:3px;top:6px\9;cursor:pointer;line-height:18px}#mCon span{color:#00c;cursor:default;display:block}#mCon .hw{text-decoration:underline;cursor:pointer;display:inline-block}#mCon .pinyin{display:inline-block}#mCon .c-icon-chevron-unfold2{margin-left:5px}#mMenu{width:56px;border:1px solid #9b9b9b;position:absolute;right:7px;top:23px;display:none;background:#fff}#mMenu a{width:100%;height:100%;color:#00c;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\9}#mMenu a:hover{background:#ebebeb}#mMenu .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}.op_LAMP{background:url("/cache/global/img/aladdinIcon-1.0.gif") no-repeat 0 2px;color:#77C;display:inline-block;font-size:13px;height:12px;*height:14px;width:16px;text-decoration:none;zoom:1}.EC_mr15{margin-left:0}.pd15{padding-left:0}.map_1{width:30em;font-size:80%;line-height:145%}.map_2{width:25em;font-size:80%;line-height:145%}.favurl{background-repeat:no-repeat;background-position:0 1px;padding-left:20px}.dan_tip{font-size:12px;margin-top:4px}.dan_tip a{color:#b95b07}#more,#u ul,#mMenu,.msg_holder{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2,Direction=135,Color="#cccccc")\9}.hit_top{line-height:18px;margin:0 15px 10px 0;width:516px}.hit_top .c-icon-bear{height:18px;margin-right:4px}.f a font[size="3"] font,.f font[size="-1"] a font{text-decoration:underline}h3 a font{text-decoration:underline}.c-title{font-weight:normal;font-size:16px}.c-title-size{font-size:16px}.c-abstract{font-size:13px}.c-abstract-size{font-size:13px}.c-showurl{color:#008000;font-size:13px}.c-showurl-color{color:#008000}.c-cache-color{color:#666}.c-lightblue{color:#77C}.c-highlight-color{color:#C00}.c-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.c-clearfix{zoom:1}.c-wrap{word-break:break-all;word-wrap:break-word}.c-icons-outer{overflow:hidden;display:inline-block;vertical-align:bottom}.c-icons-inner{margin-left:-4px}.c-container table.result,.c-container table.result-op{width:100%}.c-container td.f{font-size:13px;line-height:1.54;width:auto}.c-container .vd_newest_main{width:auto}.c-customicon{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-tip-icon i{display:inline-block;cursor:pointer}.c-tip-con{position:absolute;z-index:1;top:22px;left:-35px;background:#fff;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.2);-webkit-transition:opacity .218s;transition:opacity .218s;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);padding:5px 0 5px 0;display:none;font-size:12px;line-height:20px}.c-tip-arrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-16px}.c-tip-arrow em,.c-tip-arrow ins{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:8px solid #000;border-style:dashed dashed solid dashed}.c-tip-arrow em{border-color:transparent transparent #d8d8d8 transparent}.c-tip-arrow ins{border-color:transparent transparent #fff transparent;top:2px}.c-tip-con h3{font-size:12px}.c-tip-con .c-tip-title{margin:0 10px;display:inline-block;width:239px}.c-tip-con .c-tip-info{color:#666;margin:0 10px 1px 10px;width:239px}.c-tip-con .c-tip-cer{width:354px;color:#666;margin:0 10px 1px 10px}.c-tip-con .c-tip-title{width:auto;_width:354px}.c-tip-con .c-tip-item-i{padding:3px 0 3px 20px;line-height:14px}.c-tip-con .c-tip-item-i .c-tip-item-icon{margin-left:-20px}.c-tip-con .c-tip-menu ul{width:74px}.c-tip-con .c-tip-menu ul{text-align:center}.c-tip-con .c-tip-menu li a{display:block;text-decoration:none;cursor:pointer;background-color:#fff;padding:3px 0;color:#0000d0}.c-tip-con .c-tip-menu li a:hover{display:block;background-color:#ebebeb}.c-tip-con .c-tip-notice{width:239px;padding:0 10px}.c-tip-con .c-tip-notice .c-tip-notice-succ{color:#4cbd37}.c-tip-con .c-tip-notice .c-tip-notice-fail{color:#f13f40}.c-tip-con .c-tip-notice .c-tip-item-succ{color:#444}.c-tip-con .c-tip-notice .c-tip-item-fail{color:#aaa}.c-tip-con .c-tip-notice .c-tip-item-faila{color:#aaa}.c-tip-close{right:10px;position:absolute;cursor:pointer}.c-tools{display:inline}.c-tools-share{width:239px;padding:0 10px}.icp_info{color:#666;margin-top:2px;font-size:13px}.icon-gw,.icon-unsafe-icon{background:#2c99ff;vertical-align:text-bottom;*vertical-align:baseline;height:16px;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px;line-height:16px;_padding-top:2px;_height:14px;_line-height:14px;font-size:12px;font-family:simsun;margin-left:10px;overflow:hidden;display:inline-block;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px;color:#fff}a.icon-gw{color:#fff;background:#2196ff;text-decoration:none;cursor:pointer}a.icon-gw:hover{background:#1e87ef}a.icon-gw:active{height:15px;_height:13px;line-height:15px;_line-height:13px;padding-left:5px;background:#1c80d9;border-left:1px solid #145997;border-top:1px solid #145997}.icon-unsafe-icon{background:#e54d4b}#con-at{margin-bottom:15px}#con-ar{margin-bottom:40px}#con-at .result-op{margin-bottom:15px;font-size:13px;line-height:1.52em}#con-ar .result-op{margin-bottom:28px;font-size:13px;line-height:1.52em}#content_left .result-op,#content_left .result{margin-bottom:14px;border-collapse:collapse}#content_left .c-border .result-op,#content_left .c-border .result{margin-bottom:25px}#content_left .c-border .result-op:last-child,#content_left .c-border .result:last-child{margin-bottom:12px}#content_left .result .f,#content_left .result-op .f{padding:0}.subLink_factory{border-collapse:collapse}.subLink_factory td{padding:0}.subLink_factory td.middle,.subLink_factory td.last{color:#666}.subLink_factory td a{text-decoration:underline}.subLink_factory td.rightTd{text-align:right}.subLink_factory_right{width:100%}.subLink_factory_left td{padding-right:26px}.subLink_factory_left td.last{padding:0}.subLink_factory_left td.first{padding-right:75px}.subLink_factory_right td{width:90px}.subLink_factory_right td.first{width:auto}.general_image_pic{margin-top:2px}.general_image_pic a{background:#fff no-repeat center center;text-decoration:none;display:block;overflow:hidden;text-align:center}@-moz-document url-prefix(){.result,.f{width:538px}}</style><style data-for="result">.c-icon{background:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_37d13939.png) no-repeat 0 0;_background-image:url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5e61a51c.gif)}.c-frame{margin-bottom:18px}.c-offset{padding-left:10px}.c-gray{color:#666}.c-gap-top-small{margin-top:5px}.c-gap-top{margin-top:10px}.c-gap-bottom-small{margin-bottom:5px}.c-gap-bottom{margin-bottom:10px}.c-gap-left{margin-left:12px}.c-gap-left-small{margin-left:6px}.c-gap-right{margin-right:12px}.c-gap-right-small{margin-right:6px}.c-gap-icon-right-small{margin-right:5px}.c-gap-icon-right{margin-right:10px}.c-gap-icon-left-small{margin-left:5px}.c-gap-icon-left{margin-left:10px}.c-container{width:538px;font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .c-container{width:auto}.c-container table{border-collapse:collapse;border-spacing:0}.c-container td{font-size:13px;line-height:1.54}.c-default{font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .t,.c-default .t{line-height:1.54}.c-default .t{margin-bottom:0}.cr-content{width:259px;font-size:13px;line-height:1.54;color:#333}.cr-content table{border-collapse:collapse;border-spacing:0}.cr-content td{font-size:13px;line-height:1.54;vertical-align:top}.cr-offset{padding-left:17px}.cr-title{font-size:14px;line-height:1.29;font-weight:bold}.cr-title-sub{float:right;font-size:13px;font-weight:normal}.c-row{*zoom:1}.c-row:after{display:block;height:0;content:"";clear:both;visibility:hidden}.c-span2{width:29px}.c-span3{width:52px}.c-span4{width:75px}.c-span5{width:98px}.c-span6{width:121px}.c-span7{width:144px}.c-span8{width:167px}.c-span9{width:190px}.c-span10{width:213px}.c-span11{width:236px}.c-span12{width:259px}.c-span13{width:282px}.c-span14{width:305px}.c-span15{width:328px}.c-span16{width:351px}.c-span17{width:374px}.c-span18{width:397px}.c-span19{width:420px}.c-span20{width:443px}.c-span21{width:466px}.c-span22{width:489px}.c-span23{width:512px}.c-span24{width:535px}.c-span2,.c-span3,.c-span4,.c-span5,.c-span6,.c-span7,.c-span8,.c-span9,.c-span10,.c-span11,.c-span12,.c-span13,.c-span14,.c-span15,.c-span16,.c-span17,.c-span18,.c-span19,.c-span20,.c-span21,.c-span22,.c-span23,.c-span24{float:left;_display:inline;margin-right:17px;list-style:none}.c-span-last{margin-right:0}.c-span-last-s{margin-right:0}.container_l .cr-content{width:351px}.container_l .cr-content .c-span-last-s{margin-right:17px}.container_l .cr-content-narrow{width:259px}.container_l .cr-content-narrow .c-span-last-s{margin-right:0}.c-border{width:518px;padding:9px;border:1px solid #e3e3e3;border-bottom-color:#e0e0e0;border-right-color:#ececec;box-shadow:1px 2px 1px rgba(0,0,0,0.072);-webkit-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-moz-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-o-box-shadow:1px 2px 1px rgba(0,0,0,0.072)}.c-border .c-gap-left{margin-left:10px}.c-border .c-gap-left-small{margin-left:5px}.c-border .c-gap-right{margin-right:10px}.c-border .c-gap-right-small{margin-right:5px}.c-border .c-border{width:auto;padding:0;border:0;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none}.c-border .c-span2{width:34px}.c-border .c-span3{width:56px}.c-border .c-span4{width:78px}.c-border .c-span5{width:100px}.c-border .c-span6{width:122px}.c-border .c-span7{width:144px}.c-border .c-span8{width:166px}.c-border .c-span9{width:188px}.c-border .c-span10{width:210px}.c-border .c-span11{width:232px}.c-border .c-span12{width:254px}.c-border .c-span13{width:276px}.c-border .c-span14{width:298px}.c-border .c-span15{width:320px}.c-border .c-span16{width:342px}.c-border .c-span17{width:364px}.c-border .c-span18{width:386px}.c-border .c-span19{width:408px}.c-border .c-span20{width:430px}.c-border .c-span21{width:452px}.c-border .c-span22{width:474px}.c-border .c-span23{width:496px}.c-border .c-span24{width:518px}.c-border .c-span2,.c-border .c-span3,.c-border .c-span4,.c-border .c-span5,.c-border .c-span6,.c-border .c-span7,.c-border .c-span8,.c-border .c-span9,.c-border .c-span10,.c-border .c-span11,.c-border .c-span12,.c-border .c-span13,.c-border .c-span14,.c-border .c-span15,.c-border .c-span16,.c-border .c-span17,.c-border .c-span18,.c-border .c-span19,.c-border .c-span20,.c-border .c-span21,.c-border .c-span22,.c-border .c-span23,.c-border .c-span24{margin-right:10px}.c-border .c-span-last{margin-right:0}.c-loading{display:block;width:50px;height:50px;background:url(http://www.baidu.com/aladdin/img/tools/loading.gif) no-repeat 0 0}.c-vline{display:inline-block;margin:0 3px;border-left:1px solid #ddd;width:0;height:12px;_vertical-align:middle;_overflow:hidden}.c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold{width:12px;height:12px}.c-icon-star,.c-icon-star-gray{width:60px}.c-icon-qa-empty,.c-icon-safeguard,.c-icon-register-empty,.c-icon-zan,.c-icon-location,.c-icon-warning,.c-icon-doc,.c-icon-xls,.c-icon-ppt,.c-icon-pdf,.c-icon-txt,.c-icon-play-black,.c-icon-gift,.c-icon-baidu-share,.c-icon-bear,.c-icon-sfda,.c-icon-bear-border,.c-icon-location-blue,.c-icon-hotAirBall,.c-icon-moon,.c-icon-streetMap,.c-icon-mv,.c-icon-zhidao-s{width:16px;height:16px}.c-icon-bear-circle,.c-icon-warning-circle,.c-icon-warning-triangle,.c-icon-warning-circle-gray{width:18px;height:18px}.c-icon-tieba,.c-icon-zhidao,.c-icon-bear-p,.c-icon-bear-pn{width:24px;height:24px}.c-icon-ball-blue,.c-icon-ball-red{width:38px;height:38px}.c-icon-unfold:hover,.c-icon-fold:hover,.c-icon-chevron-unfold:hover,.c-icon-chevron-fold:hover,.c-icon-download:hover,.c-icon-lyric:hover,.c-icon-v:hover,.c-icon-hui:hover,.c-icon-bao:hover,.c-icon-person:hover,.c-icon-high-v:hover,.c-icon-phone:hover,.c-icon-nuo:hover,.c-icon-med:hover,.c-icon-air:hover,.c-icon-share2:hover,.c-icon-v1:hover,.c-icon-v2:hover,.c-icon-v3:hover,.c-icon-write:hover{border-color:#388bff}.c-icon-unfold:active,.c-icon-fold:active,.c-icon-chevron-unfold:active,.c-icon-chevron-fold:active,.c-icon-download:active,.c-icon-lyric:active,.c-icon-v:active,.c-icon-hui:active,.c-icon-bao:active,.c-icon-person:active,.c-icon-high-v:active,.c-icon-phone:active,.c-icon-nuo:active,.c-icon-med:active,.c-icon-air:active,.c-icon-share2:active,.c-icon-v1:active,.c-icon-v2:active,.c-icon-v3:active,.c-icon-write:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold,.c-icon-download,.c-icon-lyric{border:1px solid #d8d8d8;cursor:pointer}.c-icon-v,.c-icon-hui,.c-icon-bao,.c-icon-person,.c-icon-high-v,.c-icon-phone,.c-icon-nuo,.c-icon-med,.c-icon-air,.c-icon-share2,.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-write{border:1px solid #d8d8d8;cursor:pointer;border-color:transparent;_border-color:#ff6347;_filter:chroma(color=#ff6347)}.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-v1-noborder,.c-icon-v2-noborder,.c-icon-v3-noborder,.c-icon-v1-noborder-disable,.c-icon-v2-noborder-disable,.c-icon-v3-noborder-disable{width:19px}.c-icon-download,.c-icon-lyric{width:16px;height:16px}.c-icon-play-circle,.c-icon-stop-circle{width:18px;height:18px}.c-icon-play-circle-middle,.c-icon-stop-circle-middle{width:24px;height:24px}.c-icon-play-black-large,.c-icon-stop-black-large{width:38px;height:38px}.c-icon-flag{background-position:0 -144px}.c-icon-bus{background-position:-24px -144px}.c-icon-calendar{background-position:-48px -144px}.c-icon-street{background-position:-72px -144px}.c-icon-map{background-position:-96px -144px}.c-icon-bag{background-position:-120px -144px}.c-icon-money{background-position:-144px -144px}.c-icon-game{background-position:-168px -144px}.c-icon-user{background-position:-192px -144px}.c-icon-globe{background-position:-216px -144px}.c-icon-lock{background-position:-240px -144px}.c-icon-plane{background-position:-264px -144px}.c-icon-list{background-position:-288px -144px}.c-icon-star-gray{background-position:-312px -144px}.c-icon-circle-gray{background-position:-384px -144px}.c-icon-triangle-down{background-position:-408px -144px}.c-icon-triangle-up{background-position:-432px -144px}.c-icon-triangle-up-empty{background-position:-456px -144px}.c-icon-sort-gray{background-position:-480px -144px}.c-icon-sort-up{background-position:-504px -144px}.c-icon-sort-down{background-position:-528px -144px}.c-icon-down-gray{background-position:-552px -144px}.c-icon-up-gray{background-position:-576px -144px}.c-icon-download-noborder{background-position:-600px -144px}.c-icon-lyric-noborder{background-position:-624px -144px}.c-icon-download-white{background-position:-648px -144px}.c-icon-close{background-position:-672px -144px}.c-icon-fail{background-position:-696px -144px}.c-icon-success{background-position:-720px -144px}.c-icon-triangle-down-g{background-position:-744px -144px}.c-icon-refresh{background-position:-768px -144px}.c-icon-chevron-left-gray{background-position:-816px -144px}.c-icon-chevron-right-gray{background-position:-840px -144px}.c-icon-fullscreen{background-position:0 -168px}.c-icon-safe{background-position:-24px -168px}.c-icon-exchange{background-position:-48px -168px}.c-icon-chevron-bottom{background-position:-72px -168px}.c-icon-chevron-top{background-position:-96px -168px}.c-icon-unfold{background-position:-120px -168px}.c-icon-fold{background-position:-144px -168px}.c-icon-chevron-unfold{background-position:-168px -168px}.c-icon-qa{background-position:-192px -168px}.c-icon-register{background-position:-216px -168px}.c-icon-star{background-position:-240px -168px}.c-icon-star-gray{position:relative}.c-icon-star-gray .c-icon-star{position:absolute;top:0;left:0}.c-icon-play-blue{background-position:-312px -168px}.c-icon-pic{width:16px;background-position:-336px -168px}.c-icon-chevron-fold{background-position:-360px -168px}.c-icon-video{width:18px;background-position:-384px -168px}.c-icon-circle-blue{background-position:-408px -168px}.c-icon-circle-yellow{background-position:-432px -168px}.c-icon-play-white{background-position:-456px -168px}.c-icon-triangle-down-blue{background-position:-480px -168px}.c-icon-chevron-unfold2{background-position:-504px -168px}.c-icon-right{background-position:-528px -168px}.c-icon-right-empty{background-position:-552px -168px}.c-icon-new-corner{width:15px;background-position:-576px -168px}.c-icon-horn{background-position:-600px -168px}.c-icon-right-large{width:18px;background-position:-624px -168px}.c-icon-wrong-large{background-position:-648px -168px}.c-icon-circle-blue-s{background-position:-672px -168px}.c-icon-play-gray{background-position:-696px -168px}.c-icon-up{background-position:-720px -168px}.c-icon-down{background-position:-744px -168px}.c-icon-stable{background-position:-768px -168px}.c-icon-calendar-blue{background-position:-792px -168px}.c-icon-triangle-down-blue2{background-position:-816px -168px}.c-icon-triangle-up-blue2{background-position:-840px -168px}.c-icon-down-blue{background-position:-864px -168px}.c-icon-up-blue{background-position:-888px -168px}.c-icon-ting{background-position:-912px -168px}.c-icon-piao{background-position:-936px -168px}.c-icon-wrong-empty{background-position:-960px -168px}.c-icon-warning-circle-s{background-position:-984px -168px}.c-icon-chevron-left{background-position:-1008px -168px}.c-icon-chevron-right{background-position:-1032px -168px}.c-icon-v,.c-icon-v-noborder{background-position:0 -192px}.c-icon-hui{background-position:-24px -192px}.c-icon-bao{background-position:-48px -192px}.c-icon-phone{background-position:-72px -192px}.c-icon-qa-empty{background-position:-96px -192px}.c-icon-safeguard{background-position:-120px -192px}.c-icon-register-empty{background-position:-144px -192px}.c-icon-zan{background-position:-168px -192px}.c-icon-location{background-position:-240px -192px}.c-icon-warning{background-position:-264px -192px}.c-icon-doc{background-position:-288px -192px}.c-icon-xls{background-position:-312px -192px}.c-icon-ppt{background-position:-336px -192px}.c-icon-pdf{background-position:-360px -192px}.c-icon-txt{background-position:-384px -192px}.c-icon-play-black{background-position:-408px -192px}.c-icon-play-black:hover{background-position:-432px -192px}.c-icon-gift{background-position:-456px -192px}.c-icon-baidu-share{background-position:-480px -192px}.c-icon-bear{background-position:-504px -192px}.c-icon-sfda{width:31px;background-position:-528px -192px}.c-icon-bear-border{background-position:-576px -192px}.c-icon-person,.c-icon-person-noborder{background-position:-600px -192px}.c-icon-location-blue{background-position:-624px -192px}.c-icon-hotAirBall{background-position:-648px -192px}.c-icon-moon{background-position:-672px -192px}.c-icon-streetMap{background-position:-696px -192px}.c-icon-high-v,.c-icon-high-v-noborder{background-position:-720px -192px}.c-icon-nuo{background-position:-744px -192px}.c-icon-mv{background-position:-768px -192px}.c-icon-med{background-position:-816px -192px}.c-icon-air{background-position:-840px -192px}.c-icon-share2{background-position:-864px -192px}.c-icon-v1,.c-icon-v1-noborder{background-position:-888px -192px}.c-icon-v2,.c-icon-v2-noborder{background-position:-912px -192px}.c-icon-v3,.c-icon-v3-noborder{background-position:-936px -192px}.c-icon-v1-noborder-disable{background-position:-960px -192px}.c-icon-v2-noborder-disable{background-position:-984px -192px}.c-icon-v3-noborder-disable{background-position:-1008px -192px}.c-icon-write{background-position:-1032px -192px}.c-icon-zhidao-s{background-position:-1056px -192px}.c-icon-bear-circle{background-position:0 -216px}.c-icon-warning-circle{background-position:-24px -216px}.c-icon-warning-triangle{width:24px;background-position:-48px -216px}.c-icon-warning-circle-gray{background-position:-72px -216px}.c-icon-ball-red{background-position:0 -240px}.c-icon-ball-blue{background-position:-48px -240px}.c-icon-tieba{background-position:0 -288px}.c-icon-zhidao{background-position:-48px -288px}.c-icon-bear-p{background-position:-96px -288px}.c-icon-bear-pn{background-position:-144px -288px}.c-icon-download{background-position:0 -336px}.c-icon-lyric{background-position:-24px -336px}.c-icon-play-circle{background-position:-48px -336px}.c-icon-play-circle:hover{background-position:-72px -336px}.c-icon-stop-circle{background-position:-96px -336px}.c-icon-stop-circle:hover{background-position:-120px -336px}.c-icon-play-circle-middle{background-position:0 -360px}.c-icon-play-circle-middle:hover{background-position:-48px -360px}.c-icon-stop-circle-middle{background-position:-96px -360px}.c-icon-stop-circle-middle:hover{background-position:-144px -360px}.c-icon-play-black-large{background-position:0 -408px}.c-icon-play-black-large:hover{background-position:-48px -408px}.c-icon-stop-black-large{background-position:-96px -408px}.c-icon-stop-black-large:hover{background-position:-144px -408px}.c-text{display:inline-block;padding:2px;text-align:center;vertical-align:text-bottom;font-size:12px;line-height:100%;font-style:normal;color:#fff;overflow:hidden}a.c-text{text-decoration:none}.c-text-new{background-color:#f13f40}.c-text-info{padding-left:0;padding-right:0;font-weight:bold;color:#2b99ff;*vertical-align:baseline;_position:relative;_top:2px}.c-text-info b{_position:relative;_top:-1px}.c-text-info span{padding:0 2px;font-weight:normal}.c-text-important{background-color:#1cb7fd}.c-text-public{background-color:#2b99ff}.c-text-warning{background-color:#ff830f}.c-text-prompt{background-color:#f5c537}.c-text-danger{background-color:#f13f40}.c-text-safe{background-color:#52c277}.c-text-empty{padding-top:1px;padding-bottom:1px;border:1px solid #d8d8d8;cursor:pointer;color:#23b9fd;background-color:#fff}.c-text-empty:hover{border-color:#388bff}.c-text-empty:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-text-mult{padding-left:5px;padding-right:5px}</style><meta http-equiv="X-UA-Compatible" content="IE=Edge"><title>("me" | "Sony" | "Xperia" | "Sony PlayStation" )_百度搜索</title><style data-for="debug">#debug{display:none!important}</style><style>.c-img{display:block;min-height:1px;border:none 0}.c-img3{width:52px}.c-img4{width:75px}.c-img6{width:121px}.c-img7{width:144px}.c-img12{width:259px}.c-img15{width:328px}.c-img18{width:397px}.c-border .c-img3{width:56px}.c-border .c-img4{width:78px}.c-border .c-img7{width:144px}.c-border .c-img12{width:254px}.c-border .c-img15{width:320px}.c-border .c-img18{width:386px} .op_baikeperson_container p{word-break:break-all;}.op_baikeperson_concern{height:22px;line-height:1.69em;margin-bottom:2px;position:relative;padding-left:56px;}.op_baikeperson_concerntext{position:absolute;height:22px;width:40px;padding:0 8px;left:0;top:0;background:#3288ff;color:#fff;}.op_baikeperson_concernright{display:inline-block;height:20px;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;background:#f7f7f7;}.op_baikeperson_concernright a{display:inline-block;height:20px;line-height:1.54em;float:left;border-right:2px solid #3288ff;padding:0 8px;text-decoration:none;color:#333;}.op-baikeperson-showurl{margin-bottom:1px;}.op_sp_realtime_preBox{text-decoration:none;position:relative;overflow:hidden;}.op_sp_realtime_preBox img{vertical-align:top;float:left;height:79px;}.op_sp_realtime_preBox span,.op_sp_realtime_preBox b{display:block;position:absolute;bottom:0;left:1px;height:20px;cursor:pointer;}.op_sp_realtime_preBox span{display:block;background:#000;opacity:.65;filter:alpha(opacity=65);width:119px;}.op_sp_realtime_preBox b{font:400 13px/20px arial;color:#fff;background:url(http://s1.bdstatic.com/r/www/cache/realtime/img/play-1.0.png) no-repeat 4px center;padding-left:20px;}</style></head><body link="#0000cc" style="display: block;"><div id="wrapper" style="display: block;" class="wrapper_l"><div id="debug" style="display:block;position:absolute;top:30px;right:30px;border:1px solid;padding:5px 10px;"><table><tbody><tr><td>ctime</td><td>1014</td></tr><tr><td>wd</td><td>(%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20)</td></tr><tr><td>ntime</td><td>1130</td></tr><tr><td>stat</td><td>0</td></tr><tr><td>used</td><td>1</td></tr><tr><td>type</td><td>2</td></tr><tr><td>rtime</td><td>765</td></tr><tr><td>utime</td><td>2170</td></tr><tr><td>res</td><td>1</td></tr><tr><td>domtime</td><td>16</td></tr><tr><td>waittime</td><td>817</td></tr><tr><td>base64time</td><td>0</td></tr><tr><td>jsmergetime</td><td>0</td></tr><tr><td>bdstime</td><td>0</td></tr><tr><td>alajstime</td><td>0</td></tr><tr><td>ecomtime</td><td>0</td></tr><tr><td>tiptime</td><td>0</td></tr><tr><td>urtime</td><td>0</td></tr><tr><td>clicktime</td><td>4</td></tr></tbody></table></div><div id="u" style=""><a href="http://www.baidu.com/gaoji/preferences.html" onmousedown="return user_c({'fm':'set','tab':'setting','login':'0'})">搜索设置</a>|<a id="btop" href="/" onmousedown="return user_c({'fm':'set','tab':'index','login':'0'})">百度首页</a>|<a id="lb" href="https://passport.baidu.com/v2/?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2F" onclick="return false;" onmousedown="return user_c({'fm':'set','tab':'login'})">登录</a><a href="https://passport.baidu.com/v2/?reg&amp;regType=1&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2F" onmousedown="return user_c({'fm':'set','tab':'reg'})" target="_blank" class="reg">注册</a></div><div id="head"><div class="s_nav"><a href="/" class="s_logo" onmousedown="return c({'fm':'tab','tab':'logo'})"><img src="http://www.baidu.com/img/baidu_jgylogo3.gif" width="117" height="38" border="0" alt="到百度首页" title="到百度首页"></a><div class="s_tab" id="s_tab"><a href="http://news.baidu.com/ns?cl=2&amp;rn=20&amp;tn=news&amp;word=" wdfield="word" onmousedown="return c({'fm':'tab','tab':'news'})">新闻</a> <b>网页</b> <a href="http://tieba.baidu.com/f?kw=&amp;fr=wwwt" wdfield="kw" onmousedown="return c({'fm':'tab','tab':'tieba'})">贴吧</a> <a href="http://zhidao.baidu.com/q?ct=17&amp;pn=0&amp;tn=ikaslist&amp;rn=10&amp;word=&amp;fr=wwwt" wdfield="word" onmousedown="return c({'fm':'tab','tab':'zhidao'})">知道</a> <a href="http://music.baidu.com/search?fr=ps&amp;key=" wdfield="key" onmousedown="return c({'fm':'tab','tab':'music'})">音乐</a> <a href="http://image.baidu.com/i?tn=baiduimage&amp;ct=201326592&amp;lm=-1&amp;cl=2&amp;nc=1&amp;word=" wdfield="word" onmousedown="return c({'fm':'tab','tab':'pic'})">图片</a> <a href="http://v.baidu.com/v?ct=301989888&amp;rn=20&amp;pn=0&amp;db=0&amp;s=25&amp;word=" wdfield="word" onmousedown="return c({'fm':'tab','tab':'video'})">视频</a> <a href="http://map.baidu.com/m?word=&amp;fr=ps01000" wdfield="word" onmousedown="return c({'fm':'tab','tab':'map'})">地图</a> <a href="http://wenku.baidu.com/search?word=&amp;lm=0&amp;od=0" wdfield="word" onmousedown="return c({'fm':'tab','tab':'wenku'})">文库</a> <a href="http://www.baidu.com/more/" onmousedown="return c({'fm':'tab','tab':'more'})">更多»</a></div></div><form id="form" name="f" action="/s" class="fm"><input type="hidden" name="ie" value="utf-8"><input type="hidden" name="f" value="8"><input type="hidden" name="rsv_bp" value="1"><span class="bg s_ipt_wr"><input name="wd" id="kw" class="s_ipt" value="" maxlength="100" autocomplete="off"></span><span class="bg s_btn_wr"><input type="submit" id="su" value="百度一下" class="bg s_btn" onmousedown="this.className='bg s_btn s_btn_h'" onmouseout="this.className='bg s_btn'"></span><span class="tools"><span id="mHolder"><div id="mCon"><span>输入法</span></div><ul id="mMenu"><li><a href="javascript:;" name="ime_hw">手写</a></li><li><a href="javascript:;" name="ime_py">拼音</a></li><li class="ln"></li><li><a href="javascript:;" name="ime_cl">关闭</a></li></ul></span><span class="shouji"><strong>推荐&nbsp;:&nbsp;</strong><a href="http://shouji.baidu.com/baidusearch/mobisearch.html?ref=pcjg&amp;from=1000139w" target="_blank" onmousedown="return ns_c({'fm':'behs','tab':'shouji'})">用手机随时随地上百度</a></span></span></form></div><div id="content" style="display: none;"><div id="u1" style="display: none;"><a href="http://www.baidu.com/gaoji/preferences.html" name="tj_setting">搜索设置</a>|<a href="https://passport.baidu.com/v2/?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2F" name="tj_login" id="lb" onclick="return false;">登录</a><a href="https://passport.baidu.com/v2/?reg&amp;regType=1&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2F" target="_blank" name="tj_reg" class="reg">注册</a></div><div id="m"><p id="lg"><img src="http://www.baidu.com/img/bdlogo.gif" width="270" height="129"></p><p id="nv"><a href="http://news.baidu.com" name="tj_news">新&nbsp;闻</a> <b>网&nbsp;页</b> <a href="http://tieba.baidu.com" name="tj_tieba">贴&nbsp;吧</a> <a href="http://zhidao.baidu.com" name="tj_zhidao">知&nbsp;道</a> <a href="http://music.baidu.com" name="tj_mp3">音&nbsp;乐</a> <a href="http://image.baidu.com" name="tj_img">图&nbsp;片</a> <a href="http://v.baidu.com" name="tj_video">视&nbsp;频</a> <a href="http://map.baidu.com" name="tj_map">地&nbsp;图</a></p><div id="fm"><form id="form1" name="f1" action="/s" class="fm"><span class="bg s_ipt_wr"><input type="text" name="wd" id="kw1" maxlength="100" class="s_ipt" autocomplete="off"></span><input type="hidden" name="rsv_bp" value="0"><input type="hidden" name="ch" value=""><input type="hidden" name="tn" value="baidu"><input type="hidden" name="bar" value=""><input type="hidden" name="rsv_spt" value="3"><input type="hidden" name="ie" value="utf-8"><span class="bg s_btn_wr"><input type="submit" value="百度一下" id="su1" class="bg s_btn" onmousedown="this.className='bg s_btn s_btn_h'" onmouseout="this.className='bg s_btn'"></span><input type="hidden" name="rsv_n" value="2"><input type="hidden" name="rsv_sug2" value="0"><input type="hidden" name="inputT" value="524"></form><span class="tools"><span id="mHolder1"><div id="mCon1"><span>输入法</span></div></span></span><ul id="mMenu1"><li><a href="javascript:;" name="ime_hw">手写</a></li><li><a href="javascript:;" name="ime_py">拼音</a></li><li class="ln"></li><li><a href="javascript:;" name="ime_cl">关闭</a></li></ul></div><p id="lk"><a href="http://baike.baidu.com" name="tj_baike">百科</a> <a href="http://wenku.baidu.com" name="tj_wenku">文库</a> <a href="http://www.hao123.com" name="tj_hao123">hao123</a><span>&nbsp;|&nbsp;<a href="http://www.baidu.com/more/" name="tj_more">更多&gt;&gt;</a></span></p><p id="lm"></p></div></div><div id="ftCon" style="display: none;"><div id="ftConw"><p id="st"><a id="seth" onclick="h(this)" href="/" onmousedown="return ns_c({'fm':'behs','tab':'homepage','pos':0})">把百度设为主页</a><a id="setf" href="http://www.baidu.com/cache/sethelp/index.html" onmousedown="return ns_c({'fm':'behs','tab':'favorites','pos':0})" target="_blank" style="display: inline;">把百度设为主页</a></p><p id="lh"><a href="http://e.baidu.com/?refer=888" onmousedown="return ns_c({'fm':'behs','tab':'btlink','pos':2})">加入百度推广</a>&nbsp;|&nbsp;<a onmousedown="return ns_c({'fm':'behs','tab':'tj_bang'})" href="http://top.baidu.com">搜索风云榜</a>&nbsp;|&nbsp;<a onmousedown="return ns_c({'fm':'behs','tab':'tj_about'})" href="http://home.baidu.com">关于百度</a>&nbsp;|&nbsp;<a onmousedown="return ns_c({'fm':'behs','tab':'tj_about_en'})" href="http://ir.baidu.com">About Baidu</a></p><p id="cp">©2014&nbsp;Baidu&nbsp;<a href="/duty/" name="tj_duty">使用百度前必读</a>&nbsp;京ICP证030173号&nbsp;<img src="http://www.baidu.com/cache/global/img/gs-2.0.gif"></p></div></div><div id="wrapper_wrapper"><div id="container" class="container_l"><div id="content_right" class="cr-offset"><table cellpadding="0" cellspacing="0"><tbody><tr><td align="left"><div></div><div></div><div>
-
-    <style type="text/css">
-    .r.ec_bdtg{ width:238px;}
-    .ec_bdtg .fsblock{padding:0;word-break:normal;font-family:arial;font-size:medium; line-height:1.15em;}
-    .ec_bdtg .fsblock a{text-decoration:none;}
-    .ec_bdtg .title a{ text-decoration:underline; margin:0; padding:0; cursor:pointer;}
-    </style>
-    <div class="r ec_bdtg">
-    <div class="fsblock">
-    <div class="title"><a href="http://www.baidu.com/adrc.php?t=000a00c00f7Ul0D0SOY00jNfAsjmGgdH0000000000000000z-ZO0f.THYCcAd-cZs6Tvq8XiKtcZ9sugFGmiKtcZPEUMb6TAk9XgPYmgwGUv362fK85yF9pywd0Znquy7hPjTLmWnsnj0kPWIWrfKd5HRzfRDYnDD1nRmYnjwjwHc1PH9Dn1P7PHczPbmvfWK70ADquZCsUDdJuvkPpb4jNDNAHdP4Ng-PnW7_i-wFX-7oXDFRpLP_HyGPUD3sHykPpb4jNDNAHdP4Ng-PnY4vmh4oUDdJHbPRwRu5RL-NXRd4NHPwXNN4HHK2HN7NPRk2ND-luR9aUAPVUA92ND-lRyV3f-woTvkPpbd_HWKPUDdJHbPRwRu5RL-NXRY1HMuBUhV_HyGrfdw7wbqHXNN4HHPaTd-mUZGbwYmsmNT4IRGRigGwpL9aNAV1UDdJHykPphVVmLCkU7-gyHKrXhwGHgGKIYdDwHFrnbYdihYkph7gRH-PphnYHYwWIY4JRHP2UbF4mWFiT7GDnZ9PXNGCR7wAubdjyWKBNjKVu7TsrRGVrg-9NjK3ih4rnN-Vrg-9NjKVmY92T7KRNyduNdFlmvdPrRdKFHPDFHPD0ARqpZwYTjCEQvR8mh7GuZR8mvqVQ1qzuyu-TWYknjc0mLFW5Hf1rjRk" target="_blank"><font size="3" style="_font-size:8pt;">▶</font><font size="3">想在此推广您的产品吗?</font></a></div>
-    <a href="http://www.baidu.com/adrc.php?t=000a00c00f7Ul0D0SOY00jNfAsjmGgdH0000000000000000z-ZO0f.THYCcAd-cZs6Tvq8XiKtcZ9sugFGmiKtcZPEUMb6TAk9XgPYmgwGUv362fK85yF9pywd0Znquy7hPjTLmWnsnj0kPWIWrfKd5HRzfRDYnDD1nRmYnjwjwHc1PH9Dn1P7PHczPbmvfWK70ADquZCsUDdJuvkPpb4jNDNAHdP4Ng-PnW7_i-wFX-7oXDFRpLP_HyGPUD3sHykPpb4jNDNAHdP4Ng-PnY4vmh4oUDdJHbPRwRu5RL-NXRd4NHPwXNN4HHK2HN7NPRk2ND-luR9aUAPVUA92ND-lRyV3f-woTvkPpbd_HWKPUDdJHbPRwRu5RL-NXRY1HMuBUhV_HyGrfdw7wbqHXNN4HHPaTd-mUZGbwYmsmNT4IRGRigGwpL9aNAV1UDdJHykPphVVmLCkU7-gyHKrXhwGHgGKIYdDwHFrnbYdihYkph7gRH-PphnYHYwWIY4JRHP2UbF4mWFiT7GDnZ9PXNGCR7wAubdjyWKBNjKVu7TsrRGVrg-9NjK3ih4rnN-Vrg-9NjKVmY92T7KRNyduNdFlmvdPrRdKFHPDFHPD0ARqpZwYTjCEQvR8mh7GuZR8mvqVQ1qzuyu-TWYknjc0mLFW5Hf1rjRk" target="_blank"><font color="#000" size="-1">咨询热线:400-800-8888</font><br><font color="#008000" size="-1">e.baidu.com</font></a>
-    </div>
-    </div>
-    <br>
-
-</div></td></tr></tbody></table></div>
-                    <div id="content_left">
-                        <div class="result c-container " id="1" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:1}"><h3 class="t"><a class="favurl" style="background-image:url(http://t11.baidu.com/it/u=3039928309,3009855489&amp;fm=58)" fav-url="http://t11.baidu.com/it/u=3039928309,3009855489&amp;fm=58" data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'CCA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'5FFFF27B'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=gcxecyD3_z89mtgteuTvLih07kFKXv4nHuO38WtfFPNu4YLYbwBNCEM3-1qnjQ2Q&amp;wd=(%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20)&amp;tn=baidu&amp;ie=utf-8&amp;inputT=524" target="_blank"><em>Sony</em> China Portal 首页 - 索尼<em>(Sony)</em>中国网站</a></h3><div class="c-abstract">索尼<em>Xperia</em>  Z2 Tablet平板电脑  My <em>Sony</em> Club会员专享:延长保修、会员专属优惠丰富会员活动等 精彩 为你而来全画幅微单蔡司单镜套装火热销售中 特丽魅彩 旗舰...</div><div class="f13"><span class="g">www.<b>sony</b>.com.cn/&nbsp;2014-05-16&nbsp;</span><div class="c-tools" id="tools_8325304180998349926" data-tools="{&quot;title&quot;:&quot;Sony China Portal 首页 - 索尼(Sony)中国网站&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=gcxecyD3_z89mtgteuTvLih07kFKXv4nHuO38WtfFPNu4YLYbwBNCEM3-1qnjQ2Q&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="1529019556091654074" dis_url="www.\ 4sony\ 5.com.cn/"><a href="http://trust.baidu.com/vcard/index/show?id=v_ce7ee64c180f9e5c9e8663a17b6c5726" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["1529019556091654074"] = bds.se.certification.data["1529019556091654074"]||[];
-    if($.inArray("40520",bds.se.certification.data["1529019556091654074"])==-1){
-        bds.se.certification.data["1529019556091654074"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f671cf1104f8c0eafbc1779dc&amp;p=8b2a9715d9c047ad1181c2231c058d&amp;newp=882a9643d49b12a05a818f31135098231611c20e3ad788&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=1" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DgcxecyD3_z89mtgteuTvLih07kFKXv4nHuO38WtfFPNu4YLYbwBNCEM3-1qnjQ2Q&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01China%01%20%01Portal%01%20%01%E9%A6%96%E9%A1%B5%01%20%01-%01%20%01%E7%B4%A2%E5%B0%BC%02%28%01Sony%01%29%03%E4%B8%AD%E5%9B%BD%01%E7%BD%91%E7%AB%99%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div>
-    
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-  
-
-<div class="result-op c-container xpath-log" srcid="1521" id="2" tpl="baikeperson" mu="http://baike.baidu.com/view/5177918.htm" data-op="{'y':'B7EFFECF'}" data-click="{&quot;p1&quot;:&quot;2&quot;,&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;fm&quot;:&quot;alop&quot;,&quot;rsv_stl&quot;:&quot;0&quot;,&quot;p5&quot;:2}">
-            <h3 class="t c-gap-bottom-small"><a href="http://www.baidu.com/link?url=7wCL2pIfNSPuWepI4piAoA_yCmKpTKxvFavoPuCE0cBelmfKxysjuyd9gzxvdvLTETGlFzSuRhxr0EaR3ocojq" target="_blank"><em>Xperia</em>_百度百科</a><span class="tsuf tsuf-op" data="{title : 'Xperia_百度百科', link : 'http://www.baidu.com/link?url=7wCL2pIfNSPuWepI4piAoA_yCmKpTKxvFavoPuCE0cBelmfKxysjuyd9gzxvdvLTETGlFzSuRhxr0EaR3ocojq'}"></span></h3>
-         <div class="c-row op_baikeperson_container">  <div class="c-span6 c-gap-bottom-small"> <a href="http://baike.baidu.com/view/5177918.htm" target="_blank"><img style="display:block;" class="c-img c-img6" src="http://t11.baidu.com/it/u=4220194552,3829757710&amp;fm=58"></a> </div>  <div class="c-span18 c-span-last">       <p><em>Xperia</em>,前索尼爱立信,今索尼移动通信旗下高端智能手机子品牌,该品牌创立于2008年2月。</p>   <p>      <a class="c-gap-right-small" href="http://baike.baidu.com/view/5177918.htm#1" target="_blank" title="品牌">品牌</a>     <a class="c-gap-right-small" href="http://baike.baidu.com/view/5177918.htm#2" target="_blank" title="历程">历程</a>     <a class="c-gap-right-small" href="http://baike.baidu.com/view/5177918.htm#3" target="_blank" title="家族">家族</a>     <a class="c-gap-right-small" href="http://baike.baidu.com/view/5177918.htm#4" target="_blank" title="技术特点">技术特点</a>   </p>     <p class="op-baikeperson-showurl"><span class="c-showurl">baike.baidu.com/  2014-05-10 </span><span class="c-tools" id="tools_9575551409333247121" data-tools="{title:'Xperia_百度百科',url:'http://baike.baidu.com/view/5177918.htm'}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></span></p> </div> </div>     
-</div>
-<div class="result c-container " id="3" srcid="1517" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:3}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'BEFA77DD'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=94PIbIqF86togHZpeB3npbl3iy6sTezXN7nGkfoRg92MKGpSIIj49XAa5sJ9oW-9" target="_blank">索尼<em>Xperia</em>智能手机(中国<em>)</em>官网 - 索尼<em>XPERIA</em>智能手机(中国<em>)</em></a></h3><div class="c-abstract"><i class="c-text c-text-info c-gap-icon-right-small"><b>[</b><span>图文</span><b>]</b></i><em>Sony</em>mobile 登录 注册 注销 中国大陆 - 更改 <em>Sony</em>mobile search menu ...<em>Xperia</em> Z2 4G移动版  <em>Xperia</em> Z2 4G移动版 影像智能手机 了解更多  <em>Xperia</em> T...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2014-03-01&nbsp;</span><div class="c-tools" id="tools_7791955201240693003" data-tools="{&quot;title&quot;:&quot;索尼Xperia智能手机(中国)官网 - 索尼XPERIA智能手机(中国) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=94PIbIqF86togHZpeB3npbl3iy6sTezXN7nGkfoRg92MKGpSIIj49XAa5sJ9oW-9&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b4a2284c816c4735b36163bbca6767e0d1096983c310ef01e4bea81772f6b4837b7ea82ca1d9de0c13f2ff966692c579141639147fc8007639266cb07b5&amp;p=9079d10a86cc42a45bbcc7710f5c97&amp;newp=8757c64ad4955bf208e297750e5585231610db2151dddb1129cece&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=3" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D94PIbIqF86togHZpeB3npbl3iy6sTezXN7nGkfoRg92MKGpSIIj49XAa5sJ9oW-9&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E7%B4%A2%E5%B0%BC%02Xperia%03%E6%99%BA%E8%83%BD%01%E6%89%8B%E6%9C%BA%01%28%01%E4%B8%AD%E5%9B%BD%02%29%03%E5%AE%98%E7%BD%91%01%20%01-%01%20%01%E7%B4%A2%E5%B0%BC%02XPERIA%03%E6%99%BA%E8%83%BD%01%E6%89%8B%E6%9C%BA%01%28%01%E4%B8%AD%E5%9B%BD%02%29%03%20%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="4" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:4}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DDEA',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'A9029377'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=_mj1pF-mAer_1oakHKSQLHhCEPSob43wpj4La_Lwy7C" target="_blank">mobile<em>me</em></a></h3><div class="c-abstract">Store contacts, calendars, photos, music, books, apps and more in the cloud and access them on all your devices.</div><div class="f13"><span class="g"><b>me</b>.com/&nbsp;2012-04-17&nbsp;</span><div class="c-tools" id="tools_13735118215992533705" data-tools="{&quot;title&quot;:&quot;mobileme&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=_mj1pF-mAer_1oakHKSQLHhCEPSob43wpj4La_Lwy7C&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d71dcabbe57972d73a&amp;p=882a9641d29912a05aa2df6f465d9c&amp;newp=cb36f95686cc42ab5cabc7710f4796231611c20e38dd96&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=4" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D_mj1pF-mAer_1oakHKSQLHhCEPSob43wpj4La_Lwy7C&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01mobile%02me%03%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="5" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:5}"><h3 class="t"><a class="favurl" style="background-image:url(http://t11.baidu.com/it/u=3039928309,3009855489&amp;fm=58)" fav-url="http://t11.baidu.com/it/u=3039928309,3009855489&amp;fm=58" data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'CFDF367E'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=3gpVqCjT9Dy5JoyukvRmEjV-avPOJHk12DsWUaXJPcOK2MgqaBAYSKrT92RRfNAM" target="_blank">...产品索尼官方信息平台。轻松完成产品注册,即刻加入My <em>Sony</em> ...</a></h3><div class="c-abstract"> 加入My <em>Sony</em> Club,专属会员权益随时享!登入 <em>|</em> 注册  商品分类  智能手机  Z 系列 <em>Xperia</em> Z2 4G联通版[新]  <em>Xperia</em> Z2 4G移动版[新]  <em>Xperia</em> Z1 L39h ...</div><div class="f13"><span class="g">www.<b>sony</b>style....&nbsp;2014-05-08&nbsp;</span><div class="c-tools" id="tools_16452731287611927024" data-tools="{&quot;title&quot;:&quot;...产品索尼官方信息平台。轻松完成产品注册,即刻加入My Sony Club!&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=3gpVqCjT9Dy5JoyukvRmEjV-avPOJHk12DsWUaXJPcOK2MgqaBAYSKrT92RRfNAM&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="13815187945280919460" dis_url="www.\ 4sony\ 5style.com.cn/"><a href="http://trust.baidu.com/vcard/index/show?id=v_548f81f67c09a5866e6bd2f07dda1dac" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["13815187945280919460"] = bds.se.certification.data["13815187945280919460"]||[];
-    if($.inArray("40520",bds.se.certification.data["13815187945280919460"])==-1){
-        bds.se.certification.data["13815187945280919460"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f315acd1f45c419d89a1b7ad620e70bb5b2&amp;p=ce769a4791934eaf5eeecb26165e89&amp;newp=92769a478cd911a058eb973c5c4182231610db2151d0d01225ce&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=5" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D3gpVqCjT9Dy5JoyukvRmEjV-avPOJHk12DsWUaXJPcOK2MgqaBAYSKrT92RRfNAM&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01...%01%E4%BA%A7%E5%93%81%01%E7%B4%A2%E5%B0%BC%01%E5%AE%98%E6%96%B9%01%E4%BF%A1%E6%81%AF%01%E5%B9%B3%E5%8F%B0%01%E3%80%82%01%E8%BD%BB%E6%9D%BE%01%E5%AE%8C%E6%88%90%01%E4%BA%A7%E5%93%81%01%E6%B3%A8%E5%86%8C%01%2C%01%E5%8D%B3%E5%88%BB%01%E5%8A%A0%E5%85%A5%01My%01%20%02Sony%03%20%01Club%01%21%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="6" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:6}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'B73DDFE5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=i-aaX-MNK5n9eEbK5vDF0AECwpv_lGf884YITCStsaZVZcw1uj-f9sW5nNi68tbv" target="_blank"><em>Sony</em> Corporation of Hong Kong Limited</a></h3><div class="c-abstract"><em>Sony</em> MOBILE <em>|</em> <em>XPERIA</em>  Smartphone 6”高清TRILUMINOS IPS大屏幕连纤薄机身 <em>Xperia</em>  T2 Ultra  <em>PlayStation</em>  <em>|</em> <em>PlayStation</em>  Vita 最新最细的<em>PlayStation</em> 娱乐...</div><div class="f13"><span class="g">www.<b>sony</b>.com.hk/&nbsp;2014-05-05&nbsp;</span><div class="c-tools" id="tools_799470394059310127" data-tools="{&quot;title&quot;:&quot;Sony Corporation of Hong Kong Limited&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=i-aaX-MNK5n9eEbK5vDF0AECwpv_lGf884YITCStsaZVZcw1uj-f9sW5nNi68tbv&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f671cf1104f8c0eafbc1c7cdc&amp;p=97638915d9c347af03a4c7710f4b94&amp;newp=c2759a45d0c30bfc57efcd68564381231610db2151d6d71535&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=6" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Di-aaX-MNK5n9eEbK5vDF0AECwpv_lGf884YITCStsaZVZcw1uj-f9sW5nNi68tbv&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01Corporation%01%20%01of%01%20%01Hong%01%20%01Kong%01%20%01Limited%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="7" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:7}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'DFD37BFF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=zvD16GMQ3BobKnhjHbPOV_rsX1FuAP6ePLGYa81QGJS" target="_blank"><em>Sony</em> Online Store - Buy Laptops, Ultrabooks, Tablets, LED TVs...</a></h3><div class="c-abstract"> <em>Sony</em> Music Local artists and international superstars of recorded music. <em>Sony</em> Mobile Latest <em>Xperia</em> phones and tablets, plus apps and services. <em>Sony</em> Online...</div><div class="f13"><span class="g">store.<b>sony</b>.com/&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_1252610294382714470" data-tools="{&quot;title&quot;:&quot;Sony Online Store - Buy Laptops, Ultrabooks, Tablets, LED TVs...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=zvD16GMQ3BobKnhjHbPOV_rsX1FuAP6ePLGYa81QGJS&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5c90c80fbc53f2fff66692c579141658244f0d6&amp;p=97638915d9c340a903a4c7710f4b94&amp;newp=c2759a45d7c50bfc57efcd68564381231610db2151d1d01335&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=7" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DzvD16GMQ3BobKnhjHbPOV_rsX1FuAP6ePLGYa81QGJS&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01Online%01%20%01Store%01%20%01-%01%20%01Buy%01%20%01Laptops%01%2C%01%20%01Ultrabooks%01%2C%01%20%01Tablets%01%2C%01%20%01LED%01%20%01TVs%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="8" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:8}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DEEB',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'5DFBEDFB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=88s_w33ospcC6zSsoKApNwkny_iVaNU-QPbsvuIj-Pm" target="_blank"><em>sony</em> <em>(</em>japan<em>)</em> - <em>Sony</em> Japan <em>|</em> ソニーグループ ポータルサイト</a></h3><div class="c-abstract"> <em>SONY</em> <em>Sony</em> Corporation Global Headquarters Japanメニュー开闭ボタン  ... 4K映像の撮影机能やデジタルノイズキャンセリング机能など搭载『<em>Xperia</em>  ...</div><div class="f13"><span class="g">www.<b>sony</b>.co.jp/&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_3247992749296322949" data-tools="{&quot;title&quot;:&quot;sony (japan) - Sony Japan | ソニーグループ ポータルサイト&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=88s_w33ospcC6zSsoKApNwkny_iVaNU-QPbsvuIj-Pm&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b027fa3c21584642c19057bf7fe7a62460b8c926b6770ee1400a1e736037d4177f7c09b9f4aacfacf74649f27453242d50a53954ae9901b79&amp;p=9278d20a85cc43ff57ed92754e5c8e&amp;newp=8b2a971c839509f019bd9b7e0b1d9f231610db2151d4db1e2681c500cc25&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=8" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D88s_w33ospcC6zSsoKApNwkny_iVaNU-QPbsvuIj-Pm&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02sony%03%20%02%28%03japan%02%29%03%20-%20%02Sony%03%20%01Japan%01%20%02%7C%03%20%01%E3%82%BD%01%E3%83%8B%01%E3%83%BC%01%E3%82%B0%01%E3%83%AB%01%E3%83%BC%01%E3%83%97%01%20%01%E3%83%9D%01%E3%83%BC%01%E3%82%BF%01%E3%83%AB%01%E3%82%B5%01%E3%82%A4%01%E3%83%88%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="9" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:9}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DDEA',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'5CEEFF2D'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=h8egJaJqNfy7yZNj70RCae1JglLd4gq1IzQCcGlmra3" target="_blank">mobile<em>me</em></a></h3><div class="c-abstract">Store contacts, calendars, photos, music, books, apps and more in the cloud and access them on all your devices.</div><div class="f13"><span class="g">www.<b>me</b>.com/&nbsp;2014-05-06&nbsp;</span><div class="c-tools" id="tools_12213711297359551442" data-tools="{&quot;title&quot;:&quot;mobileme&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=h8egJaJqNfy7yZNj70RCae1JglLd4gq1IzQCcGlmra3&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f73c6bc0d0622e89cc55872106011169bcec302261458e99377001de031ebdb06d21200351f6c694c35dddcad0767cc36672235add1c4e&amp;p=9e759a45d7c817ee0be2963b470595&amp;newp=9e72c64ad4db18ee0abd9b7e0c1d8d231610db2151ddd214678dd21a&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=9" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dh8egJaJqNfy7yZNj70RCae1JglLd4gq1IzQCcGlmra3&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01mobile%02me%03%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div>
-    
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<div class="result-op c-container xpath-log" srcid="19" id="10" tpl="sp_realtime" mu="http://www.baidu.com/s?tn=baidurt&amp;rtt=1&amp;bsst=1&amp;wd=(%22me%22%20|%20%22sony%22%20|%20%22xperia%22%20|%20%22sony%20playstation%22%20)" data-op="{'y':'CD3DF37E'}" data-click="{&quot;p1&quot;:&quot;10&quot;,&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;fm&quot;:&quot;alop&quot;,&quot;rsv_stl&quot;:&quot;5&quot;,&quot;p5&quot;:10}">
-            <h3 class="t"><a href="http://www.baidu.com/s?tn=baidurt&amp;rtt=1&amp;bsst=1&amp;wd=(%22me%22%20|%20%22sony%22%20|%20%22xperia%22%20|%20%22sony%20playstation%22%20)" target="_blank">("<em>me</em>" | "<em>Sony</em>" | "<em>Xperia</em>" | &amp;q...</a></h3>
-          <div class="c-offset">    <div class="c-gap-bottom-small"> <a href="http://www.baidu.com/link?url=OjIMhSZ2eCsutUFzd1cz9aMYxFw3BSDRHXsLeqZuTZbjQ_21ycF5UXRIntyMGW0mhMuBdxKQ6o2CGWk7vuxk3K" target="_blank"> 索尼今日推送<em>Xperia</em> Z安卓4.4Kitkat系统更新 </a> </div> <div class="c-row c-gap-bottom-small">  <a href="http://www.baidu.com/link?url=OjIMhSZ2eCsutUFzd1cz9aMYxFw3BSDRHXsLeqZuTZbjQ_21ycF5UXRIntyMGW0mhMuBdxKQ6o2CGWk7vuxk3K" target="_blank" class="op_sp_realtime_preBox c-span6" data-click="{'title':'(&quot;me&quot; | &quot;Sony&quot; | &quot;Xperia&quot; | &quot;Sony PlayStation&quot; )的最新相关信息'}"> <img src="http://t12.baidu.com/it/u=2370430925,1704796280&amp;fm=55&amp;s=22F2EC224ACFE51B07BDE5DA0100C0A2&amp;w=121&amp;h=81&amp;img.JPEG" class="c-img c-img6">  </a>  <div class="c-span-last">  【TechWeb报道】索尼前不久为旗下的旗舰<em>Xperia</em> Z1、Z2、Z1 Compact等机型推送了Android 4.4 Kitkat,解决了一些系统上的小Bug,并且带来新的UI界面,使...   <br><span style="color:#008000">TechWeb</span>   &nbsp;<span style="color:#666;">2小时前</span>  </div> </div>           <div class="c-row">   <span style="color:#666;float:right">53分钟前</span>  <a href="http://www.baidu.com/link?url=OjIMhSZ2eCsutUFzd1cz9nVC8J9EKOvS7qo9yzGa_dL0xa0BkhMdPkGmm1iwkNDyBfInNCqx6jmyiYrNN85-Ia" target="_blank">  视频: 索尼<em>Xperia</em> Z2开箱和上手评测  </a>  &nbsp;<span style="color:#008000">优酷视频</span>   </div>           <div class="c-row">   <span style="color:#666;float:right">3小时前</span>  <a href="http://www.baidu.com/link?url=ZcdelQ_kiYLwcOi3QkBPtomkvtJ_AR7Dcxbks3Uc9ZulERsLQN5ATLpVDVOXMQS2S_e5hzHzRM2whAGxublSS_" target="_blank">  L<em>ME</em>基金属收跌 镍遭遇获利了结  </a>  &nbsp;<span style="color:#008000">凤凰网</span>   </div>           <div class="c-row">   <span style="color:#666;float:right">4小时前</span>  <a href="http://www.baidu.com/link?url=azSIJvzPhSARmOD4sZT-DEZhVlwy-jsNg5AZmx0vzuZK1FZ4pu1ClOfQJDV83iyi49BQYw6HMEeMtlp9cnm1ha" target="_blank">  ASUS Fonepad <em>ME</em>372CG天猫1299元  </a>  &nbsp;<span style="color:#008000">PCHOME</span>   </div>           <div class="c-row">   <span style="color:#666;float:right">4小时前</span>  <a href="http://www.baidu.com/link?url=7wCL2pIfNSPuWepI4piAoBhUsDBT9eyIc1GJyeVr7kIeo3-LrT_7v6Ln3HUnKaZFYLcWzsqDuq85ucZ0GTSiW0rFUhh3YY_K59soAzK8WPG" target="_blank">  L<em>ME</em>期铜低位强势反弹,受中国汇丰制造业PM...  </a>  &nbsp;<span style="color:#008000">和讯黄金</span>   </div>   </div>    
-</div>
-<div class="result c-container " id="11" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:11}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFFBEBBF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Xq_IeP34_M9pf_OBVPQHC2OTjQ6kxkBhCi5atVOK8vku7oGs8z1frDurjgBZOFrl" target="_blank"><em>Xperia</em>  <em>|</em> 凭借索尼技术捕捉生活中的完美时刻 - 索尼<em>XPERIA</em>智能...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=Xq_IeP34_M9pf_OBVPQHC2OTjQ6kxkBhCi5atVOK8vku7oGs8z1frDurjgBZOFrl" target="_blank"><img src="http://i9.baidu.com/it/u=2641699884,759905793&amp;fm=96&amp;s=28E2E104D065DEAE96BBA4560300C0B2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">第一款索尼Cyber-shot 相机于1996年问世,从那时起,我们倾注了所有专业知识和索尼最尖端的技术,使<em>Xperia</em>智能手机的相机焕然一新,让您随时随地都能捕捉生活中的美妙...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2013-09-01&nbsp;</span><div class="c-tools" id="tools_16485058001324167736" data-tools="{&quot;title&quot;:&quot;Xperia  | 凭借索尼技术捕捉生活中的完美时刻 - 索尼XPERIA智能...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Xq_IeP34_M9pf_OBVPQHC2OTjQ6kxkBhCi5atVOK8vku7oGs8z1frDurjgBZOFrl&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b4a2284c816c4735b36163bbca6767e0d4e91923c3c52b25d19b7b0607d685437b7ea89d51696ac925965ca70742b4f9141639244f3805125b062ce09a2ee5fb4fcab6fcf&amp;p=8c769a47ceaf17ff57ee917c177a9c&amp;newp=b4618e16d9c15db406bd9b7d081489231611c20e39d7cc0e21&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=11" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="12" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:12}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'E9ED3EA5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=UuEZd2gXcYhwu29UAPjE3-c85XADxQg-D42XXkUXize" target="_blank"><em>Sony</em> USA - Consumer Electronics Products, Movies, Music, ...</a></h3><div class="c-abstract"> <em>PlayStation</em>  Entertainment  <em>Sony</em> Entertainment Network <em>Sony</em> Online Entertainment Reader eBook Store Watch, Listen, Create—Everywhere. <em>Xperia</em>  Z2 Tablet  A ...</div><div class="f13"><span class="g">www.<b>sony</b>.com/&nbsp;2014-05-21&nbsp;</span><div class="c-tools" id="tools_6112984904328396608" data-tools="{&quot;title&quot;:&quot;Sony USA - Consumer Electronics Products, Movies, Music, ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=UuEZd2gXcYhwu29UAPjE3-c85XADxQg-D42XXkUXize&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f671cf1104f8c04&amp;p=8b2a975686cc4aa517b3cf264659&amp;newp=8f6a831499904ead08e29f744b0c92695c16ed6236&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=12" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DUuEZd2gXcYhwu29UAPjE3-c85XADxQg-D42XXkUXize&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01USA%01%20%01-%01%20%01Consumer%01%20%01Electronics%01%20%01Products%01%2C%01%20%01Movies%01%2C%01%20%01Music%01%2C%01%20%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="13" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:13}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FF3FF9BB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=aBEviYYkuxJ3Z3TpbBiHINo2LXHYkdYcR-B5YY_HKhq11aICC7TryTk334lzzxTq" target="_blank"><em>PlayStation</em> Asia</a></h3><div class="c-abstract"><em>Sony</em> Computer Entertainment Asia Website 2013 <em>Sony</em> Computer Entertainment All content, game titles, trade names and/or trade dress, trademarks, artwork and ...</div><div class="f13"><span class="g">asia.playstatio...&nbsp;2014-05-15&nbsp;</span><div class="c-tools" id="tools_18373980634528092986" data-tools="{&quot;title&quot;:&quot;PlayStation Asia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=aBEviYYkuxJ3Z3TpbBiHINo2LXHYkdYcR-B5YY_HKhq11aICC7TryTk334lzzxTq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5db0b86e8852858ca79673b5dc012548844f3dc4652907dcf47&amp;p=882a9645d19d0bfb10aae62d021483&amp;newp=806fd116d9c117e408e2977e0a4c80231611d63f6fbad312299f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=13" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DaBEviYYkuxJ3Z3TpbBiHINo2LXHYkdYcR-B5YY_HKhq11aICC7TryTk334lzzxTq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02PlayStation%03%20%01Asia%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="14" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:14}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'E7EB2FBF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=miUm91wtZo4QaW3WeJdvL3AIK93ZNQClsVQMG5px4Ckt9UXqJe4DFRiKy6MjmpEtXleCel6ESG1VZRkmXY_u2xKqJGHYe88OnR2B0BoMGPC" target="_blank"><em>Sony</em> <em>PlayStation</em> Vita 评测</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=miUm91wtZo4QaW3WeJdvL3AIK93ZNQClsVQMG5px4Ckt9UXqJe4DFRiKy6MjmpEtXleCel6ESG1VZRkmXY_u2xKqJGHYe88OnR2B0BoMGPC" target="_blank"><img src="http://i7.baidu.com/it/u=1857201522,2845868175&amp;fm=96&amp;s=BED5D1A614D229C6DC67388503007090" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 从1994 年,<em>Sony</em> 第一代家用游戏机 <em>PlayStation</em> 开始,歴经 PS2、再到十年后 PSP 的推出造成哄动,令机迷为之一快,继以形成热潮,令大家浸醉在游戏之中。紧接...</div><div class="f13"><span class="g">cn.engadget.com/...&nbsp;2012-04-30&nbsp;</span><div class="c-tools" id="tools_13259325559767649848" data-tools="{&quot;title&quot;:&quot;Sony PlayStation Vita 评测&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=miUm91wtZo4QaW3WeJdvL3AIK93ZNQClsVQMG5px4Ckt9UXqJe4DFRiKy6MjmpEtXleCel6ESG1VZRkmXY_u2xKqJGHYe88OnR2B0BoMGPC&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d916cabbe57f73dd7462254bc05612a448f2945b25c3239047eba904e6b8ed73cef299c4df221194004e3bc6a3cd015d48dd6f86506aa5f58e48631f47feb66720e2&amp;p=8071c54ad6c54aea0cf1ce2d0214c6&amp;newp=806dc64ad4934eaf5ee6ce224c598c231610db2151ddd714&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=14" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="15" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:15}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'ABE75FB3'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=brKbTptRxa4NlLu_TQARpVDE0XW8zk_th9kXxLapTHK" target="_blank"><em>Sony</em> Global - <em>Sony</em> Global Headquarters</a></h3><div class="c-abstract"> <em>Sony</em> to kick off CSR programleading towards 2014 FIFA World Cup  DI Global site Digital Imaging Global site provides the most-wanted <em>Sony</em> camera ...</div><div class="f13"><span class="g">www.<b>sony</b>.net/&nbsp;2014-05-02&nbsp;</span><div class="c-tools" id="tools_15152237467144221158" data-tools="{&quot;title&quot;:&quot;Sony Global - Sony Global Headquarters&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=brKbTptRxa4NlLu_TQARpVDE0XW8zk_th9kXxLapTHK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f671cf11d459504&amp;p=882a9641d69e52ec0ab4c7710f0ac1&amp;newp=c371d31885cc43b91cbd9b7d091695231611c20e38d1c651&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=15" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DbrKbTptRxa4NlLu_TQARpVDE0XW8zk_th9kXxLapTHK&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01Global%01%20%01-%01%20%02Sony%03%20%01Global%01%20%01Headquarters%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="16" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:16}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FBF35FFD'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=OfHInNf1PkF9Cv07qgbBBh1FOdW-IVuu58j4wCESueO-JU8SPTfKo8tidkIvfDCbJaDb1Y8papxV3ao5IX7iC_" target="_blank">索尼<em>XPERIA</em>智能手机 <em>|</em> 索尼官方网站</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=OfHInNf1PkF9Cv07qgbBBh1FOdW-IVuu58j4wCESueO-JU8SPTfKo8tidkIvfDCbJaDb1Y8papxV3ao5IX7iC_" target="_blank"><img src="http://i8.baidu.com/it/u=907908648,718757334&amp;fm=96&amp;s=AB20F000648CA11B95A24FDA0300D0AE" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 实时变妆 . 乐在当下 <em>Xperia</em>  ZR M36h 你水下的眼睛服务与支持  Channel S  Photo Gallery  网站满意度调查  身边的<em>Sony</em> Store  在线商城手机客户 ...</div><div class="f13"><span class="g">www.<b>sony</b>style....&nbsp;2014-05-06&nbsp;</span><div class="c-tools" id="tools_9707883761020641566" data-tools="{&quot;title&quot;:&quot;索尼XPERIA智能手机 | 索尼官方网站&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=OfHInNf1PkF9Cv07qgbBBh1FOdW-IVuu58j4wCESueO-JU8SPTfKo8tidkIvfDCbJaDb1Y8papxV3ao5IX7iC_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="13815187945280919460" dis_url="www.\ 4sony\ 5style.com.cn/products/\ 4xperia\ 5..."><a href="http://trust.baidu.com/vcard/index/show?id=v_548f81f67c09a5866e6bd2f07dda1dac" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["13815187945280919460"] = bds.se.certification.data["13815187945280919460"]||[];
-    if($.inArray("40520",bds.se.certification.data["13815187945280919460"])==-1){
-        bds.se.certification.data["13815187945280919460"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b54399fcd1f84642c101a39f4bb50734c199185213146fe0f1df7ba7425775873aac094de1d97ac925f75ce78203541c6171d8c4eb8cb37649c7cdb4de9de53a5edb069c0b9d2a29e090f8144050bc2aed81141529929ab496d&amp;p=882a9546d7815bbe0be29612424dcb&amp;newp=882a9546d78805f118f6c7710f4a94231610db2151d6d0143490cd0888&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=16" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="17" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:17}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EBEFD7F1'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=6bdOQijZsOnlYrRSAoCGQUJORvty-oTEXut197etsa01e702J3Qly4pSNzc2XCEXVtJvYrIK96EKNS6yUHQZza" target="_blank">【索尼手机报价】<em>SONY</em>手机大全_索尼手机价格怎么样_IT168索尼手机网</a></h3><div class="c-abstract"> 全部 <em>Xperia</em> Z系列 <em>Xperia</em> T2 Ultra系列 <em>Xperia</em> Z2系列 <em>Xperia</em> C系列 <em>Xperia</em> T系列 LT26i系列 LT28i系列 LT22i系列 <em>Xperia</em> V系列 <em>Xperia</em> E系列 <em>Xperia</em> SP系列 ...</div><div class="f13"><span class="g">product.it168.co...&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_14781659263265776793" data-tools="{&quot;title&quot;:&quot;【索尼手机报价】SONY手机大全_索尼手机价格怎么样_IT168索尼手机网&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=6bdOQijZsOnlYrRSAoCGQUJORvty-oTEXut197etsa01e702J3Qly4pSNzc2XCEXVtJvYrIK96EKNS6yUHQZza&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a74e39d7974284642c101a39fee57c63561983d87e6603af4b5cebf22175430037b7ec89d20c82e5866d72c8713b2f4b9141639244f3805125b06ad20da9f44af0ba8173cef299c4df251194004e3bc6a3cd015d48&amp;p=97759a45d6c25aef42f78e2d0214cb&amp;newp=9364c416d9c11bf01abd9b7e0d1785231610db2151d7d314258bd1&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=17" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D6bdOQijZsOnlYrRSAoCGQUJORvty-oTEXut197etsa01e702J3Qly4pSNzc2XCEXVtJvYrIK96EKNS6yUHQZza&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E3%80%90%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01%E6%8A%A5%E4%BB%B7%01%E3%80%91%02SONY%03%E6%89%8B%E6%9C%BA%01%E5%A4%A7%E5%85%A8%01_%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01%E4%BB%B7%E6%A0%BC%01%E6%80%8E%E4%B9%88%01%E6%A0%B7%01_%01IT%01168%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01%E7%BD%91%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="18" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:18}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'59C7CFF5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=DMViVnEM3PKJqTx_bdLN-zzz6yXLTcwokWBvRTfA2q5p4N6CPxEabJb1l8NecgIx" target="_blank"><em>PlayStation</em> - CNET</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=DMViVnEM3PKJqTx_bdLN-zzz6yXLTcwokWBvRTfA2q5p4N6CPxEabJb1l8NecgIx" target="_blank"><img src="http://i9.baidu.com/it/u=481930528,3565172083&amp;fm=96&amp;s=65D034C45F0204414A212D0B0300E0D2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>PlayStation</em> 4 passes 7 million in worldwide sales  The <em>PlayStation</em> 4 continues its steady sales climb, hitting another milestone nearly one month to...</div><div class="f13"><span class="g">www.cnet.com/p.....&nbsp;2014-04-17&nbsp;</span><div class="c-tools" id="tools_841092480361913086" data-tools="{&quot;title&quot;:&quot;PlayStation - CNET&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=DMViVnEM3PKJqTx_bdLN-zzz6yXLTcwokWBvRTfA2q5p4N6CPxEabJb1l8NecgIx&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f732608096027fa3c215cc7919004671e3cc7d644f5ac780212757a0160bfdf047336a5f6ba09bb9c2088afbc97b388856752d40cd5612a25bf1980d648773d601b4f3&amp;p=996dcb5480904ead08e2947e095f8c&amp;newp=c0759a45d6c716f70be296251305cd231610db2151d4d111288c&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=18" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="19" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:19}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F3DAB5EB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=FYBIL_Uo7sI1N4bz2uRljSAELX4XltSVVIDnmOLmH1DOrPULnjeHMJWGPWZ_JRyF" target="_blank"><em>Sony</em> <em>Playstation</em> - Home</a></h3><div class="c-abstract">Welcome to <em>PlayStation</em> Jobs, home of all vacancies with <em>Sony</em> Computer Entertainment (SCEE<em>)</em>.  Here you can register your CV, browse our current open ...</div><div class="f13"><span class="g">www.playstation...&nbsp;2014-05-06&nbsp;</span><div class="c-tools" id="tools_17708954638264741211" data-tools="{&quot;title&quot;:&quot;Sony Playstation - Home&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=FYBIL_Uo7sI1N4bz2uRljSAELX4XltSVVIDnmOLmH1DOrPULnjeHMJWGPWZ_JRyF&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f72162849b543987d513ce38031c1727f4bb50734d13d3b23b3e1cbb0c01aaa6392d601420c6da95d401cabbe3626ddf676f230b8630538e45e4dc4654837ec311a8e94aa1e1ad6e&amp;p=8b2a97539d8b1aff57ed95747f4d8c&amp;newp=882a9544dc8419e904b3822d021494231610db2151d3d215388cd514cd72&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=19" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DFYBIL_Uo7sI1N4bz2uRljSAELX4XltSVVIDnmOLmH1DOrPULnjeHMJWGPWZ_JRyF&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%02Playstation%03%20%01-%01%20%01Home%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="20" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:20}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DEEA',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'8AE5F6F7'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=UoziVaazI5wR3BaNfnjWmlqYu9yzWy9JREBPDFNLDeoRFFRiyi74TOyCo6c1dUVq" target="_blank"><em>sony</em> <em>playstation</em></a></h3><div class="c-abstract"><em>Sony</em> Right now onPlayStation <em>PlayStation</em> Vita  <em>PlayStation</em> 4  <em>PlayStation</em> Plus <em>PlayStation</em> Vita  <em>PlayStation</em>  gaming available at your fingertips. Any ...</div><div class="f13"><span class="g">us.<b>playstation</b>...&nbsp;2014-05-07&nbsp;</span><div class="c-tools" id="tools_4760414756717407688" data-tools="{&quot;title&quot;:&quot;sony playstation&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=UoziVaazI5wR3BaNfnjWmlqYu9yzWy9JREBPDFNLDeoRFFRiyi74TOyCo6c1dUVq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105196711923c23d6f9c91532c92c815cf735b36163bbca633674d4485ca233016af381db7ac7d6537726af5cc88d319cabbe36972d46c23706dc41f419858e998007e9c7c&amp;p=882a9544d6d912a05ab8c3354459c6&amp;newp=882a9544d69d59f52abe9b7c5f568f231610db2151d7d01521ccc93a&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=20" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DUoziVaazI5wR3BaNfnjWmlqYu9yzWy9JREBPDFNLDeoRFFRiyi74TOyCo6c1dUVq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02sony%03%20%02playstation%03%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="21" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:21}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EF9EFFFC'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=zqCX4ut1CHJdXdsU0VrIJfNwgGShJlocV0b2rlF7PzccQquOLW9Hkg0ZLxvO3mzI" target="_blank">《索尼PS2经典游戏集合》<em>(Sony</em> <em>Playstation</em> 2 Games<em>)</em>4月21日更新...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=zqCX4ut1CHJdXdsU0VrIJfNwgGShJlocV0b2rlF7PzccQquOLW9Hkg0ZLxvO3mzI" target="_blank"><img src="http://i7.baidu.com/it/u=2020452863,1927442433&amp;fm=96&amp;s=E78064A556A2CCE91215688A0300B080" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">《索尼PS2经典游戏集合》<em>(Sony</em> <em>Playstation</em> 2 Games<em>)</em>4月21日更新darkfals&amp;Kevin1968补充资源共10DVD[光盘镜像][PS2]状态: 精华资源 ...</div><div class="f13"><span class="g">www.verycd.com/t...&nbsp;2008-11-14&nbsp;</span><div class="c-tools" id="tools_17706227882613324274" data-tools="{&quot;title&quot;:&quot;《索尼PS2经典游戏集合》(Sony Playstation 2 Games)4月21日更新...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=zqCX4ut1CHJdXdsU0VrIJfNwgGShJlocV0b2rlF7PzccQquOLW9Hkg0ZLxvO3mzI&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7276b979b4429c3933fc239045c013ba1e076630d02d2c07f6602b25d19b7b0607d685437b7ea89d51696ac925965ca70742b4f9141639244f3805125b062ce09a2ee5fb4fcab6fcf&amp;p=8b2a97539d8b1aff57e8930c564d&amp;newp=882a9042919b07f306fbc7710f5592695c16ed603b908853238a85&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=21" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="22" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:22}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'A6BFDFEF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=PXygoZfxA9sNLcaSV16TmCtL-ixsSnIkX4awPJsSMzW3vex1ua1eSSsZrsfjNRLo" target="_blank">my <em>Xperia</em></a></h3><div class="c-abstract">The my <em>Xperia</em> service is offered by <em>Sony</em> Mobile Communications free of charge. The my <em>Xperia</em> service uses the Google account on your device. If you ...</div><div class="f13"><span class="g">myxperia.<b>sony</b>m...&nbsp;2014-05-08&nbsp;</span><div class="c-tools" id="tools_7342747696313688800" data-tools="{&quot;title&quot;:&quot;my Xperia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=PXygoZfxA9sNLcaSV16TmCtL-ixsSnIkX4awPJsSMzW3vex1ua1eSSsZrsfjNRLo&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d70197f9c56874db3034075ddb1d598c44ff901872d620e70bb4f004&amp;p=8b2a9715d9c341ac1181c2231c058d&amp;newp=882a9545d59b12a05a818f31135098231610db2151dcd34d&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=22" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DPXygoZfxA9sNLcaSV16TmCtL-ixsSnIkX4awPJsSMzW3vex1ua1eSSsZrsfjNRLo&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01my%01%20%02Xperia%03%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="23" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:23}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'BF17759F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=60LSQ8RiEyS1OPaOJT6eiySfh3ik34yNSy9JgmgB6eDaj3v9EEl7ARlAUzHrEnjW5cgKSs_smUxBk5ksfpA1QK" target="_blank">【索尼<em>Xperia</em> Z L36h】<em>(SONY</em> <em>Xperia</em> Z L36h<em>)</em>报价_图片_参数_评测_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=60LSQ8RiEyS1OPaOJT6eiySfh3ik34yNSy9JgmgB6eDaj3v9EEl7ARlAUzHrEnjW5cgKSs_smUxBk5ksfpA1QK" target="_blank"><img src="http://i7.baidu.com/it/u=1074522626,3436767492&amp;fm=96&amp;s=7AA23C634CFFE29E0B0C98850300E0E0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 产品简介: 索尼<em>Xperia</em> Z L36h机身采用了用了双镜面玻璃设计风格,外观棱角鲜明,非常具有科技感和时尚感,其机身正面的屏幕尺寸为5.0英寸,分辨率达到了顶级水准的...</div><div class="f13"><span class="g">product.yesky.co...&nbsp;2014-03-15&nbsp;</span><div class="c-tools" id="tools_9255973138676244624" data-tools="{&quot;title&quot;:&quot;【索尼Xperia Z L36h】(SONY Xperia Z L36h)报价_图片_参数_评测_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=60LSQ8RiEyS1OPaOJT6eiySfh3ik34yNSy9JgmgB6eDaj3v9EEl7ARlAUzHrEnjW5cgKSs_smUxBk5ksfpA1QK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f27433b4bc71859c419d89a1b7adc62d007bfe848a1a7fa3197b3d8d0db5358ca4e&amp;p=9c759a45d6c50ee001a4cd2d021488&amp;newp=8934cd0386cc41af5ebfc7710f058c231610db2151d1d41f2d&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=23" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="24" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:24}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EC6FBBBF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=tS-AWHjv7xWGWtT8GGLHr78QdTgnySZXyWK0I5HbQ2QaMxeJRCYYCtN5sgbRtBP6" target="_blank"><em>Sony</em> <em>Xperia</em> - Wikipedia, the free encyclopedia</a></h3><div class="c-abstract">The name <em>Xperia</em> is derived from the word "experience", and was first used in the <em>Xperia</em> X1 tagline, "I <em>(Sony</em> Ericsson<em>)</em> <em>Xperia</em> the best"...</div><div class="f13"><span class="g">en.wikipedia.org...&nbsp;2012-05-10&nbsp;</span><div class="c-tools" id="tools_8639840658427100666" data-tools="{&quot;title&quot;:&quot;Sony Xperia - Wikipedia, the free encyclopedia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=tS-AWHjv7xWGWtT8GGLHr78QdTgnySZXyWK0I5HbQ2QaMxeJRCYYCtN5sgbRtBP6&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5df16cabbe56d74d17c76274add1205d36ef28b1338847bc901f4c55bb0faab61&amp;p=9a759a45d5c757f21bbe9b7c4a43c9&amp;newp=c37dd715d9c342ab07af8f2d0214c1231610db2151d38f5764&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=24" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DtS-AWHjv7xWGWtT8GGLHr78QdTgnySZXyWK0I5HbQ2QaMxeJRCYYCtN5sgbRtBP6&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%02Xperia%03%20%01-%01%20%01Wikipedia%01%2C%01%20%01the%01%20%01free%01%20%01encyclopedia%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="25" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:25}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFFFF7FF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=w0zY-93lWYFsX9Unw00lHDBMeWtdGeLY-8bMycD8PwMgWW0QNN89Fe7P-eXLpB0933DI46if2DSk-2sS9s89vwIlS40AdiwTdGAJQKsPwJS" target="_blank">【索尼爱立信X10i】报价、评测、刷机、论坛、图片_<em>(Sony</em> Ericsson...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=w0zY-93lWYFsX9Unw00lHDBMeWtdGeLY-8bMycD8PwMgWW0QNN89Fe7P-eXLpB0933DI46if2DSk-2sS9s89vwIlS40AdiwTdGAJQKsPwJS" target="_blank"><img src="http://i8.baidu.com/it/u=3156022941,1553993126&amp;fm=96&amp;s=4B84386202AF52BB5113A8C70300B0E3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2010年4月9日&nbsp;-&nbsp;</span>索尼爱立信 <em>XPERIA</em> X10i <em>Sony</em> Ericsson X10i概览 参数  报价  图片(186<em>)</em>  评测·行情  点评  网购比价  产品对比  更多  360全景 视频  相关: ...</div><div class="f13"><span class="g">product.pconline...&nbsp;2010-04-09&nbsp;</span><div class="c-tools" id="tools_9857833270581323536" data-tools="{&quot;title&quot;:&quot;【索尼爱立信X10i】报价、评测、刷机、论坛、图片_(Sony Ericsson...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=w0zY-93lWYFsX9Unw00lHDBMeWtdGeLY-8bMycD8PwMgWW0QNN89Fe7P-eXLpB0933DI46if2DSk-2sS9s89vwIlS40AdiwTdGAJQKsPwJS&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f2743324ddb1d4c8845f8dc4652907dcf4de9d848bba7af6fc3f58c84c2150e9618523adba1ca1b5d48d76efa1131e6a18e48620556e5b3&amp;p=c472df16d9c157ed05bd9b750805&amp;newp=8957de53c59812a05abd9b75085e92695c16ed6239&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=25" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="26" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:26}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'5E4FFE67'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=etYwTiv5aYxhNKu_FDmuWcRw4hcwp8fJPeUNtbmc7a95qEKA4CO5dKPXfvbjqq0i" target="_blank">索尼<em>Xperia</em>智能手机(中国<em>)</em>官网 - 索尼<em>XPERIA</em>智能手机(中国<em>)</em></a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=etYwTiv5aYxhNKu_FDmuWcRw4hcwp8fJPeUNtbmc7a95qEKA4CO5dKPXfvbjqq0i" target="_blank"><img src="http://i9.baidu.com/it/u=2648777357,3641308538&amp;fm=96&amp;s=EBA431621645B31BF09174C60300F0A0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Sony</em>mobile 登录 注册 注销 中国大陆 - 更改 <em>Sony</em>mobile search menu ...<em>Xperia</em> Z2 4G移动版  <em>Xperia</em> Z2 4G移动版 影像智能手机 了解更多  <em>Xperia</em> T...</div><div class="f13"><span class="g"><b>sony</b>-ericsson.com/&nbsp;2014-05-05&nbsp;</span><div class="c-tools" id="tools_14536113403096607860" data-tools="{&quot;title&quot;:&quot;索尼Xperia智能手机(中国)官网 - 索尼XPERIA智能手机(中国) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=etYwTiv5aYxhNKu_FDmuWcRw4hcwp8fJPeUNtbmc7a95qEKA4CO5dKPXfvbjqq0i&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310578a3a524380156b978b443e95ce1484642c101a39feaf627f5052dc9a2b7001de0801b6bb2172464962e0db93db5dddcad37573c33034015ed81259925ffc8d1d789d&amp;p=9e70c916d9c107ff57ed9779444cc1&amp;newp=8b2a971e8d9211a058ee93345547c1231610db2151d6d412248fc2&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=26" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="27" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:27}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'977F6E96'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=JHro88Y9-8Vi8ife9CNS19l7PhWXRShHXEx2ZLZRzoYs8owEuy3Ol0EPZ5VXDwLpEYPv0d2JkYs31ER0KQnbc_" target="_blank">【索尼S39h <em>Xperia</em> C/联通版】报价_参数_图片_论坛_索尼移动 ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=JHro88Y9-8Vi8ife9CNS19l7PhWXRShHXEx2ZLZRzoYs8owEuy3Ol0EPZ5VXDwLpEYPv0d2JkYs31ER0KQnbc_" target="_blank"><img src="http://i7.baidu.com/it/u=240704974,482638597&amp;fm=96&amp;s=FC00489CC00BD6EC3A1B04D60300A0B2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2014年5月4日&nbsp;-&nbsp;</span> [其他] <em>SONY</em> S39H。 5回复 进入索尼S39h<em>(Xperia</em> C/联通版<em>)</em>论坛,查看全部帖子   索尼S39h<em>(Xperia</em> C/联通版<em>)</em> 相似产品 竞争产品 网友选择  索尼...</div><div class="f13"><span class="g">detail.zol.com.c...&nbsp;2014-05-04&nbsp;</span><div class="c-tools" id="tools_6444866088948795593" data-tools="{&quot;title&quot;:&quot;【索尼S39h Xperia C/联通版】报价_参数_图片_论坛_索尼移动 ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=JHro88Y9-8Vi8ife9CNS19l7PhWXRShHXEx2ZLZRzoYs8owEuy3Ol0EPZ5VXDwLpEYPv0d2JkYs31ER0KQnbc_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="8457431139104519838" dis_url="detail.zol.com.cn/cell_phone/index35..."><a href="http://trust.baidu.com/vcard/index/show?id=v_736b664a908f401bfad1fd2f859c8636" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["8457431139104519838"] = bds.se.certification.data["8457431139104519838"]||[];
-    if($.inArray("40520",bds.se.certification.data["8457431139104519838"])==-1){
-        bds.se.certification.data["8457431139104519838"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763104080204a0fde743ca0984821c3933fc23904564711b2e73a73475a8dd27b1343f51400bded6d2e61546ab69cc9884ad6ac925f6ed2616b2e08c31c528516f09c5125b061cd06a2b81996f0b265d3f581c4df2512970f4e6d8081c904535f8b29a3526abefa&amp;p=8f6e860586cc41ac58f5c32d021494&amp;newp=9e79c54ad6c041be06bac02d02148a231610db2151d0d5116e8ac41c&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=27" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="28" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:28}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FDCDD7FD'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=CphXp6ZNMPH7HLPnMW_J3-6QWHJqEu_xFj77aaoIx7C" target="_blank">数码坊丨数码·时尚_索尼手机_sonyxperia_索尼<em>xperia</em>_索尼手机_...</a></h3><div class="c-abstract"> 索尼<em>xperia</em>2014年巴西足球世界杯LiveSoccer ... 索尼<em>xperia</em> WALKMAN最新版本更新至8.3.A.0. ... 索尼韩国公司5月8日正式发售<em>Sony</em> <em>Xperia</em> Z2...</div><div class="f13"><span class="g">www.<b>xperia</b>.cc/&nbsp;2014-05-10&nbsp;</span><div class="c-tools" id="tools_12824392963368801635" data-tools="{&quot;title&quot;:&quot;数码坊丨数码·时尚_索尼手机_sonyxperia_索尼xperia_索尼手机_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=CphXp6ZNMPH7HLPnMW_J3-6QWHJqEu_xFj77aaoIx7C&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7297e80904e2cc3933fc2354655023ba3ed287d4713d3b43d3a5de45e5c9bba7425775873a09bb9c91781f085285eca79673b5dc012548844f3&amp;p=9079d10a86cc41af5abcc7710f5c97&amp;newp=8757c64ad4955bf208e2947e0f5585231610db2151d1d31729cece&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=28" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DCphXp6ZNMPH7HLPnMW_J3-6QWHJqEu_xFj77aaoIx7C&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E6%95%B0%E7%A0%81%01%E5%9D%8A%01%E4%B8%A8%01%E6%95%B0%E7%A0%81%01%C2%B7%01%E6%97%B6%E5%B0%9A%01_%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01_%01sonyxperia%01_%01%E7%B4%A2%E5%B0%BC%02xperia%03_%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01_%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="29" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:29}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F7BDBC4F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=PJQHo9JDlgDPseM1FRmBhHKMAvs8rdnPk5XhScAVQk_XiIStAulZZhFZpgju6c--" target="_blank">Official <em>PlayStation</em> website</a></h3><div class="c-abstract"><em>Sony</em> <em>PlayStation</em> EXPLORE EXPLORE  PSP  DUALSHOCK 4  <em>PLAYSTATION</em> CAMERA  WIRELESS STEREO HEADSET 2.0 <em>PLAYSTATION</em> 4 <em>PLAYSTATION</em> 4  <em>PLAYSTATION</em> 3 PLAY...</div><div class="f13"><span class="g">uk.<b>playstation</b>...&nbsp;2014-05-08&nbsp;</span><div class="c-tools" id="tools_6902920121237309200" data-tools="{&quot;title&quot;:&quot;Official PlayStation website&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=PJQHo9JDlgDPseM1FRmBhHKMAvs8rdnPk5XhScAVQk_XiIStAulZZhFZpgju6c--&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310518e711923c23d6f9c91532c92c815cf735b36163bbca633674d4485ca233016af381db7ac7d6537726af5cc88d319cabbe36972d46c23706dc41f419858e998007e9c7c&amp;p=927ac64ad48611a058eb9e214d42c9&amp;newp=8b2a970f86cc41a952b6d52c1b4f8d231610db2151d1db1535&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=29" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DPJQHo9JDlgDPseM1FRmBhHKMAvs8rdnPk5XhScAVQk_XiIStAulZZhFZpgju6c--&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Official%01%20%02PlayStation%03%20%01website%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="30" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:30}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'7F2FFFF8'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=6Y5hI-ainuf0c7sRz59UHURBjenEDK2Obu1b7EpyDTORkrqFshbhPhb6WbuUMRgiqjWsSUQQhwxuDhU3LLlZIq" target="_blank">索尼LT22i <em>Xperia</em> P-泡泡网</a></h3><div class="c-abstract"> 索尼LT22i Xp和LT26i <em>Xperia</em> 索尼LT22i Xp和三星i9100 联 索尼LT22i Xp和苹果iPhone4S 索尼LT22i Xp和索爱X10i 3G 索尼LT22i Xp和三星i900 16G 索尼LT22i Xp和...</div><div class="f13"><span class="g">product.pcpop.co...&nbsp;2014-04-28&nbsp;</span><div class="c-tools" id="tools_17972751986245885575" data-tools="{&quot;title&quot;:&quot;索尼LT22i Xperia P-泡泡网&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=6Y5hI-ainuf0c7sRz59UHURBjenEDK2Obu1b7EpyDTORkrqFshbhPhb6WbuUMRgiqjWsSUQQhwxuDhU3LLlZIq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="14597907566946666025" dis_url="product.pcpop.com/000328226/Ind...html"><a href="http://trust.baidu.com/vcard/index/show?id=v_f7b324fb4dec81390f258b3b4d43c588" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["14597907566946666025"] = bds.se.certification.data["14597907566946666025"]||[];
-    if($.inArray("40520",bds.se.certification.data["14597907566946666025"])==-1){
-        bds.se.certification.data["14597907566946666025"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a7572e96ce0a84642c101a39feb925201104d9c57c631cd4150abdba2172405966e8c5dccd179ded9d77789f27453141da0a05d368e58911659a73875a98ee44bbf1e732e2ec8c8094151599155e27dc&amp;p=927ac64ad48611a058ed93214d42c9&amp;newp=8b2a970f86cc41af5fb6d52c1b4f8d231610db2151d0d61e35&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=30" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D6Y5hI-ainuf0c7sRz59UHURBjenEDK2Obu1b7EpyDTORkrqFshbhPhb6WbuUMRgiqjWsSUQQhwxuDhU3LLlZIq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E7%B4%A2%E5%B0%BC%01LT22i%01%20%02Xperia%03%20%01P%01-%01%E6%B3%A1%E6%B3%A1%01%E7%BD%91%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="31" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:31}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'FFF8F2AF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=C_dh7ZiO23_myQ5ABCLMxJQf6ezcySsGo6fXGeD1e940BLDKjWvmGaTbxqe7MUO2n214gHDc01-TW9yYLKS7Rq" target="_blank">索尼XL39h <em>Xperia</em> Z Ultra报价_视频_参数_图片_新闻-幻想曲通讯</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=C_dh7ZiO23_myQ5ABCLMxJQf6ezcySsGo6fXGeD1e940BLDKjWvmGaTbxqe7MUO2n214gHDc01-TW9yYLKS7Rq" target="_blank"><img src="http://i8.baidu.com/it/u=1791077294,3544133116&amp;fm=96&amp;s=C300F50E436764AC0EE4FCF50300D030" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2014年5月8日&nbsp;-&nbsp;</span> 索尼<em>Xperia</em> Z Ultra XL39h 为全球首部智能手机搭载索尼独家 TRILUMINOS Display for mobile 屏幕及 X-Reality for mobile 超高解像技术,将 <em>Sony</em> BRAVIA...</div><div class="f13"><span class="g">www.vgooo.com/pr...&nbsp;2013-12-11&nbsp;</span><div class="c-tools" id="tools_15462264804352938963" data-tools="{&quot;title&quot;:&quot;索尼XL39h Xperia Z Ultra报价_视频_参数_图片_新闻-幻想曲通讯&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=C_dh7ZiO23_myQ5ABCLMxJQf6ezcySsGo6fXGeD1e940BLDKjWvmGaTbxqe7MUO2n214gHDc01-TW9yYLKS7Rq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6bdd7a692d0b8636438e46b28906789767c11cf4ee44bbf1e735e7c4acd2d40e44ca245f3cdfae&amp;p=9d71c54ad6c242fa12bf8c2d02149c&amp;newp=882a9544d59a19e717be9b7c5f488b231610db2151d2db12268cdb07&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=31" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="32" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:32}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'6D7AEF3F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Yk5ioy4AnYr6aWkMkyIiIhbsl0bAtiChaH6YInMXwL-XHqrxE5eNwixxfMVKH4vIcq9hjyY8_r0HzWD7HLaptoX78LMSsydFkkeWN9t8X1pSMl4_ogJGy5gakOONJfz1PDvst7R7yiTOIu--z8TY_OusvHTZsqvHGIjr17-bXiW0GkdpZhGTMzSYBQielk4C" target="_blank">...upgrade for 2011 <em>Xperia</em> smartphones <em>|</em> <em>Sony</em> Smartphones</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=Yk5ioy4AnYr6aWkMkyIiIhbsl0bAtiChaH6YInMXwL-XHqrxE5eNwixxfMVKH4vIcq9hjyY8_r0HzWD7HLaptoX78LMSsydFkkeWN9t8X1pSMl4_ogJGy5gakOONJfz1PDvst7R7yiTOIu--z8TY_OusvHTZsqvHGIjr17-bXiW0GkdpZhGTMzSYBQielk4C" target="_blank"><img src="http://i7.baidu.com/it/u=3456469904,572031329&amp;fm=96&amp;s=1412C4336836A286AFA854AF03007062" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">today (13th April<em>)</em>, we’re beginning the <em>Sony</em> software upgrade including the uplift to Android 4.0 Ice Cream Sandwich for our 2011 <em>Xperia</em>  smartphones...</div><div class="f13"><span class="g">blogs.<b>sony</b>mobi...&nbsp;2014-04-17&nbsp;</span><div class="c-tools" id="tools_6610421513978558115" data-tools="{&quot;title&quot;:&quot;...upgrade for 2011 Xperia smartphones | Sony Smartphones&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Yk5ioy4AnYr6aWkMkyIiIhbsl0bAtiChaH6YInMXwL-XHqrxE5eNwixxfMVKH4vIcq9hjyY8_r0HzWD7HLaptoX78LMSsydFkkeWN9t8X1pSMl4_ogJGy5gakOONJfz1PDvst7R7yiTOIu--z8TY_OusvHTZsqvHGIjr17-bXiW0GkdpZhGTMzSYBQielk4C&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c1597634b968d49348bce18c83a0c564711b2e6783f52448e933b3647ee545ce8f3366f35053db49ad5d1118ce2c9747a9f27422d48d25612a542fe9c5125b771d00dbaf00ee7ccb161cff897888e0e44ca254427d4b6ce094043dd6f865373b6e6ca1e424810ccb96d25e85901299d2043a1478faa703947daa5ca5c3a8275832157d5f568ec6953a807e1425b724bff1ba60820676dbc0430ff357746c5ab06b43d793162eb14f8aec1c7a916df97ab77cbbc90f273&amp;p=9977835488934eaf5bea8e2d021486&amp;newp=8a6d8b16d9c11bc308e2947d0a56c4231610db2151d2d11e25b8&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=32" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="33" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:33}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FCEB57BF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=wbqTzVbEZVtN8S50GPVOUs6AbSm_HzE_Yh5dCFkn4_Dahn3NXfvQKD9HOC_BNp56_oxr35LG19OxE5PvgmGT1ORN3bEfGUxvCZtKlqswSM32pKKFj9LJ86b47EJXcgDD" target="_blank"><em>Sony</em> <em>PlayStation</em> suffers massive data breach <em>|</em> Reuters</a></h3><div class="c-abstract">(Reuters<em>)</em> - <em>Sony</em> suffered a massive breach in its video game online network that led to the theft of names, addresses and possibly credit card data ...</div><div class="f13"><span class="g">www.reuters.com/...&nbsp;2011-04-26&nbsp;</span><div class="c-tools" id="tools_6823024103326237948" data-tools="{&quot;title&quot;:&quot;Sony PlayStation suffers massive data breach | Reuters &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=wbqTzVbEZVtN8S50GPVOUs6AbSm_HzE_Yh5dCFkn4_Dahn3NXfvQKD9HOC_BNp56_oxr35LG19OxE5PvgmGT1ORN3bEfGUxvCZtKlqswSM32pKKFj9LJ86b47EJXcgDD&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7236b9096423f958448e435061e5a35a3fd7c734e53cec57e6402b24b5af7f0326f704237b7ed89d51696ac925e6ece7a6a264bda1741954ab8cb307e9747f13c89d81ce6d8f457e3aed0d0dc5655ca57113fddb0dd555f43dd6f81556cbfed8e48641552edad6b36e8590668c27f0ba14788a26c3d4cc0b08e1a179e76&amp;p=9a759a45d7c90bf50be296124d44c1&amp;newp=8f769a47828a06ff57ed9574550a8a231610db2151d1da152b9dd4&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=33" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DwbqTzVbEZVtN8S50GPVOUs6AbSm_HzE_Yh5dCFkn4_Dahn3NXfvQKD9HOC_BNp56_oxr35LG19OxE5PvgmGT1ORN3bEfGUxvCZtKlqswSM32pKKFj9LJ86b47EJXcgDD&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%02PlayStation%03%20%01suffers%01%20%01massive%01%20%01data%01%20%01breach%01%20%02%7C%03%20%01Reuters%01%20%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="34" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:34}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'797F3727'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=vgsIOnZs4ElDwZja3HcVHeUkHfr241UTW75AX1ZxZUzQbO5RP1GJpAtd5QnQQ4am" target="_blank"><em>Sony</em> <em>Xperia</em> LT26i / LT26ii 论坛-官方ROM汉化一键Root软件下载...</a></h3><div class="bbs f13">9条回复&nbsp;-&nbsp;发帖时间:&nbsp;2013年1月4日</div><div class="c-abstract"> 烂漫典雅 璀璨荣耀 — <em>Sony</em> <em>Xperia</em> S 玩家专区 G币任务:http://bbs.gfan.com/home.php?mod=task收起/展开  子版块 <em>Sony</em> <em>Xperia</em> S(LT26i<em>)</em>讨论区  <em>Sony</em> ...</div><div class="f13"><span class="g">bbs.gfan.com/for...&nbsp;2014-05-10&nbsp;</span><div class="c-tools" id="tools_2415709677829910103" data-tools="{&quot;title&quot;:&quot;Sony Xperia LT26i / LT26ii 论坛-官方ROM汉化一键Root软件下载...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=vgsIOnZs4ElDwZja3HcVHeUkHfr241UTW75AX1ZxZUzQbO5RP1GJpAtd5QnQQ4am&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763104687270e54f73668848c027fa3c215cc790f1c0721bcac27541a05d4d27c1102b8492bb0b6692c23467df7cdc7d71dcabbe36972d46c23706dcc03459342fcdc4654807dcc11feaf68a5e4a379d2e8819584090f&amp;p=9278d20a85cc43ff57ed92754e5c8e&amp;newp=8b2a971c839509f019bd9b7e0b1d9f231610db2151d6db1e2681c500cc25&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=34" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DvgsIOnZs4ElDwZja3HcVHeUkHfr241UTW75AX1ZxZUzQbO5RP1GJpAtd5QnQQ4am&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%02Xperia%03%20%01LT26i%01%20%01%2F%01%20%01LT26ii%01%20%01%E8%AE%BA%E5%9D%9B%01-%01%E5%AE%98%E6%96%B9%01ROM%01%E6%B1%89%E5%8C%96%01%E4%B8%80%E9%94%AE%01Root%01%E8%BD%AF%E4%BB%B6%01%E4%B8%8B%E8%BD%BD%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="35" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:35}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FCFE6FF9'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=kHMhPD2_fzKRikCznY0KuquhD2MV7NKeih8UdRDgZx5I0XKufri2f8bmDkPRxXnemcWaFR1_6mhcEFQSIRqI_Ju0ryf1D0EEt72bzWzO3VW" target="_blank"><em>Sony</em> <em>Xperia</em> S review</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=kHMhPD2_fzKRikCznY0KuquhD2MV7NKeih8UdRDgZx5I0XKufri2f8bmDkPRxXnemcWaFR1_6mhcEFQSIRqI_Ju0ryf1D0EEt72bzWzO3VW" target="_blank"><img src="http://i8.baidu.com/it/u=2189335519,3989566650&amp;fm=96&amp;s=CD3A77DB069335DA40BD200803005056" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> Has spring 2012 brought a rebirth to the <em>Xperia</em> range, or just a rebranding? On the face of it, that's an easy one. The <em>Sony</em> <em>Xperia</em> S (...</div><div class="f13"><span class="g">www.engadget.com...&nbsp;2012-03-08&nbsp;</span><div class="c-tools" id="tools_2912406607116647812" data-tools="{&quot;title&quot;:&quot;Sony Xperia S review&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=kHMhPD2_fzKRikCznY0KuquhD2MV7NKeih8UdRDgZx5I0XKufri2f8bmDkPRxXnemcWaFR1_6mhcEFQSIRqI_Ju0ryf1D0EEt72bzWzO3VW&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f734608283432a83d55f93130a1c187be3b924220d06d2d87e6d1cee1400a1e736047d4177f7c09b9f4aabfa852859c870702b4bc35c069644ef9d497a9637902ba8f245acadf043d9ec8593840744ca224427dcbb9c5a7156943cbb5577b0e0c21549&amp;p=8b2a971c86cc41ac58bcdc345608cb&amp;newp=9370c54ad6c041be1fa6df2d021496231610db2151d3db116e93d803&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=35" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="36" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:36}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'DEBFFDBF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=3vS9FfuWdwCkFTWpQy93pTWRjKsso2kT1287QZhXyIRQWMpLcGBV1ddyLcMdHuUkp6D8-Tvgc1j_gvFMNR2G0s-nGaEHmkjK4ZJ9KXsoR4RwJiNN_YR1IxBOZLda2rLl" target="_blank"><em>Sony</em> 索尼-<em>SONY</em> 索尼 <em>Xperia</em> Z1 L39h(紫色<em>)</em>2070万像素 四核2.2GHz...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=3vS9FfuWdwCkFTWpQy93pTWRjKsso2kT1287QZhXyIRQWMpLcGBV1ddyLcMdHuUkp6D8-Tvgc1j_gvFMNR2G0s-nGaEHmkjK4ZJ9KXsoR4RwJiNN_YR1IxBOZLda2rLl" target="_blank"><img src="http://i9.baidu.com/it/u=3743344175,174236453&amp;fm=96&amp;s=0B92ED034CBFA29A0B14BD850300E0A1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">查看所有 5 张图片 <em>SONY</em> 索尼 <em>Xperia</em> Z1 L39h(紫色<em>)</em>2070万像素 四核2.2GHz处理器 五英寸大屏 防水智能手机  品牌: <em>Sony</em> 索尼 ...</div><div class="f13"><span class="g">www.amazon.cn/手...&nbsp;2014-04-08&nbsp;</span><div class="c-tools" id="tools_9462369295472756793" data-tools="{&quot;title&quot;:&quot;Sony 索尼-SONY 索尼 Xperia Z1 L39h(紫色)2070万像素 四核2.2GHz...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=3vS9FfuWdwCkFTWpQy93pTWRjKsso2kT1287QZhXyIRQWMpLcGBV1ddyLcMdHuUkp6D8-Tvgc1j_gvFMNR2G0s-nGaEHmkjK4ZJ9KXsoR4RwJiNN_YR1IxBOZLda2rLl&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="1967200123223312378" dis_url="www.amazon.cn/手机-通讯/dp/B00F0CC..."><a href="http://trust.baidu.com/vcard/index/show?id=v_2773e85c94469feb2698bc59b3855aca" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["1967200123223312378"] = bds.se.certification.data["1967200123223312378"]||[];
-    if($.inArray("40520",bds.se.certification.data["1967200123223312378"])==-1){
-        bds.se.certification.data["1967200123223312378"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7306384984823c3933fc23846563062f4b12c351a74c4b278700ade5e2c99e7360420742ba091ca9f41aeace52238fb502303689b1750ce69adc93227b051e822e3bb5cbafaa63dccf9c5d3ae150e9618127af1bac90d404f9978f06570befad25f152e52e4be7b24b90a3172c27f&amp;p=8c769a47ceaf17ff57ed9275177a9c&amp;newp=b4618e16d9c15db406bd9b7e0b1d89231610db2151dddb1463cfcd&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=36" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="37" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:37}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'ABDDFEEF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=sUywc3HjScQJXkZ6OIDCKrHS71tThZO82JyQF0zBlda" target="_blank"><em>Xperia</em> X1 - The unofficial blog about <em>Sony</em> Ericsson <em>Xperia</em> X1</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=sUywc3HjScQJXkZ6OIDCKrHS71tThZO82JyQF0zBlda" target="_blank"><img src="http://i7.baidu.com/it/u=3620829819,2041439136&amp;fm=96&amp;s=F2639956042288BE5711919703005021" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> have moved to quickly release the Android 4.0 aka Ice Cream Sandwich update for <em>Xperia</em> Ion owners that use the AT&amp;T network in the US. The ...</div><div class="f13"><span class="g"><b>xperia</b>-x1.com/&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_7630641495101120575" data-tools="{&quot;title&quot;:&quot;Xperia X1 - The unofficial blog about Sony Ericsson Xperia X1&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=sUywc3HjScQJXkZ6OIDCKrHS71tThZO82JyQF0zBlda&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5c2088afbc97b3888517e730b8636438e46b2&amp;p=8b2a975686cc41ac5fa2ca25555d98&amp;newp=8f6a831499904ead08e2947d0a50cd231610db2151ddd31e&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=37" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="38" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:38}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'697FFCA3'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Db4-5Q4u2Ohut9MG0rA1mvVcKhGM4fkJ94ExPHE-T8V-xXG8Qz1izQXlS9l-dQR91ayT2M4TvwIzX_-Nvw6Vw_" target="_blank">...LTE手机齐登场-索尼,6.44寸,骁龙800,旗舰,TD-LTE,手机,<em>Xperia</em> ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=Db4-5Q4u2Ohut9MG0rA1mvVcKhGM4fkJ94ExPHE-T8V-xXG8Qz1izQXlS9l-dQR91ayT2M4TvwIzX_-Nvw6Vw_" target="_blank"><img src="http://i8.baidu.com/it/u=2505493275,1164841766&amp;fm=96&amp;s=B2C4B144DCA79E451A37348A0300809A" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2013年6月25日&nbsp;-&nbsp;</span>今天下午,索尼在上海召开发布会,推出了多款新品,而其中最为夺目的莫过于6.44寸超大屏幕的<em>Xperia</em> Z Ultra,以及国内首款支持移动TD-LTE 4G网络的<em>Xperia</em>...</div><div class="f13"><span class="g">news.mydrivers.c...&nbsp;2013-06-25&nbsp;</span><div class="c-tools" id="tools_10111715552976765573" data-tools="{&quot;title&quot;:&quot;...LTE手机齐登场-索尼,6.44寸,骁龙800,旗舰,TD-LTE,手机,Xperia ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Db4-5Q4u2Ohut9MG0rA1mvVcKhGM4fkJ94ExPHE-T8V-xXG8Qz1izQXlS9l-dQR91ayT2M4TvwIzX_-Nvw6Vw_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d41d98fa852858d76c623047c21652920eafbc17789e3d9347e9ab1cfabaf43793abd1c4df23098c0c&amp;p=882a9543d39d0bfb10aae62d021483&amp;newp=806fd116d9c117e408e29478084c80231610db2151d7d510299f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=38" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="39" srcid="1502" tpl="se_st_baike" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:39}"><h3 class="t"><a href="http://www.baidu.com/link?url=eg2PXn5hddWU4AsXflN7Mcv2WleurvJ43jPu6hDXcnqcfpTRcjYlWQZ_81gB7lTJ" target="_blank" data-click="
-                       {
-                               'F': '778717EA',
-                               'F1': '9D73F1E4',
-                               'F2': '4CA6DEEB',
-                               'F3': '54E5243F',
-                               'T': '1400743384',
-                               'y': 'FFFEFE2E',
-                               'rsv_bkjq': 1
-                       }
-               "><em>sony</em> - 索尼_百度百科</a></h3><div><p>索尼公司(ソニー株式会社,<em>Sony</em>Corporation)是一家全球知名的综合性跨国企业集团。索尼是世界视听、通讯产品和信息技术等领域的先导者,是世界最早便携式数...</p><div><span>其他含义:</span><a href="http://baike.baidu.com/view/16935.htm#sub4965248" target="_blank" data-click="                     
-               {
-                   'rsv_bkjq': 1
-               }
-                       ">清代辅政大臣</a></div><div class="f13"><span class="g">baike.baidu.com/&nbsp;2013-02-10&nbsp;<div class="c-tools" id="tools_11760458735414487958" data-tools="{&quot;title&quot;:&quot;sony - 索尼_百度百科&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=eg2PXn5hddWU4AsXflN7Mcv2WleurvJ43jPu6hDXcnqcfpTRcjYlWQZ_81gB7lTJ&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d81986e2c53f2fff77672b4ac15612a448f2945b619a77d547e3a512e3adf045c9e88d&amp;p=8071c54ad5c645ea0cf1ce2d0214c6&amp;newp=806dc64ad4934eac5de9ce224c598c231611c20e39dd&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=39" target="_blank" class="m">百度快照</a></div></div></div><div class="result c-container " id="40" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:40}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'DEFFF4F6'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=iLhzgPOJrassRZ9rQkLHQQzPbKC42wH591sJaIkn-QEq_VNR7Y0t2xHMGCo16LqW" target="_blank">索尼L36h<em>(Xperia</em> Z<em>)</em>黑色/白色/紫色最新报价,上海不夜城手机报价,...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=iLhzgPOJrassRZ9rQkLHQQzPbKC42wH591sJaIkn-QEq_VNR7Y0t2xHMGCo16LqW" target="_blank"><img src="http://i7.baidu.com/it/u=3323180449,3354362140&amp;fm=96&amp;s=2B80E50044D4838CA18DA5D60300C0A2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 索尼L36h <em>Xperia</em> Z水货报价-透过<em>Sony</em> media apps 以及 One-touch 技术,探索、欣赏、分享多媒体娱乐! <em>Xperia</em> Z 内建独家的「WALKMAN」、 「相簿」 及「影片」...</div><div class="f13"><span class="g">www.aa7a.cn/good...&nbsp;2014-04-14&nbsp;</span><div class="c-tools" id="tools_11656438295488328827" data-tools="{&quot;title&quot;:&quot;索尼L36h(Xperia Z)黑色/白色/紫色最新报价,上海不夜城手机报价,...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=iLhzgPOJrassRZ9rQkLHQQzPbKC42wH591sJaIkn-QEq_VNR7Y0t2xHMGCo16LqW&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7306fd283027fa3c2148e31061c1127f4bb51251502c4c50b3d47f01748afad7624385c77a09bb9c91781f085285ec265633047d55612a258f2970d32c151d204bae458a1e9b669cef2&amp;p=c677f915d9c340ae46fbdb2d02149d&amp;newp=8e66d215d9c340ae42be9b7c58528f231610db2151d4d21465&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=40" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="41" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:41}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'77F714DE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Xuc3ESRdZKbXC3m3-ZLILuitOT7qbP1Bt_ddPc6lR5DENo99qcaNKDMLgY-CUNvuXzdc03uBlR4z6a_pvNXuEuZ8EuzDtNoNUYnyOtCGpt_" target="_blank">Amazon.com: <em>Sony</em> PS3 Hardware 160GB Core: Video Games</a></h3><div class="c-abstract"><em>Sony</em> PS3 Hardware 160GB Core by <em>Sony</em>  Platform: <em>PlayStation</em> 3 <em>|</em> Rated: Everyone  4.3 out of 5 stars See all reviews (933 customer reviews<em>)</em> ...</div><div class="f13"><span class="g">www.amazon.com/...&nbsp;2013-04-01&nbsp;</span><div class="c-tools" id="tools_10518696764501045913" data-tools="{&quot;title&quot;:&quot;Amazon.com: Sony PS3 Hardware 160GB Core: Video Games&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Xuc3ESRdZKbXC3m3-ZLILuitOT7qbP1Bt_ddPc6lR5DENo99qcaNKDMLgY-CUNvuXzdc03uBlR4z6a_pvNXuEuZ8EuzDtNoNUYnyOtCGpt_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7306384984823c3933fc239045c263bbff0302266668d96372647fc0f07b7ac2172410237b7eda9d61182ac925e2c8c25410001d0030fa31badca2242bc24ea5cfdea44a7ecff6dc4b9d2a29e090f8144050bcab2dc1a5b47dd6f81556cbfed8e48641d4ee9a67123ac1f2c74c3&amp;p=996dcb5480904ead08e2947e075f8c&amp;newp=c0759a45d6c916f70be296251305cd231610db2151d0db15288c&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=41" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DXuc3ESRdZKbXC3m3-ZLILuitOT7qbP1Bt_ddPc6lR5DENo99qcaNKDMLgY-CUNvuXzdc03uBlR4z6a_pvNXuEuZ8EuzDtNoNUYnyOtCGpt_&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Amazon%01.%01com%01%3A%01%20%02Sony%03%20%01PS%013%01%20%01Hardware%01%20%01160%01GB%01%20%01Core%01%3A%01%20%01Video%01%20%01Games%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="42" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:42}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'7C5EEBF3'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=EZ0_QoIkiizOPnuY8x7JEzDojFlqPSZP0u_XZ2bDphrtvj6TWlYFEKqcTnSjyDNX" target="_blank"><em>Sony</em> Computer Entertainment Inc.</a></h3><div class="c-abstract"> <em>SONY</em> COMPUTER ENTERTAINMENT ANNOUNCES “<em>PLAYSTATION</em> NOW”, A NEW STREAMING GAME SERVICE THAT LEVERAGES CLOUD-BASED TECHNOLOGY; TO BE AVAILABLE IN THE ...</div><div class="f13"><span class="g">www.scei.co.jp/i...&nbsp;2014-01-30&nbsp;</span><div class="c-tools" id="tools_15708125256354037389" data-tools="{&quot;title&quot;:&quot;Sony Computer Entertainment Inc.&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=EZ0_QoIkiizOPnuY8x7JEzDojFlqPSZP0u_XZ2bDphrtvj6TWlYFEKqcTnSjyDNX&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7226d808b027fa3c21584642c19057bb8e771755a13d4b12b7001d8131ab5ae22376a4376b8c49f9f4aacfacf74649f27453a5ed10149800eafba07789d6b875a98ed47b4f1b174c0e8898e83&amp;p=882a9546d6815bbe0be29612424dcb&amp;newp=882a9546d68805f118f6c7710f4a94231610db2151d7d6153490cd0888&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=42" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DEZ0_QoIkiizOPnuY8x7JEzDojFlqPSZP0u_XZ2bDphrtvj6TWlYFEKqcTnSjyDNX&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01Computer%01%20%01Entertainment%01%20%01Inc%01.%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="43" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:43}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F4DF7DFB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=RbaELXQPOZ2MMy0EXyStWK32TFfQVaNvw8Ip5tOWTU0oOkkpwMNagECALX1GMA4wmQ1rdxCI6ebsmyn891-3vK" target="_blank">【索尼 LT26i】索尼<em>Xperia</em> S LT26i报价_图片_参数_点评_索尼 ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=RbaELXQPOZ2MMy0EXyStWK32TFfQVaNvw8Ip5tOWTU0oOkkpwMNagECALX1GMA4wmQ1rdxCI6ebsmyn891-3vK" target="_blank"><img src="http://i7.baidu.com/it/u=1433511044,656603846&amp;fm=96&amp;s=19843C7A0A95929A4591B9470100E0E0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 全局置顶索尼LT26i 4.1.2主题 “就耀出色”,14款<em>SONY</em> <em>XPERIA</em> 主题 by The 希望之光 2013-05-24 14937369 全局置顶索尼LT26i 刷机、解锁、基础教程、固件、...</div><div class="f13"><span class="g">product.cnmo.com...&nbsp;2014-04-27&nbsp;</span><div class="c-tools" id="tools_2908893487864850164" data-tools="{&quot;title&quot;:&quot;【索尼 LT26i】索尼Xperia S LT26i报价_图片_参数_点评_索尼 ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=RbaELXQPOZ2MMy0EXyStWK32TFfQVaNvw8Ip5tOWTU0oOkkpwMNagECALX1GMA4wmQ1rdxCI6ebsmyn891-3vK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f27432140d91c05d36efe9619389077ce04fea86da5e0ad6ec4b3898f890319c957067d80f19c5a77559029af4a&amp;p=8b2a970694934eaf59e7cf0c5c0c91&amp;newp=882a9544dc8b16b746b5cf2d02149d231610db2151d3da1537838b56cb3f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=43" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="44" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:44}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FDBFFAC3'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Hi6TY6qyatWrbctY7XIDhUM0tayuq-gwk5B_pFuknPM-HAMQHKWRXLAA5zkxWsgFNkKd3NsR37TEI5wb5AVh9ZUrEscpSUITak7oTBdTNPw1cliQPnSNOdDEs0_RnXTF" target="_blank">Download <em>Sony</em> Walkman Games <em>Sony</em> <em>Xperia</em> Game X10 Mini</a></h3><div class="c-abstract"> Manager <em>sony</em> ericsson live with walkman games free mix walkman games free <em>sony</em> <em>xperia</em> play games live with walkman games free Driver <em>sony</em> ericsson ...</div><div class="f13"><span class="g">selectedworks.ne...&nbsp;2013-08-15&nbsp;</span><div class="c-tools" id="tools_18256429754193759170" data-tools="{&quot;title&quot;:&quot;Download Sony Walkman Games Sony Xperia Game X10 Mini&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Hi6TY6qyatWrbctY7XIDhUM0tayuq-gwk5B_pFuknPM-HAMQHKWRXLAA5zkxWsgFNkKd3NsR37TEI5wb5AVh9ZUrEscpSUITak7oTBdTNPw1cliQPnSNOdDEs0_RnXTF&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5c91d83ecc36e78de62693045c75612a445f88e13729d60c71bfeaf6ebafaa52fc4eecf928410009208127af6b1d6065555dd6f864b73e2b1993e411f47edfa3013b90e296eca6457b631bfb37a371a&amp;p=8b2a970acdd816f008e29478084ca5&amp;newp=9e618e0e86cc41a95dbac7710f4b89231610db2151d6d71028&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=44" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DHi6TY6qyatWrbctY7XIDhUM0tayuq-gwk5B_pFuknPM-HAMQHKWRXLAA5zkxWsgFNkKd3NsR37TEI5wb5AVh9ZUrEscpSUITak7oTBdTNPw1cliQPnSNOdDEs0_RnXTF&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Download%01%20%02Sony%03%20%01Walkman%01%20%01Games%01%20%02Sony%03%20%02Xperia%03%20%01Game%01%20%01X%0110%01%20%01Mini%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="45" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:45}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFFDBF7F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=9bCayB_6ZjrUHjHRvV9ATeoha2ZtYQgzsczS7mtKrz1RE5Q3--HgVdy22GOAFubm_-9puJ0LYgXa7HsbyK_hy_" target="_blank"><em>Sony</em> <em>Xperia</em> Z specs</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=9bCayB_6ZjrUHjHRvV9ATeoha2ZtYQgzsczS7mtKrz1RE5Q3--HgVdy22GOAFubm_-9puJ0LYgXa7HsbyK_hy_" target="_blank"><img src="http://i8.baidu.com/it/u=2443631697,4228956478&amp;fm=96&amp;s=5E86EC0342E77BBF48A9C9C1030070E3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>Xperia</em> Z C6603 Despite our efforts to provide full and correct <em>Sony</em> <em>Xperia</em> Z specifications, there is always a possibility of making a mistake...</div><div class="f13"><span class="g">www.phonearena.c...&nbsp;2013-02-09&nbsp;</span><div class="c-tools" id="tools_7578238113344356331" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z specs&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=9bCayB_6ZjrUHjHRvV9ATeoha2ZtYQgzsczS7mtKrz1RE5Q3--HgVdy22GOAFubm_-9puJ0LYgXa7HsbyK_hy_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6dd27a68274fc6164e800eafbc17789e3dd200b4f34ea6a7916fcfe5c5d3a93e119d135e2997f0fd321713be34a61136e2ad&amp;p=882a9543d48a04fe07b8d62d0214cf&amp;newp=882a9543d49c12a05aac87391150bb231610db2151d3d21320&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=45" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="46" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:46}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'7ED7DEFB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=xzk-1uiujZjN1pyKWHYNBQpzyl-crp8jn07uNXV6cSD8BzS3SrvKZCUn3xkfn3ypEJAvjoMUEOlyui4K-DOCJK" target="_blank">索尼L36h<em>(Xperia</em> Z<em>)</em>_索尼<em>Xperia</em> Z,Yuga,L36h,索尼L36h,<em>Xperia</em> Z_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=xzk-1uiujZjN1pyKWHYNBQpzyl-crp8jn07uNXV6cSD8BzS3SrvKZCUn3xkfn3ypEJAvjoMUEOlyui4K-DOCJK" target="_blank"><img src="http://i9.baidu.com/it/u=1850143646,1969437054&amp;fm=96&amp;s=0AE279220CFF729AD938519D0300C0A0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">您所在的位置: 安卓网 &gt; 手机大全 &gt; 索尼L36h<em>(Xperia</em> Z<em>)</em>索尼L36h<em>(Xperia</em> Z<em>)</em>【产品别名:索尼<em>Xperia</em> Z,Yuga,L36h,索尼L36h,<em>Xperia</em> Z】...</div><div class="f13"><span class="g">product.hiapk.co...&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_13371963025520859561" data-tools="{&quot;title&quot;:&quot;索尼L36h(Xperia Z)_索尼Xperia Z,Yuga,L36h,索尼L36h,Xperia Z_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=xzk-1uiujZjN1pyKWHYNBQpzyl-crp8jn07uNXV6cSD8BzS3SrvKZCUn3xkfn3ypEJAvjoMUEOlyui4K-DOCJK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a74f2487d11184642c101a39fee47a724b5a84d83d3a5de45402ebf46c65377523b79bd59c0f80fbc42770df3034015ddb1d59c419de810472817bc34de9de58bae6bb2593df908d8c1f128c004321ddac&amp;p=8f7cc64ad48611a058ee9e275c558e&amp;newp=8b2a9715d9c342a512a28f685a44bb231610db2151d1d21f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=46" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="47" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:47}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'767361F2'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=U7FrpJAnhuqeRms_RGow8wotY28RCh2pl0nysFp_joBPW6TM7_lIcR7z7a80-mozrZGqB0gvBzY4_i2ENG2Lla" target="_blank">【索尼L39h<em>(Xperia</em> Z1<em>)</em>】L39h<em>(Xperia</em> Z1<em>)</em>报价<em>|</em>论坛<em>|</em>怎么样_网易手机</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=U7FrpJAnhuqeRms_RGow8wotY28RCh2pl0nysFp_joBPW6TM7_lIcR7z7a80-mozrZGqB0gvBzY4_i2ENG2Lla" target="_blank"><img src="http://i7.baidu.com/it/u=1457942577,2924784428&amp;fm=96&amp;s=7A8C31620CBF929A0B1B89CD0300A0A3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">查看全部 n条索尼L39h<em>(Xperia</em> Z1<em>)</em>系列网友评论 先打个总分:  点评标题: 标题要求4~40个字,您可以再输入40个字  优点:  缺点: *优点或缺点至少填写一项,...</div><div class="f13"><span class="g">product.mobile.1...&nbsp;2013-12-31&nbsp;</span><div class="c-tools" id="tools_5334122844294197734" data-tools="{&quot;title&quot;:&quot;【索尼L39h(Xperia Z1)】L39h(Xperia Z1)报价|论坛|怎么样_网易手机&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=U7FrpJAnhuqeRms_RGow8wotY28RCh2pl0nysFp_joBPW6TM7_lIcR7z7a80-mozrZGqB0gvBzY4_i2ENG2Lla&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a74a2284c816c4735b364462e2ac275541598cd81d1a7dc4545ee8f2460d527848a3de95c81cd2e4c53f2ff966692c57914163995bf88b1d76d620e11bb4f352f0ba8170cdfd9992990715910e59&amp;p=83759a45d0c105dd0be2962c155586&amp;newp=8b2a975bca9150ff57ed927c504b91231610db2151d2d20b638682&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=47" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="48" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:48}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'DDFFFFFF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=qwKHS1F1xgXqLQAF1ZYg0jC9rVZqMUkCNIbuw_8CbLQm-Z9-fnLVBYIrN5QR9ZZ3JWTQlJDO1z2Q_hsGYuQQj_" target="_blank"><em>Sony</em> <em>Xperia</em> sola - Full phone specifications</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=qwKHS1F1xgXqLQAF1ZYg0jC9rVZqMUkCNIbuw_8CbLQm-Z9-fnLVBYIrN5QR9ZZ3JWTQlJDO1z2Q_hsGYuQQj_" target="_blank"><img src="http://i8.baidu.com/it/u=3965142933,2660518374&amp;fm=96&amp;s=CBC8E0020ED98A9E46C7FD0B0300E0E9" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Sony</em> <em>Xperia</em> Z1 Compact review: Mini gone bigNokia Lumia 1320 review: Playing by the book<em>Sony</em> <em>Xperia</em> sola<em>SonySony</em> <em>Xperia</em> sola MORE PICTURES <em>Sony</em> <em>Xperia</em> ...</div><div class="f13"><span class="g">www.gsmarena.com...&nbsp;2014-02-22&nbsp;</span><div class="c-tools" id="tools_17317228152853858644" data-tools="{&quot;title&quot;:&quot;Sony Xperia sola - Full phone specifications&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=qwKHS1F1xgXqLQAF1ZYg0jC9rVZqMUkCNIbuw_8CbLQm-Z9-fnLVBYIrN5QR9ZZ3JWTQlJDO1z2Q_hsGYuQQj_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7367d8883552888c05f93130a1c187ba2e67b690703a78f3e3041f41a4bed84772f695037b7edce8e48d7ac925f6dd265203541c6171d8c4eb8cb37649c7cdb4de9de53a5edb069c0b9d2a29e090f8144050bc2aed81141529929ab496d&amp;p=8b2a9715d9c341ac43b5d760570891&amp;newp=9039c54ad6c342b140be9b7c47059e231610db2151d2d21261cc&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=48" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="49" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:49}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FE2BF7F7'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=S3RtaHw-_h-A2VtiPoSM5QZutdEX6SA8bjHKAZuCurMhrnmgArUi8Gtd2FcsPm2PRIbYxwT792f3nU_2-FzOXVc6uR_fAADBduFsESk1mes6rCCBp8PW0yqfz9S2-Pww" target="_blank"><em>Sony</em> <em>Xperia</em> Z review <em>|</em> Phone Reviews <em>|</em> TechRadar</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=S3RtaHw-_h-A2VtiPoSM5QZutdEX6SA8bjHKAZuCurMhrnmgArUi8Gtd2FcsPm2PRIbYxwT792f3nU_2-FzOXVc6uR_fAADBduFsESk1mes6rCCBp8PW0yqfz9S2-Pww" target="_blank"><img src="http://i9.baidu.com/it/u=3320568541,1666647337&amp;fm=96&amp;s=02B0EC22D5FDB39A4DB890970100B0E1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> The Android Jelly Bean-toting (albeit only 4.1<em>)</em> <em>Sony</em> <em>Xperia</em> Z comes with some of the best specs on the market - and it's one of the most ...</div><div class="f13"><span class="g">www.techradar.co...&nbsp;2014-02-24&nbsp;</span><div class="c-tools" id="tools_15982887019426000489" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z review | Phone Reviews | TechRadar&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=S3RtaHw-_h-A2VtiPoSM5QZutdEX6SA8bjHKAZuCurMhrnmgArUi8Gtd2FcsPm2PRIbYxwT792f3nU_2-FzOXVc6uR_fAADBduFsESk1mes6rCCBp8PW0yqfz9S2-Pww&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f69df766e304fd01252c419d89a1b7adc60c71eb2f85ca6a7b268cef28592c20b0e9a085b2d97f0fd185a499638b10970befad25f15295af8ba703eac4e775fd73440c044fae3396a0684eb9d0b08987d95&amp;p=cb66cc0494904ead09bd9b7e0e1690&amp;newp=8b2a970ccd9f5bf308e2947d0d4aa5231610db2151ddd31136cfcf52cf&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=49" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="50" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:50}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EBF7EF73'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=m2QD1HRhBBCao9_Q5E1FuuyrYECHhQNWfEk8UQJJa0XljU4jZxF_9TNB3YoTYZTDwGEPJ-ZQyXqqo1HWtyHFf9NX2ojfmcwYLbZmljxucAS" target="_blank"><em>Sony</em> <em>Xperia</em> S review <em>|</em> The Verge</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=m2QD1HRhBBCao9_Q5E1FuuyrYECHhQNWfEk8UQJJa0XljU4jZxF_9TNB3YoTYZTDwGEPJ-ZQyXqqo1HWtyHFf9NX2ojfmcwYLbZmljxucAS" target="_blank"><img src="http://i7.baidu.com/it/u=2777273889,380824856&amp;fm=96&amp;s=823057806D84B0982B0091C5030090A1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Sony</em> <em>Xperia</em> S reviewThe former <em>Sony</em> Ericsson is back with a new <em>Xperia</em> for 2012 — can it do justice to the high standards of the <em>Sony</em> brand?...</div><div class="f13"><span class="g">www.theverge.com...&nbsp;2012-03-05&nbsp;</span><div class="c-tools" id="tools_77399486355989134" data-tools="{&quot;title&quot;:&quot;Sony Xperia S review | The Verge&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=m2QD1HRhBBCao9_Q5E1FuuyrYECHhQNWfEk8UQJJa0XljU4jZxF_9TNB3YoTYZTDwGEPJ-ZQyXqqo1HWtyHFf9NX2ojfmcwYLbZmljxucAS&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f69d27070275cd31605d36efe961938c122935af4ae04e0a7f03895add5d5da4912970f4e6d8086c1185754913ce71447a2b1993e550854e1ba75&amp;p=87769a478ad059ff57ed957e5156cf&amp;newp=8b2a975f979c0bff57ed957e7f5088231610db2151d6d6156595cc02&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=50" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="51" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:51}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'1DB77D9F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=l5j9pXsjgXMw9C0HfvOVqhnjy53RVie9VXPM9Q-OXnCewMnvhP-z2ioPQQH4YsAw_Nndmw-2jEsiQtfOGH2_N_" target="_blank"><em>Sony</em> <em>Xperia</em> Z - Everything you need to know <em>|</em> Android Central</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=l5j9pXsjgXMw9C0HfvOVqhnjy53RVie9VXPM9Q-OXnCewMnvhP-z2ioPQQH4YsAw_Nndmw-2jEsiQtfOGH2_N_" target="_blank"><img src="http://i8.baidu.com/it/u=3490378009,1357557569&amp;fm=96&amp;s=D2A092434E12025D424203BD0300A00E" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> The <em>Xperia</em> Z is <em>Sony</em>'s first high-end Android smartphone of 2013 bringing with it Android 4.1 on a 5-inch (1920 x 1080<em>)</em> display, 1.5GHz quad...</div><div class="f13"><span class="g">www.androidcentr...&nbsp;2013-12-12&nbsp;</span><div class="c-tools" id="tools_8098593391106659294" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z - Everything you need to know | Android Central&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=l5j9pXsjgXMw9C0HfvOVqhnjy53RVie9VXPM9Q-OXnCewMnvhP-z2ioPQQH4YsAw_Nndmw-2jEsiQtfOGH2_N_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f7cd471742d47d010458f5fef981832c157c107b6b258bae6bb2593d898918814089944050cc8&amp;p=8c67c316d9c108ff57ed957c5a48cc&amp;newp=8b2a971086cc41ae5aac85654e5d8b231610db2151d2d3132a&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=51" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="52" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:52}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'A7FAEFE9'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Q1D7_VeN8NWo6aiX9-oUU9CgWZv85o9RgC6971hibVgMhwYx3Rj8VPLTaLA2lbllyqD4F_q5tTdxqrDgy2Eg_aFFIq9j5o3-yWk7Fgo2Ebi" target="_blank"><em>Playstation</em> Store Download <em>Xperia</em> Play <em>Sony</em> <em>Xperia</em> ...</a></h3><div class="c-abstract"> android play store error 491 modern combat 3 <em>xperia</em> play free games play store for pc windows xp ps3 remote play <em>sony</em> There was already a satire in...</div><div class="f13"><span class="g">shortpromdresses...&nbsp;2013-08-06&nbsp;</span><div class="c-tools" id="tools_7313928464550810979" data-tools="{&quot;title&quot;:&quot;Playstation Store Download Xperia Play Sony Xperia ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Q1D7_VeN8NWo6aiX9-oUU9CgWZv85o9RgC6971hibVgMhwYx3Rj8VPLTaLA2lbllyqD4F_q5tTdxqrDgy2Eg_aFFIq9j5o3-yWk7Fgo2Ebi&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310578d3b5912c223618886552895d21fd225011c0571e3cc767f4f198e872b7a43f11a17fdf04027684b37b7ed89ce179dec852859dc7a74671cf00b508459f4985125b7788d4eacf259b1b5af6584aea392820818dd537430c2a7cb015303ca1eb1496da8b19939570143f1ac7636b9022a75&amp;p=c97bc64ad49816bc1ebd9b7e0e1189&amp;newp=c4788b15d9c342a843bbc7710f07cb231610db2151d4d4126482&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=52" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DQ1D7_VeN8NWo6aiX9-oUU9CgWZv85o9RgC6971hibVgMhwYx3Rj8VPLTaLA2lbllyqD4F_q5tTdxqrDgy2Eg_aFFIq9j5o3-yWk7Fgo2Ebi&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Playstation%03%20%01Store%01%20%01Download%01%20%02Xperia%03%20%01Play%01%20%02Sony%03%20%02Xperia%03%20%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="53" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:53}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FF5FF77F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=d_n70ltSUm_C_JUR42txWfZT3wMBlrpqFHYsK0m4tGxkldq40N6LicbqaxN_K8LxLhgpizwnHY3Wpj0bNcTc3PbGT9YyP384Sz_Spov3UL8RfoUopQFrlsBrnY2ajzW1" target="_blank">Download <em>Playstation</em> Emulator <em>Xperia</em> Play Play <em>Playstation</em> ...</a></h3><div class="c-abstract"> play <em>sony</em> <em>playstation</em> emulator free pc psx emulator windows 7 free <em>playstation</em> emulator free mac minecraft <em>xperia</em> play apk play ps emulator free download ...</div><div class="f13"><span class="g">oklahomarunningc...&nbsp;2013-08-05&nbsp;</span><div class="c-tools" id="tools_13241982980135848911" data-tools="{&quot;title&quot;:&quot;Download Playstation Emulator Xperia Play Play Playstation ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=d_n70ltSUm_C_JUR42txWfZT3wMBlrpqFHYsK0m4tGxkldq40N6LicbqaxN_K8LxLhgpizwnHY3Wpj0bNcTc3PbGT9YyP384Sz_Spov3UL8RfoUopQFrlsBrnY2ajzW1&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d51383e8c87570db67732c40dd1d478244f08915798a37902db8f246faf1b0638eea9798854353bc115e2bc6b7cb0d1714bc30bb033195e4ca13494810ccb46d38a14e775fda791bf450f9966d2c0696f6ab080c947dcd&amp;p=9f6cc54ad6c043fd0be2962f615085&amp;newp=9265c64ad4934eaf5befc1201652c6231610db2151d4d417&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=53" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dd_n70ltSUm_C_JUR42txWfZT3wMBlrpqFHYsK0m4tGxkldq40N6LicbqaxN_K8LxLhgpizwnHY3Wpj0bNcTc3PbGT9YyP384Sz_Spov3UL8RfoUopQFrlsBrnY2ajzW1&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Download%01%20%02Playstation%03%20%01Emulator%01%20%02Xperia%03%20%01Play%01%20%01Play%01%20%02Playstation%03%20%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="54" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:54}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'57BC5F7F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=P0qi0eH6c8P2sRDcVhik-dhnM06saFDhml0gTwEKRkvQSmWL1UUVSirSgLoXL4LH3Us2skkmjTX3CJxBnWin3KwEdNPdp9IZqyEshE_Jr7JiQjT4iEnqRzPV2iyWmQ_L" target="_blank">Download <em>Xperia</em> Arc S 4.0.2.a.0.42 Arc S Speed</a></h3><div class="c-abstract"> Apps <em>sony</em> ericsson <em>xperia</em> arc s s <em>sony</em> <em>xperia</em> arc s games <em>sony</em> ericsson <em>xperia</em> s apps Apps <em>sony</em> <em>xperia</em> arc s games arc s mode <em>xperia</em> s pc ...</div><div class="f13"><span class="g">www.giannaangeli...&nbsp;2013-09-22&nbsp;</span><div class="c-tools" id="tools_2586121926155835350" data-tools="{&quot;title&quot;:&quot;Download Xperia Arc S 4.0.2.a.0.42 Arc S Speed&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=P0qi0eH6c8P2sRDcVhik-dhnM06saFDhml0gTwEKRkvQSmWL1UUVSirSgLoXL4LH3Us2skkmjTX3CJxBnWin3KwEdNPdp9IZqyEshE_Jr7JiQjT4iEnqRzPV2iyWmQ_L&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f73667848c492c87cf1dc43a001d1c71e3cc7c640d5483d8263a44b8492abfb0662c775d6af68cc8fe0c80ac925e68c97023706ad11705d36ffb961a638037902cb2f30ee7ccb56fd3f8c5d3a911089605583fc1e78b2c0509de2aad5467ecf9ce5f152e51e7b17b72ff283d6bc8631be550f99173335bcae1dd2d0e9d799b2057c4e96eed62&amp;p=8b2a971486cc41ae53b4dc6f460e8c&amp;newp=8b2a970295d911a058ec9f3a585d83231610db2151d2d414389789&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=54" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DP0qi0eH6c8P2sRDcVhik-dhnM06saFDhml0gTwEKRkvQSmWL1UUVSirSgLoXL4LH3Us2skkmjTX3CJxBnWin3KwEdNPdp9IZqyEshE_Jr7JiQjT4iEnqRzPV2iyWmQ_L&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Download%01%20%02Xperia%03%20%01Arc%01%20%01S%01%20%014%01.%010%01.%012%01.%01a%01.%010%01.%0142%01%20%01Arc%01%20%01S%01%20%01Speed%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="55" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:55}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'97A7394E'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=F0UDn0KTtGbAmFsdSFyyXvFrff8S2jK0PBVLcK1uDaWL9tbeyXzKFv8jelnXiUvrkIQRktjkjOQXrwscPnuPQCH-CiBj8IhCJ-U-jo6UXfzdAk6jNx9bQ7a9TDNzxDDzrSn-A8loIhgF3u-QwlGqrq" target="_blank">Extended Battery+Cover For <em>Sony</em> Ericsson <em>XPERIA</em> Arc X12 <em>|</em> eBay</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=F0UDn0KTtGbAmFsdSFyyXvFrff8S2jK0PBVLcK1uDaWL9tbeyXzKFv8jelnXiUvrkIQRktjkjOQXrwscPnuPQCH-CiBj8IhCJ-U-jo6UXfzdAk6jNx9bQ7a9TDNzxDDzrSn-A8loIhgF3u-QwlGqrq" target="_blank"><img src="http://i7.baidu.com/it/u=2744000234,878936198&amp;fm=96&amp;s=3CD12BD0CE67029E6895E1090100E0C0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">Extended Battery+Cover For <em>Sony</em> Ericsson <em>XPERIA</em> Arc X12 See original listing  Extended-Battery-Cover-For-<em>Sony</em>-Ericsson-<em>XPERIA</em>-Arc-X12 Item Ended Item ...</div><div class="f13"><span class="g">www.ebay.co.uk/i...&nbsp;2014-05-10&nbsp;</span><div class="c-tools" id="tools_1667058688407205590" data-tools="{&quot;title&quot;:&quot;Extended Battery+Cover For Sony Ericsson XPERIA Arc X12 | eBay &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=F0UDn0KTtGbAmFsdSFyyXvFrff8S2jK0PBVLcK1uDaWL9tbeyXzKFv8jelnXiUvrkIQRktjkjOQXrwscPnuPQCH-CiBj8IhCJ-U-jo6UXfzdAk6jNx9bQ7a9TDNzxDDzrSn-A8loIhgF3u-QwlGqrq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7346c849b027fa3c21584642c061e7bb8fd783f674e9592203156f95e5c9c806534715460fc8cc8fe3b80ffc568388851402d5c914164b244f3805125b757d001b8ee58bae6e732e5c4b0a4bf2f20dd537309c0a19c5a767ec96fe71447fea59c4a115411b8ec3666fc526028eb3705eb07afef6d391081879c0110883dd0105bd5f875eb6d05b562e542476f53a03df356026d71a61c61a41961&amp;p=93759a45d7c51bbc2aa8c82d0214cf&amp;newp=882a9544d08401ee01a2822d02148f231610db2151d0d71f3894d211dc72&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=55" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="56" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:56}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FA3EABBE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=eTN9L_WnFT2WTate7Kl-Nf2ExcC-hmecfrr1BsMtpjSv8u0F8EPMYq8AFe9TvdtgR0V2FDOHT6qCVS5FmpLFt_hwW1Dg87MvsbekU9oIiNImZKl0zg9xMHR8494ghg9j" target="_blank">PS4: The Ultimate FAQ – North America – <em>PlayStation</em>.Blog</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=eTN9L_WnFT2WTate7Kl-Nf2ExcC-hmecfrr1BsMtpjSv8u0F8EPMYq8AFe9TvdtgR0V2FDOHT6qCVS5FmpLFt_hwW1Dg87MvsbekU9oIiNImZKl0zg9xMHR8494ghg9j" target="_blank"><img src="http://i8.baidu.com/it/u=2652739986,3153358737&amp;fm=96&amp;s=42D2ED28319E978232558196010080E2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">other devices such as <em>PlayStation</em> 3, PS Vita, BRAVIA TV, and <em>Xperia</em> Smartphones, all with the convenience of a single <em>Sony</em> Entertainment Network account...</div><div class="f13"><span class="g">blog.us.playsta...&nbsp;2013-10-30&nbsp;</span><div class="c-tools" id="tools_14879976709652005179" data-tools="{&quot;title&quot;:&quot;PS4: The Ultimate FAQ – North America – PlayStation.Blog&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=eTN9L_WnFT2WTate7Kl-Nf2ExcC-hmecfrr1BsMtpjSv8u0F8EPMYq8AFe9TvdtgR0V2FDOHT6qCVS5FmpLFt_hwW1Dg87MvsbekU9oIiNImZKl0zg9xMHR8494ghg9j&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380147b96c7150896cd1bd8251d12013dbee7302267558e9a616703ac4841e9f22b73351e62f69ddf883c9be1c53f2ffe606a3647d91254840eafbd12768237902cb5f259a1e0e732e5fd8d849f0f02994e113fddb0dd555f43dd6f81556cbfed8e48641552edad6b36e8590668c27f0ba14788a26c3d4cc0b08e1a179e76&amp;p=8639d315d9c341ac46abc7710f0890&amp;newp=8479dd16d9c111a058ed9724520888231610db2151d2d212&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=56" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="57" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:57}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'96FFFFEF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=xUoKYEVUXvD7zoE38pxe5iaKPp6zr7lXIhjTc_JE203nN51qI_ZfDzBP5p4005mwQtXTPVAXa7uJmiOnDwZ0h1oTH3qch47qAleELMM0N3Y6eEAuurqW0v4kcCbyPc_u" target="_blank">Download Wallpapers <em>Xperia</em> Arc <em>Sony</em> Ericsson <em>Xperia</em> Arc Games</a></h3><div class="c-abstract">x8 <em>xperia</em> arc music widget <em>sony</em> ericsson <em>xperia</em> x8 wallpapers free <em>sony</em> <em>xperia</em> u live wallpapers <em>sony</em> ericsson <em>xperia</em> wallpapers free...</div><div class="f13"><span class="g">southfloridacert...&nbsp;2012-09-02&nbsp;</span><div class="c-tools" id="tools_5034897013241802162" data-tools="{&quot;title&quot;:&quot;Download Wallpapers Xperia Arc Sony Ericsson Xperia Arc Games&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=xUoKYEVUXvD7zoE38pxe5iaKPp6zr7lXIhjTc_JE203nN51qI_ZfDzBP5p4005mwQtXTPVAXa7uJmiOnDwZ0h1oTH3qch47qAleELMM0N3Y6eEAuurqW0v4kcCbyPc_u&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5c9179afdc87c71d5676f264fd716529542fb9011739262d21abaf458b0fae732e4ff8f8cc21c0d824e592dc5b19c5a76578c36a94126e3d0cc1553054bebfa3013af04297f882336e21aa5a62f&amp;p=8433c64ad48400f142bd9b7e0d138e&amp;newp=8e7dc216d9c114f319bd9b7e0d138b231610db2151d7db102a88d2&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=57" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DxUoKYEVUXvD7zoE38pxe5iaKPp6zr7lXIhjTc_JE203nN51qI_ZfDzBP5p4005mwQtXTPVAXa7uJmiOnDwZ0h1oTH3qch47qAleELMM0N3Y6eEAuurqW0v4kcCbyPc_u&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Download%01%20%01Wallpapers%01%20%02Xperia%03%20%01Arc%01%20%02Sony%03%20%01Ericsson%01%20%02Xperia%03%20%01Arc%01%20%01Games%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="58" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:58}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FBFFE577'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=c8M8HyBWkCeZOE-gAXldxBND7XM_IlFcHoMAMDv80MZZ6OeozOsGhOGFbue62vTzZ566J5ML2DkdfHenGTqf9a" target="_blank">Download Kernel <em>Xperia</em> Play <em>Xperia</em> Play <em>Playstation</em> Games</a></h3><div class="c-abstract"> Play modern combat 2 <em>xperia</em> play apk doomlord kernel <em>xperia</em> play gta 3 <em>xperia</em> play apk Games <em>sony</em> <em>xperia</em> play free games doomkernel v14 <em>xperia</em> play ...</div><div class="f13"><span class="g">prorunnergame.co...&nbsp;2013-08-25&nbsp;</span><div class="c-tools" id="tools_9523910196534263152" data-tools="{&quot;title&quot;:&quot;Download Kernel Xperia Play Xperia Play Playstation Games&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=c8M8HyBWkCeZOE-gAXldxBND7XM_IlFcHoMAMDv80MZZ6OeozOsGhOGFbue62vTzZ566J5ML2DkdfHenGTqf9a&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80fbd57473df67612343d15612a448f2945b7d833dd201b5f60ee7cca964c5f29896854353bc035229dfe78b2c5f43dd6f865373fe&amp;p=8d6fc64ad49b59ff57ed977a555398&amp;newp=882a9546d2db14fc57efc266155e97231610db2151d0d6176781&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=58" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dc8M8HyBWkCeZOE-gAXldxBND7XM_IlFcHoMAMDv80MZZ6OeozOsGhOGFbue62vTzZ566J5ML2DkdfHenGTqf9a&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01Download%01%20%01Kernel%01%20%02Xperia%03%20%01Play%01%20%02Xperia%03%20%01Play%01%20%02Playstation%03%20%01Games%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="59" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:59}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'7FDBF9A6'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=5l383sWHSWpjdq6CUDyeGX1g3-GIPqJ48JUDRc7XaQG" target="_blank"><em>Sony</em> Online Store - Buy Laptops, Ultrabooks, Tablets, LED TVs...</a></h3><div class="c-abstract"> <em>Sony</em> Music Local artists and international superstars of recorded music. <em>Sony</em> Mobile Latest <em>Xperia</em> phones and tablets, plus apps and services. <em>Sony</em> Online...</div><div class="f13"><span class="g">store.<b>sony</b>.com/&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_1252610294382714470" data-tools="{&quot;title&quot;:&quot;Sony Online Store - Buy Laptops, Ultrabooks, Tablets, LED TVs...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=5l383sWHSWpjdq6CUDyeGX1g3-GIPqJ48JUDRc7XaQG&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5c90c80fbc53f2fff66692c579141658244f0d6&amp;p=9a759a45d7c557f517be9b7c5a5f86&amp;newp=882a9544d0881ef21fbe9b7c475f8f231610db2151d1d013348bce0f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=59" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3D5l383sWHSWpjdq6CUDyeGX1g3-GIPqJ48JUDRc7XaQG&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01Online%01%20%01Store%01%20%01-%01%20%01Buy%01%20%01Laptops%01%2C%01%20%01Ultrabooks%01%2C%01%20%01Tablets%01%2C%01%20%01LED%01%20%01TVs%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="60" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:60}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'7CF179FF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=QSJubggpdjzudRTmlPK8PT8uvP_kDZ2q2hDx5eiV2_GIlX-rQNSw8oWDj62iQ0c9eNpuM_i59F-bRWUZWByUXq" target="_blank">【索尼<em>Xperia</em> S LT26i】<em>(SONY</em> <em>Xperia</em> S LT26i<em>)</em>报价_图片_参数_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=QSJubggpdjzudRTmlPK8PT8uvP_kDZ2q2hDx5eiV2_GIlX-rQNSw8oWDj62iQ0c9eNpuM_i59F-bRWUZWByUXq" target="_blank"><img src="http://i9.baidu.com/it/u=2876226559,1911968637&amp;fm=96&amp;s=4AA03C62428792BE4905F9C70300A0E1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 产品简介: 索尼<em>Xperia</em> S LT26i是索尼发布的第二款<em>Xperia</em>系列智能手机,4.3英寸1280*720高清屏幕,双核1.5GHz处理器,1GB RAM。背部采用了索尼自家的Exmor R背照式...</div><div class="f13"><span class="g">product.yesky.co...&nbsp;2014-05-09&nbsp;</span><div class="c-tools" id="tools_10445948541251098411" data-tools="{&quot;title&quot;:&quot;【索尼Xperia S LT26i】(SONY Xperia S LT26i)报价_图片_参数_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=QSJubggpdjzudRTmlPK8PT8uvP_kDZ2q2hDx5eiV2_GIlX-rQNSw8oWDj62iQ0c9eNpuM_i59F-bRWUZWByUXq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a75e2895ca0384642c101a39fef9677f46438283616204ac5459eff33c71351e34f2c688de4582ec85285ec97a683b0b863058914eef901532c151d107b5e40ee7cbb26cc0e593958c1208970f&amp;p=c66fc54ad6c047e60be29634475c93&amp;newp=8b2a975e84d813e008e2947d0b7abb231610db2151d6d4136486881adc&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=60" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="61" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:61}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'B9D771FC'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=lAgfVCX34IcR8mrgcQYp1TZaaayCHpwfhE2P7CvsQ-7WMg4fxgRyBV6ATOQnuAOs5IpwK9l04DllCpWq4aUbNC16vNB7tr72bGtXlGGoK15CbWjY_BzHEkvxY3NYartp" target="_blank">3C 好好玩:<em>Sony</em> <em>Xperia</em> S</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=lAgfVCX34IcR8mrgcQYp1TZaaayCHpwfhE2P7CvsQ-7WMg4fxgRyBV6ATOQnuAOs5IpwK9l04DllCpWq4aUbNC16vNB7tr72bGtXlGGoK15CbWjY_BzHEkvxY3NYartp" target="_blank"><img src="http://i7.baidu.com/it/u=1167083076,2618826155&amp;fm=96&amp;s=AD61DB1634E956AAA915A0D9030070B2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>Xperia</em> S,是一台势必青史留名的机器 -- 它不仅是 <em>Sony</em> 重新合并 Ericsson 成为 <em>Sony</em> Mobile 之后推出的第一只手机,同时在外观、设计、规格上,都是一时之...</div><div class="f13"><span class="g">cn.engadget.com/...&nbsp;2012-02-24&nbsp;</span><div class="c-tools" id="tools_6717875515747039467" data-tools="{&quot;title&quot;:&quot;3C 好好玩:Sony Xperia S&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=lAgfVCX34IcR8mrgcQYp1TZaaayCHpwfhE2P7CvsQ-7WMg4fxgRyBV6ATOQnuAOs5IpwK9l04DllCpWq4aUbNC16vNB7tr72bGtXlGGoK15CbWjY_BzHEkvxY3NYartp&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310478b711923d73f6984864028928448e435061e5a66e1b8273f1204cec57a7a40f21517fdf04038755460ecc8df883c9cac925e71db60682146d11705d36ff4975125b766c301acfc45f0ba8677c4b9d2a58a0944ca255f29dca6ca4d00629733ed0074bee6cf474a0807ba9c7138a3126029ee6902e107a2b3256e76c0ab81175bc35b923f42dcee73e37849e84f&amp;p=c66fc54ad5c84be60be29634475c93&amp;newp=8b2a975e84d813e008e29775077abb231610db2151dcd2146486881adc&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=61" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="62" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:62}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'9F3FBEFF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=d7JPtvjJti9TeWk_SBEVMEMhcORTN5_kcaQS3_oq_Na" target="_blank">数码坊丨数码·时尚_索尼手机_sonyxperia_索尼<em>xperia</em>_索尼手机_...</a></h3><div class="c-abstract"> 索尼<em>xperia</em>2014年巴西足球世界杯LiveSoccer ... 索尼<em>xperia</em> WALKMAN最新版本更新至8.3.A.0. ... 索尼韩国公司5月8日正式发售<em>Sony</em> <em>Xperia</em> Z2...</div><div class="f13"><span class="g">www.<b>xperia</b>.cc/&nbsp;2014-05-10&nbsp;</span><div class="c-tools" id="tools_12824392963368801635" data-tools="{&quot;title&quot;:&quot;数码坊丨数码·时尚_索尼手机_sonyxperia_索尼xperia_索尼手机_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=d7JPtvjJti9TeWk_SBEVMEMhcORTN5_kcaQS3_oq_Na&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f65ca70742b4f9141658248b2&amp;p=aa759a45d6c150fb0be2960c7f0e9d&amp;newp=8b2a971386cc41af5ab5f8365f47cf231610db2151d1d31729&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=62" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dd7JPtvjJti9TeWk_SBEVMEMhcORTN5_kcaQS3_oq_Na&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E6%95%B0%E7%A0%81%01%E5%9D%8A%01%E4%B8%A8%01%E6%95%B0%E7%A0%81%01%C2%B7%01%E6%97%B6%E5%B0%9A%01_%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01_%01sonyxperia%01_%01%E7%B4%A2%E5%B0%BC%02xperia%03_%01%E7%B4%A2%E5%B0%BC%01%E6%89%8B%E6%9C%BA%01_%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="63" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:63}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F7CDFEAC'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=__lTS1S18qUtX_6fUi6hSUpgnicFtvmQysp3Qj8TNoU_x4_HqqsWiKN5Nk8-gDaM9WhGIhAMjD9dLMS1UrrQkq" target="_blank">【索尼<em>xperia</em> s】索尼lt26i报价、论坛、root_<em>(sony)</em>索尼lt26i怎么...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=__lTS1S18qUtX_6fUi6hSUpgnicFtvmQysp3Qj8TNoU_x4_HqqsWiKN5Nk8-gDaM9WhGIhAMjD9dLMS1UrrQkq" target="_blank"><img src="http://i7.baidu.com/it/u=665746571,4106318562&amp;fm=96&amp;s=5B843862068496BE4597B9470100E0E1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2011年12月10日&nbsp;-&nbsp;</span> 索尼<em>XPERIA</em> NXT系列更多产品&gt;&gt;  参数配置  产品类型:手机  所属品牌:索尼<em>(SONY)</em>  2G/3:GSM,WCDMA(联通3G<em>)</em>  主屏尺寸:4.3英寸  屏幕分辨:...</div><div class="f13"><span class="g">product.pconline...&nbsp;2011-12-10&nbsp;</span><div class="c-tools" id="tools_1632273819879783664" data-tools="{&quot;title&quot;:&quot;【索尼xperia s】索尼lt26i报价、论坛、root_(sony)索尼lt26i怎么...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=__lTS1S18qUtX_6fUi6hSUpgnicFtvmQysp3Qj8TNoU_x4_HqqsWiKN5Nk8-gDaM9WhGIhAMjD9dLMS1UrrQkq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f2743324ddb1d4c8845f8dc4652907dcf4de9d848bba7af6fc3f58c84c2150e9618187c85fa89580303ca18aa526ebd&amp;p=84769a4787821ef608e2947e0a649d&amp;newp=8257d116d9c119ed08e2947e0a4ac4231610db2151d1d3122796&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=63" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="64" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:64}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'6BFDE2FF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=gtEWnbRoTsXYPRfbT9lbjWM8Utb3LTr3PSsj4yB3LeD-GuMg6Zon9Z26uTJw7LRcjvBuR3seCDfavs3uncNxpa" target="_blank"><em>Sony</em> <em>Xperia</em> S - Wikipedia, the free encyclopedia</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=gtEWnbRoTsXYPRfbT9lbjWM8Utb3LTr3PSsj4yB3LeD-GuMg6Zon9Z26uTJw7LRcjvBuR3seCDfavs3uncNxpa" target="_blank"><img src="http://i8.baidu.com/it/u=2218460288,2641553760&amp;fm=96&amp;s=B1B571949EE220949993CC850300D089" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>Xperia</em> S on hand.jpg <em>Sony</em> <em>Xperia</em> S running Android 2.3 (Gingerbread<em>)</em> <em>(</em>Model: LT26i<em>)</em>  Manufacturer <em>Sony</em> Mobile Communications Series <em>Sony</em> <em>Xperia</em> ...</div><div class="f13"><span class="g">en.wikipedia.org...&nbsp;2012-03-01&nbsp;</span><div class="c-tools" id="tools_7058258498192071432" data-tools="{&quot;title&quot;:&quot;Sony Xperia S - Wikipedia, the free encyclopedia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=gtEWnbRoTsXYPRfbT9lbjWM8Utb3LTr3PSsj4yB3LeD-GuMg6Zon9Z26uTJw7LRcjvBuR3seCDfavs3uncNxpa&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5df16cabbe56d74d17c76274add1205d36ef28b1338847bc901f4ce44bbf1e735e7c490849f0f00dd54711b&amp;p=816ed516d9c150f408e29478060a8a&amp;newp=827ec54ad6c54af50be296601e5f8d231610db2151d6db4f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=64" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="65" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:65}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'A3F757B3'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=yCV5aIcoqXvDRIZ5j3x8XHW8cTPHVqSroHPnw_RDAhw0anHvE07jqScxDw3rZdm1_PV5U96Y78_z0NeBEH3lCyDRLuJPbBkvuW3HMrLklHyHhVSJduStWJBHWzAF725aHKXf7DMOzzm-DqVW5EABpBRUFvayKwYOdGJVmbZoYQm" target="_blank"><em>Sony</em> rolling Android 4.3 updates out to <em>Xperia</em> Z, ZL, ZR and ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=yCV5aIcoqXvDRIZ5j3x8XHW8cTPHVqSroHPnw_RDAhw0anHvE07jqScxDw3rZdm1_PV5U96Y78_z0NeBEH3lCyDRLuJPbBkvuW3HMrLklHyHhVSJduStWJBHWzAF725aHKXf7DMOzzm-DqVW5EABpBRUFvayKwYOdGJVmbZoYQm" target="_blank"><img src="http://i9.baidu.com/it/u=2669779752,1740711098&amp;fm=96&amp;s=82F0C423DFFD329A4578D48A010060E3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> Hot on the heels of the <em>Xperia</em> Z1 and <em>Xperia</em> Z Ultra’s updates to Android 4.3, <em>Sony</em> announced today that it has begun rolling the freshest ...</div><div class="f13"><span class="g">androidand<b>me</b>.c...&nbsp;2014-01-24&nbsp;</span><div class="c-tools" id="tools_16751629128721498146" data-tools="{&quot;title&quot;:&quot;Sony rolling Android 4.3 updates out to Xperia Z, ZL, ZR and ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=yCV5aIcoqXvDRIZ5j3x8XHW8cTPHVqSroHPnw_RDAhw0anHvE07jqScxDw3rZdm1_PV5U96Y78_z0NeBEH3lCyDRLuJPbBkvuW3HMrLklHyHhVSJduStWJBHWzAF725aHKXf7DMOzzm-DqVW5EABpBRUFvayKwYOdGJVmbZoYQm&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5db168bfbcf7379db7b622f4b9141658244f0d64627c2218d59e9b245b0ffb12fd2f38e98c854258a0e5b24dbacde4d00629933a6546cb8f08e48635907ba9b3172ff2f306bc97006e106eee0443340c7e1dd2a0a9e3dd0175bd5f875eb6d05b565ec081b520cfe5bb17e196627e03974a3122a04e4ad0eb7742e0634b63efba4&amp;p=8b2a970acdd816f008e29478084ca5&amp;newp=9e618e0e86cc41a95dbac7710f4b89231610db2151d3db1628&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=65" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="66" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:66}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'9B77F6AE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=G_SOrBkWJ23zkYOfzjIMyllmKnizN3f1s38QPv6wLGrIoPu6G2SvuzQsz99Ypl5R00kMxcTQPCQVGo7XhEvU5TAq2_Hdan5oMAGuniNuuSx11NNO9c9JcEHlHY0bPMdM" target="_blank"><em>Sony</em> 索尼-<em>Sony</em> 索尼 <em>Xperia</em> Z L36h (紫色<em>)</em>3G智能手机 三防功能 ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=G_SOrBkWJ23zkYOfzjIMyllmKnizN3f1s38QPv6wLGrIoPu6G2SvuzQsz99Ypl5R00kMxcTQPCQVGo7XhEvU5TAq2_Hdan5oMAGuniNuuSx11NNO9c9JcEHlHY0bPMdM" target="_blank"><img src="http://i7.baidu.com/it/u=3668333081,4095819676&amp;fm=96&amp;s=02F064226ED7A29E0B1CB88D0300E0E0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">查看所有 5 张图片 <em>Sony</em> 索尼 <em>Xperia</em> Z L36h (紫色<em>)</em>3G智能手机 三防功能 Android 4.1系统 5英寸大屏幕 1.5GHz四核处理器  品牌: <em>Sony</em> 索尼 ...</div><div class="f13"><span class="g">www.amazon.cn/手...&nbsp;2013-02-02&nbsp;</span><div class="c-tools" id="tools_5232536048303302679" data-tools="{&quot;title&quot;:&quot;Sony 索尼-Sony 索尼 Xperia Z L36h (紫色)3G智能手机 三防功能 ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=G_SOrBkWJ23zkYOfzjIMyllmKnizN3f1s38QPv6wLGrIoPu6G2SvuzQsz99Ypl5R00kMxcTQPCQVGo7XhEvU5TAq2_Hdan5oMAGuniNuuSx11NNO9c9JcEHlHY0bPMdM&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="1967200123223312378" dis_url="www.amazon.cn/手机-通讯/dp/B00B5MF..."><a href="http://trust.baidu.com/vcard/index/show?id=v_2773e85c94469feb2698bc59b3855aca" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["1967200123223312378"] = bds.se.certification.data["1967200123223312378"]||[];
-    if($.inArray("40520",bds.se.certification.data["1967200123223312378"])==-1){
-        bds.se.certification.data["1967200123223312378"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f7cd7747c2d409141658245b2dc3121d62a9b4de3df0e90bee739e2b9a2a0c85425dd240e6d8af29c517303bd65e76746f4d5ed55431d0dcaef3215f826034a9f25&amp;p=8b2a970acdd816f008e2947d064ca5&amp;newp=9e618e0e86cc41ac53bac7710f4b89231610db2151d1db42&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=66" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="67" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:67}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EFDE3FF9'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=3ipl8ZLhJGr1dQQmuu11dUxiwWaobxMjQMIOF1LDD75lDIj1oiC2WuahgnYAmUlg8p3buipO7I3z4GoXvyxD40zB1F9v4OgoO2eiZa5KAMPZ4HoHkCW52IoqFU1uopmA" target="_blank">my <em>Xperia</em> pilot launch [Interview] <em>|</em> <em>Sony</em> Smartphones</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=3ipl8ZLhJGr1dQQmuu11dUxiwWaobxMjQMIOF1LDD75lDIj1oiC2WuahgnYAmUlg8p3buipO7I3z4GoXvyxD40zB1F9v4OgoO2eiZa5KAMPZ4HoHkCW52IoqFU1uopmA" target="_blank"><img src="http://i8.baidu.com/it/u=3900595147,29389463&amp;fm=96&amp;s=3E887423031253C64E51B1CD010050A3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">We’re excited to tell you about a pilot kicking off this week – a remote security service we’re calling “my <em>Xperia</em>”, that’ll help you locate...</div><div class="f13"><span class="g">blogs.<b>sony</b>mobi...&nbsp;2014-02-11&nbsp;</span><div class="c-tools" id="tools_4125065208383205643" data-tools="{&quot;title&quot;:&quot;my Xperia pilot launch [Interview] | Sony Smartphones&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=3ipl8ZLhJGr1dQQmuu11dUxiwWaobxMjQMIOF1LDD75lDIj1oiC2WuahgnYAmUlg8p3buipO7I3z4GoXvyxD40zB1F9v4OgoO2eiZa5KAMPZ4HoHkCW52IoqFU1uopmA&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d81480eed33f2fff66692c57d91c428847f8dc4652907dcf47e9ad1ae6a7f2318eafd1ce801f44ca254f38d7b0d0091714bc2dab4a6ca5b1993e4b0c57e6bc6a72ff2f2c75d97400f21caea52f&amp;p=882a9546d08a04fe07b8d62d0214cf&amp;newp=882a9546d09c12a05aac87391150bb231610db2151d1d21320&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=67" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="68" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:68}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'7F6EDF7F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=vVumSZ1aTiu8QonmM_gjkLv_D6ZCOYW6uF2vrTvEIDCinJvoPzcGYG2oczjJIb4T2w5vKp5AXOjVI03VdtlLHVnxVmH7K4qq00NX5qz6oOC" target="_blank"><em>PlayStation</em> 4 review: fast, powerful, worth it</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=vVumSZ1aTiu8QonmM_gjkLv_D6ZCOYW6uF2vrTvEIDCinJvoPzcGYG2oczjJIb4T2w5vKp5AXOjVI03VdtlLHVnxVmH7K4qq00NX5qz6oOC" target="_blank"><img src="http://i9.baidu.com/it/u=4266484899,620109283&amp;fm=96&amp;s=873A7D870946B64B4CE6E89F030060CB" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">We applaud <em>Sony</em> for exercising restraint and not emblazoning the console with garish logos and loud fonts, like it did with the PS3 (remember the ...</div><div class="f13"><span class="g">www.engadget.com...&nbsp;2013-11-15&nbsp;</span><div class="c-tools" id="tools_13603369082055271935" data-tools="{&quot;title&quot;:&quot;PlayStation 4 review: fast, powerful, worth it&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=vVumSZ1aTiu8QonmM_gjkLv_D6ZCOYW6uF2vrTvEIDCinJvoPzcGYG2oczjJIb4T2w5vKp5AXOjVI03VdtlLHVnxVmH7K4qq00NX5qz6oOC&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f734608283432a83d55f93130a1c187be3b924230d07d0d87f611cee1400a1e73604755d73fcda8edb0c86e6ce3f2ffe2123706ac61656884eead652609c60c655b6f80ee7cbb16fcfe5c5d3ae1e119d135e2997f0fa1b5d488178f06573bdf5d209530c56e1b06c&amp;p=83759a45d7c105dd0be2962c155586&amp;newp=8b2a975bca9150ff57ed957c504b91231610db2151d6d61761c8c159&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=68" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="69" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:69}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'EF677F33'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Gr28ZDbgwk1wBZgfu1eeQFJ2-Qd8hp-zoQz84aWFd6KoZM8QByUGkgNWcsk8dC9ymZ0jauWw33fIkFJgPykcwq" target="_blank">【索尼 <em>Xperia</em> Z L36h 联通3G手机(黑色<em>)</em>WCDMA/GSM非合约机报价】...</a></h3><div class="c-abstract"> 索尼L36h <em>Xperia</em> Z手机是索尼的2013年度旗舰产品,采用了顶级的硬件配置;外观设计上也延续<em>Xperia</em>系列精致的风格,系统上载Android4.1系统,使用了最新版本的TimaScape...</div><div class="f13"><span class="g">product.it168.co...&nbsp;2013-02-11&nbsp;</span><div class="c-tools" id="tools_1783991175191719709" data-tools="{&quot;title&quot;:&quot;【索尼 Xperia Z L36h 联通3G手机(黑色)WCDMA/GSM非合约机报价】...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Gr28ZDbgwk1wBZgfu1eeQFJ2-Qd8hp-zoQz84aWFd6KoZM8QByUGkgNWcsk8dC9ymZ0jauWw33fIkFJgPykcwq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a74e39d7974284642c101a39feed7064435f8dd82a3a50b24e58ebf134752a587ce1cc829f4aaafac86e70d633712d5cd04e4d840eafba07789d6b875a98e55bb0faab6184aea392820818dd537438dea3c01b46478c34ad48&amp;p=8c61d516d9c11bb908e2977a084e85&amp;newp=80769a4795990eb408e2977a08519c231611c20e38dc934f30cf&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=69" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DGr28ZDbgwk1wBZgfu1eeQFJ2-Qd8hp-zoQz84aWFd6KoZM8QByUGkgNWcsk8dC9ymZ0jauWw33fIkFJgPykcwq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E3%80%90%01%E7%B4%A2%E5%B0%BC%01%20%02Xperia%03%20%01Z%01%20%01L36h%01%20%01%E8%81%94%E9%80%9A%013G%01%E6%89%8B%E6%9C%BA%01%28%01%E9%BB%91%E8%89%B2%02%29%03WCDMA%01%2F%01GSM%01%E9%9D%9E%01%E5%90%88%E7%BA%A6%01%E6%9C%BA%01%E6%8A%A5%E4%BB%B7%01%E3%80%91%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="70" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:70}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'5B34BEDF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=yvzo61H7r4ZkXp4CIikXMEejeZnuJflXfvC29MWDryoggl8BMol0zJW5_jnC4CzV" target="_blank">支持- 索尼<em>XPERIA</em>智能手机(中国<em>)</em></a></h3><div class="c-abstract"><em>Sony</em>mobile  search menu  产品  手机 找到与最适合于您的生活方式的最新手机。 平板电脑 选择平板电脑。 配件 与您的手机完美搭配的精美配件。 <em>Xperia</em> 索尼精粹...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2013-05-01&nbsp;</span><div class="c-tools" id="tools_13120005630679876415" data-tools="{&quot;title&quot;:&quot;支持- 索尼XPERIA智能手机(中国) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=yvzo61H7r4ZkXp4CIikXMEejeZnuJflXfvC29MWDryoggl8BMol0zJW5_jnC4CzV&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b4a2284c816c4735b36163bbca6767e0d4594873e3a41e95448afad7624385c77a09bb9c91781f085285ec265633047d55612a258f2970d32c151d204bae458a1e9b669cef2&amp;p=9270c64ad4810aea17bd9b7e0c1298&amp;newp=923bc64ad48507e906bd9b7e0c12cf231610db2151ddd6173992d516&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=70" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dyvzo61H7r4ZkXp4CIikXMEejeZnuJflXfvC29MWDryoggl8BMol0zJW5_jnC4CzV&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E6%94%AF%E6%8C%81%01-%01%20%01%E7%B4%A2%E5%B0%BC%02XPERIA%03%E6%99%BA%E8%83%BD%01%E6%89%8B%E6%9C%BA%01%28%01%E4%B8%AD%E5%9B%BD%02%29%03%20%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="71" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:71}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'B5F6FDCF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=U9LlkhBFi7ICa7n-5dTVeMmsIhDaoOekOIKfjcjCztLI8-hW3yUravPoE8Uh7rWghUzz7EhzRyC7CyHkSFmhrG3t2xz69xmP_8nLTQFdi9m" target="_blank"><em>Sony</em> <em>Xperia</em> Z1 评测</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=U9LlkhBFi7ICa7n-5dTVeMmsIhDaoOekOIKfjcjCztLI8-hW3yUravPoE8Uh7rWghUzz7EhzRyC7CyHkSFmhrG3t2xz69xmP_8nLTQFdi9m" target="_blank"><img src="http://i7.baidu.com/it/u=1847799072,2137980395&amp;fm=96&amp;s=FF326DCB29863C5BCAF9E019030090C2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2013年9月28日&nbsp;-&nbsp;</span> 回想两年半前,当大家都迈向双核心世界的时候,<em>Sony</em> Ericsson 推出了运行单核心处理器的 <em>Xperia</em> Arc;一年多前,大家准备进入四核心年代时,<em>Sony</em> 推出的...</div><div class="f13"><span class="g">cn.engadget.com/...&nbsp;2013-10-01&nbsp;</span><div class="c-tools" id="tools_17941782667863592167" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z1 评测&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=U9LlkhBFi7ICa7n-5dTVeMmsIhDaoOekOIKfjcjCztLI8-hW3yUravPoE8Uh7rWghUzz7EhzRyC7CyHkSFmhrG3t2xz69xmP_8nLTQFdi9m&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d916cabbe57f73dd7462254bc05612a448f2945b25c3239147eba404e7b0ed73cef299c4df221988044521d3e78b2c4817dd6f865466a7fdce0d08&amp;p=87769a478ad059ff57ed977a5156cf&amp;newp=8b2a975f979c0bff57ed977a7f5088231610db2151d4d4116595cc02&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=71" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="72" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:72}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F3FEBDCE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=i_2ybDnovsfAnLU8_aEWJdulDJhvPZwCtK5NaxxU0u_YZtGiBlv6YDvKYRsSnyCJp87jYjmetp_tWLbW25O_3q" target="_blank">【索尼爱立信 LT18i】索尼爱立信LT18i<em>(Xperia</em> arc S<em>)</em>报价_图片_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=i_2ybDnovsfAnLU8_aEWJdulDJhvPZwCtK5NaxxU0u_YZtGiBlv6YDvKYRsSnyCJp87jYjmetp_tWLbW25O_3q" target="_blank"><img src="http://i7.baidu.com/it/u=304827449,588419236&amp;fm=96&amp;s=29AA5D32C887B29A9B9FC0C70300E0A3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> [ROM]MIUI_<em>Sony</em> LT18i_4.1.2 个人开发稳定版_精简流畅可长期拥有 天使之恋560 2014-03-31 6192 [ROM]<em>Xperia</em>4.4.2唯美版,状态栏网速来电归属,awesome音效...</div><div class="f13"><span class="g">product.cnmo.com...&nbsp;2014-05-08&nbsp;</span><div class="c-tools" id="tools_15151850777067371501" data-tools="{&quot;title&quot;:&quot;【索尼爱立信 LT18i】索尼爱立信LT18i(Xperia arc S)报价_图片_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=i_2ybDnovsfAnLU8_aEWJdulDJhvPZwCtK5NaxxU0u_YZtGiBlv6YDvKYRsSnyCJp87jYjmetp_tWLbW25O_3q&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a744238bce5f93130a1c187bb2ec797c0703a787263a5df85407b6a66138340723b79acc9f4aaafac86e70d633712d5cd04e4d840eafba07789d6b875a98e55bb0faab6184aea392820818dd537438dea3c01b46478c34ad48&amp;p=8b2a9715d9c340a843b5d760570891&amp;newp=9039c54ad6c246b140be9b7c47059e231610db2151d4da1261cc&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=72" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="73" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:73}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'DFCFA785'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=zQYwhJ1U8GyTjmBZj00Iw1XmVX921cdBSOoA4M8rvG2xSe4ifeGWG39VfvnTui785voDboL2gvB7XhkaPZfLeq" target="_blank">【索尼<em>Xperia</em> C S39h】<em>(SONY</em> <em>Xperia</em> C S39h<em>)</em>报价_图片_参数_评测_...</a></h3><div class="c-abstract"> 产品简介: 索尼<em>Xperia</em> C采用 5 英寸 LCD 显示屏,分辨率 960×540,内置联发科四核处理器,2GB RAM、4GB 内存空间,支持 mircoSD 卡扩展,配备 800 万像素后置...</div><div class="f13"><span class="g">product.yesky.co...&nbsp;2014-05-01&nbsp;</span><div class="c-tools" id="tools_14532906633511616551" data-tools="{&quot;title&quot;:&quot;【索尼Xperia C S39h】(SONY Xperia C S39h)报价_图片_参数_评测_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=zQYwhJ1U8GyTjmBZj00Iw1XmVX921cdBSOoA4M8rvG2xSe4ifeGWG39VfvnTui785voDboL2gvB7XhkaPZfLeq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f27433b4bc71859c419d89a1b7adc62d007bfe848a1a7fa3398b3d8d2d45757cc4e&amp;p=cb66cc0494904ead09bd9b7e0b1190&amp;newp=8b2a970ccd9f5bf308e294780a4aa5231610db2151d4db1236cfcf52cf&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=73" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DzQYwhJ1U8GyTjmBZj00Iw1XmVX921cdBSOoA4M8rvG2xSe4ifeGWG39VfvnTui785voDboL2gvB7XhkaPZfLeq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E3%80%90%01%E7%B4%A2%E5%B0%BC%02Xperia%03%20%01C%01%20%01S39h%01%E3%80%91%02%28%01SONY%03%20%02Xperia%03%20%01C%01%20%01S39h%02%29%03%E6%8A%A5%E4%BB%B7%01_%01%E5%9B%BE%E7%89%87%01_%01%E5%8F%82%E6%95%B0%01_%01%E8%AF%84%E6%B5%8B%01_%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="74" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:74}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F55EF0D5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=crLSMmVY2hDX0sCYvqz4fD63zF7XrmDeJdqK8eMpy6AaQ4vfmTtwx2q1in70l4V00sdN5-uNUiIa1PPApf8Nja" target="_blank"><em>Xperia</em> Z1 L39h L39 影像智能手机 <em>|</em> 索尼<em>Sony</em>官方网站</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=crLSMmVY2hDX0sCYvqz4fD63zF7XrmDeJdqK8eMpy6AaQ4vfmTtwx2q1in70l4V00sdN5-uNUiIa1PPApf8Nja" target="_blank"><img src="http://i8.baidu.com/it/u=787087775,3526080927&amp;fm=96&amp;s=61D2C323FE1BEE1B8CA438F003009014" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Xperia</em>  Z1 L39h 各款机型 <em>Xperia</em>  Z1 L39h 中国联通3G套餐合约计划 RMB 4,499  <em>Xperia</em>  Z1 L39h  约2070万像素高清晰成像 1/2.3英寸索尼 Exmor RS  ...</div><div class="f13"><span class="g">www.<b>sony</b>style....&nbsp;2013-09-05&nbsp;</span><div class="c-tools" id="tools_8994673082904054116" data-tools="{&quot;title&quot;:&quot;Xperia Z1 L39h L39 影像智能手机 | 索尼Sony官方网站&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=crLSMmVY2hDX0sCYvqz4fD63zF7XrmDeJdqK8eMpy6AaQ4vfmTtwx2q1in70l4V00sdN5-uNUiIa1PPApf8Nja&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="13815187945280919460" dis_url="www.\ 4sony\ 5style.com.cn/products/\ 4xperia\ 5..."><a href="http://trust.baidu.com/vcard/index/show?id=v_548f81f67c09a5866e6bd2f07dda1dac" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["13815187945280919460"] = bds.se.certification.data["13815187945280919460"]||[];
-    if($.inArray("40520",bds.se.certification.data["13815187945280919460"])==-1){
-        bds.se.certification.data["13815187945280919460"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f315acd1f45c419d89a1b7ad620e70bb5b25ba7e7a675c2e893ce9516048a085667def180001714bd35b64b&amp;p=9f6cc54ad6c046fd0be2962f615085&amp;newp=9265c64ad4934eaf5beac1201652c6231610db2151ddd31e&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=74" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="75" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:75}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFF5FEA5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=KzwIKH0Zwv1Ap8j-LdfFh5wwd8tv3GAiADnsEX97hhxP017UhnJd5zAdGx_8-i85pX_s8APAQU1qQQ7mR_GDTyM6d__FNVjwsSmVEoU5KA7dPXkDzsonfH6D63h78Fbm" target="_blank"><em>Sony</em> <em>Xperia</em> T review <em>|</em> Phone Reviews <em>|</em> TechRadar</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=KzwIKH0Zwv1Ap8j-LdfFh5wwd8tv3GAiADnsEX97hhxP017UhnJd5zAdGx_8-i85pX_s8APAQU1qQQ7mR_GDTyM6d__FNVjwsSmVEoU5KA7dPXkDzsonfH6D63h78Fbm" target="_blank"><img src="http://i9.baidu.com/it/u=1996704757,3898899991&amp;fm=96&amp;s=0B80EC033CAEE49ACC7CE8DD0100D0E3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>Xperia</em> Z2 Nokia X Android 4.4 <em>PlayStation</em> 4 iPhone 6Home Reviews Phones Mobile phones <em>Sony</em> <em>Xperia</em> T review <em>Sony</em> <em>Xperia</em> T review...</div><div class="f13"><span class="g">www.techradar.co...&nbsp;2014-05-01&nbsp;</span><div class="c-tools" id="tools_6290700500602414466" data-tools="{&quot;title&quot;:&quot;Sony Xperia T review | Phone Reviews | TechRadar&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=KzwIKH0Zwv1Ap8j-LdfFh5wwd8tv3GAiADnsEX97hhxP017UhnJd5zAdGx_8-i85pX_s8APAQU1qQQ7mR_GDTyM6d__FNVjwsSmVEoU5KA7dPXkDzsonfH6D63h78Fbm&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7256b868a552c82c00884642c101a39fefb70664b53968461255bf2150babed692f67587ee08cc8fe0887e6ce7f6e9566692c57914164995bf88b1d76d620e61cfeaf6fe4b8fb3397a4d0ce9f03179104406ec5adcb0c0f4b9d78f06570befad25f152e5af8ba703eac4e7758de7e1cfd50f991703054cab79b0f0a98778c&amp;p=c97bc64ad49816bc1ebd9b7e0e1689&amp;newp=c4788b15d9c342af43bbc7710f07cb231610db2151d3d3116482&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=75" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="76" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:76}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FB7BCFB5'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=7dJnDLzvHULMyE3e6AfdrvXkAF-MF6Mxz2PMcweGQDL0A8yrkzaqBjPzUlofeg9-tuEXCOfytbUMKmkunMD9qK" target="_blank">【索尼l36h】索尼<em>xperia</em> z最新报价、评测、图片、论坛_<em>(sony)</em>索尼...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=7dJnDLzvHULMyE3e6AfdrvXkAF-MF6Mxz2PMcweGQDL0A8yrkzaqBjPzUlofeg9-tuEXCOfytbUMKmkunMD9qK" target="_blank"><img src="http://i7.baidu.com/it/u=2229216264,4277134368&amp;fm=96&amp;s=1880357284F7E39A5578407D03009062" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2014年5月3日&nbsp;-&nbsp;</span> 索尼<em>Xperia</em> Z系列更多产品&gt;&gt;  参数配置  产品类型:手机  所属品牌:索尼<em>(SONY)</em>  2G/3:GSM,WCDMA(联通3G<em>)</em>  主屏尺寸:5.0英寸  屏幕分辨:1920...</div><div class="f13"><span class="g">product.pconline...&nbsp;2013-01-25&nbsp;</span><div class="c-tools" id="tools_14217663042470419843" data-tools="{&quot;title&quot;:&quot;【索尼l36h】索尼xperia z最新报价、评测、图片、论坛_(sony)索尼...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=7dJnDLzvHULMyE3e6AfdrvXkAF-MF6Mxz2PMcweGQDL0A8yrkzaqBjPzUlofeg9-tuEXCOfytbUMKmkunMD9qK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a7572e89cf16c8380c564711b2e678351073829961385cff1202bded772f6b483db09bc2894bdbac925f75ce786a6459db0144dc46f8dc4654807dcc11feaf68adf8a772c8fdc5d3ae150e9618127af1b2d5094b558c3cb64f6cbf&amp;p=882a9545d6dd16e01cbe9b7c440086&amp;newp=81769a47cc934eaf58edd32b5c0a8c231610db2151dcd00f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=76" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="77" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:77}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'CFF27C3D'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=gzl92E5Y01QAcfFBXcQO08KU6o7e5shVElCZZU4aIsVUzYg5Mhj7dHFmMbxHizF0uDjh67Ts-7gFlG39K2hsVTkCRmoJuAsZWaxsrWwFW67" target="_blank"><em>Sony</em> <em>Xperia</em> Z review <em>|</em> The Verge</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=gzl92E5Y01QAcfFBXcQO08KU6o7e5shVElCZZU4aIsVUzYg5Mhj7dHFmMbxHizF0uDjh67Ts-7gFlG39K2hsVTkCRmoJuAsZWaxsrWwFW67" target="_blank"><img src="http://i8.baidu.com/it/u=2291529104,3135306271&amp;fm=96&amp;s=ED104D93793A279ACA5CE58F0300F083" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> Only a year after releasing the <em>Xperia</em> S, its first post-Ericsson phone, <em>Sony</em> has already reached the end of the alphabet with its flagship for 2013...</div><div class="f13"><span class="g">www.theverge.com...&nbsp;2013-03-11&nbsp;</span><div class="c-tools" id="tools_9192641472255940092" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z review | The Verge&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=gzl92E5Y01QAcfFBXcQO08KU6o7e5shVElCZZU4aIsVUzYg5Mhj7dHFmMbxHizF0uDjh67Ts-7gFlG39K2hsVTkCRmoJuAsZWaxsrWwFW67&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f725668094423f81c45f93130a1c187be3b924230d05cec67f7a07ad435ae8f2306f765e7cfc8cc8fe009fecd2737c9f2742380b863752845df49c0331847dd00ce6f04ef0ba8173cef299c4df251988044521d3e78b2b41499624e71440a1f8ca03541943fcb66d39&amp;p=8b2a971486cc41af5cb4dc6f460e8c&amp;newp=8b2a970295d911a058ed903a585d83231610db2151d2db17389789&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=77" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="78" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:78}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EE7FBCF7'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=f_5hQDrun3bxak4MVUbs9sOU_gQaPb4f2vIMXfF33_ewuI4brU0DCPaGVCYEFZAyG5_L2wsVXJg0w4soPhoYktcMxF24846EmjHmXGMmbty" target="_blank"><em>Xperia</em> Z1 L39h <em>|</em> 因出色 而出众 - 索尼<em>XPERIA</em>智能手机(中国<em>)</em></a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=f_5hQDrun3bxak4MVUbs9sOU_gQaPb4f2vIMXfF33_ewuI4brU0DCPaGVCYEFZAyG5_L2wsVXJg0w4soPhoYktcMxF24846EmjHmXGMmbty" target="_blank"><img src="http://i9.baidu.com/it/u=3090478642,4131840817&amp;fm=96&amp;s=23F068225CAF229A8B1479D5030080A0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Xperia</em> Z1 has <em>Sony</em>’s award-winning G Lens. Say hello to digital ...索尼BRAVIA技术可让您在<em>Xperia</em> Z1这款最好的智能手机上体验非凡的视觉效果。 ...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2014-03-24&nbsp;</span><div class="c-tools" id="tools_4080062582449611785" data-tools="{&quot;title&quot;:&quot;Xperia Z1 L39h | 因出色 而出众 - 索尼XPERIA智能手机(中国) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=f_5hQDrun3bxak4MVUbs9sOU_gQaPb4f2vIMXfF33_ewuI4brU0DCPaGVCYEFZAyG5_L2wsVXJg0w4soPhoYktcMxF24846EmjHmXGMmbty&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b4a2284c816c4735b36163bbca6767e0d4693982a2050e90841a8aa6b2e60423dfdd99fc8118eac925e678b3a203541c6171d8c4eb8cb37649c7cdb4de9de53a5edb069c0b9d2a29e090f8144050bc2aed81141529929ab496d&amp;p=8639d315d9c341ae46abc7710f0890&amp;newp=8479dd16d9c111a058ed9524520888231610db2151d3d010&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=78" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="79" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:79}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'DED7DFFD'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=DKJPYhJuGMcAND4lAsnx_59_7SyfLpMnFD9WpATRYY9kq5OkMbNBXSIWe-ZT4WHCQmNQ-M8vxJ7z_nMag9nUDbcWKtq8cL64ix6_Mtu21JH84hzX_TntKQj7fOn34xImO0OgJ6Ia9u4WebnxF1gBd_" target="_blank"><em>Sony</em> 索尼-<em>Sony</em> 索尼 <em>Xperia</em> Z Ultra XL39h 智能手机(紫色<em>)</em>6.44...</a></h3><div class="c-abstract"><em>Sony</em> 索尼 <em>Xperia</em> Z Ultra XL39h 智能手机(紫色<em>)</em>6.44英寸大屏幕 四核2.2GHz处理器  品牌: <em>Sony</em> 索尼  平均4.0 星 浏览全部评论 (5 条商品评论<em>)</em> <em>|</em> 天天...</div><div class="f13"><span class="g">www.amazon.cn/手...&nbsp;2013-10-10&nbsp;</span><div class="c-tools" id="tools_3915698566922880630" data-tools="{&quot;title&quot;:&quot;Sony 索尼-Sony 索尼 Xperia Z Ultra XL39h 智能手机(紫色)6.44...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=DKJPYhJuGMcAND4lAsnx_59_7SyfLpMnFD9WpATRYY9kq5OkMbNBXSIWe-ZT4WHCQmNQ-M8vxJ7z_nMag9nUDbcWKtq8cL64ix6_Mtu21JH84hzX_TntKQj7fOn34xImO0OgJ6Ia9u4WebnxF1gBd_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="1967200123223312378" dis_url="www.amazon.cn/手机-通讯/dp/B00FEZR..."><a href="http://trust.baidu.com/vcard/index/show?id=v_2773e85c94469feb2698bc59b3855aca" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["1967200123223312378"] = bds.se.certification.data["1967200123223312378"]||[];
-    if($.inArray("40520",bds.se.certification.data["1967200123223312378"])==-1){
-        bds.se.certification.data["1967200123223312378"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7306384984823c3933fc2384656476194bf3022170ed8d27c600bdf5e5ced87326537042bc68cc88f3aaeac925e388820437b0b864618d10eafcc4d56d620972de3b819e0c9872593a9a1a7c20211d7230778f487e33a6113ce7bb54971b5a9c61f025f61fbb06c2ee8590663dd7400ed14eee0432f5addbdca5c3d8174832a50d1fc73eb634e&amp;p=80348f1a87904ead08e2947e0c5189&amp;newp=8078cc5f86cc41af599fc32d021494231610db2151d0d2100d83&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=79" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DDKJPYhJuGMcAND4lAsnx_59_7SyfLpMnFD9WpATRYY9kq5OkMbNBXSIWe-ZT4WHCQmNQ-M8vxJ7z_nMag9nUDbcWKtq8cL64ix6_Mtu21JH84hzX_TntKQj7fOn34xImO0OgJ6Ia9u4WebnxF1gBd_&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%01%E7%B4%A2%E5%B0%BC%01-%02Sony%03%20%01%E7%B4%A2%E5%B0%BC%01%20%02Xperia%03%20%01Z%01%20%01Ultra%01%20%01XL39h%01%20%01%E6%99%BA%E8%83%BD%01%E6%89%8B%E6%9C%BA%01%28%01%E7%B4%AB%E8%89%B2%02%29%036%01.%0144%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="80" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:80}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FEF57F64'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=V3x617-KeSMcpQ8GLMrr7eQ4VjZTgs99gTT2L0MpUoLm-Ql2EMTAfTRTFz1UmeMyXlWCbODoHwQw6quxKxOkiYb5lkOdotZ57WmSdgJeMzu" target="_blank"><em>Sony</em> <em>Xperia</em> Z 评测:气质旗舰报到</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=V3x617-KeSMcpQ8GLMrr7eQ4VjZTgs99gTT2L0MpUoLm-Ql2EMTAfTRTFz1UmeMyXlWCbODoHwQw6quxKxOkiYb5lkOdotZ57WmSdgJeMzu" target="_blank"><img src="http://i7.baidu.com/it/u=1726537960,2030806767&amp;fm=96&amp;s=A5345B942066071B181555520300A0B0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 这次<em>Sony</em> 对 <em>Xperia</em> Z 的相机硬件颇多着墨,主相机升级至新一代 Exmor RS 感光组件,总像素仍维持业界高标 1,300 万像素。功能上去年底在 <em>Xperia</em> V 上看到的...</div><div class="f13"><span class="g">cn.engadget.com/...&nbsp;2013-02-14&nbsp;</span><div class="c-tools" id="tools_4000208386836018368" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z 评测:气质旗舰报到&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=V3x617-KeSMcpQ8GLMrr7eQ4VjZTgs99gTT2L0MpUoLm-Ql2EMTAfTRTFz1UmeMyXlWCbODoHwQw6quxKxOkiYb5lkOdotZ57WmSdgJeMzu&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d916cabbe57f73dd7462254bc05612a448f2945b25c3239147ebaf04e4bced73cef299c4df221988044521d3e78b2c4803ca19b04375b8f1dc55&amp;p=8d6fc64ad49b59ff57ed957f555398&amp;newp=882a9544d7db14fc57efc266155e97231610db2151d4d2146781&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=80" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="81" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:81}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'2F5FF7DB'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=MkmqUu5-ak_7oEyVeTn8yEMMvGxlwDxWkWXkxvcOXZPpet51mKjcuWHl8eDb5P2KfcaU5uEYZgSpqFsUjBFoE_" target="_blank"><em>Sony</em> <em>Xperia</em> T - Wikipedia, the free encyclopedia</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=MkmqUu5-ak_7oEyVeTn8yEMMvGxlwDxWkWXkxvcOXZPpet51mKjcuWHl8eDb5P2KfcaU5uEYZgSpqFsUjBFoE_" target="_blank"><img src="http://i8.baidu.com/it/u=3691584006,653974972&amp;fm=96&amp;s=763A14C10EB23B926D15551E0300C0C2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> <em>Xperia</em> T (also known as <em>Sony</em> LT30p<em>)</em> is an Android-based smartphone from <em>Sony</em> Mobile Communications introduced on 29 August 2012, the <em>Xperia</em> T is...</div><div class="f13"><span class="g">en.wikipedia.org...&nbsp;2013-07-08&nbsp;</span><div class="c-tools" id="tools_15777310980961973812" data-tools="{&quot;title&quot;:&quot;Sony Xperia T - Wikipedia, the free encyclopedia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=MkmqUu5-ak_7oEyVeTn8yEMMvGxlwDxWkWXkxvcOXZPpet51mKjcuWHl8eDb5P2KfcaU5uEYZgSpqFsUjBFoE_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5df16cabbe56d74d17c76274add1205d36ef28b1338847bc901f4ce44bbf1e735e7c490849f0f00dd54711c&amp;p=8b2a9715d9c342a82aab8f605b4b8e&amp;newp=b47acd02c5904ead44bd9b7e0e1182231610db2151d2d51e63&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=81" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="82" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:82}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFBFFCC1'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=GZ88EnCrX8zXu1Q7IaPofNdr0bk6ApCda6EAe_aEbANkiQGY5_8DN9HVqHjWlX__2PD0_n9PcE71SD1IWHY8bq" target="_blank">【索尼lt29i】索尼29i评测、价格、参数_<em>(sony)</em>索尼lt29i好不好_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=GZ88EnCrX8zXu1Q7IaPofNdr0bk6ApCda6EAe_aEbANkiQGY5_8DN9HVqHjWlX__2PD0_n9PcE71SD1IWHY8bq" target="_blank"><img src="http://i7.baidu.com/it/u=92999673,2525657260&amp;fm=96&amp;s=19843C7A428796BE0797F94F0100A0E1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><span class="m">2012年11月7日&nbsp;-&nbsp;</span> 所属品牌:索尼<em>(SONY)</em>  2G/3:GSM,WCDMA(联通3G<em>)</em>  主屏尺寸:4.55... 索尼爱立信<em>Xperia</em> Arc LT15i的超薄机身+弧形背面设计得到了不少用户的喜爱...</div><div class="f13"><span class="g">product.pconline...&nbsp;2012-11-07&nbsp;</span><div class="c-tools" id="tools_421016309950740089" data-tools="{&quot;title&quot;:&quot;【索尼lt29i】索尼29i评测、价格、参数_(sony)索尼lt29i好不好_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=GZ88EnCrX8zXu1Q7IaPofNdr0bk6ApCda6EAe_aEbANkiQGY5_8DN9HVqHjWlX__2PD0_n9PcE71SD1IWHY8bq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f2743324ddb1d4c8845f8dc4652907dcf4de9d848bba7af6fc3f58c84c2150e9618187d82fb8d5a0003ca18aa526ebd&amp;p=8433c64ad48400f142bd9b7d09128e&amp;newp=8e7dc216d9c114f319bd9b7d09128b231611c20e38dd85493e&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=82" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="83" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:83}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FD58CF77'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=lcnbF-q78FVGtlk7ShduJe34jTaW_uimCJkXbzhYry0W-jfi13J4PkUuwb3iyzl-TIOeZP89Y-xtKR3v9AGzrfvAfJY4pMBRifWbLwLsNrY0hLXGJkDaabpQWlywlu1p" target="_blank">On Android 4.1 Jelly Bean <em>|</em> Blog Portal - <em>Sony</em> Smartphones</a></h3><div class="c-abstract"> [...] <em>Sony</em> <em>Xperia</em> Product Blog Via: XperiaBlog This post has been tagged with:Android Android 4.1 Jelly Bean News <em>Sony</em> <em>XPERIA</em> [...]  By Ramesh ...</div><div class="f13"><span class="g">blogs.<b>sony</b>mobi...&nbsp;2012-07-31&nbsp;</span><div class="c-tools" id="tools_13539266632277271269" data-tools="{&quot;title&quot;:&quot;On Android 4.1 Jelly Bean | Blog Portal - Sony Smartphones&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=lcnbF-q78FVGtlk7ShduJe34jTaW_uimCJkXbzhYry0W-jfi13J4PkUuwb3iyzl-TIOeZP89Y-xtKR3v9AGzrfvAfJY4pMBRifWbLwLsNrY0hLXGJkDaabpQWlywlu1p&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c1597634b968d49348bce18c83a0c564711b2e6783f52448e933b3647ee545ce8f3366f35063db698d5d516cabbe47b73de67692b4a914164d50eafbd4532c156c80db7f152f0ba8662c4fd8ececb110e8a050a25d7e78b2b41499624e71440a9e4ce084e0c07ba9c7138a3126029ee611ee50cb8a661285cdcaa&amp;p=c66fc54ad5c845e60be29634475c93&amp;newp=8b2a975e84d813e008e29775097abb231610db2151d1d6106486881adc&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=83" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DlcnbF-q78FVGtlk7ShduJe34jTaW_uimCJkXbzhYry0W-jfi13J4PkUuwb3iyzl-TIOeZP89Y-xtKR3v9AGzrfvAfJY4pMBRifWbLwLsNrY0hLXGJkDaabpQWlywlu1p&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01On%01%20%01Android%01%20%014%01.%011%01%20%01Jelly%01%20%01Bean%01%20%02%7C%03%20%01Blog%01%20%01Portal%01%20%01-%01%20%02Sony%03%20%01Smartphones%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="84" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:84}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'BBA9B97F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=3LI79-6p5jV9zIDxIjr9ZeUA_zMhD2FHjBgY5f5LSFKEdomoF_HfLheqBmCXN_ZNHUkWhDJ9980to0lx1MirWkSTkH1MmZ_8sfy9cEuCWT508sI-JJtE2l5d58TrL9KZ" target="_blank">PS4: The Ultimate FAQ – North America – <em>PlayStation</em>.Blog</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=3LI79-6p5jV9zIDxIjr9ZeUA_zMhD2FHjBgY5f5LSFKEdomoF_HfLheqBmCXN_ZNHUkWhDJ9980to0lx1MirWkSTkH1MmZ_8sfy9cEuCWT508sI-JJtE2l5d58TrL9KZ" target="_blank"><img src="http://i8.baidu.com/it/u=2652739986,3153358737&amp;fm=96&amp;s=42D2ED28319E978232558196010080E2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">other devices such as <em>PlayStation</em> 3, PS Vita, BRAVIA TV, and <em>Xperia</em> Smartphones, all with the convenience of a single <em>Sony</em> Entertainment Network account...</div><div class="f13"><span class="g">blog.us.playsta...&nbsp;2013-10-30&nbsp;</span><div class="c-tools" id="tools_14879976709652005179" data-tools="{&quot;title&quot;:&quot;PS4: The Ultimate FAQ – North America – PlayStation.Blog&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=3LI79-6p5jV9zIDxIjr9ZeUA_zMhD2FHjBgY5f5LSFKEdomoF_HfLheqBmCXN_ZNHUkWhDJ9980to0lx1MirWkSTkH1MmZ_8sfy9cEuCWT508sI-JJtE2l5d58TrL9KZ&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380147b96c7150896cd1bd8251d12013dbee7302267558e9a616703ac4841e9f22b73351e62f69ddf883c9be1c53f2ffe606a3647d91254840eafbd12768237902cb5f259a1e0e732e5fd8d849f0f02994e113fddb0dd555f43dd6f81556cbfed8e48641552edad6b36e8590668c27f0ba14788a26c3d4cc0b08e1a179e76&amp;p=c0769a47c79a09ff57ed947d49008d&amp;newp=8c7cc35b85cc43e811bd9b7e0d1595231610db2151d2d212389d&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=84" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="85" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:85}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'3DFF6CFF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=L-FIDmeC6QdKE3pRYlAWU5z6JYpR25p_qimg6BxynT4c381O70P4W68By75AIV5ufDR6K80gwQedoM9xmO5v8a" target="_blank">【索尼<em>Xperia</em> SL LT26ii】<em>(SONY</em> <em>Xperia</em> SL LT26ii<em>)</em>报价_图片_参数...</a></h3><div class="c-abstract"> 产品简介: 索尼<em>Xperia</em> SL LT26ii装载4.3英寸720p高清触控屏,拥有130万像素的前置镜头和1200万像素的主镜头,支持自动聚焦、3D全景扫描以及1080p全高清视频录制等...</div><div class="f13"><span class="g">product.yesky.co...&nbsp;2014-05-04&nbsp;</span><div class="c-tools" id="tools_987727825899433879" data-tools="{&quot;title&quot;:&quot;【索尼Xperia SL LT26ii】(SONY Xperia SL LT26ii)报价_图片_参数...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=L-FIDmeC6QdKE3pRYlAWU5z6JYpR25p_qimg6BxynT4c381O70P4W68By75AIV5ufDR6K80gwQedoM9xmO5v8a&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a75e2895ca0384642c101a39fef9677f4643828361620aaa5459e1f53571361e34f2c688de4582ec85285ec97a683b0b863058914eef901532c151d107b5e40ee7cbb26cc0e593958c1208970f&amp;p=9e33c54ad6c042c34981c7710f4ac6&amp;newp=8b2a9701a4934eaf5beecc237f4398231610db2151d7d2163ba6&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=85" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DL-FIDmeC6QdKE3pRYlAWU5z6JYpR25p_qimg6BxynT4c381O70P4W68By75AIV5ufDR6K80gwQedoM9xmO5v8a&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E3%80%90%01%E7%B4%A2%E5%B0%BC%02Xperia%03%20%01SL%01%20%01LT26ii%01%E3%80%91%02%28%01SONY%03%20%02Xperia%03%20%01SL%01%20%01LT26ii%02%29%03%E6%8A%A5%E4%BB%B7%01_%01%E5%9B%BE%E7%89%87%01_%01%E5%8F%82%E6%95%B0%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="86" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:86}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FB61B76C'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=omEDhaKAkwigkltWea9AQ9oHe8qzsRD58FscGybkpVdZ13sDn3hT3DeS3IJlk-nD8NDr-1PcBr6QZhyEOa_f5SCzplWjHttW9rF0iTwFAAYBpVmYgGg2PFyUEU5xtobPQJj1Y20c-G_C5XIVviFhiK" target="_blank"><em>Sony</em> 索尼-<em>SONY</em> 索尼 <em>Xperia</em> Z1 L39h(黑色<em>)</em>2070万像素 四核2.2GHz...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=omEDhaKAkwigkltWea9AQ9oHe8qzsRD58FscGybkpVdZ13sDn3hT3DeS3IJlk-nD8NDr-1PcBr6QZhyEOa_f5SCzplWjHttW9rF0iTwFAAYBpVmYgGg2PFyUEU5xtobPQJj1Y20c-G_C5XIVviFhiK" target="_blank"><img src="http://i9.baidu.com/it/u=2198106741,1811590471&amp;fm=96&amp;s=02D0EC226CBFA29A0B14BD8D0300E0A1" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>SONY</em> 索尼 <em>Xperia</em> Z1 L39h (黑色<em>)</em>2070万像素 四核2.2GHz处理器 五英寸大屏 防水智能手机  品牌: <em>Sony</em> 索尼  平均4.4 星 浏览全部评论 (133 条商品评论<em>)</em> ...</div><div class="f13"><span class="g">www.amazon.cn/手...&nbsp;2013-11-28&nbsp;</span><div class="c-tools" id="tools_3865458500848482870" data-tools="{&quot;title&quot;:&quot;Sony 索尼-SONY 索尼 Xperia Z1 L39h(黑色)2070万像素 四核2.2GHz...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=omEDhaKAkwigkltWea9AQ9oHe8qzsRD58FscGybkpVdZ13sDn3hT3DeS3IJlk-nD8NDr-1PcBr6QZhyEOa_f5SCzplWjHttW9rF0iTwFAAYBpVmYgGg2PFyUEU5xtobPQJj1Y20c-G_C5XIVviFhiK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="1967200123223312378" dis_url="www.amazon.cn/手机-通讯/dp/B00F0CC..."><a href="http://trust.baidu.com/vcard/index/show?id=v_2773e85c94469feb2698bc59b3855aca" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["1967200123223312378"] = bds.se.certification.data["1967200123223312378"]||[];
-    if($.inArray("40520",bds.se.certification.data["1967200123223312378"])==-1){
-        bds.se.certification.data["1967200123223312378"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f7cd7747c2d409141658245b2dc4622b624875aeea512f0baf738e3b9d2d4a85044ca540e0b97f08c2a7303ca19e7143694ad8e48125512aded376e8c4e772ee82957b6408a97256e00f282c00a0ede5ad2636595de44c3416f&amp;p=84769a4787821ef608e2947e0e649d&amp;newp=8257d116d9c119ed08e2947e0e4ac4231610db2151d7d3162796&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=86" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="87" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:87}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'BFEFCFF6'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=TAMfUSWEP81O733iBIpBMgb0pCg_zy7Ky2645_LMUjZck-VYWHMDRiS2HPrC_j9ua3c47RUmbNUfwaqtowEvvq" target="_blank"><em>Sony</em> Ericsson <em>Xperia</em> Play - Everything you need to know <em>|</em> ...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=TAMfUSWEP81O733iBIpBMgb0pCg_zy7Ky2645_LMUjZck-VYWHMDRiS2HPrC_j9ua3c47RUmbNUfwaqtowEvvq" target="_blank"><img src="http://i7.baidu.com/it/u=1534649147,3288513225&amp;fm=96&amp;s=72B61CC5FCCF9643400D0D8703003002" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Sony</em> Ericsson <em>Xperia</em> Play Buy this device  <em>Sony</em> Ericcson’s <em>Xperia</em> Play seeks to bring a stellar gaming experience to Android. Dubbed for a while as ...</div><div class="f13"><span class="g">www.androidcentr...&nbsp;2012-07-17&nbsp;</span><div class="c-tools" id="tools_4619666164787876723" data-tools="{&quot;title&quot;:&quot;Sony Ericsson Xperia Play - Everything you need to know | ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=TAMfUSWEP81O733iBIpBMgb0pCg_zy7Ky2645_LMUjZck-VYWHMDRiS2HPrC_j9ua3c47RUmbNUfwaqtowEvvq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f7cd471742d47d010458f5fef981832c157c107b6b253a5edb069c0b9d2a59d0a0081&amp;p=816ed516d9c150f408e2947e090a8a&amp;newp=827ec54ad6c345f50be296601e5f8d231610db2151d4d44f&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=87" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="88" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:88}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DEEA',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FDFF5BDF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=ZFeOz1lykOu2PMdXUfoE0RWQpXHTLcnxxt8kr8O4Med3GBmS99PY-yMR_Q6ILq5v" target="_blank"><em>sony</em> <em>playstation</em> 3</a></h3><div class="c-abstract"></div><div class="f13"><span class="g">www.us.playstat...&nbsp;2010-06-11&nbsp;</span><div class="c-tools" id="tools_15932933523262512178" data-tools="{&quot;title&quot;:&quot;sony playstation 3&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=ZFeOz1lykOu2PMdXUfoE0RWQpXHTLcnxxt8kr8O4Med3GBmS99PY-yMR_Q6ILq5v&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f7247dc0d0623d8ac003d22208071c3bbfac275541598cd81e0600bb0c01aaa6392d601420c6da95d401cabbe3626ddf676f230b8630538e45e4dc4654837ec311a8e94aa1e1ad6e&amp;p=882a9f4fcc904ead0dbadf374207&amp;newp=882a9f4f88db1bdd0be2962c4d4e92695c16ed633689c84f0d&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=88" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DZFeOz1lykOu2PMdXUfoE0RWQpXHTLcnxxt8kr8O4Med3GBmS99PY-yMR_Q6ILq5v&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02sony%03%20%02playstation%03%20%013%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="89" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;rsv_cd&quot;:&quot;pt:40520&quot;,&quot;p5&quot;:89}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFF7DF1F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=b-TJ4rwbopYIjzDZSnpXKo0IEZCStkyO1WdQ0FVFhq_v6PDN7CZmf-sr0kvsGe0iAKnjDxmFfbJ93SuvKriRYK" target="_blank">索爱LT18i <em>XPERIA</em> Arc S报价 参数 论坛 怎么样 哪买好-泡泡网产品...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=b-TJ4rwbopYIjzDZSnpXKo0IEZCStkyO1WdQ0FVFhq_v6PDN7CZmf-sr0kvsGe0iAKnjDxmFfbJ93SuvKriRYK" target="_blank"><img src="http://i8.baidu.com/it/u=1066943147,3608767598&amp;fm=96&amp;s=68A3A0524EC5B29A1A9F10C7030070A2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 日前,索尼爱立信携手优酷网推出全球首款V手机<em>Xperia</em> arc S LT18i,利用智能手机、电视、移动互联网等融合的大趋势,为用户带来家庭娱乐新体验。 索尼爱立信...</div><div class="f13"><span class="g">product.pcpop.co...&nbsp;2014-04-04&nbsp;</span><div class="c-tools" id="tools_3375054840027542761" data-tools="{&quot;title&quot;:&quot;索爱LT18i XPERIA Arc S报价 参数 论坛 怎么样 哪买好-泡泡网产品...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=b-TJ4rwbopYIjzDZSnpXKo0IEZCStkyO1WdQ0FVFhq_v6PDN7CZmf-sr0kvsGe0iAKnjDxmFfbJ93SuvKriRYK&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"><span class="c-vline"></span><span class="certification vstar" certification_key="14597907566946666025" dis_url="product.pcpop.com/000321758/Ind...html"><a href="http://trust.baidu.com/vcard/index/show?id=v_f7b324fb4dec81390f258b3b4d43c588" class="c-icon c-icon-v c-icon-v1 c-icon-v3" target="_blank" style="visibility: visible;" data-click="{'title':'vstar'}"></a></span><script>
-  bds.ready(function(){
-    bds.se.certification = bds.se.certification || {};
-    bds.se.certification.data = bds.se.certification.data||[];
-    bds.se.certification.data["14597907566946666025"] = bds.se.certification.data["14597907566946666025"]||[];
-    if($.inArray("40520",bds.se.certification.data["14597907566946666025"])==-1){
-        bds.se.certification.data["14597907566946666025"].push("40520");
-    }
-  });
-  </script></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a7572e96ce0a84642c101a39feb925201104d0c07b6d1cd4150abdba2172405966e8c5dccd179ded9d77789f27453141da0a05d368e58911659a73875a98ee44bbf1e732e2ec8c8094151599155e27dc&amp;p=c049c3568d904ead04bd9b7e0d1692&amp;newp=83759a45d6c35be60be2966f4443a5231610db2151d3d011659d&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=89" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="90" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:90}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EDD75FFC'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=ZTzEj93Hf7UzVeuFOvAivIlwpUGyBxteABUSmJ4lUeGQ3wxKY8ZOwgHjEMGX3or3YT7MErwSeHvuwC5Sd6TGpq" target="_blank"><em>Sony</em> <em>Xperia</em> Z - Wikipedia, the free encyclopedia</a></h3><div class="c-abstract"> The <em>Sony</em> <em>Xperia</em> Z is a touchscreen enabled[6] Android high-end smartphone designed, developed and marketed by <em>Sony</em> Mobile...</div><div class="f13"><span class="g">en.wikipedia.org...&nbsp;2013-03-01&nbsp;</span><div class="c-tools" id="tools_14115765396680776288" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z - Wikipedia, the free encyclopedia&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=ZTzEj93Hf7UzVeuFOvAivIlwpUGyBxteABUSmJ4lUeGQ3wxKY8ZOwgHjEMGX3or3YT7MErwSeHvuwC5Sd6TGpq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310418b711923c538658c9242298fc05f93130601127ba6e07e790d658e99377006db231ebdb06d21200454df8f8dd50a8bb4cd7f388856752d40cd5612a253ed9c067e9237902ba8f245acadf043d1f081989e12008c085826&amp;p=8b2a97539d8b1aff57ed927b7f4d8c&amp;newp=882a9543d38419e904b3822d021494231610db2151ddd316388cd514cd72&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=90" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DZTzEj93Hf7UzVeuFOvAivIlwpUGyBxteABUSmJ4lUeGQ3wxKY8ZOwgHjEMGX3or3YT7MErwSeHvuwC5Sd6TGpq&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%02Sony%03%20%02Xperia%03%20%01Z%01%20%01-%01%20%01Wikipedia%01%2C%01%20%01the%01%20%01free%01%20%01encyclopedia%01%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="91" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:91}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E7243F',
-                       'T':'1400743384',
-                                               'y':'3FFFC7C7'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=A-M6nPQNRo-nCAkpNHglNhpnV31iyHGSXm6GgIFcqTfJsXhp8jye4_2shO-mOptL8SKsSDg-CoNuhfbLJIp8P_" target="_blank">【索尼ST27i】报价、评测、论坛、图片_<em>(SONY)</em>索尼ST27i最新报价_...</a></h3><div class="c-abstract">索尼<em>(SONY)</em>手机新品  索尼<em>Xperia</em> G 索尼<em>Xperia</em> G  索尼L39u 索尼L39u  索尼<em>Xperia</em> E1 索尼<em>Xperia</em> E1  索尼Z1 4G移动版 索尼Z1 4G移动版  索尼T2 Ultra 索尼...</div><div class="f13"><span class="g">product.pconline...&nbsp;2013-11-28&nbsp;</span><div class="c-tools" id="tools_737061948310505784" data-tools="{&quot;title&quot;:&quot;【索尼ST27i】报价、评测、论坛、图片_(SONY)索尼ST27i最新报价_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=A-M6nPQNRo-nCAkpNHglNhpnV31iyHGSXm6GgIFcqTfJsXhp8jye4_2shO-mOptL8SKsSDg-CoNuhfbLJIp8P_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5ca0a80edd579699f2743324ddb1d4c8845f8dc4652907dcf4de9d848bba7af6fc3f58c84c2150e9618187d83f38f590003ca18aa526ebd&amp;p=9a759a45d7c757f21bbe9b7c4a43c9&amp;newp=c37dd715d9c340ab07af8f2d0214c1231610db2151d6d211209688&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=91" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DA-M6nPQNRo-nCAkpNHglNhpnV31iyHGSXm6GgIFcqTfJsXhp8jye4_2shO-mOptL8SKsSDg-CoNuhfbLJIp8P_&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01%E3%80%90%01%E7%B4%A2%E5%B0%BC%01ST27i%01%E3%80%91%01%E6%8A%A5%E4%BB%B7%01%E3%80%81%01%E8%AF%84%E6%B5%8B%01%E3%80%81%01%E8%AE%BA%E5%9D%9B%01%E3%80%81%01%E5%9B%BE%E7%89%87%01_%02%28%01SONY%01%29%03%E7%B4%A2%E5%B0%BC%01ST27i%01%E6%9C%80%01%E6%96%B0%01%E6%8A%A5%E4%BB%B7%01_%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="92" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:92}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FF9FBFD6'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=vBZeGiA9s9zdWipljX_vkp-ScrqNmMN7DcPu0V7BDCCb_czatXajaV3Ut0igxcQ6" target="_blank"><em>Xperia</em>  <em>|</em> 凭借索尼技术捕捉生活中的完美时刻 - 索尼<em>XPERIA</em>智能...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=vBZeGiA9s9zdWipljX_vkp-ScrqNmMN7DcPu0V7BDCCb_czatXajaV3Ut0igxcQ6" target="_blank"><img src="http://i7.baidu.com/it/u=2641699884,759905793&amp;fm=96&amp;s=28E2E104D065DEAE96BBA4560300C0B2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">第一款索尼Cyber-shot 相机于1996年问世,从那时起,我们倾注了所有专业知识和索尼最尖端的技术,使<em>Xperia</em>智能手机的相机焕然一新,让您随时随地都能捕捉生活中的美妙...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2013-09-01&nbsp;</span><div class="c-tools" id="tools_8283186686257582494" data-tools="{&quot;title&quot;:&quot;Xperia  | 凭借索尼技术捕捉生活中的完美时刻 - 索尼XPERIA智能...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=vBZeGiA9s9zdWipljX_vkp-ScrqNmMN7DcPu0V7BDCCb_czatXajaV3Ut0igxcQ6&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f2f41d61a4c840eafbc17789e3dc106f4e55bb0faab61&amp;p=8b2a9715d9c347a51181c2231c058d&amp;newp=882a9543dc9b12a05a818f31135098231610db2151d6d71f27&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=92" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="93" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:93}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'237595FF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=YDB5sU-3ivRmhbnnckYeoQp7yrgbs2KbyumJTqy9s-ZwY0HeEqsOknz_cUkLD2Xqkq29-ow9GDuWpyhypszbsq" target="_blank"><em>Xperia</em> Z <em>|</em> 智能手机 - 索尼<em>XPERIA</em>智能手机(中国<em>)</em></a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=YDB5sU-3ivRmhbnnckYeoQp7yrgbs2KbyumJTqy9s-ZwY0HeEqsOknz_cUkLD2Xqkq29-ow9GDuWpyhypszbsq" target="_blank"><img src="http://i8.baidu.com/it/u=475573029,1158075246&amp;fm=96&amp;s=28C2EC001FF40690485D89880300D0E2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">这就是<em>Xperia</em> Z<em>Xperia</em> Z完美融合了<em>Sony</em>专业的工程技术。在设计这款精致的Android智能手机时,我们对每一个角落、零件和像素都非常注重。...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2014-03-01&nbsp;</span><div class="c-tools" id="tools_4197221665915977371" data-tools="{&quot;title&quot;:&quot;Xperia Z | 智能手机 - 索尼XPERIA智能手机(中国) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=YDB5sU-3ivRmhbnnckYeoQp7yrgbs2KbyumJTqy9s-ZwY0HeEqsOknz_cUkLD2Xqkq29-ow9GDuWpyhypszbsq&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cd0f98ac925f6ed57b7f2f41d61a4c840eafbc17789e3dc106f4ed59baecb763d5efcf9185090f9d121830c2a7cb015303ca19b8&amp;p=c472df16d9c157ed05bd9b7e0c1dc4&amp;newp=8957de53c59812a05abd9b7e0c1d9f231610db2151d0d414&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=93" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="94" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:94}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F2F737F7'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=WsOK8QHesjNW8KdF-26cl6AiBsW3sZqvP93JyIsadkTe-pAmrU2DxHilMV7ZivyH87aa2l6ryW5d7r-JR_AVh_" target="_blank">【索尼<em>Xperia</em> Z1 L39h】<em>(SONY</em> <em>Xperia</em> Z1 L39h<em>)</em>报价_图片_参数_...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=WsOK8QHesjNW8KdF-26cl6AiBsW3sZqvP93JyIsadkTe-pAmrU2DxHilMV7ZivyH87aa2l6ryW5d7r-JR_AVh_" target="_blank"><img src="http://i9.baidu.com/it/u=3428678314,3334584653&amp;fm=96&amp;s=6FA03D620CFFF29A491B89CD0300E0A3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 产品简介: 索尼<em>Xperia</em> Z1 L39h配备一块5寸1080p屏幕,搭载的是2.2GHz高通骁龙800处理器和2GB RAM,运行Android 4.2.2系统,提供2000万像素G镜头(F2.0超大...</div><div class="f13"><span class="g">product.yesky.co...&nbsp;2014-04-29&nbsp;</span><div class="c-tools" id="tools_12791027778979451750" data-tools="{&quot;title&quot;:&quot;【索尼Xperia Z1 L39h】(SONY Xperia Z1 L39h)报价_图片_参数_...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=WsOK8QHesjNW8KdF-26cl6AiBsW3sZqvP93JyIsadkTe-pAmrU2DxHilMV7ZivyH87aa2l6ryW5d7r-JR_AVh_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a75e2895ca0384642c101a39fef9677f46438283616d01a45456eafb3d70351e34f2c688de4582ec85285ec97a683b0b863058914eef901532c151d107b5e40ee7cbb26cc0e593958c1208970f&amp;p=8e759a45d7c101b713aac7710f0085&amp;newp=8b2a971a8fd81bb74bbd9b7e0c1483231610db2151d6da17208d88128b77&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=94" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="95" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:95}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'6CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFEF7517'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=MgyOi3wJAJWFviDEV1UNEXfEIvm_GIG7bEJ-x2naRqlETU0cfRNayKvof2Qsue1-VzKbpJBCJXiUMe-7SlRYKNfMsPZpW2RKh3MCeVIWefC" target="_blank"><em>Sony</em> <em>Xperia</em> Z review</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=MgyOi3wJAJWFviDEV1UNEXfEIvm_GIG7bEJ-x2naRqlETU0cfRNayKvof2Qsue1-VzKbpJBCJXiUMe-7SlRYKNfMsPZpW2RKh3MCeVIWefC" target="_blank"><img src="http://i7.baidu.com/it/u=354906252,1339745721&amp;fm=96&amp;s=F42A6FFB227A3D921995141A030080D0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> <em>Sony</em> announces new Exmor RS cameraphone sensor <em>Sony</em> <em>Xperia</em> Z hands-onThe <em>Xperia</em> Z is one of the main pillars of <em>Sony</em>'s new plan to focus on ...</div><div class="f13"><span class="g">www.engadget.com...&nbsp;2013-03-01&nbsp;</span><div class="c-tools" id="tools_4148884730430164760" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z review&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=MgyOi3wJAJWFviDEV1UNEXfEIvm_GIG7bEJ-x2naRqlETU0cfRNayKvof2Qsue1-VzKbpJBCJXiUMe-7SlRYKNfMsPZpW2RKh3MCeVIWefC&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f734608283432a83d55f93130a1c187be3b924230d06d3d87c651cee1400a1e736047d4177f7c09b9f4aabf3852859c870702b4bc35c069644ef9d497a9637902ba8f245acadf043d9ec8593840744ca224427dcbb9c5a7156943cbb5577b0e0c21549&amp;p=8e759a45d6c301b713aac7710f0085&amp;newp=8b2a971a8fd81bb74bbd9b7e0d1683231610db2151d3d411208d88128b77&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=95" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="96" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:96}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'EF79FAD6'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=XTzVp53aYtdYLj1YJ0m86t9GHCZ-lwjTIr0g4hHIvLQlRtUOg_YxlYTdsn81DbnAoN02cFctaigjkH58ZUgcdD6QkfNKmKJOwjzi23EG6gu" target="_blank"><em>Sony</em> <em>Xperia</em> Z Ultra(XL39h<em>)</em>动手玩:这手是越来越不够大了(视频<em>)</em></a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=XTzVp53aYtdYLj1YJ0m86t9GHCZ-lwjTIr0g4hHIvLQlRtUOg_YxlYTdsn81DbnAoN02cFctaigjkH58ZUgcdD6QkfNKmKJOwjzi23EG6gu" target="_blank"><img src="http://i8.baidu.com/it/u=28221312,1122017300&amp;fm=96&amp;s=23901CCD141827DA9B3D3D9F0300C040" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">而在今天,<em>Sony</em> 又在上海为大家带来了一款这样的产品,那就是采用了 6.44 吋 1080p 屏幕的新旗舰 <em>Xperia</em> Z Ultra(XL39h<em>)</em>。核心规格方面,800 万像素 Exmor RS ...</div><div class="f13"><span class="g">cn.engadget.com/...&nbsp;2013-06-25&nbsp;</span><div class="c-tools" id="tools_5680977396900797843" data-tools="{&quot;title&quot;:&quot;Sony Xperia Z Ultra(XL39h)动手玩:这手是越来越不够大了(视频)&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=XTzVp53aYtdYLj1YJ0m86t9GHCZ-lwjTIr0g4hHIvLQlRtUOg_YxlYTdsn81DbnAoN02cFctaigjkH58ZUgcdD6QkfNKmKJOwjzi23EG6gu&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d916cabbe57f73dd7462254bc05612a448f2945b25c3239147ebab04e7bded73cef299c4df221988044521d3e78b2c4803ca19b74a77a3f58e48630543e6bb7172ff2f2a7582&amp;p=9d71c54ad6c04bfa12bf8c2d02149c&amp;newp=882a9546dc9a19e717be9b7c5f488b231610db2151d7da1f268cdb07&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=96" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="97" srcid="1599" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:97}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'F6EFEEBF'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=PNfN1yRuAtK7juAaE3CxGVY6-1iTE_r_lILKEFZvMPKATH76IqENc9z0LQ-8mslaFyjRgqQ84kQhMIt0wJiX9L6Qb6VEfQavGJgAd7JZDaxWW5uUOC8LM0GGUMFn0e8FICTx_9VHoCRoaxogskaVPJdDxrl2v004ljpwt4TYLV_" target="_blank">...4.3; Jelly Bean for <em>Xperia</em> Z1 and <em>Xperia</em> Z Ultra <em>|</em> <em>Sony</em> ...</a></h3><div class="c-abstract">The next <em>Sony</em> software rollout for <em>Xperia</em> Z1 and <em>Xperia</em> Z Ultra starts right about now*… We’ve been working to blend our <em>Sony</em> <em>Xperia</em> software with...</div><div class="f13"><span class="g">blogs.<b>sony</b>mobi...&nbsp;2014-04-21&nbsp;</span><div class="c-tools" id="tools_150316694584216922" data-tools="{&quot;title&quot;:&quot;...4.3; Jelly Bean for Xperia Z1 and Xperia Z Ultra | Sony ...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=PNfN1yRuAtK7juAaE3CxGVY6-1iTE_r_lILKEFZvMPKATH76IqENc9z0LQ-8mslaFyjRgqQ84kQhMIt0wJiX9L6Qb6VEfQavGJgAd7JZDaxWW5uUOC8LM0GGUMFn0e8FICTx_9VHoCRoaxogskaVPJdDxrl2v004ljpwt4TYLV_&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5d81480eed33f2fff66692c57d91c428847f8dc4652907dcf47e9ad1ae6a7f3328eadd6ce830916dd53733addaed5015c41dd6f86476db5e6c413434810cceb276589586029e97b17e819b2f7321857d6a5814b4cb57e8d210697d97ff26952ee40b31f6d6c47b74cc75b0d7027e0396dbd137d5fc1fc5d91626e4055f116f5f992ab&amp;p=9d71c54ad6c143fa12bf8c2d02149c&amp;newp=882a9547d49a19e717be9b7c5f488b231610db2151dcd212268cdb07&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=97" target="_blank" class="m">百度快照</a>&nbsp;-&nbsp;<a href="http://www.baidu.com/tools?url=http%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DPNfN1yRuAtK7juAaE3CxGVY6-1iTE_r_lILKEFZvMPKATH76IqENc9z0LQ-8mslaFyjRgqQ84kQhMIt0wJiX9L6Qb6VEfQavGJgAd7JZDaxWW5uUOC8LM0GGUMFn0e8FICTx_9VHoCRoaxogskaVPJdDxrl2v004ljpwt4TYLV_&amp;jump=http%3A%2F%2Fkoubei.baidu.com%2Fwomc%2Fp%2Fsentry%3Ftitle%3D%01...%014%01.%013%01%3B%01%20%01Jelly%01%20%01Bean%01%20%01for%01%20%02Xperia%03%20%01Z%011%01%20%01and%01%20%02Xperia%03%20%01Z%01%20%01Ultra%01%20%02%7C%03%20%02Sony%03%20%01...%26q%3D(%22me%22%20|%20%22Sony%22%20|%20%22Xperia%22%20|%20%22Sony%20PlayStation%22%20)&amp;key=surl" target="_blank" class="m">评价</a></div></div><div class="result c-container " id="98" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:98}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DEEA',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'55DDBFBE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=MQVUtZzKZT_KudgP36l3uS4Hn_dwfX3Os8BUjBZR8QDaJLESv7TNv5U0-XFzWI8R" target="_blank"><em>sony</em> <em>playstation</em> portable</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=MQVUtZzKZT_KudgP36l3uS4Hn_dwfX3Os8BUjBZR8QDaJLESv7TNv5U0-XFzWI8R" target="_blank"><img src="http://i9.baidu.com/it/u=298687427,1292084078&amp;fm=96&amp;s=29D3E500098901490C403C850300B0C0" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"><em>Sony</em> close Choose your platform PSP <em>PlayStation</em> 3 <em>PlayStation</em> Vita Continue HomePSP Step Your Game Up  with PSP Portable Systems and Games at New Lower...</div><div class="f13"><span class="g">us.<b>playstation</b>...&nbsp;2014-01-08&nbsp;</span><div class="c-tools" id="tools_3799241422794525555" data-tools="{&quot;title&quot;:&quot;sony playstation portable&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=MQVUtZzKZT_KudgP36l3uS4Hn_dwfX3Os8BUjBZR8QDaJLESv7TNv5U0-XFzWI8R&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9d78d513d99c16b8589cd523515dc066681ec2347c8c83027fa5d215cf2f4c413624bde86c635657959e213b15e80902e5aa7034751421c486d5cf0bcabbe56a71db6c75364fc01a4f8f0eafbc17789e3dd21babb2&amp;p=9e769a47958b18f71dbd9b7e0e179f&amp;newp=8b2a9715d9c342ae42b7cc381e078d231610db2151d6d414&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=98" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="99" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:99}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FBFDFEBE'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=Ob6kGLecC2FP7xtRvbqFeJZtYgUbNKvGIrQkbNoWLhF1LnEFprK8PlZIkCj-3xNCqRFXvexFJmuuwFc1TpAJVEKCY7DUz0rbOsFkcInkv6u" target="_blank"><em>Xperia</em> Z <em>|</em> Smartphone - <em>Sony</em> Smartphones (Global UK English<em>)</em></a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=Ob6kGLecC2FP7xtRvbqFeJZtYgUbNKvGIrQkbNoWLhF1LnEFprK8PlZIkCj-3xNCqRFXvexFJmuuwFc1TpAJVEKCY7DUz0rbOsFkcInkv6u" target="_blank"><img src="http://i7.baidu.com/it/u=2794584754,502315229&amp;fm=96&amp;s=12B0ED238EC6948E8F21AFC00300E0A3" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract">The <em>Xperia</em> Z comes fully loaded with <em>Sony</em> engineering expertise. This exquisite Android smartphone is designed with attention to every angle, piece and ...</div><div class="f13"><span class="g">www.<b>sony</b>mobile...&nbsp;2014-05-02&nbsp;</span><div class="c-tools" id="tools_9719960619058510774" data-tools="{&quot;title&quot;:&quot;Xperia Z | Smartphone - Sony Smartphones (Global UK English) &quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=Ob6kGLecC2FP7xtRvbqFeJZtYgUbNKvGIrQkbNoWLhF1LnEFprK8PlZIkCj-3xNCqRFXvexFJmuuwFc1TpAJVEKCY7DUz0rbOsFkcInkv6u&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f722618b9b4a2284c816c4735b36163bbca6727c4d54809b6b6777f81541a8b06b24705266f6868ad21781ecd33565ca70742b4f9141649b04bb8e1b65972fcf0dfeaf68a6e7ac7984aea3999d03139100127af1b1d6064b03ca1eb24a62a8e7df1b53044de6&amp;p=9278d20a85cc43ff57ed92784e5c8e&amp;newp=8b2a971c839509f019bd9b7e0b109f231610db2151d1da1f2681c500cc25&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=99" target="_blank" class="m">百度快照</a></div></div></div></div><div class="result c-container " id="100" srcid="1524" tpl="se_com_default" data-click="{&quot;rsv_bdr&quot;:&quot;0&quot;,&quot;p5&quot;:100}"><h3 class="t"><a data-click="{
-                       'F':'778717EA',
-                       'F1':'9D73F1E4',
-                       'F2':'4CA6DE6B',
-                       'F3':'54E5243F',
-                       'T':'1400743384',
-                                               'y':'FFD6FD1F'
-                        
-                                                                       }" href="http://www.baidu.com/link?url=xMdDkzIADDuHYeMslrcNWOIPna09rEe-shyiz5fbGLvIPd3JU342PN377KpbWSxOxSNkSj16T3anH04L4nwHIa" target="_blank">【索尼<em>xperia</em> zl】索尼l35h最新报价、图片、评测、论坛_索尼l35h...</a></h3><div class="c-row c-gap-top-small"><div class="general_image_pic c-span6"><a class="c-img6" style="height:75px" href="http://www.baidu.com/link?url=xMdDkzIADDuHYeMslrcNWOIPna09rEe-shyiz5fbGLvIPd3JU342PN377KpbWSxOxSNkSj16T3anH04L4nwHIa" target="_blank"><img src="http://i8.baidu.com/it/u=3860983302,2935183323&amp;fm=96&amp;s=AF27CD023DB28A9C0E75A9120100C0E2" style="height:75px;"></a></div><div class="c-span18 c-span-last"><div class="c-abstract"> 所属品牌:索尼<em>(SONY)</em>  2G/3:GSM,WCDMA(联通3G<em>)</em>  主屏尺寸:5.0英寸  ... 索尼在此次CES2013展会中发布了<em>Xperia</em> Z L36h以及<em>Xperia</em> ZL L35h两... 详细&gt;...</div><div class="f13"><span class="g">product.pconline...&nbsp;2014-03-21&nbsp;</span><div class="c-tools" id="tools_4868644825779768900" data-tools="{&quot;title&quot;:&quot;【索尼xperia zl】索尼l35h最新报价、图片、评测、论坛_索尼l35h...&quot;,&quot;url&quot;:&quot;http://www.baidu.com/link?url=xMdDkzIADDuHYeMslrcNWOIPna09rEe-shyiz5fbGLvIPd3JU342PN377KpbWSxOxSNkSj16T3anH04L4nwHIa&quot;}"><a class="c-tip-icon"><i class="c-icon c-icon-triangle-down-g"></i></a></div><span class="c-icons-outer"><span class="c-icons-inner"></span></span>&nbsp;-&nbsp;<a data-nolog="" href="http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631054973b4f13d1252bd7a7572e89cf16c8380c564711b2e678351073829961385cff1202bded772f6b483db09ace824bdbac925f75ce786a6459db0144dc46f8dc4654807dcc11feaf68adf8a772c8fdc5d3ae150e9618127af1b2d5094b558c3cb64f6cbf&amp;p=9278d20a85cc43ff57ed94794e5c8e&amp;newp=8b2a971c839509f019bd9b7e0d119f231610db2151d3d01e2681c500cc25&amp;user=baidu&amp;fm=sc&amp;query=%28%22me%22+%7C+%22Sony%22+%7C+%22Xperia%22+%7C+%22Sony+PlayStation%22+%29&amp;qid=&amp;p1=100" target="_blank" class="m">百度快照</a></div></div></div></div></div><div style="clear:both;height:19px;"></div><p id="page"><strong><span class="fk fk_cur"><i class="c-icon c-icon-bear-p"></i></span><span class="pc">1</span></strong><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=100&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk fkd"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">2</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=200&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">3</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=300&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk fkd"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">4</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=400&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">5</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=500&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk fkd"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">6</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=600&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">7</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=700&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1"><span class="fk fkd"><i class="c-icon c-icon-bear-pn"></i></span><span class="pc">8</span></a><a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;pn=100&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_page=1" class="n">下一页&gt;</a><span class="nums">百度为您找到相关结果约100,000,000个</span></p></div><div id="rs"><table cellpadding="0"><tbody><tr><th rowspan="2" class="tt">相关搜索</th><th><a href="/s?wd=sony%20xperia&amp;rsp=0&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia</a></th><td></td><th><a href="/s?wd=sony%20xperia%20z2&amp;rsp=1&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia z2</a></th><td></td><th><a href="/s?wd=sony%20xperia%20z1&amp;rsp=2&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia z1</a></th><td></td><th><a href="/s?wd=sony%20xperia%20m2&amp;rsp=3&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia m2</a></th><td></td><th><a href="/s?wd=sony%20xperia%20t2&amp;rsp=4&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia t2</a></th></tr><tr><th><a href="/s?wd=sony%20xperia%20zl2&amp;rsp=5&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia zl2</a></th><td></td><th><a href="/s?wd=sony%20xperia%20sp&amp;rsp=6&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia sp</a></th><td></td><th><a href="/s?wd=sony%20xperia%20zr&amp;rsp=7&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia zr</a></th><td></td><th><a href="/s?wd=sony%20xperia%20a2&amp;rsp=8&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia a2</a></th><td></td><th><a href="/s?wd=sony%20xperia%20e1&amp;rsp=9&amp;f=1&amp;oq=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;rn=100&amp;ie=utf-8&amp;usm=1&amp;rsv_ers=xn0&amp;rs_src=0">sony xperia e1</a></th></tr></tbody></table></div><div id="search"><form name="f2" action="/s"><input type="hidden" name="bs" value="(&quot;me&quot; | &quot;Sony&quot; | &quot;Xperia&quot; | &quot;Sony PlayStation&quot; )"><input type="hidden" name="rn" value="100"><input type="hidden" name="ie" value="utf-8"><input type="hidden" name="f" value="8"><input type="hidden" name="rsv_bp" value="2"><input type="hidden" name="rsv_spt" value="3"><span class="bg s_ipt_wr"><input name="wd" class="s_ipt" value="(&quot;me&quot; | &quot;Sony&quot; | &quot;Xperia&quot; | &quot;Sony PlayStation&quot; )" maxlength="100"></span><span class="bg s_btn_wr"><input type="submit" value="百度一下" class="bg s_btn" onmouseout="this.className='bg s_btn'" onmousedown="this.className='bg s_btn s_btn_h'"></span><span class="s_help">&nbsp;&nbsp;&nbsp;<a href="/s?wd=%28%22me%22%20%7C%20%22Sony%22%20%7C%20%22Xperia%22%20%7C%20%22Sony%20PlayStation%22%20%29&amp;tn=baidufir" onmousedown="return c({'almid':'fir','stl':'link'})">结果中找</a>&nbsp;&nbsp;&nbsp;<a href="http://help.baidu.com/question" target="_blank" onmousedown="return c({'fm':'behb','tab':'help','url':this.href,'title':this.innerHTML})">帮助</a>&nbsp;&nbsp;&nbsp;<a id="feedback" onclick="return false;" href="http://qingting.baidu.com" target="_blank" onmousedown="return c({'fm':'behb','tab':'listen','url':this.href,'title':this.innerHTML})">反馈意见</a>&nbsp;&nbsp;&nbsp;<a href="http://www.baidu.com/search/jubao.html" target="_blank" onmousedown="return c({'fm':'behb','tab':'jubao','url':this.href,'title':this.innerHTML})">举报</a>&nbsp;&nbsp;&nbsp;<a href="http://www.baidu.com/gaoji/advanced.html" onclick="location.href=this.href+&quot;?q=&quot;+encodeURIComponent(document.f.kw.value);return false;" onmousedown="return c({'fm':'behb','tab':'gaoji','url':this.href,'title':this.innerHTML})">高级搜索</a></span></form></div><div id="foot">©2014&nbsp;Baidu&nbsp;<span>此内容系百度根据您的指令自动搜索的结果,不代表百度赞成被搜索网站的内容或立场</span></div><div class="c-tips-container" id="c-tips-container"></div></div></div><div class="c-tips-container" id="c-tips-container"></div><script>window.__async_strategy=2;</script><script>var bds={se:{},su:{urdata:[],urSendClick:function(){}},util:{},use:{},comm : {domain:"http://www.baidu.com",ubsurl : "http://sclick.baidu.com/w.gif",tn:"baidu",queryEnc:"",queryId:"",inter:"",templateName:"baidu",sugHost : "http://suggestion.baidu.com/su",query : "",qid : "d8c5cec700018b3f",cid : "0",sid : "5610_6491_5230_1431_5224_6583_6505_6476_4759_6018_6427_6632_6530_6450_6696",indexSid : "5610_6491_5230_1431_5224_6583_6505_6476_4759_6018_6427_6632_6530_6450_6696",stoken : "",serverTime : "1400743379",user : "",username : "",loginAction : [],useFavo : "",pinyin : "",favoOn : "",curResultNum:"0",rightResultExist:false,protectNum:0,zxlNum:0,pageNum:1,pageSize:10,newindex:0,async:1,maxPreloadThread:5,maxPreloadTimes:10,preloadMouseMoveDistance:5,switchAddMask:false,isDebug:false,ishome : 1},_base64:{domain : "http://b1.bdstatic.com/",b64Exp : -1,pdc : 0}};var name,navigate,al_arr=[];var selfOpen = window.open;eval("var open = selfOpen;");var isIE=navigator.userAgent.indexOf("MSIE")!=-1&&!window.opera;var E = bds.ecom= {};bds.se.mon = {'loadedItems':[],'load':function(){},'srvt':-1};try {bds.se.mon.srvt = parseInt(document.cookie.match(new RegExp("(^| )BDSVRTM=([^;]*)(;|$)"))[2]);document.cookie="BDSVRTM=;expires=Sat, 01 Jan 2000 00:00:00 GMT"; }catch(e){}var bdUser = bds.comm.user?bds.comm.user:null,bdQuery = bds.comm.query,bdUseFavo = bds.comm.useFavo,bdFavoOn = bds.comm.favoOn,bdCid = bds.comm.cid,bdSid = bds.comm.sid,bdServerTime = bds.comm.serverTime,bdQid = bds.comm.queryId,bdstoken = bds.comm.stoken,login_success = [];</script><script>if(!location.hash.match(/[^a-zA-Z0-9]wd=/)){document.getElementById("ftCon").style.display='block';document.getElementById("u1").style.display='block';document.getElementById("content").style.display='block';document.getElementById("wrapper").style.display='block';setTimeout(function(){try{document.getElementById("kw1").focus();}catch(e){}},0);}</script><script type="text/javascript" src="http://s1.bdstatic.com/r/www/cache/static/jquery/jquery-1.10.2.min_f2fb5194.js"></script><script>(function(){var result_common_css="<style >body{color:#333;background:#fff;padding:6px 0 0;margin:0;position:relative;min-width:900px}body,th,td,.p1,.p2{font-family:arial}p,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}input{padding-top:0;padding-bottom:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}table,img{border:0}td{font-size:9pt;line-height:18px}em{font-style:normal;color:#cc0000}a em{text-decoration:underline}cite{font-style:normal;color:#008000}.m,a.m{color:#666}a.m:visited{color:#606}.g,a.g{color:#008000}.c{color:#77c}.f14{font-size:14px}.f10{font-size:10.5pt}.f16{font-size:16px}.f13{font-size:13px}.bg{background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_37d13939.png);background-repeat:no-repeat;_background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_5e61a51c.gif);background-repeat:no-repeat}.bg_tuiguang_browser{width:16px;height:16px;background-position:-600px 0;display:inline-block;vertical-align:text-bottom;font-style:normal;overflow:hidden;margin-right:5px}.bg_tuiguang_browser_big{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-600px -24px}.bg_tuiguang_weishi{width:56px;height:56px;position:absolute;left:10px;top:10px;background-position:-672px -24px}#u,#head,#tool,#search,#foot{font-size:12px}.logo{width:117px;height:38px;cursor:pointer}.p1{line-height:120%;margin-left:-12pt}.p2{width:100%;line-height:120%;margin-left:-12pt}#wrapper{_zoom:1}#container{word-break:break-all;word-wrap:break-word}.container_s{width:1002px}.container_l{width:1222px}#content_left{width:636px;float:left;padding-left:35px}#content_right{border-left:1px solid #e1e1e1;float:right}.container_s #content_right{width:271px}.container_l #content_right{width:434px}.content_none{padding-left:35px}#u{color:#999;white-space:nowrap;position:absolute;right:10px;top:4px;z-index:299}#u a{color:#00c;margin:0 5px}#u .reg{margin:0}#u .last{margin-right:0}#u .un{font-weight:bold;margin-right:5px}#u ul{width:100%;background:#fff;border:1px solid #9b9b9b}#u li{height:25px}#u li a{width:100%;height:25px;line-height:25px;display:block;text-align:left;text-decoration:none;text-indent:6px;margin:0;filter:none\\9}#u li a:hover{background:#ebebeb}#u li.nl{border-top:1px solid #ebebeb}#user{position:relative;display:inline-block}#user_center{position:relative;display:inline-block}#user_center .user_center_btn{margin-right:5px}.userMenu{width:64px;position:absolute;right:7px;_right:2px;top:15px;top:14px\\9;*top:15px;padding-top:4px;display:none;*background:#fff}#head{padding-left:35px;margin-bottom:20px;width:900px}.fm{clear:both;position:relative;z-index:297}.nv a,.nv b,.btn,#page,#more{font-size:14px}.s_nav{height:45px}.s_nav .s_logo{margin-right:20px;float:left}.s_nav .s_logo img{border:0;display:block}.s_tab{line-height:18px;padding:20px 0 0;float:left}.s_nav a{color:#0000cc;font-size:14px}.s_nav b{font-size:14px}.s_ipt_wr{width:536px;height:30px;display:inline-block;margin-right:5px;background-position:0 -96px;border:1px solid #b6b6b6;border-color:#7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;vertical-align:top}.s_ipt{width:523px;height:22px;font:16px\/22px arial;margin:5px 0 0 7px;padding:0;background:#fff;border:0;outline:0;-webkit-appearance:none}.s_btn{width:95px;height:32px;padding-top:2px\\9;font-size:14px;padding:0;background-color:#ddd;background-position:0 -48px;border:0;cursor:pointer}.s_btn_h{background-position:-240px -48px}.s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}.sethf{padding:0;margin:0;font-size:14px}.set_h{display:none;behavior:url(#default#homepage)}.set_f{display:none}.shouji{margin-left:19px}.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#head .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http:\/\/www.baidu.com\/img\/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}#tb_mr{color:#00c;cursor:pointer;position:relative;z-index:298}#tb_mr b{font-weight:normal;text-decoration:underline}#tb_mr small{font-size:11px}#page{font:14px arial;white-space:nowrap;padding-left:35px}#page a,#page strong{display:inline-block;vertical-align:text-bottom;height:66px;text-align:center;line-height:34px;text-decoration:none;overflow:hidden;margin-right:9px;background:white}#page a{cursor:pointer}#page a:hover{background:0}#page .n:hover,#page a:hover .pc{background:#f2f8ff;border:1px solid #38f}#page .n{height:34px;padding:0 18px;border:1px solid #e1e2e3}#page span{display:block}#page .pc{width:34px;height:34px;border:1px solid #e1e2e3;cursor:pointer}#page .fk{width:24px;height:24px;margin-bottom:6px;margin-left:6px;cursor:pointer}#page strong .fk,#page strong .pc{cursor:auto}#page .fk .c-icon-bear-pn{top:-3px;position:relative}#page .fkd .c-icon-bear-pn{top:3px;position:relative}#page .fk_cur .c-icon-bear-p{top:-2px;position:relative}#page strong .pc{border:0;width:36px;height:36px;line-height:36px}#page .nums{display:inline-block;vertical-align:text-bottom;height:36px;line-height:36px;margin-left:10px}#rs{width:900px;background:#fff;padding:8px 0;margin:20px 0 0 15px}#rs td{width:5%}#rs th{font-size:14px;font-weight:normal;line-height:19px;white-space:nowrap;text-align:left;vertical-align:top}#rs .tt{font-weight:bold;padding:0 10px 0 20px}#rs_top{font-size:14px;margin-bottom:22px}#rs_top a{margin-right:18px}#search{width:900px;padding:35px 0 16px 35px}#search .s_help{position:relative;top:10px}#foot{height:20px;line-height:20px;color:#77c;background:#e6e6e6;text-align:center}#foot span{color:#666}.site_tip{font-size:12px;margin-bottom:20px}.site_tip_icon{width:56px;height:56px;background:url(http:\/\/www.baidu.com\/aladdin\/img\/tools\/tools-3.png) -288px 0 no-repeat}.to_zhidao,.to_tieba,.to_zhidao_bottom{font-size:16px;line-height:24px;margin:20px 0 0 35px}.to_tieba .c-icon-tieba{float:left}.f{line-height:115%;*line-height:120%;font-size:100%;width:33.7em;word-break:break-all;word-wrap:break-word}.h{margin-left:8px;width:100%}.r{word-break:break-all;cursor:hand;width:238px}.t{font-weight:normal;font-size:medium;margin-bottom:1px}.pl{padding-left:3px;height:8px;padding-right:2px;font-size:14px}.mo,a.mo:link,a.mo:visited{color:#666;font-size:100%;line-height:10px}.htb{margin-bottom:5px}.jc a{color:#cc0000}a font[size=\"3\"] font,font[size=\"3\"] a font{text-decoration:underline}div.blog,div.bbs{color:#707070;padding-top:2px;font-size:13px}.result{width:33.7em;table-layout:fixed}.result-op .f{word-wrap:normal}.nums{font-size:12px;color:#999}.tools{position:absolute;top:10px;white-space:nowrap}#mHolder{width:62px;position:relative;z-index:296;top:-18px;margin-left:9px;margin-right:-12px;display:none}#mCon{height:18px;position:absolute;right:7px;top:3px;top:6px\\9;cursor:pointer;line-height:18px}#mCon span{color:#00c;cursor:default;display:block}#mCon .hw{text-decoration:underline;cursor:pointer;display:inline-block}#mCon .pinyin{display:inline-block}#mCon .c-icon-chevron-unfold2{margin-left:5px}#mMenu{width:56px;border:1px solid #9b9b9b;position:absolute;right:7px;top:23px;display:none;background:#fff}#mMenu a{width:100%;height:100%;color:#00c;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\\9}#mMenu a:hover{background:#ebebeb}#mMenu .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}.op_LAMP{background:url(\"\/cache\/global\/img\/aladdinIcon-1.0.gif\") no-repeat 0 2px;color:#77C;display:inline-block;font-size:13px;height:12px;*height:14px;width:16px;text-decoration:none;zoom:1}.EC_mr15{margin-left:0}.pd15{padding-left:0}.map_1{width:30em;font-size:80%;line-height:145%}.map_2{width:25em;font-size:80%;line-height:145%}.favurl{background-repeat:no-repeat;background-position:0 1px;padding-left:20px}.dan_tip{font-size:12px;margin-top:4px}.dan_tip a{color:#b95b07}#more,#u ul,#mMenu,.msg_holder{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2,Direction=135,Color=\"#cccccc\")\\9}.hit_top{line-height:18px;margin:0 15px 10px 0;width:516px}.hit_top .c-icon-bear{height:18px;margin-right:4px}.f a font[size=\"3\"] font,.f font[size=\"-1\"] a font{text-decoration:underline}h3 a font{text-decoration:underline}.c-title{font-weight:normal;font-size:16px}.c-title-size{font-size:16px}.c-abstract{font-size:13px}.c-abstract-size{font-size:13px}.c-showurl{color:#008000;font-size:13px}.c-showurl-color{color:#008000}.c-cache-color{color:#666}.c-lightblue{color:#77C}.c-highlight-color{color:#C00}.c-clearfix:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.c-clearfix{zoom:1}.c-wrap{word-break:break-all;word-wrap:break-word}.c-icons-outer{overflow:hidden;display:inline-block;vertical-align:bottom}.c-icons-inner{margin-left:-4px}.c-container table.result,.c-container table.result-op{width:100%}.c-container td.f{font-size:13px;line-height:1.54;width:auto}.c-container .vd_newest_main{width:auto}.c-customicon{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-tip-icon i{display:inline-block;cursor:pointer}.c-tip-con{position:absolute;z-index:1;top:22px;left:-35px;background:#fff;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.2);-webkit-transition:opacity .218s;transition:opacity .218s;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);padding:5px 0 5px 0;display:none;font-size:12px;line-height:20px}.c-tip-arrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-16px}.c-tip-arrow em,.c-tip-arrow ins{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:8px solid #000;border-style:dashed dashed solid dashed}.c-tip-arrow em{border-color:transparent transparent #d8d8d8 transparent}.c-tip-arrow ins{border-color:transparent transparent #fff transparent;top:2px}.c-tip-con h3{font-size:12px}.c-tip-con .c-tip-title{margin:0 10px;display:inline-block;width:239px}.c-tip-con .c-tip-info{color:#666;margin:0 10px 1px 10px;width:239px}.c-tip-con .c-tip-cer{width:354px;color:#666;margin:0 10px 1px 10px}.c-tip-con .c-tip-title{width:auto;_width:354px}.c-tip-con .c-tip-item-i{padding:3px 0 3px 20px;line-height:14px}.c-tip-con .c-tip-item-i .c-tip-item-icon{margin-left:-20px}.c-tip-con .c-tip-menu ul{width:74px}.c-tip-con .c-tip-menu ul{text-align:center}.c-tip-con .c-tip-menu li a{display:block;text-decoration:none;cursor:pointer;background-color:#fff;padding:3px 0;color:#0000d0}.c-tip-con .c-tip-menu li a:hover{display:block;background-color:#ebebeb}.c-tip-con .c-tip-notice{width:239px;padding:0 10px}.c-tip-con .c-tip-notice .c-tip-notice-succ{color:#4cbd37}.c-tip-con .c-tip-notice .c-tip-notice-fail{color:#f13f40}.c-tip-con .c-tip-notice .c-tip-item-succ{color:#444}.c-tip-con .c-tip-notice .c-tip-item-fail{color:#aaa}.c-tip-con .c-tip-notice .c-tip-item-faila{color:#aaa}.c-tip-close{right:10px;position:absolute;cursor:pointer}.c-tools{display:inline}.c-tools-share{width:239px;padding:0 10px}.icp_info{color:#666;margin-top:2px;font-size:13px}.icon-gw,.icon-unsafe-icon{background:#2c99ff;vertical-align:text-bottom;*vertical-align:baseline;height:16px;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px;line-height:16px;_padding-top:2px;_height:14px;_line-height:14px;font-size:12px;font-family:simsun;margin-left:10px;overflow:hidden;display:inline-block;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px;color:#fff}a.icon-gw{color:#fff;background:#2196ff;text-decoration:none;cursor:pointer}a.icon-gw:hover{background:#1e87ef}a.icon-gw:active{height:15px;_height:13px;line-height:15px;_line-height:13px;padding-left:5px;background:#1c80d9;border-left:1px solid #145997;border-top:1px solid #145997}.icon-unsafe-icon{background:#e54d4b}#con-at{margin-bottom:15px}#con-ar{margin-bottom:40px}#con-at .result-op{margin-bottom:15px;font-size:13px;line-height:1.52em}#con-ar .result-op{margin-bottom:28px;font-size:13px;line-height:1.52em}#content_left .result-op,#content_left .result{margin-bottom:14px;border-collapse:collapse}#content_left .c-border .result-op,#content_left .c-border .result{margin-bottom:25px}#content_left .c-border .result-op:last-child,#content_left .c-border .result:last-child{margin-bottom:12px}#content_left .result .f,#content_left .result-op .f{padding:0}.subLink_factory{border-collapse:collapse}.subLink_factory td{padding:0}.subLink_factory td.middle,.subLink_factory td.last{color:#666}.subLink_factory td a{text-decoration:underline}.subLink_factory td.rightTd{text-align:right}.subLink_factory_right{width:100%}.subLink_factory_left td{padding-right:26px}.subLink_factory_left td.last{padding:0}.subLink_factory_left td.first{padding-right:75px}.subLink_factory_right td{width:90px}.subLink_factory_right td.first{width:auto}.general_image_pic{margin-top:2px}.general_image_pic a{background:#fff no-repeat center center;text-decoration:none;display:block;overflow:hidden;text-align:center}@-moz-document url-prefix(){.result,.f{width:538px}}<\/style>";result_common_css=$(result_common_css);result_common_css.attr("data-for","result");var result_aladdin_css="<style>.c-icon{background:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_37d13939.png) no-repeat 0 0;_background-image:url(http:\/\/s1.bdstatic.com\/r\/www\/cache\/static\/global\/img\/icons_5e61a51c.gif)}.c-frame{margin-bottom:18px}.c-offset{padding-left:10px}.c-gray{color:#666}.c-gap-top-small{margin-top:5px}.c-gap-top{margin-top:10px}.c-gap-bottom-small{margin-bottom:5px}.c-gap-bottom{margin-bottom:10px}.c-gap-left{margin-left:12px}.c-gap-left-small{margin-left:6px}.c-gap-right{margin-right:12px}.c-gap-right-small{margin-right:6px}.c-gap-icon-right-small{margin-right:5px}.c-gap-icon-right{margin-right:10px}.c-gap-icon-left-small{margin-left:5px}.c-gap-icon-left{margin-left:10px}.c-container{width:538px;font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .c-container{width:auto}.c-container table{border-collapse:collapse;border-spacing:0}.c-container td{font-size:13px;line-height:1.54}.c-default{font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .t,.c-default .t{line-height:1.54}.c-default .t{margin-bottom:0}.cr-content{width:259px;font-size:13px;line-height:1.54;color:#333}.cr-content table{border-collapse:collapse;border-spacing:0}.cr-content td{font-size:13px;line-height:1.54;vertical-align:top}.cr-offset{padding-left:17px}.cr-title{font-size:14px;line-height:1.29;font-weight:bold}.cr-title-sub{float:right;font-size:13px;font-weight:normal}.c-row{*zoom:1}.c-row:after{display:block;height:0;content:\"\";clear:both;visibility:hidden}.c-span2{width:29px}.c-span3{width:52px}.c-span4{width:75px}.c-span5{width:98px}.c-span6{width:121px}.c-span7{width:144px}.c-span8{width:167px}.c-span9{width:190px}.c-span10{width:213px}.c-span11{width:236px}.c-span12{width:259px}.c-span13{width:282px}.c-span14{width:305px}.c-span15{width:328px}.c-span16{width:351px}.c-span17{width:374px}.c-span18{width:397px}.c-span19{width:420px}.c-span20{width:443px}.c-span21{width:466px}.c-span22{width:489px}.c-span23{width:512px}.c-span24{width:535px}.c-span2,.c-span3,.c-span4,.c-span5,.c-span6,.c-span7,.c-span8,.c-span9,.c-span10,.c-span11,.c-span12,.c-span13,.c-span14,.c-span15,.c-span16,.c-span17,.c-span18,.c-span19,.c-span20,.c-span21,.c-span22,.c-span23,.c-span24{float:left;_display:inline;margin-right:17px;list-style:none}.c-span-last{margin-right:0}.c-span-last-s{margin-right:0}.container_l .cr-content{width:351px}.container_l .cr-content .c-span-last-s{margin-right:17px}.container_l .cr-content-narrow{width:259px}.container_l .cr-content-narrow .c-span-last-s{margin-right:0}.c-border{width:518px;padding:9px;border:1px solid #e3e3e3;border-bottom-color:#e0e0e0;border-right-color:#ececec;box-shadow:1px 2px 1px rgba(0,0,0,0.072);-webkit-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-moz-box-shadow:1px 2px 1px rgba(0,0,0,0.072);-o-box-shadow:1px 2px 1px rgba(0,0,0,0.072)}.c-border .c-gap-left{margin-left:10px}.c-border .c-gap-left-small{margin-left:5px}.c-border .c-gap-right{margin-right:10px}.c-border .c-gap-right-small{margin-right:5px}.c-border .c-border{width:auto;padding:0;border:0;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none}.c-border .c-span2{width:34px}.c-border .c-span3{width:56px}.c-border .c-span4{width:78px}.c-border .c-span5{width:100px}.c-border .c-span6{width:122px}.c-border .c-span7{width:144px}.c-border .c-span8{width:166px}.c-border .c-span9{width:188px}.c-border .c-span10{width:210px}.c-border .c-span11{width:232px}.c-border .c-span12{width:254px}.c-border .c-span13{width:276px}.c-border .c-span14{width:298px}.c-border .c-span15{width:320px}.c-border .c-span16{width:342px}.c-border .c-span17{width:364px}.c-border .c-span18{width:386px}.c-border .c-span19{width:408px}.c-border .c-span20{width:430px}.c-border .c-span21{width:452px}.c-border .c-span22{width:474px}.c-border .c-span23{width:496px}.c-border .c-span24{width:518px}.c-border .c-span2,.c-border .c-span3,.c-border .c-span4,.c-border .c-span5,.c-border .c-span6,.c-border .c-span7,.c-border .c-span8,.c-border .c-span9,.c-border .c-span10,.c-border .c-span11,.c-border .c-span12,.c-border .c-span13,.c-border .c-span14,.c-border .c-span15,.c-border .c-span16,.c-border .c-span17,.c-border .c-span18,.c-border .c-span19,.c-border .c-span20,.c-border .c-span21,.c-border .c-span22,.c-border .c-span23,.c-border .c-span24{margin-right:10px}.c-border .c-span-last{margin-right:0}.c-loading{display:block;width:50px;height:50px;background:url(http:\/\/www.baidu.com\/aladdin\/img\/tools\/loading.gif) no-repeat 0 0}.c-vline{display:inline-block;margin:0 3px;border-left:1px solid #ddd;width:0;height:12px;_vertical-align:middle;_overflow:hidden}.c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold{width:12px;height:12px}.c-icon-star,.c-icon-star-gray{width:60px}.c-icon-qa-empty,.c-icon-safeguard,.c-icon-register-empty,.c-icon-zan,.c-icon-location,.c-icon-warning,.c-icon-doc,.c-icon-xls,.c-icon-ppt,.c-icon-pdf,.c-icon-txt,.c-icon-play-black,.c-icon-gift,.c-icon-baidu-share,.c-icon-bear,.c-icon-sfda,.c-icon-bear-border,.c-icon-location-blue,.c-icon-hotAirBall,.c-icon-moon,.c-icon-streetMap,.c-icon-mv,.c-icon-zhidao-s{width:16px;height:16px}.c-icon-bear-circle,.c-icon-warning-circle,.c-icon-warning-triangle,.c-icon-warning-circle-gray{width:18px;height:18px}.c-icon-tieba,.c-icon-zhidao,.c-icon-bear-p,.c-icon-bear-pn{width:24px;height:24px}.c-icon-ball-blue,.c-icon-ball-red{width:38px;height:38px}.c-icon-unfold:hover,.c-icon-fold:hover,.c-icon-chevron-unfold:hover,.c-icon-chevron-fold:hover,.c-icon-download:hover,.c-icon-lyric:hover,.c-icon-v:hover,.c-icon-hui:hover,.c-icon-bao:hover,.c-icon-person:hover,.c-icon-high-v:hover,.c-icon-phone:hover,.c-icon-nuo:hover,.c-icon-med:hover,.c-icon-air:hover,.c-icon-share2:hover,.c-icon-v1:hover,.c-icon-v2:hover,.c-icon-v3:hover,.c-icon-write:hover{border-color:#388bff}.c-icon-unfold:active,.c-icon-fold:active,.c-icon-chevron-unfold:active,.c-icon-chevron-fold:active,.c-icon-download:active,.c-icon-lyric:active,.c-icon-v:active,.c-icon-hui:active,.c-icon-bao:active,.c-icon-person:active,.c-icon-high-v:active,.c-icon-phone:active,.c-icon-nuo:active,.c-icon-med:active,.c-icon-air:active,.c-icon-share2:active,.c-icon-v1:active,.c-icon-v2:active,.c-icon-v3:active,.c-icon-write:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold,.c-icon-download,.c-icon-lyric{border:1px solid #d8d8d8;cursor:pointer}.c-icon-v,.c-icon-hui,.c-icon-bao,.c-icon-person,.c-icon-high-v,.c-icon-phone,.c-icon-nuo,.c-icon-med,.c-icon-air,.c-icon-share2,.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-write{border:1px solid #d8d8d8;cursor:pointer;border-color:transparent;_border-color:#ff6347;_filter:chroma(color=#ff6347)}.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-v1-noborder,.c-icon-v2-noborder,.c-icon-v3-noborder,.c-icon-v1-noborder-disable,.c-icon-v2-noborder-disable,.c-icon-v3-noborder-disable{width:19px}.c-icon-download,.c-icon-lyric{width:16px;height:16px}.c-icon-play-circle,.c-icon-stop-circle{width:18px;height:18px}.c-icon-play-circle-middle,.c-icon-stop-circle-middle{width:24px;height:24px}.c-icon-play-black-large,.c-icon-stop-black-large{width:38px;height:38px}.c-icon-flag{background-position:0 -144px}.c-icon-bus{background-position:-24px -144px}.c-icon-calendar{background-position:-48px -144px}.c-icon-street{background-position:-72px -144px}.c-icon-map{background-position:-96px -144px}.c-icon-bag{background-position:-120px -144px}.c-icon-money{background-position:-144px -144px}.c-icon-game{background-position:-168px -144px}.c-icon-user{background-position:-192px -144px}.c-icon-globe{background-position:-216px -144px}.c-icon-lock{background-position:-240px -144px}.c-icon-plane{background-position:-264px -144px}.c-icon-list{background-position:-288px -144px}.c-icon-star-gray{background-position:-312px -144px}.c-icon-circle-gray{background-position:-384px -144px}.c-icon-triangle-down{background-position:-408px -144px}.c-icon-triangle-up{background-position:-432px -144px}.c-icon-triangle-up-empty{background-position:-456px -144px}.c-icon-sort-gray{background-position:-480px -144px}.c-icon-sort-up{background-position:-504px -144px}.c-icon-sort-down{background-position:-528px -144px}.c-icon-down-gray{background-position:-552px -144px}.c-icon-up-gray{background-position:-576px -144px}.c-icon-download-noborder{background-position:-600px -144px}.c-icon-lyric-noborder{background-position:-624px -144px}.c-icon-download-white{background-position:-648px -144px}.c-icon-close{background-position:-672px -144px}.c-icon-fail{background-position:-696px -144px}.c-icon-success{background-position:-720px -144px}.c-icon-triangle-down-g{background-position:-744px -144px}.c-icon-refresh{background-position:-768px -144px}.c-icon-chevron-left-gray{background-position:-816px -144px}.c-icon-chevron-right-gray{background-position:-840px -144px}.c-icon-fullscreen{background-position:0 -168px}.c-icon-safe{background-position:-24px -168px}.c-icon-exchange{background-position:-48px -168px}.c-icon-chevron-bottom{background-position:-72px -168px}.c-icon-chevron-top{background-position:-96px -168px}.c-icon-unfold{background-position:-120px -168px}.c-icon-fold{background-position:-144px -168px}.c-icon-chevron-unfold{background-position:-168px -168px}.c-icon-qa{background-position:-192px -168px}.c-icon-register{background-position:-216px -168px}.c-icon-star{background-position:-240px -168px}.c-icon-star-gray{position:relative}.c-icon-star-gray .c-icon-star{position:absolute;top:0;left:0}.c-icon-play-blue{background-position:-312px -168px}.c-icon-pic{width:16px;background-position:-336px -168px}.c-icon-chevron-fold{background-position:-360px -168px}.c-icon-video{width:18px;background-position:-384px -168px}.c-icon-circle-blue{background-position:-408px -168px}.c-icon-circle-yellow{background-position:-432px -168px}.c-icon-play-white{background-position:-456px -168px}.c-icon-triangle-down-blue{background-position:-480px -168px}.c-icon-chevron-unfold2{background-position:-504px -168px}.c-icon-right{background-position:-528px -168px}.c-icon-right-empty{background-position:-552px -168px}.c-icon-new-corner{width:15px;background-position:-576px -168px}.c-icon-horn{background-position:-600px -168px}.c-icon-right-large{width:18px;background-position:-624px -168px}.c-icon-wrong-large{background-position:-648px -168px}.c-icon-circle-blue-s{background-position:-672px -168px}.c-icon-play-gray{background-position:-696px -168px}.c-icon-up{background-position:-720px -168px}.c-icon-down{background-position:-744px -168px}.c-icon-stable{background-position:-768px -168px}.c-icon-calendar-blue{background-position:-792px -168px}.c-icon-triangle-down-blue2{background-position:-816px -168px}.c-icon-triangle-up-blue2{background-position:-840px -168px}.c-icon-down-blue{background-position:-864px -168px}.c-icon-up-blue{background-position:-888px -168px}.c-icon-ting{background-position:-912px -168px}.c-icon-piao{background-position:-936px -168px}.c-icon-wrong-empty{background-position:-960px -168px}.c-icon-warning-circle-s{background-position:-984px -168px}.c-icon-chevron-left{background-position:-1008px -168px}.c-icon-chevron-right{background-position:-1032px -168px}.c-icon-v,.c-icon-v-noborder{background-position:0 -192px}.c-icon-hui{background-position:-24px -192px}.c-icon-bao{background-position:-48px -192px}.c-icon-phone{background-position:-72px -192px}.c-icon-qa-empty{background-position:-96px -192px}.c-icon-safeguard{background-position:-120px -192px}.c-icon-register-empty{background-position:-144px -192px}.c-icon-zan{background-position:-168px -192px}.c-icon-location{background-position:-240px -192px}.c-icon-warning{background-position:-264px -192px}.c-icon-doc{background-position:-288px -192px}.c-icon-xls{background-position:-312px -192px}.c-icon-ppt{background-position:-336px -192px}.c-icon-pdf{background-position:-360px -192px}.c-icon-txt{background-position:-384px -192px}.c-icon-play-black{background-position:-408px -192px}.c-icon-play-black:hover{background-position:-432px -192px}.c-icon-gift{background-position:-456px -192px}.c-icon-baidu-share{background-position:-480px -192px}.c-icon-bear{background-position:-504px -192px}.c-icon-sfda{width:31px;background-position:-528px -192px}.c-icon-bear-border{background-position:-576px -192px}.c-icon-person,.c-icon-person-noborder{background-position:-600px -192px}.c-icon-location-blue{background-position:-624px -192px}.c-icon-hotAirBall{background-position:-648px -192px}.c-icon-moon{background-position:-672px -192px}.c-icon-streetMap{background-position:-696px -192px}.c-icon-high-v,.c-icon-high-v-noborder{background-position:-720px -192px}.c-icon-nuo{background-position:-744px -192px}.c-icon-mv{background-position:-768px -192px}.c-icon-med{background-position:-816px -192px}.c-icon-air{background-position:-840px -192px}.c-icon-share2{background-position:-864px -192px}.c-icon-v1,.c-icon-v1-noborder{background-position:-888px -192px}.c-icon-v2,.c-icon-v2-noborder{background-position:-912px -192px}.c-icon-v3,.c-icon-v3-noborder{background-position:-936px -192px}.c-icon-v1-noborder-disable{background-position:-960px -192px}.c-icon-v2-noborder-disable{background-position:-984px -192px}.c-icon-v3-noborder-disable{background-position:-1008px -192px}.c-icon-write{background-position:-1032px -192px}.c-icon-zhidao-s{background-position:-1056px -192px}.c-icon-bear-circle{background-position:0 -216px}.c-icon-warning-circle{background-position:-24px -216px}.c-icon-warning-triangle{width:24px;background-position:-48px -216px}.c-icon-warning-circle-gray{background-position:-72px -216px}.c-icon-ball-red{background-position:0 -240px}.c-icon-ball-blue{background-position:-48px -240px}.c-icon-tieba{background-position:0 -288px}.c-icon-zhidao{background-position:-48px -288px}.c-icon-bear-p{background-position:-96px -288px}.c-icon-bear-pn{background-position:-144px -288px}.c-icon-download{background-position:0 -336px}.c-icon-lyric{background-position:-24px -336px}.c-icon-play-circle{background-position:-48px -336px}.c-icon-play-circle:hover{background-position:-72px -336px}.c-icon-stop-circle{background-position:-96px -336px}.c-icon-stop-circle:hover{background-position:-120px -336px}.c-icon-play-circle-middle{background-position:0 -360px}.c-icon-play-circle-middle:hover{background-position:-48px -360px}.c-icon-stop-circle-middle{background-position:-96px -360px}.c-icon-stop-circle-middle:hover{background-position:-144px -360px}.c-icon-play-black-large{background-position:0 -408px}.c-icon-play-black-large:hover{background-position:-48px -408px}.c-icon-stop-black-large{background-position:-96px -408px}.c-icon-stop-black-large:hover{background-position:-144px -408px}.c-text{display:inline-block;padding:2px;text-align:center;vertical-align:text-bottom;font-size:12px;line-height:100%;font-style:normal;color:#fff;overflow:hidden}a.c-text{text-decoration:none}.c-text-new{background-color:#f13f40}.c-text-info{padding-left:0;padding-right:0;font-weight:bold;color:#2b99ff;*vertical-align:baseline;_position:relative;_top:2px}.c-text-info b{_position:relative;_top:-1px}.c-text-info span{padding:0 2px;font-weight:normal}.c-text-important{background-color:#1cb7fd}.c-text-public{background-color:#2b99ff}.c-text-warning{background-color:#ff830f}.c-text-prompt{background-color:#f5c537}.c-text-danger{background-color:#f13f40}.c-text-safe{background-color:#52c277}.c-text-empty{padding-top:1px;padding-bottom:1px;border:1px solid #d8d8d8;cursor:pointer;color:#23b9fd;background-color:#fff}.c-text-empty:hover{border-color:#388bff}.c-text-empty:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-text-mult{padding-left:5px;padding-right:5px}<\/style>";result_aladdin_css=$(result_aladdin_css);result_aladdin_css.attr("data-for","result");var result_sug_css="<style>.bdsug{position:absolute;width:536px;background:#fff;display:none;border:1px solid #817f82}.bdsug li{width:520px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#ebebeb}#form .bdsug{top:31px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug-store span,.bdsug-store b{color:#7a77c8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(http:\/\/www.baidu.com\/img\/sug_bd.png) no-repeat left center;margin:6px 0 4px 0;font-size:12px;font-weight:normal;color:#7b7b7b;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:bold;padding-left:20px}<\/style>";result_sug_css=$(result_sug_css);result_sug_css.attr("data-for","sug");var index_content = $('#content');var index_foot= $('#ftCon');var index_css= $('head [index]');var index_u= $('#u1');var result_u= $('#u');var wrapper=$("#wrapper");window.index_on=function(){index_css.insertAfter("meta:eq(0)");result_common_css.remove();result_aladdin_css.remove();result_sug_css.remove();index_content.show();index_foot.show();index_u.show();result_u.hide();wrapper.show();if(bds.su&&bds.su.U&&bds.su.U.homeInit){bds.su.U.homeInit();}setTimeout(function(){try{$('#kw1').get(0).focus();window.sugIndex.start();}catch(e){}},0);if(typeof initIndex=='function'){initIndex();}};window.index_off=function(){index_css.remove();index_content.hide();index_foot.hide();index_u.hide();result_u.show();result_aladdin_css.insertAfter("meta:eq(0)");result_common_css.insertAfter("meta:eq(0)");result_sug_css.insertAfter("meta:eq(0)");wrapper.show();};})();</script><script>window.__switch_add_mask=1;</script><script type="text/javascript" src="http://s1.bdstatic.com/r/www/cache/static/global/js/all_async_preload_input_ff0ccb9c.js"></script><script>initPreload();$("#u,#u1").delegate("#lb",'click',function(){try{bds.se.login.open();}catch(e){}});if(navigator.cookieEnabled){document.cookie="NOJS=;expires=Sat, 01 Jan 2000 00:00:00 GMT";}</script><script>(function(){var _init=false;window.initIndex=function(){if(_init){return;}_init=true;var w=window,d=document,n=navigator,k=d.f1.wd,a=d.getElementById("nv").getElementsByTagName("a"),isIE=n.userAgent.indexOf("MSIE")!=-1&&!window.opera;(function(){if(/q=([^&]+)/.test(location.search)){k.value=decodeURIComponent(RegExp["\x241"])}})();(function(){var u = G("u1").getElementsByTagName("a"), nv = G("nv").getElementsByTagName("a"), lk = G("lk").getElementsByTagName("a"), un = "";var tj_nv = ["news","tieba","zhidao","mp3","img","video","map"];var tj_lk = ["baike","wenku","hao123","more"];un = bds.comm.user == "" ? "" : bds.comm.user;function _addTJ(obj){addEV(obj, "mousedown", function(e){var e = e || window.event;var target = e.target || e.srcElement;if(target.name){ns_c({'fm':'behs','tab':target.name,'un':encodeURIComponent(un)});}});}for(var i = 0; i < u.length; i++){_addTJ(u[i]);}for(var i = 0; i < nv.length; i++){nv[i].name = 'tj_' + tj_nv[i];}for(var i = 0; i < lk.length; i++){lk[i].name = 'tj_' + tj_lk[i];}})();(function() {var links = {'tj_news': ['word', 'http://news.baidu.com/ns?tn=news&cl=2&rn=20&ct=1&ie=utf-8'],'tj_tieba': ['kw', 'http://tieba.baidu.com/f?ie=utf-8'],'tj_zhidao': ['word', 'http://zhidao.baidu.com/search?pn=0&rn=10&lm=0'],'tj_mp3': ['key', 'http://music.baidu.com/search?fr=ps&ie=utf-8'],'tj_img': ['word', 'http://image.baidu.com/i?ct=201326592&cl=2&nc=1&lm=-1&st=-1&tn=baiduimage&istype=2&fm=&pv=&z=0&ie=utf-8'],'tj_video': ['word', 'http://video.baidu.com/v?ct=301989888&s=25&ie=utf-8'],'tj_map': ['wd', 'http://map.baidu.com/?newmap=1&ie=utf-8&s=s'],'tj_baike': ['word', 'http://baike.baidu.com/search/word?pic=1&sug=1&enc=utf8'],'tj_wenku': ['word', 'http://wenku.baidu.com/search?ie=utf-8']};var domArr = [G('nv'), G('lk'),G('cp')],kw = G('kw1');for (var i = 0, l = domArr.length; i < l; i++) {domArr[i].onmousedown = function(e) {e = e || window.event;var target = e.target || e.srcElement,name = target.getAttribute('name'),items = links[name],reg = new RegExp('^\\s+|\\s+\x24'),key = kw.value.replace(reg, '');if (items) {if (key.length > 0) {var wd = items[0], url = items[1],url = url + ( name === 'tj_map' ? encodeURIComponent('&' + wd + '=' + key) : ( ( url.indexOf('?') > 0 ? '&' : '?' ) + wd + '=' + encodeURIComponent(key) ) );target.href = url;} else {target.href = target.href.match(new RegExp('^http:\/\/.+\.baidu\.com'))[0];}}name && ns_c({'fm': 'behs','tab': name,'query': encodeURIComponent(key),'un': encodeURIComponent(bds.comm.user || '') });};}})();};if(window.pageState==0){initIndex();}})();</script>
-</body></html>
diff --git a/PressRelease/Import/Search/bing.html b/PressRelease/Import/Search/bing.html
deleted file mode 100644 (file)
index becf463..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-
-<!DOCTYPE html><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/Web/"><head><meta content="text/html; charset=utf-8" http-equiv="content-type" /><script type="text/javascript">//<![CDATA[
-si_ST=new Date
-//]]></script><script type="text/javascript">//<![CDATA[
-window.onerror||(window.onerror=function(n,t,i){var r="";r=typeof n=="object"&&n.srcElement&&n.srcElement.src?"\"ScriptSrc = '"+escape(n.srcElement.src.replace(/'/g,""))+"'\"":'"'+escape(n.replace(/"/g,""))+'","Meta":"'+escape(t)+'","Line":'+i,(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"CI.Error","FID":"CI","Name":"JSError","Text":'+r+"}]",typeof sj_evt!="undefined"&&sj_evt.fire("ErrorInstrumentation",r)});_G={ST:(si_ST?si_ST:new Date),Mkt:"en-WW",RTL:false,Ver:"9_00_0_2850997",IG:"b5e24a63da394cb6949e4a9fe9f5415f",EventID:"36cf1b20e1d84c5188860bba0a0e50d2",V:"web",P:"SERP",DA:"HKBv2",SUIH:"iItKk01pBvs02lMNGiN5PA",gpUrl:"\/fd\/ls\/GLinkPing.aspx?"};_G.lsUrl="/fd/ls/l?IG="+_G.IG;curUrl="http:\/\/www.bing.com\/search";function si_T(a){if(document.images){_G.GPImg=new Image;_G.GPImg.src=_G.gpUrl+'IG='+_G.IG+'&'+a;}return true;};
-//]]></script><style type="text/css">a{}</style><title>sony - Bing</title><link href="/search?format=rss&amp;q=sony&amp;go=&amp;qs=n&amp;form=QBLH&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=" rel="alternate" title="XML" type="text/xml"/><link href="/search?format=rss&amp;q=sony&amp;go=&amp;qs=n&amp;form=QBLH&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=" rel="alternate" title="RSS" type="application/rss+xml"/><link href="/s/a/bing_p.ico" rel="icon"/><style type="text/css">img,.cbtn,.sb_meta li,.exp_trwr .sc_rc1,.topBar .bg,.vidr cite.nowrap{vertical-align:bottom}img.img_fav,img.twss,img.twsi,img.sa_iconR{vertical-align:baseline}img.img_msn_icon,td.msn_btn_icon img{vertical-align:text-top}#sb_foot{margin-top:-3px}div.sb_adsWv2 h2.sb_title{display:block}html,body,h1,h3,h4,h5,h6,p,img,ol,ul,li,form,table,tr,th,td{border:0;border-collapse:collapse;border-spacing:0;list-style:none;margin:0;padding:0}input,textarea{font:inherit;font-size:100%}body{min-width:987px}body,.sb_text,.sb_h3{color:#000;font:small/normal Arial,Helvetica,Sans-Serif}a,.sb_link,a.sb_link,.sb_link a,.sb_h3 a{color:#04c;text-decoration:none}a:visited,a.sb_link:visited,.sb_link a:visited,.sb_h3 a:visited{color:#639}a:hover,a.sb_link:hover,.sb_link a:hover,h3 a,.sb_h3 a{text-decoration:underline}h1,h2,h3,h4,h5,h6{font-size:small;font-weight:200}h1{font-size:93%}h2,h3,.sb_h3{font-size:125%}h1,h1 a,h1 a:visited,h2,h2 a,h2 a:visited{color:#000}h2{margin:0 0 .62em}cite,.sb_cite{color:#388222;font-style:normal;word-wrap:break-word}strong{font-weight:700}.sb_title{font-size:91%;margin:0 0 .36em;text-transform:uppercase}.sb_count,.sb_meta,.sb_title,.sb_title a{color:#777}.sb_meta a,.sb_meta a:visited,a.sb_meta,a.sb_meta:visited{color:#36b}.sb_alert{color:#d90026}.sb_alert a{font-style:italic}#sw_hdr,#sw_content,#sw_main,#sw_foot{width:100%;float:left}#sw_content{position:static;z-index:3;min-height:344px}#sw_canvas{padding:0 0 0 15px;clear:both}#sw_main{_display:inline;margin:0 0 0 -15px;padding:0 0 1.54em 15px}.sb_results p,.sb_results .sb_meta{margin:0;line-height:1.2em;word-wrap:break-word}.sp_pss li{display:inline}.sb_pag{width:100%;float:left}.sb_pag li{float:left}.sb_pag h4{display:none}.sb_pag a,.sb_pag span{display:block;padding:.3em .7em;margin:0 .38em 0 0;text-align:center}a.sb_pagP,a.sb_pagN,span.sb_pagSp{padding:.38em .5em}.sb_pag a:hover,a.sb_pagS{text-decoration:none;background:#ededed}a.sb_pagS{color:#000}a.sb_pagP{margin-right:.7em;padding-left:0}a:hover.sb_pagP,a:hover.sb_pagN{text-decoration:underline;background-color:transparent}a.sb_pagP:visited,a.sb_pagN:visited{color:inherit}#sw_aside{width:185px;float:left;margin:0 0 0 -195px;overflow:hidden;word-wrap:break-word}.sw_menu{padding:0 20px}#sw_main .sw_menu{padding:0}.sw_menu form{margin:0;width:100%}.sw_menu ul{padding:0 0 1.52em;margin:0;list-style:none}.sw_menu ul ul{padding:0}.sw_menu li{padding:0 0 .3em}#sb_foot{font-size:83.9%;clear:both;float:left;width:550px;border-top:solid 1px #ccc;margin-left:110px;line-height:23px;_display:inline;_zoom:1}#sw_footL,#sw_footL a,#sw_foot3,#sw_foot3 a{color:#777;clear:both;margin:7px 0 43px 10px}#sw_foot3{margin-top:-43px}#sb_foot ul{display:block}#sb_foot li{display:inline}#sb_foot a,#sb_foot span{margin:.4em}a#sb_feedback{color:#04c}#sw_ctfm{margin:15px 0 0 10px;float:left}.sw_sb,.sw_qbtn,.sw_pifa,.sw_pipp,.sw_pippa,.sw_pil,.sw_pit,.sw_conv,.sw_conva,.sw_poi,.sw_poia{height:20px;width:20px}.sw_pref,.sw_play,.sw_playh,.sw_playa,.sw_playd,.sw_playp,.sw_spp,.sw_spr{height:16px;width:16px}.sw_sb,.sw_qbtn{background:-76px 0}.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn{background:-404px -22px;height:5px;width:8px;_font-size:0}.sw_ddbk{background:-412px -22px}.sw_ddw{background:-420px -22px}.sw_ddgy{background:-428px -22px}.sw_ddgn{background:-436px -22px}.sw_meIc{background:-108px 0;height:12px;width:10px}#spcv .sw_meIc{background-position:-97px 0}.sw_pref{background:-119px 0}.sw_calc{background:-389px 0;height:19px;width:19px}.sw_pifa{background:-137px 0}.sw_pifa.hover{background-position:-158px 0}.sw_pipp{background:-179px 0}.sw_pipp.hover{background-position:-200px 0}.sw_pippa{background:-221px 0}.sw_pil{background:-242px 0}.sw_pil.hover{background-position:-263px 0}.sw_pit{background:-284px 0}.sw_pit.hover{background-position:-305px 0}.sw_conv{background:-326px 0}.sw_conv:hover{background-position:-347px 0}.sw_conva{background:-368px 0}.sw_poi{background:-409px 0}.sw_poia{background:-430px 0}.sw_play{background:-451px 0}.sw_playh{background:-468px 0}.sw_playa{background:-485px 0}.sw_playd{background:-660px 0}.sw_playp{background:-677px 0}.sw_plus{background:-387px -20px;height:8px;width:8px}.sw_minus{background:-396px -21px;height:2px;width:8px}.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2{background:-502px 0;height:12px;width:12px}.sw_st2{background:-530px 0}.sw_sth{background:-544px 0}.sw_sth2{background:-558px 0}.sw_ste{background:-516px 0}.sw_tpo,.sw_tpoh,.sw_tpoa{background:-502px -13px;height:12px;width:8px}.sw_tpoh{background:-511px -13px}.sw_tpoa{background:-520px -13px}.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sw_tpcbk{background:-97px -17px;height:9px;width:9px}.sw_tpcbl{background:-107px -17px}.sw_tpcw{background:-117px -17px}.sw_tpcbk{background:-127px -17px}.sw_arw,.sw_arwh{background:-470px -17px;height:11px;width:14px}.sw_arwh{background:-485px -17px}.sw_beak{background:-451px -17px;height:11px;width:18px}.sw_tbcsp:hover{background-position:-126px -17px}.sw_spo,.sw_spc{background:-572px 0;height:28px;width:28px}.sw_spd{background:-601px 0;height:24px;width:24px}.sw_spp{background:-626px 0}.sw_spr{background:-643px 0}.sw_sb,.sw_qbtn,.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn,.sw_meIc,.sw_pref,.sw_logo,.sw_calc,.sw_pifa,.sw_pipp,.sw_pippa,.sw_pil,.sw_pit,.sw_conv,.sw_conva,.sw_poi,.sw_poia,.sw_play,.sw_playh,.sw_playa,.sw_playd,.sw_playp,.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2,.sw_plus,.sw_minus,.sw_tpo,.sw_tpoh,.sw_tpoa,.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sw_tpcbk,.sw_arw,.sw_arwh,.sw_beak,.sw_spo,.sw_spc,.sw_spd,.sw_spp,.sw_spr{background-image:url(/fd/s/a/sw17.png);background-repeat:no-repeat}.sw_logo{height:26px;width:75px;background-color:transparent}.idh{padding:0;margin:0;z-index:951}.idd{display:none;z-index:950;position:absolute;width:230px;right:5px}.img_uparrow{margin-left:16px;z-index:952;display:none}#id_t{white-space:nowrap;max-width:150px;overflow:visible}#id_la{cursor:pointer}.idh a:hover{text-decoration:none}.idh .lt{cursor:pointer;height:34px}.pic{vertical-align:middle;margin-left:10px}.pic.si{height:28px;width:28px}.idh .lt #id_t{display:block}.idh .lt #id_s,#id_n{padding-left:8px}.idh .lt #id_r{width:74px;height:13px;position:relative}.idh .lt #id_rc{line-height:13px;position:absolute;top:1px;left:21px}.idh .pref{position:absolute;right:15px;top:48px;cursor:pointer}.img_downarrow{margin-left:4px;vertical-align:middle;display:inline-block}div#sw_canvas{padding-left:120px}.sw_a{position:absolute;top:17px;left:122px;font-weight:700;font-size:84%;z-index:1001;text-transform:uppercase;white-space:nowrap}.sw_a li{display:inline;margin:0 1.8em 0 0;zoom:1}.sw_a a{color:#777;font-weight:700}.sw_aa a{color:#000}.sw_a2{margin:10px 0 20px 110px;padding:0;font-weight:700;font-size:85%;z-index:1001;text-transform:uppercase}.sw_a2 li{display:inline;padding:8px 10px;background:#f5f5f5}.sw_a2 a{color:#777}.sw_a2 .sw_aa{background:#e5e5e5}.sw_a3 .sw_aa{background:#fff}.sw_a3 li{background:#fff;text-transform:none;font-weight:200;font-size:115%}.sw_hdr_img,#sw_im{background:#d9d7cf no-repeat}#sw_page #sw_hdr{min-height:0;_height:auto}html{overflow-y:scroll}.sw_spc{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg)}.nosp.idh{position:absolute;width:240px;height:78px;top:5px;display:none;background-color:#fff}.nosp.idd{top:85px}.nosp.idh .lt{margin-top:38px;margin-right:50px;_margin-right:24px;float:right}.nosp.idh span{color:#727272}.nosp.idh .lt .pic{border:1px solid #f2f2f2}.nosp .img_rwds_sml{position:absolute;top:1px;left:8px}#id_lt{height:34px}.nosp .img_uparrow{top:71px;position:absolute}.nosp.idh .pref:hover{background:url('/fd/s/a/identity6.png') no-repeat scroll -93px -1px transparent}#sw_tfbb{height:0}.sw_sb,.sw_qbtn,.sw_pifa,.sw_pipp,.sw_pippa,.sw_pil,.sw_pit,.sw_conv,.sw_conva,.sw_poi,.sw_poia{height:20px;width:20px}.sw_pref,.sw_play,.sw_playh,.sw_playa,.sw_playd,.sw_spp,.sw_spr{height:16px;width:16px}.sw_sb,.sw_qbtn{background:-76px 0}.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn{background:-404px -22px;height:5px;width:8px;_font-size:0}.sw_ddbk{background:-412px -22px}.sw_ddw{background:-420px -22px}.sw_ddgy{background:-428px -22px}.sw_ddgn{background:-436px -22px}.sw_meIc{background:-108px 0;height:12px;width:10px}#spcv .sw_meIc{background-position:-97px 0}.sw_pref{background:-119px 0}.sw_calc{background:-389px 0;height:19px;width:19px}.sw_pifa{background:-137px 0}.sw_pifa.hover{background-position:-158px 0}.sw_pipp{background:-179px 0}.sw_pipp.hover{background-position:-200px 0}.sw_pippa{background:-221px 0}.sw_pil{background:-242px 0}.sw_pil.hover{background-position:-263px 0}.sw_pit{background:-284px 0}.sw_pit.hover{background-position:-305px 0}.sw_conv{background:-326px 0}.sw_conv:hover{background-position:-347px 0}.sw_conva{background:-368px 0}.sw_poi{background:-409px 0}.sw_poia{background:-430px 0}.sw_play{background:-451px 0}.sw_playh{background:-468px 0}.sw_playa{background:-485px 0}.sw_playd{background:-660px 0}.sw_plus{background:-387px -20px;height:8px;width:8px}.sw_minus{background:-396px -21px;height:2px;width:8px}.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2{background:-502px 0;height:12px;width:12px}.sw_st2{background:-530px 0}.sw_sth{background:-544px 0}.sw_sth2{background:-558px 0}.sw_ste{background:-516px 0}.sw_tpo,.sw_tpoh,.sw_tpoa{background:-502px -13px;height:12px;width:8px}.sw_tpoh{background:-511px -13px}.sw_tpoa{background:-520px -13px}.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sw_tpcbk{background:-97px -17px;height:9px;width:9px}.sw_tpcbl{background:-107px -17px}.sw_tpcw{background:-117px -17px}.sw_tpcbk{background:-127px -17px}.sw_arw,.sw_arwh{background:-470px -17px;height:11px;width:14px}.sw_arwh{background:-485px -17px}.sw_beak{background:-451px -17px;height:11px;width:18px}.sw_tbcsp:hover{background-position:-126px -17px}.sw_spo,.sw_spc{background:-572px 0;height:28px;width:28px}.sw_spd{background:-601px 0;height:24px;width:24px}.sw_spp{background:-626px 0}.sw_spr{background:-643px 0}.sw_sb,.sw_qbtn,.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn,.sw_meIc,.sw_pref,.sw_logo,.sw_calc,.sw_pifa,.sw_pipp,.sw_pippa,.sw_pil,.sw_pit,.sw_conv,.sw_conva,.sw_poi,.sw_poia,.sw_play,.sw_playh,.sw_playa,.sw_playd,.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2,.sw_plus,.sw_minus,.sw_tpo,.sw_tpoh,.sw_tpoa,.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sw_tpcbk,.sw_arw,.sw_arwh,.sw_beak,.sw_spo,.sw_spc,.sw_spd,.sw_spp,.sw_spr{background-image:url(/sa/simg/sw_21_lg.png);background-repeat:no-repeat}.sw_logo{height:29px;width:73px;background-color:transparent;text-indent:-9999px}#sw_hdr .sw_box{padding:36px 0 0}#sw_hdr{min-height:100px;_height:100px;padding:0 0 4px 0;background:#fff}.sw_logo{_display:inline;margin:1px 10px 0 27px;float:left}.sw_logoT{color:#000;font-size:17px;line-height:normal;position:absolute;z-index:-1}#sw_hdr .sw_box{position:relative;z-index:901;float:left}.sw_hdr_img,#sw_im{height:5px;font-size:0;cursor:pointer}.sw_bd{position:relative;float:left;font-size:medium;border:1px #999 solid}.sw_b{float:none;padding:.19em .1em 1.06em .03em;height:13px}.sw_b input{float:left;border:0;-webkit-appearance:none;outline:none;font-family:"Segoe UI",Arial,Helvetica,Sans-Serif}.sw_qbox{margin:0 0 -.88em;padding:.19em .15em .25em .56em;height:22px;line-height:1.25em;width:480px}.sw_b .sw_sb,.sw_b .sw_qbtn{cursor:pointer;padding:0;margin:4px 6px -14px 8px;overflow:hidden;font-size:0}.sw_dvdr{background:#ccc;height:21px;margin:3px 0 -15px 12px;float:left;width:1px}#content .cttl{color:#404040!important}#content,#content a.sb_pagS,#sidebar DIV.sw_menu,#sidebar .ans,div.wpc_module h2,div.wpc_module .sb_h3,div.wpc_module .cbl,#content a.exp_trgr{color:#404040}#content .sb_adW a,#content .sb_adN a{color:#1020b0}#content .sb_adW a:visited,#content .sb_adN a:visited{color:#6010d0}#sidebar DIV.sw_menu a,div.wpc_module a,#content a,a#sb_feedback{color:#1020d0}#sidebar DIV.sw_menu a:visited,div.wpc_module a:visited,#content a:visited{color:#600090}#content cite,#content .sb_cite,#content .sb_meta CITE A{color:#009030}#content .sp_pss,#content .cllc p,#content .nc_os,#content .news_dt,#content .time,#content .sb_adW .sc_rtg,#sidebar .sb_add .sc_rtg,#sidebar .sb_meta,#sidebar .rrrs_ttl,#content a.exp_trgr{color:#606060}#content .sb_adW cite{color:#008030}#content .sb_adW p{color:#303030}#content .wpc_module h2,#content .wpc_module .sb_h3,#content .wpc_module .cbl{color:#000}#content{padding:8px 0 0;margin:0 0 0 -15px;display:inline-block}#results_area{float:left;width:550px}#sw_main{padding-bottom:0}#results_container{padding:0 15px 0 15px}#sidebar{float:left;padding:0 15px 0 26px;word-wrap:break-word}#results:after{clear:both;content:'.';display:block;height:0;visibility:hidden}.sb_ph{margin:20px 0 .93em;padding-bottom:10px;font-size:91%}.sb_ph .sb_count{float:left;text-transform:uppercase;color:#000;padding-right:25px}.sb_ph a{color:#737373;text-decoration:underline;*vertical-align:top}.sb_ph .ftrH{*vertical-align:baseline}#results_area .sb_pag{padding:1.33em 0 0;margin:0 0 40px 0}.sb_results li.sa_wr{padding:0 0 10px}.sa_mc{padding:0 0 10px}.sb_tlst,.sa_mc .sb_meta{word-wrap:break-word;padding:0 0 2px}div.wr_cm2 .sb_meta{padding:0}.sb_meta a,.sb_meta a:visited{color:#36b}.sp_pss{color:#777;line-height:1.2em}.sb_tlst H3,.sb_tlst div{display:inline}#results_removed{margin:0 0 24px}.sb_ans,.sa_wr{_margin-right:-3px;float:left;width:100%}#results{zoom:1}.sf,.sf_wa1{float:left}.sf_wa1{width:9.23em}.sf{width:100%}.sc_m4,.sc_m12{margin:0;clear:both}.sc_m4{margin:.2em .77em 0 0}.sc_m7{margin-top:.3em}.sc_m12{_height:2.4em;max-height:2.5em;*max-height:2.4em;margin-top:.3em}.sc_st div.sc_m4{overflow:hidden;height:1.35em}.sc_st div.sc_m12{overflow:hidden;text-overflow:ellipsis}.sc_f2{line-height:1.33em}.nowrap{white-space:nowrap;display:inline-block}.sn_att,.sn_pn{width:100%;float:left;margin-top:.77em}.sn_att2{width:100%;float:left;margin-top:2px}.sn_att,.sn_gr,sn_pn{clear:both;margin:0}.sn_att a:visited,.sn_att2 a:visited{color:#639}sn_cl{width:100%;float:left}.sn_rc,.sn_lc{width:250px;float:left;word-wrap:break-word}.sn_lc{padding-right:10px}.sn_mm{float:left;margin:0 .77em 0 0}.sn_rct{display:table;line-height:1.33em;zoom:1}.sn_gr{margin-top:.5em}.sc_m4:after,.ans2:after,.sn_gr:after{content:".";display:block;clear:both;height:0;visibility:hidden}.ans2 .sc_hl1 li,.ans3 .sc_hl1 li,.ans2 ul.sc_gpl1 ul.sc_hl1,.ansC h3{display:inline}.ans3 .sc_rc1 img{vertical-align:-1px}.ans2 ul.sc_gpl1{margin-bottom:4px}.ans2 ul.sc_gpl1 h3{_clear:both;_display:inline;a:0}.ans3{max-width:585px;_zoom:1}.ans p,.ans ul{margin:0;padding:0}.ans ul{list-style-type:none}.ans .time,.ans h2{color:#525051}.ans h5{display:inline;margin:0 .5em 0 0}.ans h5{font-weight:400;font-size:100%}.ans2 h2 div span span{white-space:nowrap}#results .ans h2{float:none;width:auto;margin:0 0 .62em}.ans h3{font-weight:bold;color:#000}.ans h3 a{font-weight:normal}.ans h4.sc_ih1{float:left;margin:0 .5em 0 0;font-weight:400}.ans2 h2 div span span a{text-decoration:none}.ans2 h2 div span span a:hover,.ans h2 a{text-decoration:underline}.ans2 h2 span{color:#000}h2 div span a:visited,.ansC h2 a:visited{color:#639}h2 span{font-size:small;margin-left:.47em}.ansC{clear:left}.ans{margin-bottom:20px;*display:inline-block;a:0}.sb_results .sa_wr .ansC .ans{margin-bottom:0}.ans ul.sc_bl2 li:first-child{margin-bottom:.3em}.ansA .ans{background-image:none}.ansA .ans h3{color:#549c00;font-size:150%;font-weight:200}.sb_results .ansC .ans{_left:0}.ttl{display:none}.ansC ul,#results .ansC ul{margin:0}.ans h2 a{color:#04c}.c_tlbxTrg{height:14px;width:15px;display:inline-block;margin:-1px 6px -3px 2px;font-size:0}.c_tlbxH{display:none}.cchi{padding-top:3px}.crch{padding-top:5px}.cfct,.csec{color:#737373}.cttl{color:#000!important;margin:0!important;padding:0 0 2px}p.catr{clear:left;width:100%;padding:1px 0 2px 0}.catr cite{*float:left}.cchi{clear:left}.ansC{clear:left}.ans{margin-bottom:20px;*display:inline-block;a:0}.ans2:after{content:".";display:block;clear:both;height:0;visibility:hidden}.ans h2 a{color:#04c;text-decoration:underline}.ans h2 a:visited{color:#639}.ans h2{color:#525051}</style><style type="text/css">.sw_hdr_img,#sw_im{background:#c08078 no-repeat}</style><script type="text/javascript">//<![CDATA[
-var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(){if(arguments.length==0){if(!f){for(var n in t)u(n);f=!0}return i}if(arguments.length==1)return u(arguments[0])}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw error("invalid usage");else if(f.length>2)for(s=f.slice(2,f.length),e=0;e<s.length;e++)c.push(u(s[e]));return l.apply(this,c),i[n]=o,o}}var t={},i={},f=!1;n.define=e,n.require=r})(amd||(amd={})),define=amd.define,require=amd.require;var _w=window,_d=document,sb_ie=window.ActiveXObject!==undefined,sb_i6=sb_ie&&!_w.XMLHttpRequest,_ge=function(n){return _d.getElementById(n)},sb_st=function(n,t){return setTimeout(n,t)},sb_ct=function(n){clearTimeout(n)},sb_gt=function(){return+new Date},sj_gx=function(){return sb_i6?new ActiveXObject("MSXML2.XMLHTTP"):new XMLHttpRequest};_w.sj_ce=function(n){return _d.createElement(n)},_w.sk_merge||(_w.sk_merge=function(n){_d.cookie=n});define("fallback",["require","exports"],function(n,t){function f(){return function(){for(var t=[],i,n=0;n<arguments.length-0;n++)t[n]=arguments[n+0];i=e(arguments.callee),t[0]==="onPP"&&o(),i.push(t)}}function e(n){for(var t in i)if(i[t].h===n)return i[t].q}function u(n,t){for(var e=n.split("."),i=_w,u,r=0;r<e.length;r++)u=e[r],typeof i[u]=="undefined"&&t&&(i[u]=r===e.length-1?f():{}),i=i[u];return i}function o(){var e=i["rms.js"].q,o,f,t,n,r,u;if(e.length>0)for(o=!1,f=0;f<e.length;f++){for(t=e[f],n=0;n<t.length;n++)if(r=t[n]["A:Shared.Bundle"],r||(r=t[n]["A:rmsBu0"]),r){u=_d.createElement("script"),u.setAttribute("data-rms","1"),u.src=r,u.type="text/javascript",setTimeout(function(){_d.body.appendChild(u)},0),t.splice(n,1),o=!0;break}if(o)break}}function s(){for(var t,f,n=0;n<r.length;n++)t=r[n],f=u(t,!0),i[t]={h:f,q:[]}}function h(){for(var t,n=0;n<r.length;n++){var f=r[n],e=i[f].q,o=u(f);for(t=0;t<e.length;t++)o.apply(null,e[t])}}function c(n,t,i,r){(n===_w||n===_d||n===_d.body)&&t=="load"?_w.sj_evt.bind("onP1",i,!0):n.addEventListener?n.addEventListener(t,i,r):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i}var r=["rms.js","sj_evt.bind","sj_evt.fire","sj_jb","sj_wf","sj_cook.get","sj_cook.set","sj_pd","sj_sp","sj_be","sj_go","sj_ue","sj_evt.unbind","sj_et","Log.Log"],i={};t.replay=h,s(),_w.sj_be=c});function lb(){_w.si_sendCReq&&sb_st(_w.si_sendCReq,800),_w.lbc&&_w.lbc()};var si_PP=function(n,t){var i,u,f,e,o,h,c,r,l,s;if(!_G.PPS){for(u=["FC","BC","H","BP",null];i=u.shift();)u.push('"'+i+'":'+(_G[i+"T"]?_G[i+"T"]-_G.ST:-1));if(f=_w.performance&&_w.performance.timing,e=null,f&&(o=["unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd","msFirstPaint","responseEnd",""],h=f.navigationStart,h>=0)){for(l=s=c=0;i=o.shift();c++)r=f[i],r>0&&(l|=1<<c,r-=h,o.push(r===s?"":(r-s).toString(16)),s=r);e=',"w3c":"'+l.toString(16)+","+o.join()+'"'}_G.PPImg=new Image,_G.PPImg.src=_G.lsUrl+'&Type=Event.CPT&DATA={"pp":{"S":"'+(t||"L")+'",'+u.join(",")+',"CT":'+(n-_G.ST)+',"IL":'+_d.images.length+"}"+(_G.C1?","+_G.C1:"")+(e!==null?e:"")+"}"+(_G.P?"&P="+_G.P:"")+(_G.DA?"&DA="+_G.DA:"")+(_G.MN?"&MN="+_G.MN:""),_G.PPS=1,sb_st(function(){sj_evt.fire("onPP")},1)}};_w.onbeforeunload=function(){si_PP(new Date,"A")};function si_ct(n,t){var i="getAttribute",r,u,f;try{for(;n!==document.body;n=n.parentNode){if(r=n.tagName=="A"&&n[i]("h")||n[i]("_ct"),r){u=n[i]("_ctf")||"si_T",_w[u]&&_w[u]("&"+r);break}if(t)break}}catch(e){}return!0}(function(){sj_be(document,"mousedown",function(n){si_ct(sb_ie?event.srcElement:n.target)},!1)})();var wlc_d = 1500,wlc_t = 63536346022;;(function(n){var i,r,t;if(document.querySelector){i=[],r="ad";function u(){var c=sb_gt(),u=document.documentElement,r=document.body,f=-1,e=-1,o=u.clientHeight,s=["#b_results .b_ad",".sb_adsWv2",".ads"],t,h,n;if(r){for(t=0;t<s.length;t++)if(h=s[t],n=document.querySelector(h),n&&n.offsetTop<o){f=n.offsetHeight,e=n.offsetTop;break}i=[e,f,u.clientWidth,o,r.offsetWidth,r.offsetHeight,sb_gt()-c]}}n?(t=n.onbeforefire,n.onbeforefire=function(){t&&t(),u(),n.mark(r,i)}):(t=si_PP,si_PP=function(){u();var n='"'+r+'":['+i.join()+"]";_G.C1=_G.C1?_G.C1+","+n:n,t.apply(null,[].slice.apply(arguments))})}})(_w.pp);var sj_log=function(n,t,i){var r=new RegExp('"',"g");(new Image).src=_G.lsUrl+'&Type=Event.ClientInst&DATA=[{"T":"'+n+'","FID":"CI","Name":"'+t+'","Text":"'+escape(i.replace(r,""))+'"}]'};_w.AM=["live.com","virtualearth.net","windows.net","onenote.com","hexun.com","dict.bing.com.cn","msn.com","variflight.com","bing.net"];(function(){function f(t,r){var u=t.tagName;return(u==="SCRIPT"&&(n.href=t.src)||u==="OBJECT"&&t.type&&t.type.indexOf("flash")>0&&(n.href=t.data))&&n.href.length>0&&n.hostname.length>0&&n.hostname!==location.hostname&&!e(n.hostname)?(sj_log("CI.AntiMalware",r,u.substr(0,1)+":"+n.href.substr(0,i)),!1):!0}function e(n){for(var i=0;i<t.length;i++)if(n.indexOf(t[i])>=0)return!0;return!1}var t=_w.AM,i=100,n=document.createElement("A"),r,u;document.write=function(n){n.length>0&&sj_log("CI.AntiMalware","DW",n.substr(0,i))},typeof Element!="undefined"&&Element.prototype&&(r=Element.prototype.appendChild,Element.prototype.appendChild=function(n){return f(n,"AC")?r.apply(this,arguments):null},u=Element.prototype.insertBefore,Element.prototype.insertBefore=function(n){return f(n,"IB")?u.apply(this,arguments):null})})();
-//]]></script><!-- FD: C23D331CF56CE992D7E1D171099A6953 --></head><body class=" en en-ww" onload="if(_w.lb)lb();"><script type="text/javascript">//<![CDATA[
-_G.PCT=new Date
-//]]></script><!--FdBodyAsync--><div id="sw_page"><div id="sw_width"><div class="sw_hdr_bg" id="sw_hdr"><div class="idh nosp" id="id_h"><table class="lt" id="id_l" _ct="ID=PJ,1.1"><tr id="id_lt"><td><img id="id_p" class="pic si" style="display:none" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7" title=""/></td><td><a href="javascript:void(0);" id="id_la"><div id="id_t"><span id="id_n" style="display:none"></span><span id="id_s">Sign in</span><span id="id_a" class="img_downarrow sw_ddb sw_ddgy">&nbsp;&nbsp;</span></div></a></td></tr><tr><td colspan="2"><div class="img_uparrow sw_beak" id="id_d_u"></div></td></tr></table><a href="/account/general?ru=http%3a%2f%2fwww.bing.com%2fsearch%3fq%3dsony%26go%3d%26qs%3dn%26form%3dQBLH%26pq%3dsony%26sc%3d0-0%26sp%3d-1%26sk%3d&amp;FORM=SEFD" class="pref sw_pref" title="Preferences" _ct="ID=PJ,2.1"></a></div><div id="sw_tfbb"></div><span class="idd nosp" id="id_d" _iid="PJ.5"></span><a href="/?FORM=HDRHME" title="Explore today’s homepage" h="ID=SERP,5030.1"><div class="sw_hdr_img"><div id="sw_im"></div></div></a><form action="/search" id="sb_form" class="sw_box" ><a href="/?FORM=Z9FD1" class="sw_logo" h="ID=SERP,5028.1"><span class="sw_logoT">Bing</span></a><div class="sw_bd"><div class="sw_b" id="sw_b"><input class="sw_qbox" id="sb_form_q" name="q" title="Enter your search term" type="text" value="sony" onfocus="document.getElementById('sw_b').style.borderColor='#3366bb';" onblur="document.getElementById('sw_b').style.borderColor = '#999';" maxlength="1000"/><div class="sw_dvdr"></div><input id="sb_form_go" class="sw_qbtn" title="Search" tabIndex="0" name="go" type="submit" value=""/></div><input id="sa_qs" name="qs" value="ds" type="hidden"/></div><input type="hidden" value="QBRE" name="form"/></form></div><div id="sw_content"><div></div><script type="text/javascript">//<![CDATA[
-_G.AppVer="8_01_1_2877658";
-//]]></script><!--snr2--><!--wm--><script type="text/javascript">//<![CDATA[
-_G.FCT=new Date
-//]]></script><script type="text/javascript">//<![CDATA[
-_G.BCT=new Date
-//]]></script><style type="text/css">div#sw_canvas{padding-left:120px}#sw_hdr{min-height:0;_height:auto}</style><style type="text/css">#sidebar{width:245px}.sw_a{position:absolute;top:17px;left:122px;font-weight:700;font-size:84%;z-index:1001;text-transform:uppercase;white-space:nowrap}.sw_a li{display:inline;margin:0 1.8em 0 0;zoom:1}.sw_a a{color:#777;font-weight:700}.sw_aa a{color:#000}.sw_a2{margin:10px 0 20px 110px;padding:0;font-weight:700;font-size:85%;z-index:1001;text-transform:uppercase}.sw_a2 li{display:inline;padding:8px 10px;background:#f5f5f5}.sw_a2 a{color:#777}.sw_a2 .sw_aa{background:#e5e5e5}.sw_a3 .sw_aa{background:#fff}.sw_a3 li{background:#fff;text-transform:none;font-weight:200;font-size:115%}.sb_adsWv2{clear:both;padding:0 10px;margin:0 -10px 12px;background-color:#f9fcf7;word-wrap:break-word}.sb_adsNv2{padding:2px 0 19px}.sb_adsNv2 ul,.sb_adsWv2 ul{list-style-type:none;margin:0;padding:0}.sb_adsWv2 ul{padding:0 0 .31em}.sb_adsWv2 li{padding:2px 0 3px}.sb_adsWv2 li+li{padding:11px 0 3px}.sb_add{display:block;width:100%;text-decoration:none}.sb_adN{padding:5px 0 9px}.sb_addp{cursor:pointer}.sb_adsNv2 h2,.sb_adsWv2 h2{text-transform:none}.sb_adsWv2 h2{float:right}.sb_add h3{display:inline}.sb_adsD{color:#737373;margin-left:.5em}.sb_adW cite{margin-left:.5em}.sb_adN cite{word-wrap:normal;padding:1px 0 0}.sb_add p{margin:0;padding:1px 0 0}.sb_adN p{padding:2px 0 0}.sb_adsWv2 .msg{*float:left;width:auto;margin:0}.sb_adL{color:#737373}div.sb_adW cite{margin-left:0;display:block;padding:1px 0 0}.sb_adW p{padding:2px 0 0}span.sb_adsD{margin-right:.5em}div.sb_dul{padding-top:1px}.sb_adW .sb_dul cite{display:inline}div.sb_adsWv2{border-right:2px solid #e5e5e5;padding-right:8px}.saa_lh{padding-top:4px}.wr_cd .sa_cc .sb_meta{font-size:113%}.sb_vdl{width:100%}.sb_vdl ul{width:160px;margin:0 20px 0 0;float:left;white-space:nowrap}.sb_vdl li{padding:0 0 10px}.sb_vdl:after{clear:both;content:'.';display:block;height:0;visibility:hidden}.ans_n2{max-width:520px}.ans_n2 .ans_sub A{color:#36b;font-size:13px}.ans_n2 .ans_bk1{overflow:hidden;_float:left}.ans_n2 .ans_bk1.ind{margin-left:1em}.ans_n2 .ans_bk2{overflow:hidden}.ans_n2 .ans_art A{text-decoration:none;font-size:100%}.ans_n2 .ans_art.und a{text-decoration:underline}.ans_n2 .ans_art .ans_clu A{color:#36b}.ans_n2 .ans_art .ans_fir{margin-bottom:1px;overflow:hidden}.ans_n2 .ans_art A:hover,.ans_n2 .ans_art.und .seealso a:hover,.ans_n2 .ans_art.und .ans_fir a{text-decoration:underline}.seealso{margin-top:2px}.ans_n2 .ans_art span,.ans_n2 .ans_art.und .seealso a{text-decoration:none}.ans_n2 .ans_art .ans_sni{line-height:17px;margin-right:10px;display:block}.ans_n2 .ans_art .cf1{font-size:13px;color:#737373}.ans_n2 .ans_art .cf2{margin:0 5px}.ans_n2 .ans_art .cf3{margin-top:8px}.ans_n2 .ans_art .cf4{margin-left:5px}.ans_n2 .ans_art cite{line-height:17px;margin-right:5px}.ans_n2 .ans_art .time,.ans_n2 .ans_line{color:#777}.ans_n2 .ans_art .time{margin-left:5px}.ans_n2 .ans_line LI{display:inline}.ans_n2 .ans_line A{color:#36b}.ansC .sc_stc{width:100%}.ans_n2 .ans_one,.ans_n2 .ans_no1{margin:2px 0 0;overflow:hidden;_clear:both}.ans ul.sc_bl2 li:first-child{margin-bottom:.3em}.sn_bi{width:100%;float:left;clear:both;margin:.3em 0 0 0}.sn_bi a,.sn_bi a:visited{text-decoration:underline;color:#525051}.sn_ir{float:right;margin-left:10px;width:100px;height:100px}.sn_ir img{padding:1px;border:1px solid #ccc}.ans_n2 SPAN.ans_mi{font-size:90%;margin-right:2px;color:#aaa}.ans_clu.v3{background:url(/s/clust1.png) no-repeat 0 2px;padding-left:16px}.ans_clu.v4{background:url(/s/clust2.png) no-repeat 0 2px;padding-left:16px}.ans_n2 .s_t{background:url(/s/sharingIcons2.png) no-repeat 0 -22px;padding:0 15px 0 16px}.s_t A{color:#36b}.sn_fbl{overflow:hidden;margin:2px 0;*zoom:1}.ans_n2 .ans_mm,.ans_n2 .ans_vio{float:left}.ans_n2 .ans_mm2{margin:4px 10px 0 0;float:left}.ans_n2 H5{margin-right:10px;line-height:17px}.ans_n2 .ans_olm{margin-top:10px}.ans_one .seealso{margin-top:4px;line-height:17px}.t2{margin-bottom:4px}.ans_n2 .ori_img{width:80px;height:80px;text-align:center}.ans_n2 .tpt{text-transform:uppercase;margin:4px 0;font-size:11px}.ans_n2 .imgcrop{background-color:#333}.ans_n2 .ans_mm,.ans_n2 .ans_vio{display:block;margin:2px 10px 0 0}.sn_bd{padding:1px;border:#04c 1px solid}.ans_n2 .ans_vio{padding-top:0;padding-right:0}#sidebar .m_anst{padding:0 0 5px}#sidebar .ans:after{clear:both;content:'.';display:block;height:0;visibility:hidden}</style><style type="text/css">.qscontainer{padding-bottom:10px;display:inline-block}.qscontainer h2{color:#525051;margin:0 0 .19em}.qscolumn{margin-right:30px;float:left}.qscollast{margin-right:0}.qscolumn ul{margin:0;padding:0}.qscolumn li{display:block!important;list-style:none outside;padding:0 0 .3em}li.rs_lnItm{padding-bottom:.17em}.qsrg{margin-top:1.52em}#sidebar .rrrs_ttl{font-size:11px;font-weight:bold;color:#777}#sidebar .rrrs_itm{padding:0 0 4px}#sidebar .sw_menu ul{padding:0}#sidebar .sw_menu h2{margin-bottom:0}</style><div><div id="sw_canvas"><div id="sw_main"><ul class="sw_a"><li class="sw_aa"><a href="/?scope=web&amp;FORM=HDRSC1" h="ID=SERP,5431.1">Web</a></li><li><a href="/images/search?q=sony&amp;FORM=HDRSC2" h="ID=SERP,5425.1">Images</a></li><li><a href="/videos/search?q=sony&amp;FORM=HDRSC3" h="ID=SERP,5426.1">Videos</a></li><li><a href="/news/search?q=sony&amp;FORM=HDRSC4" h="ID=SERP,5427.1">News</a></li><li><a href="/explore?q=sony&amp;FORM=HDRSC5" h="ID=SERP,5428.1">More</a></li></ul><div class="sb_ph" id="tw"><span class="sb_count" id="count">226,000,000 results</span></div><div id="content"><div id="results_area"><div id="results_container"><div class="sb_adsWv2"><ul><li><div class="sb_add sb_adW"><h2 class="sb_title">Ads</h2><h3><a href="http://2908945.r.msn.com/?ld=Dv8nDXV7VwhWgyXqAtXUxOhDVUCUw_UwBN4_nR8ttgX7t04F1lmrIteDyr_9haYD-Q1JLzslhm2A5E6_hqevgxXGFpGqKOgLIcbLwdUb2iTN53ERP6-a88WEdcyubyOzFxy0PSIw&amp;u=www.sony.com.hk%2fproducts%2fcybershot%2fhx60v%2f" h="ID=SERP,5394.1,Ads"><strong>Sony</strong> DSC-HX60V</a></h3><div><div class="sb_dul"><cite><strong>Sony</strong>.com.hk/Cyber-shot</cite></div><p>內置多種相片影片特效及一掃全景功能 ,讓你享受到更有趣的攝影體驗!</p><div class="saa_lh"><a href="http://2908945.r.msn.com/?ld=DvY22cxWIWZtIUzmNjqFft6zVUCUwSF_h5bUEBBDwtx8FwiFCc-C408P6sg8KZekMa1WAhLGfytYJRMnuRTtYOBaFNk48J0qg5BBdJpYgOpOEROz2z8v3ysWov0iCkqTIg4mV-7vtIC-xS8UyktKlozlqfYdY&amp;u=www.sony.com.hk%2fproducts%2fcybershot%2fhx60v%2findex.jsp%3fcid%3dg_1403_p4p_p_cybershot_hx60v_debut" h="ID=SERP,5314.1,Ads">Cyber-shot HX60V 專業技術</a></div></div></div></li><li><div class="sb_add sb_adW"><h3><a href="http://3049147.r.msn.com/?ld=Dv5OtaSS3gOuywnwwBK2Y4MTVUCUw8rO8Aq7XNCWuEY_N1VDcwM3snr2sBvnzZ-FcPVqgGoPLq5huas8Mu8gN0BoW9zfg8Hzzh-vdQAP3cOc2hQmR-VFM-OrvTMWm0gIPnr34KdA&amp;u=https%3a%2f%2fbs.serving-sys.com%2fBurstingPipe%2fadServer.bs%3fcn%3dtf%26c%3d20%26mc%3dclick%26pli%3d9902262%26PluID%3d0%26ord%3d%24%7bREQUESTID%7d" h="ID=SERP,5397.1,Ads"><strong>Sony</strong>Z2@SmarTone</a>/h3><div><div class="sb_dul"><cite>smartone.com/xperiaz2</cite></div><p>嚟SmarTone$0機價出機,仲送你總值超過$600嘅<strong>Sony</strong>配件!</p></div></div></li><li><div class="sb_add sb_adW"><h3><a href="http://2702162.r.msn.com/?ld=DvWSwa2lwpPdAGjKbKPLEC3jVUCUwc1XgODgOefmjda2Iy0N1vzd8D53CmXmYSrgShwQtU_wn-Btt2YiWEphqbEOSoxMkWk5dT2s5jpkEjpA8eZg7pnMHp6qeqWtmLvJTUhSUWlg&amp;u=http%3a%2f%2fclickserve.dartsearch.net%2flink%2fclick%3flid%3d43700004877548822%26ds_s_kwgid%3d58700000300371415%26ds_e_adid%3d4850303019%26ds_url_v%3d2" h="ID=SERP,5399.1,Ads">匯豐信用卡迎新禮遇</a></h3><div><div class="sb_dul"><cite>www.hsbc.com.hk/creditcard</cite></div><p>成功申請匯豐信用卡,高達港幣$2780迎新禮物隨時到手,包括<strong>Sony</strong>型格相機</p></div></div></li><li><div class="sb_add sb_adW"><h3><a href="http://3002506.r.msn.com/?ld=DvhL2ISrJG1JFHYKFJaAkEcDVUCUy974EUJ_69DstLKgOhQi2vnT_qFxUs0o_l0Fh-lyOVeDznUfGbac2n7cTbiLAl7AkZYeWVQIfXg6XzBcq6KDWuYjJKyAZRr-41nFAfUxuotQ&amp;u=http%3a%2f%2fweb03.optimix.asia%2fagclk%3fdistribution%3dsearch%26kwid%3d114211743210%26matchtype%3de%26creative%3d4710637516%26opxseid%3d5655%26opxagid%3d816103992%26opxurl%3dhttp%3a%2f%2fglobal.rakuten.com%2fzh-tw%2fsearch%3fpf%3d%26pt%3d%26f%3d0%26fs%3d0%26vm%3d2%26sm%3d0%26st%3d%26tl%3d100083%26k%3dsony%26sclid%3ds_kwa_rgm_hk%26lsid%3dscfd5c419e4f5a7cbcffd3e14829c7a84c%7cpcrid%7c%7bcreative%7d%7cpkw%7csony%7cpmt%7ce%3fscid%3dwe_ich_xb_cp1944" h="ID=SERP,5401.1,Ads">Rakuten 樂天巿場網購站</a></h3><div><div class="sb_dul"><cite>www.global.rakuten.com</cite></div><p>樂天巿場網,多款DC數碼相機,單鏡數碼相機、專業鏡頭, 100%日本直送!</p></div></div></li></ul></div><!-- snr --><div id="results"><ul id="wg0" class="sb_results"><li class="sa_wr wr_cd"><div class="sa_cc" u="0N|5077|4769425043161938|LdDdpdESBdh44kot6d84zarp55cs24TX"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://www.sony.com/" h="ID=SERP,5102.1"><strong>Sony</strong> USA - Consumer Electronics Products, Movies, Music ...</a></h3></div><div class="sb_meta"><cite><strong>www.sony.com</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5104.1"></span></span></div><p>View the wide world of <strong>Sony</strong>: electronics products, the people, the ideas, the entertainment--and everything else that moves beyond the ordinary. Anything you can ...</p></div><div class="sb_vdl"><ul><li><a href="http://esupport.sony.com/US/perl/select-system.pl?model_type_group_id=10&amp;SR=nav:electronics:computers_tablets:laptops:support_drivers:esup" h="ID=SERP,5086.1">Support &amp; Drivers</a></li><li><a href="http://store.sony.com/" h="ID=SERP,5087.1">Sony Online Store</a></li><li><a href="http://esupport.sony.com/?SR=nav:support:electronics:product_support:esup" h="ID=SERP,5088.1">Product Support</a></li><li><a href="http://servicesales.sel.sony.com/ecom/accessories/web/welcome.jsp" h="ID=SERP,5089.1">Parts &amp; Accessories</a></li></ul><ul><li><a href="http://esupport.sony.com/perl/select-system.pl?DIRECTOR=DRIVER&amp;SR=nav:support:electronics:drivers_software:esup" h="ID=SERP,5090.1">Drivers/Software</a></li><li><a href="http://store.sony.com/alpha-mirrorless-cameras/cat-27-catid-Alpha-Mirrorless-Cameras" h="ID=SERP,5091.1">NEX and DSLR Cameras</a></li><li><a href="http://store.sony.com/vaio-laptops/cat-27-catid-Ultrabook-Convertible-Laptops" h="ID=SERP,5092.1">Vaio Computers</a></li><li><a href="http://esupport.sony.com/US/perl/select-system.pl?DIRECTOR=CONTACT&amp;SR=nav:support:electronics:contact_support:esup" h="ID=SERP,5093.1">Contact Support</a></li></ul></div></div></li><li class="sa_wr"><div class="sa_cc" u="1|5078|4950565265015136|CXGP2pywbSDLQZ57qfOUlHCUzVtdCQ-N"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://store.sony.com/" h="ID=SERP,5125.1">Buy direct from <strong>Sony</strong> Store - Camera, TV, Audio, 4K, PS4 ...</a></h3></div><div class="sb_meta"><cite><strong>store.sony.com</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5127.1"></span></span></div><p>Shop the <strong>Sony</strong> online store and buy cameras, TVs, tablets, PS4, 4K camcorders and more, directly from the manufacturer. <strong>Sony</strong> is the leader in home entertainment.</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="2|5079|5003526520176810|4sUCJscrGnDjVwyTKuJGgVIflhQ8HhT2"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://esupport.sony.com/" h="ID=SERP,5146.1"><strong>Sony</strong> eSupport - Electronics</a></h3></div><div class="sb_meta"><cite><strong>esupport.sony.com</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5148.1"></span></span></div><p>Support Alerts | More News &amp; Alerts . 03/19/14 End of support notification for products using the Windows XP operating system; 11/15/13 <strong>PlayStation</strong> Network Status</p></div></div></li><li class="sb_ans"><div class="ansC"><div class="ans"><div class="ans2 ans_n2"><h2 class="sb_h3 cttl"><a href="/news/search?q=sony&amp;qpvt=sony&amp;FORM=EWRE" h="ID=SERP,5335.1">News about <strong>Sony</strong></a></h2><div class="ns_atr">  <p class="sb_meta catr"><cite>bing.com/news</cite></p></div><div class="ans_bd"><div class="ans_bk1 "><div class="ans_art und"><ul><li class="ans_one "><div class="ans_mm"><a href="http://www.cnet.com/news/why-sony-pulling-out-wont-kill-oled-tv/" Target="" h="ID=SERP,5336.1"><img class="rms_img" height="80" id="emb1" src="/imagenewsfetcher.aspx?q=http%3a%2f%2fcnet3.cbsistatic.com%2fhub%2fi%2fr%2f2009%2f03%2f03%2f02b1381b-f100-11e2-8c7c-d4ae52e62bcc%2fthumbnail%2f670x503%2f605cbc2236f18e02965bd89364d27fdd%2fSony_Line_Show-8.jpg&amp;id=BBAF86BB078739BC288486EE7C3B9F04&amp;sz=80x80" title="Why Sony pulling out wouldn't kill OLED TV - CNet" width="80" /></a></div><div class="ans_bk1"><div class="ans_fir"><h5 style="display:block"><a href="http://www.cnet.com/news/why-sony-pulling-out-wont-kill-oled-tv/" Target="" h="ID=SERP,5341.1">Why <strong>Sony</strong> pulling out wouldn't kill OLED TV</a></h5><span class="nowrap sb_meta"><cite>CNet</cite>&#xB7;<span class="time">9 hours ago&nbsp;&nbsp;&nbsp;</span></span></div><span class="ans_sni"><strong>Sony</strong> is rumored to be stopping its research on OLED display technology to concentrate on 4K TVs, but despite early gains the company hasn't been in the race…</span></div></li><li class="ans_no1"><h5 style="display:block"><a href="http://www.foxbusiness.com/industries/2014/05/21/sony-gets-serious-about-restructuring/" Target="" h="ID=SERP,5345.1"><strong>Sony</strong> Gets Serious About Restructuring</a></h5><span class="nowrap sb_meta"><cite>Fox Business</cite>&#xB7;<span class="time">15 hours ago</span></span></li><li class="ans_no1"><h5 style="display:block"><a href="http://www.orlandosentinel.com/business/sns-rt-us-sony-restructuring-tv-20140522,0,61123.story" Target="" h="ID=SERP,5347.1"><strong>Sony</strong> CEO: Not thinking of selling or quitting TV business</a></h5><span class="nowrap sb_meta"><cite>Orlando Sentinel</cite>&#xB7;<span class="time">5 minutes ago</span></span></li></ul></div></div></div></div></div></div></li><li class="sa_wr"><div class="sa_cc" u="3|5048|4578028437963799|FAeEvOjwF9kh2NcV5DdjMmYRTnvKSqqI"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://en.wikipedia.org/wiki/Sony" h="ID=SERP,5171.1"><strong>Sony</strong> - <strong>Wikipedia</strong>, the free encyclopedia</a></h3></div><div class="sb_meta"><cite><strong>en.wikipedia.org</strong>/wiki/<strong>Sony</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5173.1"></span></span></div><ul class="sp_pss"><li><a href="http://en.wikipedia.org/wiki/Sony#Etymology" h="ID=SERP,5164.1">Etymology</a>&nbsp;&#0183;&#32;</li><li><a href="http://en.wikipedia.org/wiki/Sony#History" h="ID=SERP,5165.1">History</a>&nbsp;&#0183;&#32;</li><li><a href="http://en.wikipedia.org/wiki/Sony#Formats_and_technologies" h="ID=SERP,5166.1">Formats and technologies</a>&nbsp;&#0183;&#32;</li><li><a href="http://en.wikipedia.org/wiki/Sony#Business_units" h="ID=SERP,5167.1">Business units</a></li></ul><p><strong>Sony</strong> Corporation (ソニー株式会社, Sonī Kabushiki Gaisha ?), commonly referred to as <strong>Sony</strong>, is a Japanese multinational conglomerate corporation headquartered ...</p></div></div></li><li class="si_pp"></li><li class="sa_wr"><div class="sa_cc" u="4|5080|5017270400845193|QqA53bIc3_Hpl3a9-wvlBoVTrwEQ_zsh"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://www.sony.net/" h="ID=SERP,5195.1"><strong>Sony</strong> - Official Site</a></h3></div><div class="sb_meta"><cite><strong>www.sony.net</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5197.1"></span></span></div><p>Gateway to <strong>Sony</strong> Electronics, Games, Music, Movies, Financial Service and <strong>Sony</strong> Websites Worldwide, and Group Information, Corporate Information, Investor Relations ...</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="5|5081|4834824535277899|8jNykGP1z_yWn5qKC5w0_3EcAZwIVPoF"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://www.bestbuy.com/site/Brands/Sony-Store/cat15063.c?id=cat15063" h="ID=SERP,5216.1"><strong>Sony</strong> Store: <strong>Sony</strong> Electronics &amp; Entertainment - <strong>Best Buy</strong></a></h3></div><div class="sb_meta"><cite><strong>www.bestbuy.com</strong>/site/Brands/<strong>Sony</strong>-Store/cat15063.c?id=cat15063</cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5218.1"></span></span></div><p>Shop the <strong>Sony</strong> store at <strong>Best Buy</strong> for TVs, home theater equipment, cameras, audio, cell phones, <strong>PlayStation</strong> consoles &amp; games, and more.</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="6|5051|4698854441353222|XZNuAb2-xBtYyoCiUy2qMgHr_1dhIBSm"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://pro.sony.com/bbsc/home.do" h="ID=SERP,5237.1"><strong>Sony</strong> | Broadcast and Business Solutions</a></h3></div><div class="sb_meta"><cite>pro.<strong>sony</strong>.com</cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5239.1"></span></span></div><p>Professional audio and video products from <strong>Sony</strong>.</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="7|5082|4915638623208094|9ZAzmjNRGRS7X8F_GDTwvgx6wXdr-J8E"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="https://ebookstore.sony.com/" h="ID=SERP,5258.1">Reader Store is Closed. - <strong>Sony</strong></a></h3></div><div class="sb_meta"><cite>https://ebook<strong>store.sony.com</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5260.1"></span></span></div><p>Reader Store is now closed in the US and Canada As announced by <strong>Sony</strong>, Reader Store in the U.S. and Canada closed on March 20, 2014, and customers were transferred to ...</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="8|5053|4978229161559438|0pcgoFLLYn_X1na36U6pUbaH1SR8Ls69"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://store.sony.com/webapp/wcs/stores/servlet/CategoryDisplay?storeId=10151&amp;identifier=S_Televisions" h="ID=SERP,5271.1"><strong>Sony</strong> US - <strong>Sony</strong> US</a></h3></div><div class="sb_meta"><cite><strong>store.sony.com</strong>/webapp/wcs/stores/servlet/CategoryDisplay?storeId=...</cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5273.1"></span></span></div><p>welcome to <strong>store.sony.com</strong>. we apologize but this site is not yet accessible for our visually impaired customers. in order to provide you the best possible service ...</p></div></div></li><li class="sa_wr"><div class="sa_cc" u="9|5083|4512482970894922|h05EIHrBZ9cECi8Qd7wK1fYVJS6M4fH5"><div Class="sa_mc"><div class="sb_tlst"><h3><a href="http://us.playstation.com/" h="ID=SERP,5294.1"><strong>PlayStation</strong>&#174; : PS4™, PS3™, PS Vita, PSP&#174;, PS2 ...</a></h3></div><div class="sb_meta"><cite><strong>us.playstation.com</strong></cite><span class="c_tlbxTrg"><span class="c_tlbxH" H="BASE:CACHEDPAGEDEFAULT" K="SERP,5296.1"></span></span></div><p><strong>PlayStation</strong>&#174; Official Website brings information on PS4™, PS3™, PS Vita, PSP&#174;, PS2™ consoles and <strong>PlayStation</strong>&#174;3 Accessories. Download latest <strong>PlayStation</strong> ...</p></div></div></li></ul></div><div id="sa_bop"><div class="ans"><div class="ans2 qsa"><h2 class="sb_h3 cttl">Related searches for <strong>sony</strong></h2><div class="crch"><div class="qscolumn"><ul class="sc_hl1"><li><a href="/search?q=Sony+Laptops&amp;FORM=QSRE1" h="ID=SERP,5376.1">Sony <strong>Laptops</strong></a></li><li><a href="/search?q=Sony+Cameras&amp;FORM=QSRE2" h="ID=SERP,5377.1">Sony <strong>Cameras</strong></a></li><li><a href="/search?q=Sony+PS4&amp;FORM=QSRE3" h="ID=SERP,5378.1">Sony <strong>PS4</strong></a></li><li><a href="/search?q=Sony+TV&amp;FORM=QSRE4" h="ID=SERP,5379.1">Sony <strong>TV</strong></a></li></ul></div><div class="qscolumn qscollast"><ul class="sc_hl1"><li><a href="/search?q=Sony+PlayStation+Network&amp;FORM=QSRE5" h="ID=SERP,5380.1">Sony <strong>PlayStation</strong> <strong>Network</strong></a></li><li><a href="/search?q=Sony+Manual+Download+Free&amp;FORM=QSRE6" h="ID=SERP,5381.1">Sony <strong>Manual</strong> <strong>Download</strong> <strong>Free</strong></a></li><li><a href="/search?q=Sony+Entertainment+Network&amp;FORM=QSRE7" h="ID=SERP,5382.1">Sony <strong>Entertainment</strong> <strong>Network</strong></a></li><li><a href="/search?q=Register+My+Sony+Blue+Ray&amp;FORM=QSRE8" h="ID=SERP,5383.1"><strong>Register</strong> <strong>My</strong> Sony <strong>Blue</strong> <strong>Ray</strong></a></li></ul></div></div></div></div></div><div class="sb_adsWv2 sb_adsW2v2"><ul><li><div class="sb_add sb_adW"><h2 class="sb_title">Ads</h2><h3><a href="http://2908945.r.msn.com/?ld=Dv8nDXV7VwhWgyXqAtXUxOhDVUCUw_UwBN4_nR8ttgX7t04F1lmrIteDyr_9haYD-Q1JLzslhm2A5E6_hqevgxXGFpGqKOgLIcbLwdUb2iTN53ERP6-a88WEdcyubyOzFxy0PSIw&amp;u=www.sony.com.hk%2fproducts%2fcybershot%2fhx60v%2f" h="ID=SERP,5403.1,Ads"><strong>Sony</strong> DSC-HX60V</a></h3><div><div class="sb_dul"><cite><strong>Sony</strong>.com.hk/Cyber-shot</cite></div><p>內置多種相片影片特效及一掃全景功能 ,讓你享受到更有趣的攝影體驗!</p></div></div></li><li><div class="sb_add sb_adW"><h3><a href="http://3049147.r.msn.com/?ld=Dv5OtaSS3gOuywnwwBK2Y4MTVUCUw8rO8Aq7XNCWuEY_N1VDcwM3snr2sBvnzZ-FcPVqgGoPLq5huas8Mu8gN0BoW9zfg8Hzzh-vdQAP3cOc2hQmR-VFM-OrvTMWm0gIPnr34KdA&amp;u=https%3a%2f%2fbs.serving-sys.com%2fBurstingPipe%2fadServer.bs%3fcn%3dtf%26c%3d20%26mc%3dclick%26pli%3d9902262%26PluID%3d0%26ord%3d%24%7bREQUESTID%7d" h="ID=SERP,5406.1,Ads"><strong>Sony</strong>Z2@SmarTone</a></h3><div><div class="sb_dul"><cite>smartone.com/xperiaz2</cite></div><p>嚟SmarTone$0機價出機,仲送你總值超過$600嘅<strong>Sony</strong>配件!</p></div></div></li></ul></div><div class="sb_pag"><h4>Pagination</h4><ul><li><a class="sb_pagS">1</a></li><li><a href="/search?q=sony&amp;go=&amp;qs=n&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=&amp;first=11&amp;FORM=PERE" h="ID=SERP,5410.1">2</a></li><li><a href="/search?q=sony&amp;go=&amp;qs=n&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=&amp;first=21&amp;FORM=PERE1" h="ID=SERP,5411.1">3</a></li><li><a href="/search?q=sony&amp;go=&amp;qs=n&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=&amp;first=31&amp;FORM=PERE2" h="ID=SERP,5412.1">4</a></li><li><a href="/search?q=sony&amp;go=&amp;qs=n&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=&amp;first=41&amp;FORM=PERE3" h="ID=SERP,5413.1">5</a></li><li><a href="/search?q=sony&amp;go=&amp;qs=n&amp;pq=sony&amp;sc=0-0&amp;sp=-1&amp;sk=&amp;first=11&amp;FORM=PORE" class="sb_pagN" h="ID=SERP,5414.1">Next</a></li></ul></div></div></div><div id="sidebar"><div class="ansC"><div class="ans"><div class="sw_menu"><h2 class="sb_h3 cttl"><div class="sb_title rrrs_ttl">Related searches</div></h2><ul><li class="rrrs_itm"><a href="/search?q=Sony+Laptops&amp;FORM=R5FD" h="ID=SERP,5385.1">Sony <strong>Laptops</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+Cameras&amp;FORM=R5FD1" h="ID=SERP,5386.1">Sony <strong>Cameras</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+PS4&amp;FORM=R5FD2" h="ID=SERP,5387.1">Sony <strong>PS4</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+TV&amp;FORM=R5FD3" h="ID=SERP,5388.1">Sony <strong>TV</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+PlayStation+Network&amp;FORM=R5FD4" h="ID=SERP,5389.1">Sony <strong>PlayStation</strong> <strong>Network</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+Manual+Download+Free&amp;FORM=R5FD5" h="ID=SERP,5390.1">Sony <strong>Manual</strong> <strong>Download</strong> <strong>Free</strong></a></li><li class="rrrs_itm"><a href="/search?q=Sony+Entertainment+Network&amp;FORM=R5FD6" h="ID=SERP,5391.1">Sony <strong>Entertainment</strong> <strong>Network</strong></a></li><li class="rrrs_itm"><a href="/search?q=Register+My+Sony+Blue+Ray&amp;FORM=R5FD7" h="ID=SERP,5392.1"><strong>Register</strong> <strong>My</strong> Sony <strong>Blue</strong> <strong>Ray</strong></a></li></ul></div></div></div></div></div></div></div></div></div><div id="sb_foot"><ul id="sw_footL"><li><span>&#169; 2014 Microsoft</span> | </li><li><a href="http://go.microsoft.com/fwlink/?LinkId=248686&amp;CLCID=0409" h="ID=FD,54.1">Privacy and Cookies</a> | </li><li><a href="http://go.microsoft.com/fwlink/?LinkID=246338&amp;CLCID=0409" h="ID=FD,56.1">Legal</a> | </li><li><a href="http://onlinehelp.microsoft.com/en-ww/bing/ff808535.aspx" id="sb_help" target="_blank" h="ID=FD,58.1">Help</a> | </li><li><a href="javascript:;" id="sb_feedback">Feedback</a></li></ul></div></div></div><script type="text/javascript">//<![CDATA[
-_G.BST=new Date
-//]]></script><script type="text/javascript">//<![CDATA[
-var _w=window;var _w=window;_w.rms.js({'F:0':0});;
-//]]></script><div id="fRmsDefer"><div style="display:none"><!--//<![CDATA[
-var Identity=Identity||{};(function(n,t,i,r,u,f,e,o,s,h){s.fbProfile=function(){var e="FBS",f=n(e,"N"),u=n(e,"FN"),r=n(e,"I"),i=n(e,"IB"),o;return f?(f=t(f),u&&(u=t(u)),r&&(r=t(r)),i&&(i=t(i)),o="/fd/s/a/anon.png",r||(r=o),i||(i=o),u||(u=f),{displayName:f,name:u,img:r,imgL:i,idp:"FB"}):null},s.wlProfile=function(){var u="WLS",r=n(u,"N"),i=n(u,"C");return r&&i&&s.wlImgSm&&s.wlImgLg?{displayName:t(r),name:t(r),img:s.wlImgSm.replace(/\{0\}/g,o(i)),imgL:s.wlImgLg.replace(/\{0\}/g,o(i)),idp:"WL"}:null},s.headerLoginMode=0,s.popupAuthenticate=function(n,t,r){var e,h,u,f;return(e=s.popupLoginUrls)&&(h=e[n]+(t?"&perms="+o(t):"")+(r?"&src="+o(r):""))&&(u=s.pop(h))&&(f=setInterval(function(){u.closed&&(i.fire("id:popup:close"),clearInterval(f))},100))},s.pop=function(n){return f.open(n,"idl","location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=no,toolbar=no,width=1000,height=620")};var y=0,c=e("id_h"),a=e("id_d"),p=e("id_l"),w=e("hp_sw_hdr"),k=e("id_la"),b="click",l="px",v=function(){if(c&&a)if(w)a.style.top=y+w.clientHeight+l;else{var n=_d.body.clientWidth-c.clientWidth;h?c.style.right=n+l:c.style.left=n+l,h?a.style.right=n+5+l:a.style.left=n+5+l,a.style.top=y+85+l}};i.bind("onP1",function(){setTimeout(function(){c&&p&&(u("FdNetIdentityDropdown_c",1,c,"mouseover",p,b,k,"focus"),r(p,b,function(n){s.hdrClk=n})),r(f,"resize",v),r(f,"scroll",v),i.bind("sw_width:top_changed",function(n){y=n[1],v()},1),c.style.display="block",v()},50)})})(sj_cook.get,decodeURIComponent,sj_evt,sj_be,sj_jb,_w,_ge,encodeURIComponent,Identity,_G.RTL);(function(){if(sj_evt&&Identity){var n=function(){var r=_ge("id_n"),n=_ge("id_p"),u=_ge("id_s"),i,t,e,f;r&&u&&((i=Identity.fbProfile())||(i=Identity.wlProfile())||(i=Identity.twProfile()))?(t=i.displayName,e=i.img,n&&(n.title=t,n.src=e,n.style.display="inline"),t.length>10&&(t=t.substring(0,10).replace(/\s+$/,"")+"…"),r.textContent=t,r.innerText=t,r.style.display="inline",u.style.display="none",i.idp=="WL"&&(f="url(/fd/s/a/anon.png)",n&&(n.style.backgroundImage=f))):r&&u&&(r.style.display="none",n&&(n.style.display="none"),u.style.display="inline")};sj_evt.bind("fb:connected",n,1),sj_evt.bind("wl:auth",n,1),sj_evt.bind("fb:auth",n,1)}})();var Identity = Identity || {};(function(i){i.twProfile = function (){return null;};i.wlImgSm = "http\x3a\x2f\x2fcid-\x7b0\x7d.users.storage.live.com\x2fusers\x2f0x\x7b0\x7d\x2fmyprofile\x2fexpressionprofile\x2fprofilephoto\x3aUserTileStatic\x2fp\x3fck\x3d1\x26ex\x3d720\x26fofoff\x3d1\x26sid\x3dFD0FDF4930594E578A3464D03AB69A2D";i.wlImgLg = "http\x3a\x2f\x2fcid-\x7b0\x7d.users.storage.live.com\x2fusers\x2f0x\x7b0\x7d\x2fmyprofile\x2fexpressionprofile\x2fprofilephoto\x3aUserTileMedium\x2fp\x3fck\x3d1\x26ex\x3d720\x26fofoff\x3d1\x26sid\x3dFD0FDF4930594E578A3464D03AB69A2D";i.popupLoginUrls ={"WindowsLiveId":"https\x3a\x2f\x2flogin.live.com\x2flogin.srf\x3fwa\x3dwsignin1.0\x26rpsnv\x3d12\x26ct\x3d1400749222\x26rver\x3d6.0.5286.0\x26wp\x3dMBI\x26wreply\x3dhttps\x3a\x252F\x252Fssl.bing.com\x252Fsecure\x252FPassport.aspx\x253Fpopup\x253D1\x26lc\x3d1033\x26id\x3d264960"};})(Identity);;(function(n,t){if(t){var r=!1,i=function(){!r&&(r=!0)&&sj_jb("WindowsLiveConnect_c",1)};n.bind("onP1",function(){var r=setTimeout(i,t);n.bind("fb:connecting",function(){clearTimeout(r),n.bind("fb:connected",i,1)},1)},1)}})(sj_evt,wlc_d);var fbpkgiid = fbpkgiid || {};fbpkgiid.page = 'PJ.8';;(function(n,t,i){var r=_ge("sb_feedback");r!==null&&n(r,"click",function(n){t("Feedback/Core",!0),i(n),function r(){var n={page:!0};if(typeof feedback=="undefined"||typeof jQuery=="undefined"){sb_st(r,50);return}feedback.core.load(n)}()})})(sj_be,sj_jb,sj_sp);
-//]]>--></div></div><script type="text/javascript">//<![CDATA[
-sa_loader=function(){_w.rms.js({'rms:answers:AutoSuggest:AutoSugBasic':'\/s\/as\/1225050742\/AutoSuggest\/AutoSugBasic.js',d:1});};;_w.rms.js({'A:0':0},{'A:Shared.Bundle':'\/sa\/1204035002\/shrBu_c.js'},{'A:Validation.Bundle':'\/sa\/0921032348\/vbL_c.js'},{'A:WebResultToolbox':'\/sa\/1203062812\/WebResultToolbox.js'});;
-//]]></script><div id="aRmsDefer"><div style="display:none"><!--//<![CDATA[
-function sc_bgL(){function i(){function b(){f(l,b),p||(sb_ct(o),f(e,v),u(a,s))}function s(){u(e,v,1),f(a,s),u(l,b)}function v(u){function f(){r.style.backgroundImage="url('"+i.src+"')",r.className+=" sw_imLd",c("onBgSet")}p=1,i.onerror=i.onload=null,u[2]>n.d?(sj_so(r,0),f(),o=sb_st(sj_wf(y.init,r,0,100,10,sc_fadeCb),t)):(f(),sj_so(r,100),sc_fadeCb()),sj_cook.set(n.cN,n.crN,n.hash,0,"/")}var r=_ge(n.id),h=sj_evt,u=h.bind,f=h.unbind,c=h.fire,e="onBgLoad",l="onSbBusy",a="onSbIdle",i=new Image,y=sj_fader(),p=0,w=0,o,k;u("onSearch",function(){n.x=!0,i=null,y.stop(),sb_ct(o)}),s(),i.onload=function(){w=sb_gt()-k,c(e,i,w)},k=sb_gt(),i.src=n.url}var n=g_img,t=typeof n.del!="undefined"?n.del:500;sj_evt.bind("onP1",i,1,t)}sc_fadeCb=function(){},sj_evt.bind("onP1",function(){_w.g_img&&g_img.cN||sj_evt.fire("onBgSet")},1);g_img = {url:'/az/hprichbg/rb/LondonEye_ROW778114937-d.jpg',id:'sw_im',d:'1',cN:'_SS',crN:'nhIm',hash:'37-'};sc_bgL();;(function(){sb_ie&&sj_evt.bind("onP1",function(){sj_jb("UpdateDefaults",0)},1,50)})();sa_CTBConfig={"TRGT":"Actions for this site","CU":"http://cc.bingj.com/cache.aspx?q=sony\u0026d={0}\u0026mkt=en-ww\u0026setlang=en-US\u0026w={1}","CT":"Cached page"};sa_config={"u":"http%3a%2f%2fhk2.api.bing.com%2fqsonhs.aspx%3fFORM%3dASAPIW","lp":"/account/general?ru=%2fsearch%3fq%3dsony%26go%3d%26qs%3dn%26form%3dQBLH%26pq%3dsony%26sc%3d0-0%26sp%3d-1%26sk%3d\u0026sh=4","lads":"/search?q=sony\u0026qb=1\u0026FORM=AXRE","lh":"http://onlinehelp.microsoft.com/en-ww/bing/ff808490.aspx","as":"a","p0":"DN,AN","mkt":"en-ww","f":"sb_form","i":"sb_form_q","c":"sw_as","PT":"Page.SERP","h":1,"t":1,"m":8,"d":100,"SCT":1500};sa_loc={"L_ADS":"Advanced search","L_P":"Preferences","L_MH":"Manage search history","L_H":"What\u0027s this?","H_PN":"Popular now"};sj_evt.bind('onP1',function(){sa_DNS=new Image;sa_DNS.src={"url":"http://hk2.api.bing.com/qsonhs.aspx?FORM=ASAPIW"}.url+'&q='},1,5);;var sa_eL=!1;(function(){function e(t,i,r,f){t&&sj_ue(t,i,e),sa_eL=sa_eL||n.eAI?r&&f.keyCode!==27:r,u||(u=!0,sa_loader())}function r(n,t,i){sj_be(n,t,function(r){e(n,t,i,sj_ev(r))})}var f=_ge("sa_qs"),n,t,i,u;f.value="bs",n=sa_config,t=_ge(n.i),t.setAttribute("autocomplete","off"),i=_ge(n.c),i||(i=sj_ce("div"),i.id=n.c,f.parentNode.appendChild(i)),u=!1,r(t,"click",!0),r(t,"keydown",!0),n.eAI&&r(t,"keyup",!0),n.ol&&r(_w,"load")})();
-//]]>--></div></div><script type="text/javascript">//<![CDATA[
-(function(){function t(){_w.sb_ppCPL||sb_st(function(){si_PP(new Date)},0)}var n=_w.onload||function(){};onload=function(i){_G.BPT=new Date,n(i),t()},_G.HT=new Date})()
-//]]></script></body></html>
\ No newline at end of file
diff --git a/PressRelease/Import/Search/weibo.html b/PressRelease/Import/Search/weibo.html
deleted file mode 100644 (file)
index 4dc7bbd..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta http-equiv="X-Frame-Options" content="DENY ">
-<meta content="IE=8" http-equiv="X-UA-Compatible">
-<title>微博搜索 - furla - 新浪微博</title>
-<noscript>
-<meta http-equiv="refresh" content="0;url=/home?nojs=1">
-</noscript>
-<script type="text/javascript">
-(function(){var l=location;var r=new RegExp('^(?:([A-Za-z]{1,5}):(\\/{2,3}))?('+l.hostname.replace(/\./g,'\\.')+')?(?::(\\d+))?(?:\\/([^?#]*))?(?:\\?([^#]*))?(?:#(.*))?$');var s;((s=(l=l.toString()).indexOf('#!')) != -1 && r.test(l=l.substr(s+2))) ? location.replace(l) : 0;})(); 
-</script>
-<link href="http://img.t.sinajs.cn/t4/style/css/module/global/out_frame.css?version=20140321919" type="text/css" rel="stylesheet" charset="utf-8" />
-<link href="http://img.t.sinajs.cn/t4/appstyle/searchV45/css/module/common.css?version=20140321919" type="text/css" rel="stylesheet" charset="utf-8" />
- <link href="http://img.t.sinajs.cn/t4/appstyle/searchV45/css/patch/search_WB.css?version=20140321919" type="text/css" rel="stylesheet" charset="utf-8" />
- <script type="text/javascript">
- var $CONFIG = {};
-  $CONFIG['islogin'] = '1';
- $CONFIG['uid'] = '3986563346';
- $CONFIG['nick'] = 'ChrisRooJS';
- $CONFIG['domain'] = '3986563346';
- $CONFIG['watermark'] = 'u/3986563346';
- $CONFIG['prov'] = '81:香港';
- $CONFIG['city'] = '1:其他';
-  $CONFIG['setCover'] = 1; //ie6hack
- $CONFIG['version'] = '20140321919';
- $CONFIG['bigpipe'] = 'true';
- $CONFIG['timeDiff'] = (new Date() - 1395896106000);
- $CONFIG['product'] = 'search';
- $CONFIG['pageid'] = 'wb';
- $CONFIG['skin'] = '';
- $CONFIG['lang'] = 'zh-cn';
- $CONFIG['jsPath'] = 'http://js.t.sinajs.cn/t4/';
- $CONFIG['cssPath'] = 'http://img.t.sinajs.cn/t4/';
- $CONFIG['imgPath'] = 'http://img.t.sinajs.cn/t4/';
- $CONFIG['servertime'] = 1395896106;
-  $CONFIG['$webim'] = 1;
- $CONFIG['mJsPath'] = ['http://js{n}.t.sinajs.cn/t4/', 1, 2];
- $CONFIG['mCssPath'] = ['http://img{n}.t.sinajs.cn/t4/', 1, 2];
- $CONFIG['s_domain'] = 'http://s.weibo.com';
-  $CONFIG['s_live'] = 0;
- $CONFIG['s_search'] = 'furla';
- </script></head>
-<body class="S_WB">
-<div class="S_wrap">
- <div id="weibo_top_public" class="tsina_gnbarea"></div>
- <!-- new usercard-->
-<script src="http://js.t.sinajs.cn/t5/pack/js/bootstrap.js"></script>
-<script>
-WBWidget({
-         'uid':3986563346,
-  'nick':'ChrisRooJS',
-  'relationUrl':  '/ajax/usercard/relation'  
-  }).load();
-</script>
-<div class="S_main">
- <div class="S_main_bg">
-  <div class="search_head clearfix" id="pl_common_searchTop"></div>
-  <div class="S_plwrap" >
- <div class="S_plc" id="plc_main"></div>
-  </div>
- </div>
-</div>
- <div class="search_footer W_textb">
-  <div class="global_footer">
- <div class="other_link clearfix">
-  <div class="help_link">
-   <p><a class="ico_service" href="http://help.weibo.com/?refer=didao" target="_blank">微博帮助</a>&#12288;<a href="http://weibo.com/zt/s?k=9286" target="_blank">意见反馈</a>&#12288;<a href="http://open.weibo.com/" target="_blank">开放平台</a>&#12288;<a href="http://hr.weibo.com" target="_blank">微博招聘</a>&#12288;<a href="http://news.sina.com.cn/guide/" target="_blank">新浪网导航</a></p>
-   <p>北京微梦创科网络技术有限公司&emsp;<a href="http://weibo.com/aj/static/jww.html" target="_blank">京网文[2011]0398-130号</a>&emsp;<a href="http://www.miibeian.gov.cn" target="_blank">京ICP证100780号</a></p>
-  </div>
-  <div class="copy">
-    <p class="W_linkb">
-  <select id="pl_common_changeLanguage" class="htc_select">
-   <option value="zh-cn" selected>中文(简体)</option>
-   <option value="zh-tw" >中文(繁体)</option>
-  </select>
-   </p>
-    <p>Copyright &copy; 1996-2014 SINA</p>
-  </div>
- </div>
-  </div>
- </div>
-       <!-- 返回,分享 -->
-       <div class="right_btn" id="base_scrollToTop">
-        <ul class="btn_list">
-         <li node-type="scrollToTop" style="display:;"><a href="javascript:void(0);" class="bottom_btn" title=返回顶部 suda-data="key=tblog_search_v4.1&value=weibo_feed_back"><span><em class="btn_icon"><i class="search_icon icon_top"></i></em><em class="btn_txt">顶部</em></span></a></li>
-         <li><a href="http://weibo.com/wbsearch?Refer=STopic_feedback" title=提交使用反馈 target="_blank" class="bottom_btn" suda-data="key=tblog_search_v4.1&value=weibo_feed_feedback"><span><em class="btn_icon"><i class="search_icon icon_feedback"></i></em><em class="btn_txt">反馈</em></span></a></li>
-                </ul>
-       </div>
-       <!-- /返回,分享 --> 
-  <div style="display:none;" id="pl_common_base"></div>
-</div>
-</body>
-<script type="text/javascript" src="http://js.t.sinajs.cn/t5/home/js/pl/top/topInit.js"></script>
-<script type="text/javascript">
-(function() { 
- WBtopGlobal && WBtopGlobal.init({
-  "name":"ChrisRooJS",
-  "onick":"ChrisRooJS",
-  "uid":3986563346,
-  "lang":"zh-cn",
-  'islogin':1,
-  "backurl":"http://s.weibo.com"
-});
-})();
-</script>
- <script src="http://js.t.sinajs.cn/t4/apps/search/js/base.js?version=20140321919" type="text/javascript" ></script>
-<!-- SUDA_CODE_START -->
-<noscript><img width="0" height="0" src="http://beacon.sina.com.cn/a.gif?noScript" border="0" alt="" /></noscript>
-<!-- SUDA_CODE_END -->
-
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_searchTop","js":["apps\/search\/js\/pl\/common\/searchTop.js?version=20140321919"],"css":[],"html":"<div class=\"search_head_formbox\">\n <div class=\"search_logo\"><a href=\"\/?Refer=STopic_icon\" class=\"logo_img\"><\/a><\/div>\n <ul class=\"formbox_tab clearfix\" node-type=\"searchItems\">\n\t<li>\n\t <a action-type=\"searchItem\" href=\"\/weibo\/furla&Refer=wb_weibo\" >\u7efc\u5408<\/a>\n\t <a action-type=\"searchItem\" href=\"javascript:void(0);\" class=\"cur\">\u5fae\u535a<\/a>\n\t <a action-type=\"searchItem\" href=\"\/user\/furla&Refer=wb_user\" >\u627e\u4eba<\/a>\n\t \t <a action-type=\"searchItem\" href=\"\/pic\/furla&Refer=wb_pic\" >\u56fe\u7247<\/a>\n\t <a action-type=\"searchItem\" href=\"\/apps\/furla&Refer=wb_apps\" >\u5e94\u7528<\/a>\n\t \t \t<\/li>\n <\/ul>\n <!-- search_input -->\n <div class=\"search_input clearfix\">\n  <div class=\"search_input_wrap\">\n <div class=\"searchBtn_box\"><a href=\"\/wb\/furla&xsort=hot&Refer=STopic_box\" class=\"searchBtn\" node-type=\"submit\" suda-data=\"key=tblog_search_v4.1&value=weibo_search\">\u641c\u7d22<\/a><\/div>\n <div class=\"searchInp_box\">\n  <div class=\"searchInp_auto\">\n   <input class=\"searchInp_form\" type=\"text\" value=\"furla\" node-type=\"text\" maxlength=\"40\">\n  <\/div>\n <\/div>\n  <\/div>\n <\/div>\n <!-- \/search_input --> \n<\/div>\n<div class=\"search_head_action\">\n <p class=\"action_txt\">\n   <a href=\"javascript:void(0);\" class=\"adv_settiong\" node-type=\"advsearch\" >\u9ad8\u7ea7\u641c\u7d22<\/a>\n  <a href=\"\/preferences\" class=\"setting\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=weibo_custom\">\u8bbe\u7f6e<\/a>\n <a href=\"http:\/\/help.weibo.com\/newtopic\/search\" target=\"_blank\" class=\"adv_settiong\">\u5e2e\u52a9<\/a>\n <\/p>\n<\/div>\n"})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"plc_main","js":[],"css":[],"html":" <div class=\"S_content clearfix\">\n  <div class=\"S_content_l\">\n  <div id=\"pl_common_pinyinerr\"><\/div>\n <div id=\"pl_wb_filtertab\"><\/div>\n <div id=\"pl_wb_feedlist\" smartconf=\"type=1\"><\/div>\n <div id=\"pl_wb_relation\"><\/div>\n <div id=\"pl_common_bottomInput\" style=\"display:none;\"><\/div>\n  <\/div>\n  <div class=\"S_content_r\">\n <div id=\"pl_common_subscribe\"><\/div>\n <div class=\"module_history\" id=\"pl_common_searchHistory\"><\/div>\n  <\/div>\n <\/div>\n "})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_wb_prepareData","js":[],"css":[],"html":""})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_wb_feedlist","js":["apps\/search\/js\/pl\/wb\/feedList.js?version=20140321919"],"css":["appstyle\/searchV45\/css\/pl\/pl_feed.css?version=20140321919","appstyle\/searchV45\/css\/pl\/pl_page.css?version=20140321919","appstyle\/searchV45\/css\/pl\/pl_shortlink.css?version=20140321919","appstyle\/searchV45\/css\/pl\/pl_prizeper.css?version=20140321919"],"html":" <div class=\"search_feed\">\n  <div class=\"feed_lists W_linka W_texta\" node-type=\"feed_list\">\n  <dl class=\"feed_list W_linecolor\" mid=\"3692692884278583\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/1730716514\" title=\"\u98de\u98de\u975e\u83f2\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_1:1730716514\">\n <img src=\"http:\/\/tp3.sinaimg.cn\/1730716514\/50\/40034876041\/0\" alt=\"\u98de\u98de\u975e\u83f2\" width=\"50\" height=\"50\" usercard=\"id=1730716514&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u98de\u98de\u975e\u83f2\" href=\"http:\/\/weibo.com\/u\/1730716514\" target=\"_blank\" title=\"\u98de\u98de\u975e\u83f2\" usercard=\"id=1730716514&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_1:1730716514\">\u98de\u98de\u975e\u83f2<a target=\"_blank\" href=\"http:\/\/verified.weibo.com\/verify\"><img src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\" title= \"\u65b0\u6d6a\u4e2a\u4eba\u8ba4\u8bc1 \" alt=\"\u65b0\u6d6a\u4e2a\u4eba\u8ba4\u8bc1 \" class=\"approve\"\/><\/a><\/a>\uff1a<em>\u8ba9\u80d6\u5b50\u9001\u7684<span style=\"color:red;\">furla<\/span>\u5305\u5305\u5230\u4e86\uff0c\u8584\u8377\u8272\u7684\u5f88\u6f02\u4eae\u54d2\uff0c\u4e4b\u524d\u7684\u94b1\u5305\u4e5f\u5f88\u559c\u6b22\uff0c\u5173\u8fdb\u53bb\u4e4b\u524d\u53c8\u4e86\u4e86\u5e84\u5fc3\u4e8b\uff0c\u627e\u7684\u8fd9\u5bb6<a href=\"http:\/\/weibo.com\/n\/Vivian_a_Firenze\" usercard=\"name=Vivian_a_Firenze\" >@Vivian_a_Firenze<\/a><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/thumbnail\/6728a362jw1eeu50mkafrj218g0xc0yz.jpg\" action-type='feed_list_media_img' action-data=\"uid=1730716514&mid=3692692884278583\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_pvm_1:3692692884278583\"\/><img style=\"left:39.5px;top:52px;display:none;\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/loading.gif\" class=\"loading_gif\"\/>\n  <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3692692884278583\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em>(1)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/1730716514\/ACTmEhX3p&mid=3692692884278583&name=\u98de\u98de\u975e\u83f2&uid=1730716514&domain=&pid=6728a362jw1eeu50mkafrj218g0xc0yz\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_1:3692692884278583\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_1:3692692884278583\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_1:3692692884278583\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/1730716514\/ACTmEhX3p\" title=\"2014-03-27 11:14\" date=\"1395890053000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_1:3692692884278583\">\u4eca\u5929 11:14<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/c66T5g\" rel=\"nofollow\">Android\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3691921945754765\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/gemag\" title=\"\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_2:1657236125\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/1657236125\/50\/5661765704\/1\" alt=\"\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7\" width=\"50\" height=\"50\" usercard=\"id=1657236125&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7\" href=\"http:\/\/weibo.com\/gemag\" target=\"_blank\" title=\"\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7\" usercard=\"id=1657236125&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_2:1657236125\">\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7<a target=\"_blank\" href=\"http:\/\/verified.weibo.com\/verify\"><img src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\" title= \"\u65b0\u6d6a\u673a\u6784\u8ba4\u8bc1\" alt=\"\u65b0\u6d6a\u673a\u6784\u8ba4\u8bc1\" class=\"approve_co\"\/><\/a><\/a>\uff1a<em>\u3010\u5962\u4f88\u54c1\u724c\u89ca\u89ce\u65b0\u201c\u6218\u573a\u201d \u673a\u573a\u6e20\u9053\u4e3a\u65b0\u8d8b\u52bf\u3011\u603b\u90e8\u4f4d\u4e8e<a class=\"feed_label\" href=\"\/weibo\/%25E6%2584%258F%25E5%25A4%25A7%25E5%2588%25A9&Refer=STopic_xhx\" searchcard=\"key=\u610f\u5927\u5229\" suda-data=\"key=tblog_search_v4.1&value=weibo_xhx\">\u610f\u5927\u5229<\/a>\u7684\u76ae\u5177\u54c1\u724c<span style=\"color:red;\">Furla<\/span>2013\u5e74\u9500\u552e\u989d\uff0c\u6309\u4e0d\u53d8\u6c47\u7387\u540c\u6bd4\u589e\u957f14.5%\u3002\u5176\u6700\u5927\u7684\u4eae\u70b9\u662f\u673a\u573a\u5e97\u6e20\u9053\u3002\u5728\u5176\u4ed6\u96f6\u552e\u6e20\u9053\u53d7\u5230\u7535\u5546\u7b49\u5f71\u54cd\u6025\u901f\u4e0b\u6ed1\u65f6\uff0c\u673a\u573a\u96f6\u552e\u6e20\u9053\u6b63\u5728\u4fdd\u6301\u9ad8\u901f\u589e\u957f\uff0c\u4e0d\u4ec5\u9ad8\u7aef\u54c1\u724c\u52a0\u7801\u673a\u573a\u96f6\u552e\uff0c\u5927\u4f17\u54c1\u724c\u4e5f\u89ca\u89ce\u65b0\u201c\u6218\u573a\u201d\u3002<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/thumbnail\/62c76a9dtw1eerohldo23j20c52ytqof.jpg\" action-type='feed_list_media_img' action-data=\"uid=1657236125&mid=3691921945754765\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_pvm_2:3691921945754765\"\/><img style=\"left:39.5px;top:52px;display:none;\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/loading.gif\" class=\"loading_gif\"\/>\n  <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3691921945754765\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em>(11)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/1657236125\/ACzjco94N&mid=3691921945754765&name=\u73af\u7403\u4f01\u4e1a\u5bb6\u6742\u5fd7&uid=1657236125&domain=gemag&pid=62c76a9dtw1eerohldo23j20c52ytqof\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_2:3691921945754765\">\u8f6c\u53d1(16)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_2:3691921945754765\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_2:3691921945754765\">\u8bc4\u8bba(6)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/1657236125\/ACzjco94N\" title=\"2014-03-25 08:10\" date=\"1395706247000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_2:3691921945754765\">3\u670825\u65e5 08:10<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/weibo.com\/\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3692715550328778\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3483387985\" title=\"CC\u516c\u4e3b\u5168\u7403\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_3:3483387985\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/3483387985\/50\/22843990442\/0\" alt=\"CC\u516c\u4e3b\u5168\u7403\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3483387985&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"CC\u516c\u4e3b\u5168\u7403\u8d2d\" href=\"http:\/\/weibo.com\/u\/3483387985\" target=\"_blank\" title=\"CC\u516c\u4e3b\u5168\u7403\u8d2d\" usercard=\"id=3483387985&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_3:3483387985\">CC\u516c\u4e3b\u5168\u7403\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em>\u6bd4\u65af\u7279\u4ee3\u8d2d\u56de\u7684\u4e1c\u897f\u4e00\u76f4\u90fd\u4e0d\u8bb0\u5f97\u53d1\uff0c\u8fd9\u90fd\u4e70\u56de\u6765\u591a\u4e45\u4e86\uff01\u4ec0\u4e48tod's\u3001<span style=\"color:red;\">furla<\/span>\u662f\u4e0d\u662f\u90fd\u7f8e\u7684\u5192\u6ce1\u6ce1\u4e86\uff01\u590f\u5929\u9a6c\u4e0a\u6765\u4e86\uff0c\u679c\u51bb\u5305\u4f60\u8fd8\u6ca1\u6709\u5417\uff1f\u5feb\u5165\uff01kenzo\u7684T\u53ea\u6709\u5927\u53f7\u55bd\uff5e<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3483387985&pic_ids=cfa04851jw1eeu7lu3xugj20hs0dcgnn,cfa04851jw1eeu7m02gc7j20dc0hs0ub,cfa04851jw1eeu7m5zhn3j20dc0hs764,cfa04851jw1eeu7mfol0mj20dc0hsdhr,cfa04851jw1eeu7mjlhmfj20hs0dc75e,cfa04851jw1eeu7mowunvj20dc0hsmyw,cfa04851jw1eeu7mt89j6j20dc0hsdh7&mid=3692715550328778\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/cfa04851jw1eeu7lu3xugj20hs0dcgnn.jpg\" action-data=\"pic_id=cfa04851jw1eeu7lu3xugj20hs0dcgnn\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/cfa04851jw1eeu7m02gc7j20dc0hs0ub.jpg\" action-data=\"pic_id=cfa04851jw1eeu7m02gc7j20dc0hs0ub\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/cfa04851jw1eeu7m5zhn3j20dc0hs764.jpg\" action-data=\"pic_id=cfa04851jw1eeu7m5zhn3j20dc0hs764\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/cfa04851jw1eeu7mfol0mj20dc0hsdhr.jpg\" action-data=\"pic_id=cfa04851jw1eeu7mfol0mj20dc0hsdhr\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/cfa04851jw1eeu7mjlhmfj20hs0dc75e.jpg\" action-data=\"pic_id=cfa04851jw1eeu7mjlhmfj20hs0dc75e\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/cfa04851jw1eeu7mowunvj20dc0hsmyw.jpg\" action-data=\"pic_id=cfa04851jw1eeu7mowunvj20dc0hsmyw\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/cfa04851jw1eeu7mt89j6j20dc0hsdh7.jpg\" action-data=\"pic_id=cfa04851jw1eeu7mt89j6j20dc0hsdh7\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3692715550328778\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3483387985\/ACTXd1nwS&mid=3692715550328778&name=CC\u516c\u4e3b\u5168\u7403\u8d2d&uid=3483387985&domain=&pid=cfa04851jw1eeu7lu3xugj20hs0dcgnn\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_3:3692715550328778\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_3:3692715550328778\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_3:3692715550328778\">\u8bc4\u8bba<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3483387985\/ACTXd1nwS\" title=\"2014-03-27 12:44\" date=\"1395895457000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_3:3692715550328778\">11\u5206\u949f\u524d<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/3G5oUM\" rel=\"nofollow\">iPhone 5s<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3692712928541357\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/2363165667\" title=\"\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2363165667\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/2363165667\/50\/40050515215\/0\" alt=\"\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e\" width=\"50\" height=\"50\" usercard=\"id=2363165667&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e\" href=\"http:\/\/weibo.com\/u\/2363165667\" target=\"_blank\" title=\"\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e\" usercard=\"id=2363165667&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2363165667\">\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em><span style=\"color:red;\">Furla<\/span>\u65b0\u6b3e09035\u65b0\u989c\u8272\u7c89\u767d\uff0c\u9a6c\u5361\u9f99\u84dd\u8272<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/a1\/se_org.gif\" title=\"[\u8272]\" alt=\"[\u8272]\" type=\"face\" \/>\u51fa\u8d27\uff0c\u5c3a\u5bf8\uff1aL18\uff0cW14\uff0cH23 \u7f16\u53f7156001780\ud83d\ude40\ud83d\ude40<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=2363165667&pic_ids=8cdb0be3jw1eeu7azrcq7j20hs0hs40r,8cdb0be3jw1eeu7b22gogj20hs0hs0v3,8cdb0be3jw1eeu7b5a78hj20hs0hswgl,8cdb0be3jw1eeu7ba5hxoj20hs0hsmzj,8cdb0be3jw1eeu7bhtrczj20hs0hsad4,8cdb0be3jw1eeu7bo64ubj20hs0hsn16,8cdb0be3jw1eeu7bsk3kaj20hs0hsn16,8cdb0be3jw1eeu7bxldokj20hs0hs770,8cdb0be3jw1eeu7bzd8b8j20hs0hs0us&mid=3692712928541357\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/8cdb0be3jw1eeu7azrcq7j20hs0hs40r.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7azrcq7j20hs0hs40r\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/8cdb0be3jw1eeu7b22gogj20hs0hs0v3.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7b22gogj20hs0hs0v3\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/8cdb0be3jw1eeu7b5a78hj20hs0hswgl.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7b5a78hj20hs0hswgl\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/8cdb0be3jw1eeu7ba5hxoj20hs0hsmzj.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7ba5hxoj20hs0hsmzj\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/8cdb0be3jw1eeu7bhtrczj20hs0hsad4.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7bhtrczj20hs0hsad4\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/8cdb0be3jw1eeu7bo64ubj20hs0hsn16.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7bo64ubj20hs0hsn16\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/8cdb0be3jw1eeu7bsk3kaj20hs0hsn16.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7bsk3kaj20hs0hsn16\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/8cdb0be3jw1eeu7bxldokj20hs0hs770.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7bxldokj20hs0hs770\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/8cdb0be3jw1eeu7bzd8b8j20hs0hs0us.jpg\" action-data=\"pic_id=8cdb0be3jw1eeu7bzd8b8j20hs0hs0us\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3692712928541357\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/2363165667\/ACTSYzPZP&mid=3692712928541357&name=\u5f20\u80d6\u5b50\u5962\u4f88\u54c1\u6279\u53d1\u96f6\u552e&uid=2363165667&domain=&pid=8cdb0be3jw1eeu7azrcq7j20hs0hs40r\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3692712928541357\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3692712928541357\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3692712928541357\">\u8bc4\u8bba<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/2363165667\/ACTSYzPZP\" title=\"2014-03-27 12:33\" date=\"1395894832000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3692712928541357\">22\u5206\u949f\u524d<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690961735163453\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3590466715\" title=\"\u674e\u99a8\u5de7\u5427\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3590466715\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/3590466715\/50\/5690549999\/0\" alt=\"\u674e\u99a8\u5de7\u5427\" width=\"50\" height=\"50\" usercard=\"id=3590466715&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u674e\u99a8\u5de7\u5427\" href=\"http:\/\/weibo.com\/u\/3590466715\" target=\"_blank\" title=\"\u674e\u99a8\u5de7\u5427\" usercard=\"id=3590466715&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3590466715\">\u674e\u99a8\u5de7\u5427<\/a>\uff1a<em><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E6%9D%8E%E9%A6%A8%E5%B7%A70526%E7%94%9F%E6%97%A5%E5%BF%AB%E4%B9%90?from=526\" target=\"_blank\">#\u674e\u99a8\u5de70526\u751f\u65e5\u5feb\u4e50#<\/a> \u8fd9\u8fd8\u662f\u4e0a\u661f\u671f\u7684\u4e00\u7ec4\u7167\u7247\u4e86~\u5de7\u513f<a href=\"http:\/\/weibo.com\/n\/Crystal%E6%9D%8E%E9%A6%A8%E5%B7%A7\" usercard=\"name=Crystal\u674e\u99a8\u5de7\" >@Crystal\u674e\u99a8\u5de7<\/a> \u51fa\u5e2d<span style=\"color:red;\">Furla<\/span>\u624b\u888b\u54c1\u724c\u53d1\u5e03\u4f1a<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/87\/lxhxuyuan_org.gif\" title=\"[\u8bb8\u613f]\" alt=\"[\u8bb8\u613f]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/87\/lxhxuyuan_org.gif\" title=\"[\u8bb8\u613f]\" alt=\"[\u8bb8\u613f]\" type=\"face\" \/>\u9a6c\u5c3e\u8fab\u7684\u5de7\u59b9\u5b50<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/40\/hearta_org.gif\" title=\"[\u5fc3]\" alt=\"[\u5fc3]\" type=\"face\" \/>\u6211\u8d85\u7ea7\u7231<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/40\/hearta_org.gif\" title=\"[\u5fc3]\" alt=\"[\u5fc3]\" type=\"face\" \/>\u4f60\u4eec\u5462\uff1f\uff08\u8001\u89c4\u77e9\u62b1\u8d70\u4e00\u5b9a\u7559\u540d\u5594\uff01\uff09<a href=\"http:\/\/weibo.com\/n\/waiyip%E6%A5%8A%E5%81%89%E6%A5%AD\" usercard=\"name=waiyip\u694a\u5049\u696d\" >@waiyip\u694a\u5049\u696d<\/a><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3590466715&pic_ids=d6022c9bgw1eeom6z2wsuj20hs0hsgo8,d6022c9bgw1eeom6y052cj20fb0f9tc0,d6022c9bgw1eeom74cz2uj20rs0ij413,d6022c9bgw1eeom70pwq6j20rs0ijwgn,d6022c9bgw1eeom6zp1s0j20ka0sgtas,d6022c9bgw1eeom728t0qj20rs0ijdin,d6022c9bgw1eeom73dqzqj20iy0sg76t,d6022c9bgw1eeom6t8vnkj20rs111q5h,d6022c9bgw1eeom6yf15pj20rs0ijdi8&mid=3690961735163453\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/d6022c9bgw1eeom6z2wsuj20hs0hsgo8.jpg\" action-data=\"pic_id=d6022c9bgw1eeom6z2wsuj20hs0hsgo8\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/d6022c9bgw1eeom6y052cj20fb0f9tc0.jpg\" action-data=\"pic_id=d6022c9bgw1eeom6y052cj20fb0f9tc0\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/d6022c9bgw1eeom74cz2uj20rs0ij413.jpg\" action-data=\"pic_id=d6022c9bgw1eeom74cz2uj20rs0ij413\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/d6022c9bgw1eeom70pwq6j20rs0ijwgn.jpg\" action-data=\"pic_id=d6022c9bgw1eeom70pwq6j20rs0ijwgn\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/d6022c9bgw1eeom6zp1s0j20ka0sgtas.jpg\" action-data=\"pic_id=d6022c9bgw1eeom6zp1s0j20ka0sgtas\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/d6022c9bgw1eeom728t0qj20rs0ijdin.jpg\" action-data=\"pic_id=d6022c9bgw1eeom728t0qj20rs0ijdin\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/d6022c9bgw1eeom73dqzqj20iy0sg76t.jpg\" action-data=\"pic_id=d6022c9bgw1eeom73dqzqj20iy0sg76t\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/d6022c9bgw1eeom6t8vnkj20rs111q5h.jpg\" action-data=\"pic_id=d6022c9bgw1eeom6t8vnkj20rs111q5h\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/d6022c9bgw1eeom6yf15pj20rs0ijdi8.jpg\" action-data=\"pic_id=d6022c9bgw1eeom6yf15pj20rs0ijdi8\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690961735163453\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em>(21)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3590466715\/ACaktlFfv&mid=3690961735163453&name=\u674e\u99a8\u5de7\u5427&uid=3590466715&domain=&pid=d6022c9bgw1eeom6z2wsuj20hs0hsgo8\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690961735163453\">\u8f6c\u53d1(9)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690961735163453\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690961735163453\">\u8bc4\u8bba(23)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3590466715\/ACaktlFfv\" title=\"2014-03-22 16:35\" date=\"1395477315000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690961735163453\">3\u670822\u65e5 16:35<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/1tqBja\" rel=\"nofollow\">360\u6d4f\u89c8\u5668\u8d85\u901f\u7248<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690511020077068\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/childadultjojo\" title=\"\u5434_\u5c0f\u5609\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1929586150\">\n <img src=\"http:\/\/tp3.sinaimg.cn\/1929586150\/50\/5690751770\/0\" alt=\"\u5434_\u5c0f\u5609\" width=\"50\" height=\"50\" usercard=\"id=1929586150&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u5434_\u5c0f\u5609\" href=\"http:\/\/weibo.com\/childadultjojo\" target=\"_blank\" title=\"\u5434_\u5c0f\u5609\" usercard=\"id=1929586150&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1929586150\">\u5434_\u5c0f\u5609<a target=\"_blank\" href=\"http:\/\/club.weibo.com\/intro\"><img src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\" title= \"\u5fae\u535a\u8fbe\u4eba\" alt=\"\u5fae\u535a\u8fbe\u4eba\" class=\"ico_club\" node-type=\"daren\"\/><\/a><\/a>\uff1a<em>\u5434\u5c0f\u5609\u4e5f\u53d8\u8eab\u4ee3\u8d2d\u515a\u5566\uff0c\u5404\u79cd\u5305\u5305\u8bf8\u5982Miu Miu,Prada,Burberry,Dior,<span style=\"color:red;\">Furla<\/span>\u4e4b\u7c7b\u4e71\u5165\uff0c\u62a4\u80a4\u54c1\u5316\u5986\u54c1\u5982\u96c5\u8bd7\u5170\u9edb\u3001\u5170\u853b\u3001Dior\u3001\u5170\u829d\u4e4b\u7c7b\u7684\u90fd\u6709\uff0c\u81f4\u529b\u4e8e\u8ba9\u5c0f\u4f19\u4f34\u4eec\u4e0d\u7528\u51fa\u56fd\u5c31\u80fd\u4e70\u5230\u6700\u6b63\u5b97\u4fbf\u5b9c\u7684\u5546\u54c1\u5566\uff01\u73b0\u8f6c\u53d1\u5e76\u4e14\u827e\u7279\u5341\u4f4d\u60a8\u7684\u597d\u53cb\u5373\u53ef\u83b7\u5f97\u5982\u56fe\u6240\u793a\u6765\u81ea\u97e9\u56fd\u54c1\u724cInnisfree\u9762\u819c5\u7247\u5e76\u5305\u90ae\u3002\u5c0f\u4f19\u4f34\u4eec\u901f\u5ea6\u8f6c\u8d77\u6765\u5427 <\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=1929586150&pic_ids=730325e6jw1een6ft74sbj2096096aaf,730325e6jw1een6ftqifwj2096096aag,730325e6jw1een6g3h1k8j20960960t3&mid=3690511020077068\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/730325e6jw1een6ft74sbj2096096aaf.jpg\" action-data=\"pic_id=730325e6jw1een6ft74sbj2096096aaf\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/730325e6jw1een6ftqifwj2096096aag.jpg\" action-data=\"pic_id=730325e6jw1een6ftqifwj2096096aag\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/730325e6jw1een6g3h1k8j20960960t3.jpg\" action-data=\"pic_id=730325e6jw1een6g3h1k8j20960960t3\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690511020077068\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/1929586150\/ABYBw0k32&mid=3690511020077068&name=\u5434_\u5c0f\u5609&uid=1929586150&domain=childadultjojo&pid=730325e6jw1een6ft74sbj2096096aaf\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690511020077068\">\u8f6c\u53d1(23)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690511020077068\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690511020077068\">\u8bc4\u8bba(2)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/1929586150\/ABYBw0k32\" title=\"2014-03-21 10:44\" date=\"1395369855000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690511020077068\">3\u670821\u65e5 10:44<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690509242118763\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/flashingdeals\" title=\"Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:5025950269\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/5025950269\/50\/40046551963\/1\" alt=\"Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97\" width=\"50\" height=\"50\" usercard=\"id=5025950269&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97\" href=\"http:\/\/weibo.com\/flashingdeals\" target=\"_blank\" title=\"Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97\" usercard=\"id=5025950269&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:5025950269\">Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97<\/a>\uff1a<em><span style=\"color:red;\">Furla<\/span>\u679c\u51bb\u5305\u4e5f\u641e\u6d3b\u52a8\uff0c\u5f88\u662f\u53ef\u8010\u554a\uff01\uffe51200\u5305\u90ae\u5230\u624b\u54e6 \u8981\u7684\u5fae\u4fe1\u6211\uff1aHank_Cd<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=5025950269&pic_ids=005u8ng1gw1een68iroabj30hs0npabq,005u8ng1gw1een68k38oaj30hs0np760,005u8ng1gw1een68ldvhxj30hs0np0u6,005u8ng1gw1een68mi58oj30hs0np409,005u8ng1gw1een68nrfw5j30hs0nptac&mid=3690509242118763\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/005u8ng1gw1een68iroabj30hs0npabq.jpg\" action-data=\"pic_id=005u8ng1gw1een68iroabj30hs0npabq\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/005u8ng1gw1een68k38oaj30hs0np760.jpg\" action-data=\"pic_id=005u8ng1gw1een68k38oaj30hs0np760\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/005u8ng1gw1een68ldvhxj30hs0np0u6.jpg\" action-data=\"pic_id=005u8ng1gw1een68ldvhxj30hs0np0u6\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/005u8ng1gw1een68mi58oj30hs0np409.jpg\" action-data=\"pic_id=005u8ng1gw1een68mi58oj30hs0np409\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/005u8ng1gw1een68nrfw5j30hs0nptac.jpg\" action-data=\"pic_id=005u8ng1gw1een68nrfw5j30hs0nptac\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690509242118763\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/5025950269\/ABYyE8TbB&mid=3690509242118763&name=Hank\u5317\u7f8e\u4ee3\u8d2d\u5c0f\u5e97&uid=5025950269&domain=flashingdeals&pid=005u8ng1gw1een68iroabj30hs0npabq\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690509242118763\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690509242118763\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690509242118763\">\u8bc4\u8bba<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/5025950269\/ABYyE8TbB\" title=\"2014-03-21 10:37\" date=\"1395369432000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690509242118763\">3\u670821\u65e5 10:37<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/weibo.com\/\" rel=\"nofollow\">\u65b0\u6d6a\u5fae\u535a<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690507966790565\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/2015823155\" title=\"iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2015823155\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/2015823155\/50\/5686841053\/0\" alt=\"iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=2015823155&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/u\/2015823155\" target=\"_blank\" title=\"iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d\" usercard=\"id=2015823155&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2015823155\">iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em><span style=\"color:red;\">furla<\/span> piper \u7ecf\u5178\u9ed1\u8272\u4e2d\u53f7 \u65b0\u6b3e\u5706\u9501 2900 \u4e0a\u6d77\u73b0\u8d27 furla\u5165\u95e8\u5305\u54e6 \u4ee3\u8d2d \u52a0\u5fae\u4fe1 olivia-italy<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list out_width\" node-type=\"fl_pic_list\" action-data=\"uid=2015823155&pic_ids=78270533jw1een63bntlnj20no0vkdht,78270533jw1een63dpuaej20no0vktav,78270533jw1een63f06r5j20no0vk0v7,78270533jw1een63g7vsdj20no0vktb1&mid=3690507966790565\">\n   <ul class=\"pic_list clearfix inner_width\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/78270533jw1een63bntlnj20no0vkdht.jpg\" action-data=\"pic_id=78270533jw1een63bntlnj20no0vkdht\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/78270533jw1een63dpuaej20no0vktav.jpg\" action-data=\"pic_id=78270533jw1een63dpuaej20no0vktav\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/78270533jw1een63f06r5j20no0vk0v7.jpg\" action-data=\"pic_id=78270533jw1een63f06r5j20no0vk0v7\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/78270533jw1een63g7vsdj20no0vktb1.jpg\" action-data=\"pic_id=78270533jw1een63g7vsdj20no0vktb1\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690507966790565\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/2015823155\/ABYwAsuxf&mid=3690507966790565&name=iiLoLo\u610f\u5927\u5229\u4ee3\u8d2d&uid=2015823155&domain=&pid=78270533jw1een63bntlnj20no0vkdht\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690507966790565\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690507966790565\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690507966790565\">\u8bc4\u8bba<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/2015823155\/ABYwAsuxf\" title=\"2014-03-21 10:32\" date=\"1395369128000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690507966790565\">3\u670821\u65e5 10:32<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/c66T5g\" rel=\"nofollow\">Android\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690506607396676\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3460030850\" title=\"\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3460030850\">\n <img src=\"http:\/\/tp3.sinaimg.cn\/3460030850\/50\/40037791939\/0\" alt=\"\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3460030850&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/u\/3460030850\" target=\"_blank\" title=\"\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d\" usercard=\"id=3460030850&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3460030850\">\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d<\/a>\uff1a<em><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla?from=526\" target=\"_blank\">#<span style=\"color:red;\">furla<\/span>#<\/a> \u5f88\u6f02\u4eae\u7684\u7ea2\u8272\u679c\u51bb\u5305\uff0c\u6211\u7684VIP\u6298\u6263\u62ff\u51fa\u6765\u5927\u5bb6\u5171\u4eab\uff0c1700\u5230\u624b <a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla+%E6%8A%98%E6%89%A3?from=526\" target=\"_blank\">#furla \u6298\u6263#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla+%E4%BB%A3%E8%B4%AD?from=526\" target=\"_blank\">#furla \u4ee3\u8d2d#<\/a><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/thumbnail\/ce3be182jw1een2u7l2psj209w0ce3yw.jpg\" action-type='feed_list_media_img' action-data=\"uid=3460030850&mid=3690506607396676\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_pvm_other:3690506607396676\"\/><img style=\"left:39.5px;top:52px;display:none;\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/loading.gif\" class=\"loading_gif\"\/>\n  <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690506607396676\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3460030850\/ABYuov2de&mid=3690506607396676&name=\u5c0fVC\u5317\u7f8e\u4ee3\u8d2d&uid=3460030850&domain=&pid=ce3be182jw1een2u7l2psj209w0ce3yw\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690506607396676\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690506607396676\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690506607396676\">\u8bc4\u8bba(2)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3460030850\/ABYuov2de\" title=\"2014-03-21 10:26\" date=\"1395368804000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690506607396676\">3\u670821\u65e5 10:26<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/4ACxed\" rel=\"nofollow\">iPad\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690496645449682\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3169824057\" title=\"\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3169824057\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/3169824057\/50\/5690465075\/0\" alt=\"\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3169824057&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/u\/3169824057\" target=\"_blank\" title=\"\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d\" usercard=\"id=3169824057&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3169824057\">\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em>\u5e2e\u4e00\u7f8e\u599e\u4e70\u7684\u5c0f\u5305\u5305 <span style=\"color:red;\">furla<\/span>\u679c\u51bb\u5305mini\u7248 \u51b0\u6dc7\u51cc\u8272 \u597d\u7f8e \u53d1\u51fa\u6765\u5927\u5bb6\u5206\u4eab\u4e00\u4e0b \u4e13\u67dc\u6b3e \u6ca1\u6298\u6263<img src=\"http:\/\/img.t.sinajs.cn\/t3\/style\/images\/common\/face\/emimage\/ee8488.png\" width=\"20px\" height=\"20px\" \/><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3169824057&pic_ids=bcefad39jw1een4r7sm2xj20hs0dctav,bcefad39jw1een4r9qyzcj20hs0nuadk,bcefad39jw1een4rbpxlnj20hs0nuwii,bcefad39jw1een4rdsg9wj20hs0nujuz,bcefad39jw1een4rgeojlj20hs0nujx6&mid=3690496645449682\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/bcefad39jw1een4r7sm2xj20hs0dctav.jpg\" action-data=\"pic_id=bcefad39jw1een4r7sm2xj20hs0dctav\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/bcefad39jw1een4r9qyzcj20hs0nuadk.jpg\" action-data=\"pic_id=bcefad39jw1een4r9qyzcj20hs0nuadk\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/bcefad39jw1een4rbpxlnj20hs0nuwii.jpg\" action-data=\"pic_id=bcefad39jw1een4rbpxlnj20hs0nuwii\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/bcefad39jw1een4rdsg9wj20hs0nujuz.jpg\" action-data=\"pic_id=bcefad39jw1een4rdsg9wj20hs0nujuz\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/bcefad39jw1een4rgeojlj20hs0nujx6.jpg\" action-data=\"pic_id=bcefad39jw1een4rgeojlj20hs0nujx6\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690496645449682\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3169824057\/ABYekmRI6&mid=3690496645449682&name=\u897f\u73ed\u7259\u5927\u7cd6\u5305\u7684\u826f\u5fc3\u4ee3\u8d2d&uid=3169824057&domain=&pid=bcefad39jw1een4r7sm2xj20hs0dctav\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690496645449682\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690496645449682\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690496645449682\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3169824057\/ABYekmRI6\" title=\"2014-03-21 09:47\" date=\"1395366429000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690496645449682\">3\u670821\u65e5 09:47<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690492107468446\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3218865763\" title=\"S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3218865763\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/3218865763\/50\/40020355004\/0\" alt=\"S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3218865763&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/u\/3218865763\" target=\"_blank\" title=\"S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d\" usercard=\"id=3218865763&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3218865763\">S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d<\/a>\uff1a<em><span style=\"color:red;\">Furla<\/span> \u62fc\u8272\u7cd6\u679c\u5305\uff0c\u56fe1\u3001\u56fe2\u662f\u5c0f\u53f7\u7684\uff0c\u56fe3\u7b2c2\u5c42\u662f\u5927\u53f7\u7684\u3002<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3218865763&pic_ids=bfdbfe63jw1een49uef5qj20hs0dc0ti,bfdbfe63jw1een49vwduyj20hs0dcdgl,bfdbfe63jw1een49wjpl2j20hs0dcmy5&mid=3690492107468446\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/bfdbfe63jw1een49uef5qj20hs0dc0ti.jpg\" action-data=\"pic_id=bfdbfe63jw1een49uef5qj20hs0dc0ti\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/bfdbfe63jw1een49vwduyj20hs0dcdgl.jpg\" action-data=\"pic_id=bfdbfe63jw1een49vwduyj20hs0dcdgl\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/bfdbfe63jw1een49wjpl2j20hs0dcmy5.jpg\" action-data=\"pic_id=bfdbfe63jw1een49wjpl2j20hs0dcmy5\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690492107468446\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3218865763\/ABY70vkSO&mid=3690492107468446&name=S\u5bb6\u6b27\u7f8e\u4ea7\u54c1\u4ee3\u8d2d&uid=3218865763&domain=&pid=bfdbfe63jw1een49uef5qj20hs0dc0ti\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690492107468446\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690492107468446\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690492107468446\">\u8bc4\u8bba(3)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3218865763\/ABY70vkSO\" title=\"2014-03-21 09:29\" date=\"1395365347000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690492107468446\">3\u670821\u65e5 09:29<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/2AhyC\" rel=\"nofollow\">\u4e09\u661fGalaxy Note II<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690477045856984\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/minkey919\" title=\"\u4ee3\u8d2dGo_\u5de6\u94ed1874\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1777819847\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/1777819847\/50\/5689119028\/0\" alt=\"\u4ee3\u8d2dGo_\u5de6\u94ed1874\" width=\"50\" height=\"50\" usercard=\"id=1777819847&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u4ee3\u8d2dGo_\u5de6\u94ed1874\" href=\"http:\/\/weibo.com\/minkey919\" target=\"_blank\" title=\"\u4ee3\u8d2dGo_\u5de6\u94ed1874\" usercard=\"id=1777819847&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1777819847\">\u4ee3\u8d2dGo_\u5de6\u94ed1874<a target=\"_blank\" href=\"http:\/\/club.weibo.com\/intro\"><img src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\" title= \"\u5fae\u535a\u8fbe\u4eba\" alt=\"\u5fae\u535a\u8fbe\u4eba\" class=\"ico_club\" node-type=\"daren\"\/><\/a><\/a>\uff1a<em>\u6b27\u6d32\u4e13\u67dc\u4ee3\u8d2d<span style=\"color:red;\">furla<\/span> \u524d\u56db 2100 mini\u7ea21900 \u624b\u6293\u76ae1900 \u6302\u4ef6699 \u4e13\u67dc\u4ee3\u8d2d.<a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E6%AC%A7%E6%B4%B2%E4%BB%A3%E8%B4%AD?from=526\" target=\"_blank\">#\u6b27\u6d32\u4ee3\u8d2d#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E4%B8%93%E6%9F%9C%E4%BB%A3%E8%B4%AD?from=526\" target=\"_blank\">#\u4e13\u67dc\u4ee3\u8d2d#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E5%A5%A2%E4%BE%88%E5%93%81%E4%B8%93%E6%9F%9C?from=526\" target=\"_blank\">#\u5962\u4f88\u54c1\u4e13\u67dc#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla%E8%8A%99%E6%8B%89?from=526\" target=\"_blank\">#furla\u8299\u62c9#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla%E6%9E%9C%E5%86%BB%E5%8C%85?from=526\" target=\"_blank\">#furla\u679c\u51bb\u5305#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla%E4%BB%A3%E8%B4%AD?from=526\" target=\"_blank\">#furla\u4ee3\u8d2d#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla%E6%8A%98%E6%89%A3?from=526\" target=\"_blank\">#furla\u6298\u6263#<\/a><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=1777819847&pic_ids=69f760c7jw1een2igsrfyj20hs0dc75k,69f760c7jw1een2ihhdmwj20hs0nu0v7,69f760c7jw1een2ii1p7ij20hs0nu0us,69f760c7jw1een2ij01i0j20hs0nu412,69f760c7jw1een2ijd71vj20hs0dcta2,69f760c7jw1een2ijxj40j20hs0nujt2,69f760c7jw1een2ilaqusj20hs0nu760,69f760c7jw1een2ircjtdj20hs0dcmzk,69f760c7jw1een2isuorlj20hs0nuju2&mid=3690477045856984\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/69f760c7jw1een2igsrfyj20hs0dc75k.jpg\" action-data=\"pic_id=69f760c7jw1een2igsrfyj20hs0dc75k\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/69f760c7jw1een2ihhdmwj20hs0nu0v7.jpg\" action-data=\"pic_id=69f760c7jw1een2ihhdmwj20hs0nu0v7\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/69f760c7jw1een2ii1p7ij20hs0nu0us.jpg\" action-data=\"pic_id=69f760c7jw1een2ii1p7ij20hs0nu0us\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/69f760c7jw1een2ij01i0j20hs0nu412.jpg\" action-data=\"pic_id=69f760c7jw1een2ij01i0j20hs0nu412\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/69f760c7jw1een2ijd71vj20hs0dcta2.jpg\" action-data=\"pic_id=69f760c7jw1een2ijd71vj20hs0dcta2\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/69f760c7jw1een2ijxj40j20hs0nujt2.jpg\" action-data=\"pic_id=69f760c7jw1een2ijxj40j20hs0nujt2\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/69f760c7jw1een2ilaqusj20hs0nu760.jpg\" action-data=\"pic_id=69f760c7jw1een2ilaqusj20hs0nu760\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/69f760c7jw1een2ircjtdj20hs0dcmzk.jpg\" action-data=\"pic_id=69f760c7jw1een2ircjtdj20hs0dcmzk\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/69f760c7jw1een2isuorlj20hs0nuju2.jpg\" action-data=\"pic_id=69f760c7jw1een2isuorlj20hs0nuju2\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690477045856984\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/1777819847\/ABXIIozFu&mid=3690477045856984&name=\u4ee3\u8d2dGo_\u5de6\u94ed1874&uid=1777819847&domain=minkey919&pid=69f760c7jw1een2igsrfyj20hs0dc75k\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690477045856984\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690477045856984\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690477045856984\">\u8bc4\u8bba<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/1777819847\/ABXIIozFu\" title=\"2014-03-21 08:29\" date=\"1395361756000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690477045856984\">3\u670821\u65e5 08:29<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/3G5oUM\" rel=\"nofollow\">iPhone 5s<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690476609943783\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3069715047\" title=\"\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3069715047\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/3069715047\/50\/5690328175\/0\" alt=\"\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP\" width=\"50\" height=\"50\" usercard=\"id=3069715047&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP\" href=\"http:\/\/weibo.com\/u\/3069715047\" target=\"_blank\" title=\"\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP\" usercard=\"id=3069715047&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3069715047\">\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP<\/a>\uff1a<em><span style=\"color:red;\">furla<\/span>\uff0c\u65b0\u6b3e\uff0c\u5305\u7f8e\u4ef7\u4f4e\uff0c\u7c73\u5170\u76f4\u4f9b\uff0c\u8981\u7684\u901f\u4e0e\u6211\u8054\u7cfb\uff0c\u5fae\u4fe1\u53f7zpdg_pp<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6a\/laugh.gif\" title=\"[\u54c8\u54c8]\" alt=\"[\u54c8\u54c8]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6a\/laugh.gif\" title=\"[\u54c8\u54c8]\" alt=\"[\u54c8\u54c8]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6a\/laugh.gif\" title=\"[\u54c8\u54c8]\" alt=\"[\u54c8\u54c8]\" type=\"face\" \/>\u901f\u901f\u4e0b\u624b\uff0c\u8d27\u4e0d\u591a<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/f2\/wg_org.gif\" title=\"[\u56f4\u89c2]\" alt=\"[\u56f4\u89c2]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/f2\/wg_org.gif\" title=\"[\u56f4\u89c2]\" alt=\"[\u56f4\u89c2]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/f2\/wg_org.gif\" title=\"[\u56f4\u89c2]\" alt=\"[\u56f4\u89c2]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/f2\/wg_org.gif\" title=\"[\u56f4\u89c2]\" alt=\"[\u56f4\u89c2]\" type=\"face\" \/><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E4%B8%93%E4%B8%9A%E6%AD%A3%E5%93%81%E4%BB%A3%E8%B4%AD?from=526\" target=\"_blank\">#\u4e13\u4e1a\u6b63\u54c1\u4ee3\u8d2d#<\/a><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list out_width\" node-type=\"fl_pic_list\" action-data=\"uid=3069715047&pic_ids=b6f82267jw1een2hkfelcj20hs0npjs4,b6f82267jw1een2hn8jl0j20hs0npgmt,b6f82267jw1een2hoy8rsj20hs0npab8,b6f82267jw1een2hsj02vj20hs0np0tw&mid=3690476609943783\">\n   <ul class=\"pic_list clearfix inner_width\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/b6f82267jw1een2hkfelcj20hs0npjs4.jpg\" action-data=\"pic_id=b6f82267jw1een2hkfelcj20hs0npjs4\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/b6f82267jw1een2hn8jl0j20hs0npgmt.jpg\" action-data=\"pic_id=b6f82267jw1een2hn8jl0j20hs0npgmt\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/b6f82267jw1een2hoy8rsj20hs0npab8.jpg\" action-data=\"pic_id=b6f82267jw1een2hoy8rsj20hs0npab8\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/b6f82267jw1een2hsj02vj20hs0np0tw.jpg\" action-data=\"pic_id=b6f82267jw1een2hsj02vj20hs0np0tw\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690476609943783\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3069715047\/ABXI0FIPB&mid=3690476609943783&name=\u4e13\u4e1a\u6b63\u54c1\u6dd8_\u5c0fP&uid=3069715047&domain=&pid=b6f82267jw1een2hkfelcj20hs0npjs4\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690476609943783\">\u8f6c\u53d1(2)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690476609943783\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690476609943783\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3069715047\/ABXI0FIPB\" title=\"2014-03-21 08:27\" date=\"1395361651000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690476609943783\">3\u670821\u65e5 08:27<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/6G7MnG\" rel=\"nofollow\">\u4e09\u661fGALAXY S4<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690376097075492\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/3956831443\" title=\"\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3956831443\">\n <img src=\"http:\/\/tp4.sinaimg.cn\/3956831443\/50\/40042818901\/0\" alt=\"\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3956831443&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/u\/3956831443\" target=\"_blank\" title=\"\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d\" usercard=\"id=3956831443&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3956831443\">\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em>Nordstrom \u73b0\u6709<span style=\"color:red;\">Furla<\/span> 'Candy - Mini' \u624b\u63d0\u659c\u630e\u5305\uff0c3\u8272\u53ef\u9009\uff0c\u539f\u4ef7$148\uff0c\u7279\u4ef7\u53ea\u97001030\u5230\u624b\uff01Furla\u4e0d\u4ec5\u9632\u98ce\u9632\u96e8\u53ef\u88c5\u4e0b\u94b1\u5305\u624b\u673a\u94a5\u5319\uff0c\u66f4\u4e0d\u7528\u62c5\u5fc3\u4f1a\u8fc7\u5206\u66b4\u9732\u9690\u79c1\uff0c\u5f53\u5c5e\u5b9e\u60e0\u578bmini\u5305\u6b3e\u4e2d\u7684&quot;\u6218\u6597\u673a&quot;\uff0c\u4eae\u8272\u7092\u9e21\u9002\u5408\u6625\u590f\u5929<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3956831443&pic_ids=ebd874d3jw1eemqvmtbwqj20h50h5aci,ebd874d3jw1eemqw2aie1j20h00h00uq,ebd874d3jw1eemqwg4481j20hs0hsgng,ebd874d3jw1eemqxboqqfj20hs0hs77v,ebd874d3jw1eemqxfdyvxj205307nglw,ebd874d3jw1eemqxneebqj20k00dat9q,ebd874d3jw1eemqxxd0kfj20a00a0jrt,ebd874d3jw1eemqy0uzr9j20a00aa0sv,ebd874d3jw1eemqy6hzn1j20a00a0jrv&mid=3690376097075492\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/ebd874d3jw1eemqvmtbwqj20h50h5aci.jpg\" action-data=\"pic_id=ebd874d3jw1eemqvmtbwqj20h50h5aci\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/ebd874d3jw1eemqw2aie1j20h00h00uq.jpg\" action-data=\"pic_id=ebd874d3jw1eemqw2aie1j20h00h00uq\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/ebd874d3jw1eemqwg4481j20hs0hsgng.jpg\" action-data=\"pic_id=ebd874d3jw1eemqwg4481j20hs0hsgng\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/ebd874d3jw1eemqxboqqfj20hs0hs77v.jpg\" action-data=\"pic_id=ebd874d3jw1eemqxboqqfj20hs0hs77v\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/ebd874d3jw1eemqxfdyvxj205307nglw.jpg\" action-data=\"pic_id=ebd874d3jw1eemqxfdyvxj205307nglw\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/ebd874d3jw1eemqxneebqj20k00dat9q.jpg\" action-data=\"pic_id=ebd874d3jw1eemqxneebqj20k00dat9q\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/ebd874d3jw1eemqxxd0kfj20a00a0jrt.jpg\" action-data=\"pic_id=ebd874d3jw1eemqxxd0kfj20a00a0jrt\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/ebd874d3jw1eemqy0uzr9j20a00aa0sv.jpg\" action-data=\"pic_id=ebd874d3jw1eemqy0uzr9j20a00aa0sv\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/ebd874d3jw1eemqy6hzn1j20a00a0jrv.jpg\" action-data=\"pic_id=ebd874d3jw1eemqy6hzn1j20a00a0jrv\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690376097075492\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em>(2)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3956831443\/ABV5TtGEQ&mid=3690376097075492&name=\u6c34\u6c34\u7f8e\u56fd\u4ee3\u8d2d&uid=3956831443&domain=&pid=ebd874d3jw1eemqvmtbwqj20h50h5aci\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690376097075492\">\u8f6c\u53d1(1)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690376097075492\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690376097075492\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3956831443\/ABV5TtGEQ\" title=\"2014-03-21 01:48\" date=\"1395337688000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690376097075492\">3\u670821\u65e5 01:48<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690364659499682\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/gycc0923\" title=\"\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3193980032\">\n <img src=\"http:\/\/tp1.sinaimg.cn\/3193980032\/50\/5687450237\/0\" alt=\"\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=3193980032&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d\" href=\"http:\/\/weibo.com\/gycc0923\" target=\"_blank\" title=\"\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d\" usercard=\"id=3193980032&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3193980032\">\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><\/a>\uff1a<em><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/coccinelle?from=526\" target=\"_blank\">#coccinelle#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/furla?from=526\" target=\"_blank\">#<span style=\"color:red;\">furla<\/span>#<\/a>\u5169\u500b\u5e97\u4e3b\u81ea\u7559\u6b3e \u5169\u500b\u76ae\u8cea\u90fd\u5f88\u8d0a \u548cprada\u540c\u4e00\u76ae\u5177\u63d0\u4f9b\u5546 \u90fd\u662f\u4e09\u4f4d\u6578\u8d85\u503c\u6b3e \u5006\u5e97\u4e3b\u90fd\u662f\u5b9e\u5728\u7684\u4eba \u7528\u5230\u597d\u7528\u624d\u6562\u63a8\u85a6 \u7e7c\u7e8c\u4ee3\u8cfc \u6c42\u653e\u7c73\u5404\u4f4d<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6e\/shamea_org.gif\" title=\"[\u5bb3\u7f9e]\" alt=\"[\u5bb3\u7f9e]\" type=\"face\" \/>\u4ee3\u8cfc\u52a0\u5fae\u4fe1\uff1accglobalbuyer<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list out_width\" node-type=\"fl_pic_list\" action-data=\"uid=3193980032&pic_ids=be604480jw1eempmis54pj20zk0zkqg9,be604480jw1eempmohdf4j20zk0zk11g,be604480jw1eempms9tehj20zk0zkahq,be604480jw1eempmyixe9j20zk0zkdsc&mid=3690364659499682\">\n   <ul class=\"pic_list clearfix inner_width\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/be604480jw1eempmis54pj20zk0zkqg9.jpg\" action-data=\"pic_id=be604480jw1eempmis54pj20zk0zkqg9\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/be604480jw1eempmohdf4j20zk0zk11g.jpg\" action-data=\"pic_id=be604480jw1eempmohdf4j20zk0zk11g\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/be604480jw1eempms9tehj20zk0zkahq.jpg\" action-data=\"pic_id=be604480jw1eempms9tehj20zk0zkahq\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/be604480jw1eempmyixe9j20zk0zkdsc.jpg\" action-data=\"pic_id=be604480jw1eempmyixe9j20zk0zkdsc\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690364659499682\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em>(1)<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3193980032\/ABUNrDRiG&mid=3690364659499682&name=\u9648\u5708\u5708\u9999\u6e2f\u6b27\u7f8e\u4ee3\u8d2d&uid=3193980032&domain=gycc0923&pid=be604480jw1eempmis54pj20zk0zkqg9\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690364659499682\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690364659499682\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690364659499682\">\u8bc4\u8bba(2)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3193980032\/ABUNrDRiG\" title=\"2014-03-21 01:02\" date=\"1395334960000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690364659499682\">3\u670821\u65e5 01:02<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690350390907430\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/didiaoshehua8888\" title=\"\u4f4e\u8c03\u5962\u534eAAA\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3891234245\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/3891234245\/50\/5682336086\/0\" alt=\"\u4f4e\u8c03\u5962\u534eAAA\" width=\"50\" height=\"50\" usercard=\"id=3891234245&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"\u4f4e\u8c03\u5962\u534eAAA\" href=\"http:\/\/weibo.com\/didiaoshehua8888\" target=\"_blank\" title=\"\u4f4e\u8c03\u5962\u534eAAA\" usercard=\"id=3891234245&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:3891234245\">\u4f4e\u8c03\u5962\u534eAAA<\/a>\uff1a<em>\u82b1\u6f3e\u65e9\u6625\u53ef\u5c11\u4e0d\u4e86<a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/Furla?from=526\" target=\"_blank\">#<span style=\"color:red;\">Furla<\/span>#<\/a>\u7684\u7cd6\u679c\u8272\u900f\u660e\u679c\u51bb\u5305\uff0c\u76ee\u524d\u73b0\u8d27\u5df2\u96f6\u96f6\u6563\u6563\u4e86\uff0c\u559c\u6b22\u7684\u5148\u8be2\u5e93\u5b58\u54e6\u3002<a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E5%A5%A2%E4%BE%88%E5%93%81?from=526\" target=\"_blank\">#\u5962\u4f88\u54c1#<\/a><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E5%BE%AE%E4%BF%A1?from=526\" target=\"_blank\">#\u5fae\u4fe1#<\/a>\uff1agaojidingzhi8888\uff0c\u660e\u7801\u6807\u4ef7\u3002<\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=3891234245&pic_ids=e7ef85c5jw1eemnz9ix3dj218g0p0gsg,e7ef85c5jw1eemnzaqjavj218g0p0tee,e7ef85c5jw1eemnzc5cbbj20p018g7au,e7ef85c5jw1eemnzdn3t7j218g0p0gs6,e7ef85c5jw1eemnzeh8aij218g0p0tek,e7ef85c5jw1eemnzgt4yoj218g0p0n5h,e7ef85c5jw1eemnzi0qntj218g0p07aa,e7ef85c5jw1eemnzjh5fsj218g0p0af0,e7ef85c5jw1eemnzkp69kj218g0p0tdq&mid=3690350390907430\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/e7ef85c5jw1eemnz9ix3dj218g0p0gsg.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnz9ix3dj218g0p0gsg\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/e7ef85c5jw1eemnzaqjavj218g0p0tee.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzaqjavj218g0p0tee\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/e7ef85c5jw1eemnzc5cbbj20p018g7au.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzc5cbbj20p018g7au\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/e7ef85c5jw1eemnzdn3t7j218g0p0gs6.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzdn3t7j218g0p0gs6\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/e7ef85c5jw1eemnzeh8aij218g0p0tek.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzeh8aij218g0p0tek\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/e7ef85c5jw1eemnzgt4yoj218g0p0n5h.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzgt4yoj218g0p0n5h\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/e7ef85c5jw1eemnzi0qntj218g0p07aa.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzi0qntj218g0p07aa\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/e7ef85c5jw1eemnzjh5fsj218g0p0af0.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzjh5fsj218g0p0af0\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/e7ef85c5jw1eemnzkp69kj218g0p0tdq.jpg\" action-data=\"pic_id=e7ef85c5jw1eemnzkp69kj218g0p0tdq\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690350390907430\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/3891234245\/ABUqr3O3Y&mid=3690350390907430&name=\u4f4e\u8c03\u5962\u534eAAA&uid=3891234245&domain=didiaoshehua8888&pid=e7ef85c5jw1eemnz9ix3dj218g0p0gsg\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690350390907430\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690350390907430\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690350390907430\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/3891234245\/ABUqr3O3Y\" title=\"2014-03-21 00:05\" date=\"1395331559000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690350390907430\">3\u670821\u65e5 00:05<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/c66T5g\" rel=\"nofollow\">Android\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690345286443571\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/1866087333\" title=\"babyvivien__\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1866087333\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/1866087333\/50\/5690148489\/0\" alt=\"babyvivien__\" width=\"50\" height=\"50\" usercard=\"id=1866087333&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"babyvivien__\" href=\"http:\/\/weibo.com\/u\/1866087333\" target=\"_blank\" title=\"babyvivien__\" usercard=\"id=1866087333&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:1866087333\">babyvivien__<\/a>\uff1a<em><span style=\"color:red;\">FURLA<\/span>\u2022candy<img src=\"http:\/\/img.t.sinajs.cn\/t3\/style\/images\/common\/face\/emimage\/ee8083.png\" width=\"20px\" height=\"20px\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t3\/style\/images\/common\/face\/emimage\/ee8083.png\" width=\"20px\" height=\"20px\" \/>\u679c\u51bb\u5305 \u56fe\u7247\u6b3e\u5f0f\u90fd\u6709 2000+ \u5927\u53f7\u5c0f\u53f7\u90fd\u6709\uff01\uff01 \u73b0\u8d27\uff01\u975e\u5e38\u597d\u770b<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/a1\/se_org.gif\" title=\"[\u8272]\" alt=\"[\u8272]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/a1\/se_org.gif\" title=\"[\u8272]\" alt=\"[\u8272]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/a1\/se_org.gif\" title=\"[\u8272]\" alt=\"[\u8272]\" type=\"face\" \/><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n <!-- \u4e5d\u5bab\u683c -->\n  <div class=\"list_pic_list\" node-type=\"fl_pic_list\" action-data=\"uid=1866087333&pic_ids=6f3a3ba5jw1eemne56gxcj20hs0dcq4l,6f3a3ba5jw1eemneakh73j20hs0nptaz,6f3a3ba5jw1eemnecffg6j20hs0dcmy5,6f3a3ba5jw1eemneeikcvj20hs0dcq3r,6f3a3ba5jw1eemnegm4myj20hs0npq4i,6f3a3ba5jw1eemnekxovyj20hs0npgn0,6f3a3ba5jw1eemneows6gj20hs0np40d,6f3a3ba5jw1eemnersv0kj20hs0np766,6f3a3ba5jw1eemneuew58j20hs0dcabt&mid=3690345286443571\">\n   <ul class=\"pic_list clearfix\">\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww2.sinaimg.cn\/square\/6f3a3ba5jw1eemne56gxcj20hs0dcq4l.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemne56gxcj20hs0dcq4l\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/6f3a3ba5jw1eemneakh73j20hs0nptaz.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemneakh73j20hs0nptaz\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/6f3a3ba5jw1eemnecffg6j20hs0dcmy5.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemnecffg6j20hs0dcmy5\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/6f3a3ba5jw1eemneeikcvj20hs0dcq3r.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemneeikcvj20hs0dcq3r\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/6f3a3ba5jw1eemnegm4myj20hs0npq4i.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemnegm4myj20hs0npq4i\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/6f3a3ba5jw1eemnekxovyj20hs0npgn0.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemnekxovyj20hs0npgn0\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww3.sinaimg.cn\/square\/6f3a3ba5jw1eemneows6gj20hs0np40d.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemneows6gj20hs0np40d\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/square\/6f3a3ba5jw1eemnersv0kj20hs0np766.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemnersv0kj20hs0np766\" action-type=\"fl_pics\">\n  <\/li>\n <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww4.sinaimg.cn\/square\/6f3a3ba5jw1eemneuew58j20hs0dcabt.jpg\" action-data=\"pic_id=6f3a3ba5jw1eemneuew58j20hs0dcabt\" action-type=\"fl_pics\">\n  <\/li>\n    <\/ul>\n  <\/div>\n  <!-- \/\u4e5d\u5bab\u683c -->\n   <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690345286443571\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/1866087333\/ABUicr2gz&mid=3690345286443571&name=babyvivien__&uid=1866087333&domain=&pid=6f3a3ba5jw1eemne56gxcj20hs0dcq4l\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690345286443571\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690345286443571\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690345286443571\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/1866087333\/ABUicr2gz\" title=\"2014-03-20 23:45\" date=\"1395330341000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690345286443571\">3\u670820\u65e5 23:45<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n<dl class=\"feed_list W_linecolor\" mid=\"3690342463281096\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/shenguochao\" title=\"COCO\u5c0f\u5996\u5168\u7403\u8d2d\" target=\"_blank\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2271229061\">\n <img src=\"http:\/\/tp2.sinaimg.cn\/2271229061\/50\/5635749344\/0\" alt=\"COCO\u5c0f\u5996\u5168\u7403\u8d2d\" width=\"50\" height=\"50\" usercard=\"id=2271229061&usercardkey=weibo_mp\"\/>\n  <\/a>\n <\/dt>\n <dd class=\"content\">\n  <p node-type=\"feed_list_content\">\n <a nick-name=\"COCO\u5c0f\u5996\u5168\u7403\u8d2d\" href=\"http:\/\/weibo.com\/shenguochao\" target=\"_blank\" title=\"COCO\u5c0f\u5996\u5168\u7403\u8d2d\" usercard=\"id=2271229061&usercardkey=weibo_mp\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_other:2271229061\">COCO\u5c0f\u5996\u5168\u7403\u8d2d<a href=\"http:\/\/vip.weibo.com\/personal?from=search\" target=\"_blank\"><img class=\"ico_member\" alt=\"\u5fae\u535a\u4f1a\u5458\" title=\"\u5fae\u535a\u4f1a\u5458\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/transparent.gif\"><\/a><a href=\"http:\/\/weibo.com\/a\/bind\/open?from=taobao\" target=\"_blank\"><i class=\"ico_taobao\" title=\"\u6dd8\u5b9d\u5546\u6237\"><\/i><\/a><\/a>\uff1a<em><a class=\"a_topic\" href=\"http:\/\/huati.weibo.com\/k\/%E5%B0%8F%E5%A6%96%E7%8E%B0%E8%B4%A7?from=526\" target=\"_blank\">#\u5c0f\u5996\u73b0\u8d27#<\/a><span style=\"color:red;\">FURLA<\/span>\u590f\u65e5\u5fc5\u5907\uff0c\u6c99\u6ee9\uff0c\u6d77\u6c34\uff0c\u65e5\u5149\u6d74<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/0b\/tootha_org.gif\" title=\"[\u563b\u563b]\" alt=\"[\u563b\u563b]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/0b\/tootha_org.gif\" title=\"[\u563b\u563b]\" alt=\"[\u563b\u563b]\" type=\"face\" \/>\u7ea2\u8272\u6682\u65f6\u670936\u7801\uff0c\u84dd\u8272<img src=\"http:\/\/img.t.sinajs.cn\/t3\/style\/images\/common\/face\/emimage\/ee8895.png\" width=\"20px\" height=\"20px\" \/>37\u7801\u3002\u4e0d\u504f\u7801\u7684\u54e6\uff0c\u7279\u4ef7\uff1a499\u5143\/\u53cc<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6d\/lovea_org.gif\" title=\"[\u7231\u4f60]\" alt=\"[\u7231\u4f60]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6d\/lovea_org.gif\" title=\"[\u7231\u4f60]\" alt=\"[\u7231\u4f60]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/6d\/lovea_org.gif\" title=\"[\u7231\u4f60]\" alt=\"[\u7231\u4f60]\" type=\"face\" \/>\u4ec5\u6b64\u4e24\u53cc\uff0c\u7279\u4ef7\u53ea\u6709\u5fae\u535a\u5ba2\u6237\u4eab\u53d7\uff0c\u8bf7\u52a0\u5fae\u4fe1\u6ce8\u660e\uff1a\u5fae\u535a\u5ba2\u6237<img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/c9\/geili_org.gif\" title=\"[\u7ed9\u529b]\" alt=\"[\u7ed9\u529b]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/c9\/geili_org.gif\" title=\"[\u7ed9\u529b]\" alt=\"[\u7ed9\u529b]\" type=\"face\" \/><img src=\"http:\/\/img.t.sinajs.cn\/t4\/appstyle\/expression\/ext\/normal\/c9\/geili_org.gif\" title=\"[\u7ed9\u529b]\" alt=\"[\u7ed9\u529b]\" type=\"face\" \/><\/em>\n  <\/p>\n   <ul class=\"piclist\" node-type=\"feed_list_media_prev\">\n   <li>\n   <img class=\"bigcursor\" src=\"http:\/\/ww1.sinaimg.cn\/thumbnail\/87603485jw1eemmzupmzsj218g0xch40.jpg\" action-type='feed_list_media_img' action-data=\"uid=2271229061&mid=3690342463281096\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_pvm_other:3690342463281096\"\/><img style=\"left:39.5px;top:52px;display:none;\" src=\"http:\/\/img.t.sinajs.cn\/t4\/style\/images\/common\/loading.gif\" class=\"loading_gif\"\/>\n  <\/li>\n  <\/ul>\n  <dl class=\"comment\" style=\"display: none;\" node-type=\"feed_list_media_disp\"><\/dl>\n <p class=\"info W_linkb W_textb\">\n <span>\n    <a title=\"\u8d5e\" action-data=\"mid=3690342463281096\" action-type=\"feed_list_like\" href=\"javascript:void(0);\"><em class=\"W_ico20 icon_praised_b\">\u8d5e<\/em><\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-data=\"allowForward=1&url=http:\/\/weibo.com\/2271229061\/ABUdEdLyU&mid=3690342463281096&name=COCO\u5c0f\u5996\u5168\u7403\u8d2d&uid=2271229061&domain=shenguochao&pid=87603485jw1eemmzupmzsj218g0xch40\" action-type=\"feed_list_forward\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_z_other:3690342463281096\">\u8f6c\u53d1<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_favorite\"  suda-data=\"key=tblog_search_v4.1&value=wb_feed_s_other:3690342463281096\">\u6536\u85cf<\/a><i class=\"W_vline\">|<\/i>\n  <a href=\"javascript:void(0);\" action-type=\"feed_list_comment\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_p_other:3690342463281096\">\u8bc4\u8bba(1)<\/a>\n <\/span>\n <a href=\"http:\/\/weibo.com\/2271229061\/ABUdEdLyU\" title=\"2014-03-20 23:34\" date=\"1395329669000\" class=\"date\" node-type=\"feed_list_item_date\" suda-data=\"key=tblog_search_v4.1&value=wb_feed_t_other:3690342463281096\">3\u670820\u65e5 23:34<\/a> \u6765\u81ea<a target=\"_blank\" href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>\n  <\/p>\n    <div node-type=\"feed_list_repeat\" class=\"repeat W_textc W_linecolor W_bgcolor\" style=\"display:none;\"><\/div>\n <\/dd>\n <dd class=\"clear\"><\/dd>\n<\/dl>\n <div class=\"search_num\"><span>\u627e\u5230 19439 \u6761\u7ed3\u679c<\/span><\/div>   <div class=\"search_page clearfix\" suda-data=\"key=tblog_search_v4.1&value=weibo_page\">\n  <ul class=\"search_page_M\"><li class=\"cur\"><a href=\"javascript:void(0);\">1<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=2\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >2<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=3\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >3<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=4\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >4<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=5\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >5<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=6\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >6<\/a><\/li><li>...<\/li><li><a href=\"\/wb\/furla&xsort=hot&page=50\"suda-data='key=tblog_search_v4.1&value=weibo_page_1' >50<\/a><\/li><li><a href=\"\/wb\/furla&xsort=hot&page=2\"suda-data='key=tblog_search_v4.1&value=weibo_page_1'>\u4e0b\u4e00\u9875<\/a><\/li><\/ul>\n <\/div>\n   <\/div>\n  <!-- \u672a\u767b\u5f55\u63d0\u793a -->\n  <!-- \/\u672a\u767b\u5f55\u63d0\u793a --> \n  <p class=\"search_rese clearfix\">\n  \u4e3a\u4e86\u63d0\u4f9b\u591a\u6837\u6027\u7ed3\u679c\uff0c\u6211\u4eec\u7701\u7565\u4e86\u90e8\u5206\u76f8\u4f3c\u5fae\u535a\uff0c\u60a8\u53ef\u4ee5\u70b9\u51fb<a href=\"\/wb\/furla&xsort=hot&nodup=1\" suda-data=\"key=tblog_search_v4.1&value=weibo_filter_nodup\">\u67e5\u770b\u5168\u90e8\u641c\u7d22\u7ed3\u679c<\/a>  <\/p>\n <\/div>\n"})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_wb_filtertab","js":["apps\/search\/js\/pl\/wb\/filtertab.js?version=20140321919"],"css":["appstyle\/searchV45\/css\/pl\/pl_tab.css?version=20140321919"],"html":"<div class=\"search_bar clearfix\">\n <span class=\"search_r\">\n  <a href=\"\/wb\/furla&xsort=time&Refer=wb_realtime\" >\u5b9e\u65f6<\/a>\n  <a href=\"\/wb\/furla&xsort=hot&Refer=wb_hotTopic\" class=\"current\">\u70ed\u95e8<\/a>\n <\/span>\n <span class=\"search_l\">\n  <a href=\"\/wb\/furla&xsort=hot\" class=\"current\">\u5168\u90e8<\/a>\n  <a href=\"\/wb\/furla&scope=ori&xsort=hot\" >\u539f\u521b<\/a>\n  <a href=\"\/wb\/furla&vip=1&xsort=hot\" >\u8ba4\u8bc1\u7528\u6237<\/a>\n  <a href=\"\/wb\/furla&haspic=1&xsort=hot\" >\u542b\u56fe\u7247<\/a>\n  <a href=\"\/wb\/furla&hasvideo=1&xsort=hot\" >\u542b\u89c6\u9891<\/a>\n  <a href=\"javascript:void(0);\" action-type=\"moreFactor\" action-data=\"title=\u9ad8\u7ea7\u641c\u7d22\" suda-data=\"key=tblog_search_v4.1&value=weibo_filter_more\">\u66f4\u591a\u00bb<\/a>\n <\/span>\n<\/div>\n"})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_subscribe","js":["apps\/search\/js\/pl\/common\/subscribe.js?version=20140321919"],"css":["appstyle\/searchV45\/css\/pl\/pl_searchpub.css?version=20140321919"],"html":"<div class=\"pl_searchpub module_border\">\n <div class=\"search_title_d clearfix\">\n  <h3 class=\"search_title_a\">\u6211\u7684\u8ba2\u9605\u8bcd<\/h3>\n  <a href=\"javascript:void(0);\" class=\"change\" action-type=\"add\" action-data=\"from=weibo\" suda-data=\"key=tblog_search_v5&value=wb_subs_off_add\">\u8ba2\u9605\u5f53\u524d\u8bcd<\/a>\n <\/div>\n <div class=\"search_pub clearfix\" style=\"display:none;\">\n  <ul node-type=\"keywordList\">\n   <\/ul>\n <\/div>\n <div class=\"noresult_sp clearfix\" node-type=\"subscribeEmpty\" >\n \t<p>\u8ba2\u9605\u5e38\u641c\u7684\u8bcd\uff0c\u968f\u65f6\u8ddf\u8e2a\u52a8\u6001!<\/p>\n  <p><a href=\"javascript:void(0);\" action-type=\"add\" action-data=\"from=weibo\" suda-data=\"key=tblog_search_v5&value=wb_subs_off_add\">\u70b9\u51fb\u8ba2\u9605\u5f53\u524d\u8bcd<\/a>\u8bd5\u8bd5\u5427\u3002<\/p>\n <\/div>\n<\/div>\n"})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_pinyinerr","js":[],"css":[],"html":""})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_wb_relation","js":[],"css":["appstyle\/searchV45\/css\/pl\/pl_related.css?version=20140321919"],"html":""})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_bottomInput","js":["apps\/search\/js\/pl\/common\/bottomInput.js?version=20140321919"],"css":[],"html":"<div class=\"bottom_wrap\"> \n  <div class=\"bottom_search clearfix\">\n  <div class=\"search_input\">\n <div class=\"search_input_wrap\">\n  <div class=\"searchBtn_box\"><a class=\"searchBtn\" href=\"\/wb\/furla&author=furla\" node-type=\"submit\" suda-data=\"key=tblog_search_v4.1&value=weibo_search\">\u641c\u7d22<\/a><\/div>\n  <div class=\"searchInp_box\">\n   <div class=\"searchInp_auto\">\n  <input type=\"text\" class=\"searchInp_form\" node-type=\"text\" value=\"furla\" maxlength=\"40\">\n   <\/div>\n  <\/div>\n <\/div>\n  <\/div>\n <\/div>\n  <div class=\"search_feedback\">\n  <p>\u6b22\u8fce\u63d0\u4ea4\u5fae\u535a\u641c\u7d22\u4f7f\u7528\u53cd\u9988\uff0c\u8bf7\u76f4\u63a5<a href=\"javascript:void(0);\" suda-data=\"key=tblog_search_v4.1&value=weibo_suggest\" node-type=\"suggest\">\u53d1\u8868\u610f\u89c1<\/a>\u6216\u60a8\u53ef\u4ee5\u5173\u6ce8\u840c\u5c0f\u641c<a href=\"http:\/\/weibo.com\/wbsearch\" suda-data=\"key=tblog_search_v4.1&value=weibo_xiaosou\" title=\"\u6b22\u8fce\u8c03\u620f\u6700\u840c\u5b98\u535a\u5c4c\u4e1d~~\">@\u5fae\u535a\u641c\u7d22<\/a>\u83b7\u53d6\u641c\u7d22\u6280\u5de7\u3002<\/p>\n <\/div>\n<\/div>"})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_searchHistory","js":["apps\/search\/js\/pl\/common\/searchHistory.js?version=20140321919"],"css":["appstyle\/searchV45\/css\/pl\/pl_history.css?version=20140321919"],"html":""})</script>
-<script>STK && STK.pageletM && STK.pageletM.view({"pid":"pl_common_base","js":["apps\/search\/js\/pl\/common\/changeLanguage.js?version=20140321919","apps\/search\/js\/pl\/common\/base.js?version=20140321919"],"css":[],"html":""})</script>
-</html>
\ No newline at end of file
diff --git a/PressRelease/Import/Search/yahho.html b/PressRelease/Import/Search/yahho.html
deleted file mode 100644 (file)
index ab1893f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-<!doctype html><html lang="zh-Hant-HK"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><link rel="apple-touch-icon" sizes="72x72" href="http://l.yimg.com/pv/static/img/yahoo_icon_ipad_76.png" /><link rel="apple-touch-icon" sizes="144x144" href="http://l.yimg.com/pv/static/img/yahoo_icon_ipad_152.png" /><script>var pL=0, pUrl='http://sk.ybinst6.ec.yimg.com/ec/fd/ls/l?IG=6a0a98bfa14d46efbe5316eee08b3ce8&CID=7f16085ac9e7505b838c87b298f9eb31&Type=Event.CPT';function SLB(s,pUrl){var url,img=new Image(),dat='&DATA=';dat+=s?'%7B%22pp%22%3A%7B%22S%22%3A%22A%22%7D%7D':'%7B%22pp%22%3A%7B%22S%22%3A%22L%22%7D%7D';url=pUrl+dat;img.src=url+'&'+(new Date()).getTime();pL=1}window.onbeforeunload=function(){(!pL)?SLB("A",pUrl):""};window.onload=function(){SLB("",pUrl)};(function(){var h=document.documentElement;h.className+=" js";(new Image()).src='http://l.yimg.com/pv/static/img/srp-sprite-201311141711.png';})();</script><title>&quot;Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong&quot; OR &quot;Russian player to be the first tennis athlete at Madame Tussauds Hong Kong&quot; - 雅虎香港 搜尋結果</title><link rel="stylesheet" type="text/css" href="http://l.yimg.com/zz/combo?kx/ucs/uh/css/294/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/avatar/css/17/avatar-min.css&kx/ucs/mailcount/css/39/mailcount_v2-min.css&kx/ucs/mailcount/css/37/mail_preview-min.css&pv/static/lib/hk_srp-core-css-purple-hk_201402171949.css"><style type="text/css">s,.sprite,#att_icon,#verizon_icon .ico,#at-tog,.ssbang,.sschk,.ssochk,.ssbx,#ss a.ss-remove,.ads a.pp-l,.news-nph,.stars-sm span,.stars-lg span,.thmbplay,.sc-promo-img,.sc-close,#pnkribn .sym{background-image:url(http://l.yimg.com/pv/static/img/srp-sprite-201311141711.png);}#logo{height:40px;width:350px;top: 0;left: 0;margin-top: 0; left: 10px; top: 5px;display: block;overflow: hidden;text-indent: -9999px;background-repeat:no-repeat;outline: none;}#logo{ background-image:url(http://l.yimg.com/rz/d/yahoo_zh-Hant-HK_f_p_350x40.png);*background-image:url(http://l.yimg.com/rz/d/yahoo_zh-Hant-HK_f_p_350x40.gif);}@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {#logo{background-image:url(http://l.yimg.com/rz/d/yahoo_zh-Hant-HK_f_p_350x40_2x.png); background-size: 350px}}#att-tab{height:13px;position:relative;width:49px;z-index:4}#att_icon{background-position:-160px -124px;display:block;font-size:0;height:18px;line-height:0;margin-right:3px;overflow:hidden;width:40px}#att-tab .menu-link{border:1px solid transparent;_border:1px solid #F5F8F9;bottom:6px;_bottom:3px;height:18px;left:-16px;_left:0;padding:3px 10px;width:auto;max-width:100px}#att-tab a.m-active{border:1px solid #C6C9CB;_height:16px}#att-tab a:hover{cursor:pointer;text-decoration:none}#att-tab a.menu-link s{right:-14px;_right:0;top:10px}#att-menu.cobrand{height:60px;left:-6.7em;*left:-6.5em;_left:-4.75em;top:2.1em;width:135px}#att-menu.cobrand ul{float:left;width:35%}#att-menu.cobrand ul.first{width:64%}#uh .menu-bd.cobrand ul li{border:none;padding:0}.menu-bd.cobrand ul.first li{padding-right:0}.menu-bd.cobrand ul li a{font-size:116%}#uh .menu-bd.cobrand ul li a:hover{color:#FFF;text-decoration:none}#verizon-link{height:15px}#verizon_icon{display:block;overflow:hidden;padding-left:20px}#verizon_icon .ico{background-position:-185px -124px;border:none;height:15px;left:0;margin-right:3px;padding:0;top:0;width:15px}#verizon-link s{top:5px}#verizon-tab{position:relative;_width:11em;z-index:5}#verizon-menu.menu-bd{left:1.5em;top:1.75em;min-width:100px;_left:0;_z-index:3}#verizon-menu.cobrand ul.first{width:100%}.menu-link #verizon_icon s{-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);filter:none}#rogers-link{padding-right:0}#rogers_icon .ico{display:none}ul li#partner-tab{height:13px;position:relative;width:auto;_width:0;white-space:nowrap;max-width:200px;z-index:4}#partner-link #partner_icon{position:relative;top:-2px;display:inline;font-size:0;line-height:0;margin-right:5px;overflow:hidden;vertical-align:middle}#partner-link #partner_logo_caption{position:relative;margin-left:2px}#partner_caption{position:relative;top:2px}#partner-tab .menu-link{border:1px solid transparent;*border:1px solid white;_border:1px solid white;top:-1px;height:18px;left:0;_left:0;padding:0 6px 5px 0;width:auto;_width:auto;max-width:200px;_max-width:200px}#partner-tab a.m-active{border:1px solid #C6C9CB;_height:16px}#partner-tab a:hover{cursor:pointer;text-decoration:none}#partner-tab a.menu-link s{right:-2px;*right:-2px;_right:-2px;margin-right:0;top:5px;border:none;:}#partner-menu.cobrand{left:.5em;*left:.5em;_left:.5em;top:2.1em;width:100%}#partner-menu.cobrand ul{float:left}#partner-menu.cobrand ul.first{width:100%}#partner-menu.menu-bd{min-width:4em;width:auto;right:5px;*right:5px;_right:5px;left:auto}#partner-menu.menu-bd.cobrand ul li{border:none;padding:0 10px;display:block;clear:both}#partner-menu.menu-bd.cobrand ul.first li{height:50%}.menu-bd.cobrand ul li a{font-size:116%}#uh .menu-bd.cobrand ul li a:hover{color:#FFF;text-decoration:none}#results #cols #web .url,#results #cols #web .url b,#results #cols .ads li em a, #results #cols .ads li em a b{font-weight:bold;}</style></head><body id="ysch" class="chrome webkit linux v5_15"><div id="doc"class="uh3-p "><h1 class="off-left">雅虎香港 Yahoo 搜尋</h1><style>#yUnivHead .sp {background-image:none;}
-#yUnivHead #yuhead-bd {display:none;}
-#yUnivHead {background: transparent;}</style><div id="yUnivHead" class="yucs-zh-hk" data-lang="zh-hk" data-property="srp" data-flight="1394011872" data-uhvc="/;_ylt=A2oKmL_g7hZTaEsA1nOzygt.">        <a href="#yuhead-search" class="yucs-skipto-search yucs-activate">跳到搜尋欄。</a>        <div id="yuhead-hd" class="yuhead-clearfix">        <div id="yuhead-mepanel-cont">            <ul id="yuhead-mepanel" class="yucs-toolbar yucs-activate"  aria-label="用戶服務"><li id="yuhead-username" class="yucs-menu yuhead-nodivide yuhead-nopad yucs-um-activate">    <a class="yuhead-firstname yltasis" aria-haspopup="true" rel="nofollow"     target="_top"     href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA13Ozygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fprofile.yahoo.com%2f/RK=0/RS=10wu8S0ygYgVo9P_lSmXBZuqgZE-">            <span class="yucs-avatar yucs-av-activate"     data-user="Chris"     data-prof="Avatar"     data-crumb="VaXVQQjtGr8"     data-guid="AO3W3YJGQHTWESJDBV4ZTRVM6A"></span>                <span class="yuhead-hi">你好,&nbsp;</span><span class="yuhead-name">Chris</span>    <span class="yucs-menu-access sp yuhead-bullet-down"></span>    </a>    <ul id="yuhead-useroptions" class="yucs-menu-left hide">          <li class="first-child">        你使用的登入名稱是: <span class="yuhead-yid">chris_1217_1999</span>          </li>        <li>        <a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA2HOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fprofile.yahoo.com%2f/RK=0/RS=10wu8S0ygYgVo9P_lSmXBZuqgZE-"         target="_top"        rel="nofollow">        個人檔案        </a>        </li>        <li>        <a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA2XOzygt./RV=2/RE=1394040672/RO=10/RU=https%3a%2f%2fedit.yahoo.com%2fmc2.0%2feval_profile%3f.intl%3dhk%26.lang%3dzh-HK%26.done%3dhttp%3a%2f%2fhk.search.yahoo.com%2fsearch%253ffr2%3dtime%2526ei%3dUTF-8%2526btf%3dw%2526n%3d100%2526b%3d1%2526pstart%3d1%2526p%3d%252522Top-Ranked%252bTennis%252bStar%252bMaria%252bSharapova%252bSwings%252bby%252bto%252bHong%252bKong%252522%252bOR%252b%252522Russian%252bplayer%252bto%252bbe%252bthe%252bfirst%252btennis%252bathlete%252bat%252bMadame%252bTussauds%252bHong%252bKong%252522%26amp%3b.src%3d%26amp%3b.intl%3dhk%26amp%3b.lang%3dzh-HK/RK=0/RS=xYO8vFoQLpOVhP5dCWQaEeHFAhs-"         target="_top"        rel="nofollow">        帳戶資料        </a>        </li>                <li class="last-child yuhead-sl">        <a href="http://login.yahoo.com/config/login;_ylt=A2oKmL_g7hZTaEsA2nOzygt.?logout=1&.direct=2&amp;.src=&amp;.intl=hk&amp;.lang=zh-HK&.done=http://hk.search.yahoo.com/search%3ffr2=time%26ei=UTF-8%26btf=w%26n=100%26b=1%26pstart=1%26p=%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522" target="_top" rel="nofollow">    登出</a>        </li>    </ul></li>  <noscript><li id="yuhead-me-signout" class="yuhead-me"><a href="http://login.yahoo.com/config/login;_ylt=A2oKmL_g7hZTaEsA23Ozygt.?logout=1&.direct=2&amp;.src=&amp;.intl=hk&amp;.lang=zh-HK&.done=http://hk.search.yahoo.com/search%3ffr2=time%26ei=UTF-8%26btf=w%26n=100%26b=1%26pstart=1%26p=%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522" target="_top" rel="nofollow">    登出</a></li></noscript>    </ul>                                </div>        <div id="yuhead-promo"> </div>        <div id="yuhead-com-links-cont">            <ul id="yuhead-com-links" class="yucs-toolbar yucs-activate" aria-label="Yahoo 網站分類">                                <li class="yuhead-com-link-item yucs-mailpreview-ancestor">    <a class="sp yltasis yuhead-ico-mail" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA3HOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhk.mail.yahoo.com%2f%3f.intl%3dhk%26.lang%3dzh-HK/RK=0/RS=MKvR5UdCF7d2MmOs1pge6ejYJLE-" rel="nofollow" target="_top">Mail<span class="yucs-activate yucs-mail-count hide"     data-uri-scheme="https"     data-uri-path="mg.mail.yahoo.com/mailservices/v1/newmailcount"     data-authstate=middleauth    data-crumb="VaXVQQjtGr8"    data-mc-crumb="XoNYmXX/gI6"></span></a><ul class="yucs-mail-preview-panel hide"    data-uri-scheme="http"     data-uri-path="ucs.query.yahoo.com/v1/console/yql"     data-mail-txt="Mail"    data-mail-view="查看所有 Yahoo 郵件"    data-mail-help-txt="服務中心"    data-mail-help-url="http://help.cc.hk.yahoo.com/help_cp.html?product=40"    data-mail-loading-txt="載入中..."    data-languagetag="zh-hk"    data-mrd-crumb="TN2Iir35wgn"    data-authstate="middleauth"    data-middleauth-signin-text="按這裡查看你的郵件"    data-popup-login-url="https://login.yahoo.com/config/login_verify2?.pd=c%3DOIVaOGq62e5hAP8Tv..nr5E3&.src=sc"    data-middleauthtext="你有{count}封新郵件。"    data-yltmessage-link="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA3XOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fmrd.mail.yahoo.com%2fmsg%3fmid%3d%7bmsgID%7d%26fid%3dInbox%26src%3duh%26.crumb%3d/RK=0/RS=XxW6xAZ6jdJD7fag7ajyjU0aPVA-"    data-yltviewall-link="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA3nOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhk.mail.yahoo.com%2f/RK=0/RS=zFjR60h.q7ttrhxNBx3cQNabjzI-"    data-yltpanelshown="/;_ylt=A2oKmL_g7hZTaEsA33Ozygt."></ul></li><li id="yuhead-com-home"><a class="sp yuhead-ico-home" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA4HOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhk.yahoo.com%2f/RK=0/RS=2RJNz5PUgLGJRFltPpS_a_WGac8-" rel="nofollow" target="_top">Yahoo 雅虎香港</a></li>            </ul>        </div>    </div>    <div id="yuhead-bd" class="yuhead-clearfix">        <div id="yuhead-search">        <div id="yuhead-sform-cont" class="yuhead-s-web yuhead-search-form">            </div>    </div>            </div>                                      </div><div id="hd" class="clr" data-bns="Yahoo" data-bk="3.1"><a id="logo" target="_top" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA5HOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhk.yahoo.com%2f/RK=0/RS=2RJNz5PUgLGJRFltPpS_a_WGac8-">Yahoo</a><div class="sbx"><form method="get" name="s" id="sf" role="search" action="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA5XOzygt."accept-charset="utf-8"><label for="yschsp" class="off-left">搜尋關鍵字</label><div id="sbq-wrap" class="sbq-w"><input type="text" class="sbq" id="yschsp" name="p" value="&quot;Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong&quot; OR &quot;Russian player to be the first tennis athlete at Madame Tussauds Hong Kong&quot;" autocomplete="off" tabindex="1"></div><button id="sbq-clear" type="button" class="sbq-x"><span class="sprite"></span></button><input type="submit" class="sbb" value="搜尋" tabindex="2"><input type="hidden" name="fr2" value="sb-top"><input type="hidden" name="n" value="100"></form></div><div id="so" class="menu"><a id="so-link" class="menu-link" href="http://hk.search.yahoo.com/preferences/preferences">選項<s></s></a><div id="so-menu" class="menu-bd"><ul><li><a href="http://hk.search.yahoo.com/web/advanced?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&b=1&pstart=1">進階搜尋</a></li><li><a href="http://hk.search.yahoo.com/preferences/preferences?pref_done=http%3A%2F%2Fhk.search.yahoo.com%2Fsearch%3Fei%3DUTF-8%26p%3D%2522Top-Ranked%2BTennis%2BStar%2BMaria%2BSharapova%2BSwings%2Bby%2Bto%2BHong%2BKong%2522%2BOR%2B%2522Russian%2Bplayer%2Bto%2Bbe%2Bthe%2Bfirst%2Btennis%2Bathlete%2Bat%2BMadame%2BTussauds%2BHong%2BKong%2522%26n%3D100%26b%3D1%26pstart%3D1&.bcrumb=KRrz1w658Ap">使用偏好</a></li><li><a href="http://hk.search.yahoo.com/history?pref_done=http%3A%2F%2Fhk.search.yahoo.com%2Fsearch%3Fei%3DUTF-8%26p%3D%2522Top-Ranked%2BTennis%2BStar%2BMaria%2BSharapova%2BSwings%2Bby%2Bto%2BHong%2BKong%2522%2BOR%2B%2522Russian%2Bplayer%2Bto%2Bbe%2Bthe%2Bfirst%2Btennis%2Bathlete%2Bat%2BMadame%2BTussauds%2BHong%2BKong%2522%26n%3D100%26b%3D1%26pstart%3D1&.bcrumb=KRrz1w658Ap">搜尋紀錄</a></li></ul></div></div><input id="pphw-triggerbtn" type="button" /><div id="pphw-content"></div><style type="text/css">.pphw-panel,#pphw-label-left,#pphw-undobtn,#pphw-cleanbtn,#pphw-closebtn,#pphw-qmarkbtn   { background: url("http://l.yimg.com/mq/i/home/pphw_sprites_20101019.png") no-repeat; }#pphw-triggerbtn { background: url("http://l.yimg.com/mq/i/home/pphw_sprites_20101019.png") no-repeat -101px 0; }.pphw-panel{overflow:hidden;width:256px;height:263px;background-position:0 -34px}.pphw-panel .yui3-widget-hd{height:29px;overflow:hidden}.pphw-panel #pphw-hd-label{color:#999}.pphw-panel .yui3-widget-hd span{display:block;margin:4px 0 0 60px;line-height:25px;font-size:12px}.pphw-panel .yui3-widget-bd{overflow:hidden;height:205px}.pphw-panel .btn-wrapper button{margin:0;padding:0;background-color:#FFF;border:0 none;cursor:pointer;position:absolute}.pphw-panel .pp-gf{width:27%;margin:0 0 0 4px;height:205px;overflow:hidden}.pphw-panel .pp-gf button{width:31px;height:31px;text-align:center;border:1px double #D0D0D0;color:#333;top:29px;left:14px;font-size:16px;z-index:1}.pphw-panel .pp-gf #pphw-cbtn2{top:59px}.pphw-panel .pp-gf #pphw-cbtn3{top:89px}.pphw-panel .pp-gf #pphw-cbtn4{top:119px}.pphw-panel .pp-gf #pphw-cbtn5{top:149px}.pphw-panel .pp-gf #pphw-cbtn6{top:179px}.pphw-panel .pp-gf .hover button{color:#000;border:2px solid #666;font-size:21px;z-index:2}.pphw-panel .pp-gf #pphw-label-left{position:absolute;top:115px;left:49px;width:6px;height:9px;margin:0;padding:0;border:none;background-position:0 0}.pphw-panel .pp-u{width:73%;border:none;margin:0 4px 0 0;float:right;height:205px;overflow:hidden}.pphw-panel .pp-u #pphw-flash{position:absolute;width:181px;height:181px;top:29px;left:60px;border:none}.pphw-panel .pp-u #pphw-qmarkbtn{top:10px;left:209px;width:8px;height:11px;background-position:-209px 0}.pphw-panel .pp-u .hover #pphw-qmarkbtn{background-position:-191px 0}.pphw-panel .pp-u .active #pphw-qmarkbtn{background-position:-227px 0}.pphw-panel .pp-u #pphw-closebtn{top:11px;left:234px;width:9px;height:9px;font-size:0;background-position:-63px 0}.pphw-panel .pp-u .hover #pphw-closebtn{background-position:-44px 0}.pphw-panel .pp-u .active #pphw-closebtn{background-position:-82px 0}.pphw-panel .pp-u #pphw-undobtn{width:50px;height:17px;text-align:center;color:#FFF;top:212px;left:81px;font-size:12px;background-position:-258px -134px}.pphw-panel .pp-u .hover #pphw-undobtn{background-position:-258px -114px}.pphw-panel .pp-u .active #pphw-undobtn{background-position:-258px -134px}.pphw-panel .pp-u .disabled #pphw-undobtn{background-position:-258px -94px;cursor:default}.pphw-panel .pp-u #pphw-cleanbtn{width:50px;height:17px;text-align:center;color:#FFF;top:212px;left:171px;font-size:12px;background-position:-258px -74px}.pphw-panel .pp-u .hover #pphw-cleanbtn{background-position:-258px -54px}.pphw-panel .pp-u .active #pphw-cleanbtn{background-position:-258px -74px}.pphw-panel .pp-u .disabled #pphw-cleanbtn{background-position:-258px -34px;cursor:default}.pphw-panel .yui3-widget-ft{top:233px;height:29px;width:256px;font-size:12px;margin:0;color:#0F0;padding:0;overflow:hidden;border:none;text-align:right;position:absolute}.pphw-panel .yui3-widget-ft a:link,.pphw-panel .yui3-widget-ft a:visited{color:#059}.pphw-panel .yui3-widget-ft #pphw-bl-link{color:#CCC;left:169px;top:9px;overflow:visible;font-size:12px;position:absolute;cursor:pointer}.pphw-panel .yui3-widget-ft .hover #pphw-bl-link{color:#039;text-decoration:underline}#pphw-triggerbtn{width:26px;height:31px;overflow:visible;margin:7px 1px 0 3px;padding:0;display:none;border:none;cursor:pointer;float:left}#pphw-triggerbtn:hover{background-position:-161px 0;overflow:hidden}#pphw-triggerbtn.clicked{background-color:#FFF;background-position:-131px 0;cursor:default}.ie.v6_0 #pphw-triggerbtn{margin-top:5px}.uh3-p #so{left:748px}.uh3-p #pphw-triggerbtn{position:absolute;margin:0;right:-46px;top:5px}</style></div><div id="bd" role="document"><div id="sidebar" data-bns="Yahoo" data-bk="6.1"><div class="bd"><div class="sb-module first" id="vert-piv-tabs"><ul><li role="tab" class="piv-000 active">網頁</li><li role="tab" class="piv-011"><a href="http://hk.knowledge.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA8XOzygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">知識+</a></li><li role="tab" class="piv-001"><a href="http://hk.images.search.yahoo.com/search/images;_ylt=A2oKmL_g7hZTaEsA8nOzygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">圖片</a></li><li role="tab" class="piv-002"><a href="http://hk.video.search.yahoo.com/search/video;_ylt=A2oKmL_g7hZTaEsA83Ozygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">影片</a></li><li role="tab" class="piv-003"><a href="http://hk.news.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA9HOzygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">新聞</a></li><li role="tab" class="piv-019"><a href="http://hk.forum.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA9XOzygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">討論區</a></li><li role="tab" class="piv-007"><a href="http://hk.shopping.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA9nOzygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">購物</a></li><li role="tab" class="piv-021"><a href="http://hk.dictionary.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA93Ozygt.?p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&fr=&fr2=piv-web">字典</a></li></ul></div><div class="sb-module"><ul id="language_filters"><li class="fll"><span class="select active">香港網頁優先</span></li><li class="fll"><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA4nOzygt.?fr2=lf&ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&rd=r2">中文網頁</a></li><li class="fll"><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA43Ozygt.?fr2=lf&ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&rd=r3">全球網頁</a></li></ul></div><div class="sb-module" id="refiners-piv-tabs"><ul><li><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA8HOzygt.?fr2=showall&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&ei=UTF-8" class="btf ajax">不限時間</a></li><li class="flt"><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA.HOzygt.?fr2=time&n=100&ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&btf=d" class="ajax">一天內</a></li><li class="flt"><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA.XOzygt.?fr2=time&n=100&ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&btf=w" class="ajax active">一星期內</a></li><li class="flt last"><a href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA.nOzygt.?fr2=time&n=100&ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&btf=m" class="ajax">一個月內</a></li></ul></div></div></div><div id="results"><div id="cols"><div id="left"><div id="main"><div id="web" role="main"><h2>搜尋結果</h2><ol start="1" data-bns="API"><li><div class="res"><div><h3><a id="link-1" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA.3Ozygt.;_ylu=X3oDMTE1cDJtZ3NtBHNlYwNzcgRwb3MDMQRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.pr-inside.com%2ftop-ranked-tennis-star-maria-sharapova-swings-r3966353.htm/RK=0/RS=B.Mp8Axt2bUUQ0wYGTZuHx.eWWI-"target="_blank" lang="en" data-bk="5037.1"><b>Top-Ranked Tennis Star Maria Sharapova <wbr />Swings by to Hong Kong</b> <b>Russian</b> ...</a></h3><span id="resultTime">19 小時前</span></div><span class=url>www.pr-inside.com/<b>top</b>-<b>ranked</b>-<b>tennis</b>-<wbr /><b>star</b>-<b>maria</b>...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA_HOzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023434930390772%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dLNKiEAItWHFq5-8yQkc9V7OqVgIUXekn%26icp%3d1%26.intl%3dhk%26sig%3dG_Um6K9xZIJRT.DOBIGxMQ--/RK=0/RS=fYcDI3YdZg1Y268Ek3ds_aP4aEI-" data-bk="5039.1" aria-describedby="link-1" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA_XOzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.pr-inside.com" data-bns="Yahoo" data-bk="102.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong Russian Player to Be the First Tennis Athlete at Madame Tussauds Hong Kong</b> ... HONG KONG, CHINA -- (Marketwired) -- 03/04/14 -- Ranked World No ...</div></div></li><li><div class="res"><div><h3><a id="link-2" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA_nOzygt.;_ylu=X3oDMTE1Y2phcmFxBHNlYwNzcgRwb3MDMgRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fkoreaittimes.com%2fstory%2f35460%2ftop-ranked-tennis-star-maria-sharapova-swings-hong-kong/RK=0/RS=CrnDfhkK7S9KlXJjsl6i2KfiJe4-"target="_blank" lang="en" data-bk="5052.1"><b>Top-Ranked Tennis Star Maria Sharapova <wbr />Swings by to Hong Kong</b> | Korea ...</a></h3><span id="resultTime">5 小時前</span></div><span class=url>koreaittimes.com/story/35460/<b>top</b>-<b>ranked</b>-<wbr /><b>tennis</b>-<b>star</b>...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsA_3Ozygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d1310018715071%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dTNNkiIKkUB4uiW8kxMokDVfPEmMZSJI4%26icp%3d1%26.intl%3dhk%26sig%3dXekVTA0RWx2vWkqm3KfV9Q--/RK=0/RS=tKRMkVx3FOc8.xEqdl3gmjuOums-" data-bk="5054.1" aria-describedby="link-2" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAAHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=koreaittimes.com" data-bns="Yahoo" data-bk="103.1">更多此站結果</a><div class="abstr" lang="en"><b>Russian player to be the first tennis athlete at Madame Tussauds Hong Kong</b> Wednesday, March 5th, 2014 David Barnes Hong Kong - <b>Ranked</b> World No.5 <b>by</b> the Women&#39;s Tennis Association and with 29 ...</div></div></li><li><div class="res"><div><h3><a id="link-3" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAAXSzygt.;_ylu=X3oDMTE1ZnUwYW1oBHNlYwNzcgRwb3MDMwRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.einpresswire.com%2farticle%2f193300150%2fvisionstate-inc-s-wanda-authorized-by-compass-group-support-services/RK=0/RS=dh4QkmBRJfUEZO4WE5VSOP7s9xI-"target="_blank" lang="en" data-bk="5066.1">Visionstate Inc.&#39;s WANDA Authorized <wbr /><b>by</b> Compass Group, Support Services</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.einpresswire.com/article/193300150/<wbr />visionstate...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAAnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023851510434086%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dB332NtOJqKSDM0HheLfKBffV48Vp7wF4%26icp%3d1%26.intl%3dhk%26sig%3dSOntdESSmBNi_qAU8PBwxg--/RK=0/RS=p2vZzJ9GCrLVMDA07ojFDPu68ik-" data-bk="5068.1" aria-describedby="link-3" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAA3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.einpresswire.com" data-bns="Yahoo" data-bk="104.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> View All Stories From This Source Submit Release EIN Presswire Follow @EINPresswire BACK <b>TO</b> <b>TOP</b> Account Info: Account Create an Account: Register for an ...</div></div></li><li><div class="res"><div><h3><a id="link-4" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsABHSzygt.;_ylu=X3oDMTE1YnFwc2k2BHNlYwNzcgRwb3MDNARjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.streetinsider.com%2fPress%2bReleases%2fPrologic%2bto%2bExhibit%2bat%2bthe%2bPopular%2bRetail%2bBusiness%2bTechnology%2bExpo%2f9239951.html/RK=0/RS=hVGhB3eplSi6p2jqIf3ZCX26rpU-"target="_blank" lang="en" data-bk="5081.1">Prologic <b>to</b> Exhibit <b>at</b> <b>the</b> Popular <wbr />Retail Business Technology Expo</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.streetinsider.com/Press+Releases/<wbr />Prologic+<b>to</b>...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsABXSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023507949816487%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3d-xvcUMzYPD5vOpBW2IgLAge2YRUxrwCv%26icp%3d1%26.intl%3dhk%26sig%3dfBIIbVPzQs6JDzFj5Cc9dA--/RK=0/RS=tZn2fgxwlTiSkzqZUqj_ACjN71E-" data-bk="5083.1" aria-describedby="link-4" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsABnSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.streetinsider.com" data-bns="Yahoo" data-bk="105.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> Create E-mail Alert Related Categories Press Releases Login with Facebook Add Your Comment Name Subject Body Sign up for StreetInsider Free ...</div></div></li><li><div class="res"><div><h3><a id="link-5" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAB3Szygt.;_ylu=X3oDMTE1cW5sZHRwBHNlYwNzcgRwb3MDNQRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.andhranews.net%2fBusiness%2f2014%2fWrtsil-environmental-seal-systems-allow-mineral-9859.htm/RK=0/RS=ZLgoaMZmN_aGLnQwpuUlciXsBQ0-"target="_blank" lang="en" data-bk="5101.1">Wärtsilä environmental seal systems <wbr />allow mineral oil <b>to</b> <b>be</b> used in ...</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.andhranews.net/Business/2014/<wbr />Wrtsil...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsACHSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27025788552348579%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dgMn_SbEqHOTz1GKqZkRKqg0a4YQcTKSt%26icp%3d1%26.intl%3dhk%26sig%3d2BcMwwcTEmilsgWLCOz6Mw--/RK=0/RS=wHgWjD6wNhZid8dR8VAl02vvloA-" data-bk="5103.1" aria-describedby="link-5" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsACXSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.andhranews.net" data-bns="Yahoo" data-bk="106.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> NetDimensions (Holdings) Limited: Presenting <b>at</b> <b>the</b> 26th Annual Roth Conference Biotie&#39;s Financial Statement Report and Corporate Governance ...</div></div></li><li><div class="res"><div><h3><a id="link-6" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsACnSzygt.;_ylu=X3oDMTE1OGIwMmE3BHNlYwNzcgRwb3MDNgRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fpakobserver.net%2fdetailnews.asp%3fid%3d235380/RK=0/RS=gMH8cojes0QSsQJdvQgQqVSepek-"target="_blank" lang="en" data-bk="5116.1"><b>Top-ranked tennis star Maria Sharapova <wbr />swings by to Hong Kong</b></a></h3><span id="resultTime">2 小時前</span></div><span class=url>pakobserver.net/<wbr />detailnews.asp?id=235380</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAC3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d828985122583%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dBeoje9QDocbGSZH8h0NGh0Gj8MbiuuWI%26icp%3d1%26.intl%3dhk%26sig%3dhiR28byUooyx7nFZW6_hEA--/RK=0/RS=0BRXHcOAHVPMU8hixQVHXo5YTZQ-" data-bk="5118.1" aria-describedby="link-6" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsADHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=pakobserver.net" data-bns="Yahoo" data-bk="107.1">更多此站結果</a><div class="abstr" lang="en">Wednesday, March 05, 2014 - <b>Hong</b> <b>Kong</b>—<b>Ranked</b> World No.5 <b>by</b> <b>the</b> Women’s <b>Tennis</b> Association and with 29 WTA singles championships, including four Grand Slam singles titles <b>to</b> become <b>the</b> <b>top</b> <b>Russian</b> ...</div></div></li><li><div class="res"><div><h3><a id="link-7" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsADXSzygt.;_ylu=X3oDMTE1MTJzazVuBHNlYwNzcgRwb3MDNwRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.andhranews.net%2fBusiness%2f2014%2fGartner-HomeAway-Abercrombie-amp-Fitch-European-2298.htm/RK=0/RS=Wgkg1iN9GdBX_qdFbz5_cZNkC38-"target="_blank" lang="en" data-bk="5134.1">Gartner, HomeAway, Abercrombie &amp; <wbr />Fitch, European Parliament and More <b>to</b> <wbr />...</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.andhranews.net/Business/2014/<wbr />Gartner-HomeAway...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsADnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27024916669081214%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dk7bo1eStrX3BNHqNqmdp_UUhRv0-eu4N%26icp%3d1%26.intl%3dhk%26sig%3dy_ZSEI_Lhi8ZJRLy5afH8Q--/RK=0/RS=gPd1HR9Xu7is3vfcemjclOHTQQQ-" data-bk="5136.1" aria-describedby="link-7" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAD3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.andhranews.net" data-bns="Yahoo" data-bk="108.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> Mar 4, 2014 Novak Djokovic, Andy Murray, Serena Williams and Other World Renowned <b>Tennis</b> <b>Players</b> Hold Court <b>at</b> Fifth Annual Ritz-Carlton Key Biscayne ...</div></div></li><li><div class="res"><div><h3><a id="link-8" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAEHSzygt.;_ylu=X3oDMTE1bTdnZjZxBHNlYwNzcgRwb3MDOARjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.4-traders.com%2fnews%2fIgnite-Sales-Introduces-AccountAdvisor-for-Community-Banks--18042113%2f/RK=0/RS=Q_RHvFY89Lk8KQGkS2Q4fjLQ6hY-"target="_blank" lang="en" data-bk="5149.1">Ignite Sales Introduces AccountAdvisor <wbr />for Community Banks</a></h3><span id="resultTime">19 小時前</span></div><span class=url>www.4-traders.com/news/Ignite-Sales-<wbr />Introduces...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAEXSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27025165796835412%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dEZFxZ0TwPe7PgcA2ursj82LCPJCgFk_r%26icp%3d1%26.intl%3dhk%26sig%3d.x7dYlC4T1FHCyQr8P7BIw--/RK=0/RS=Q5U4.rxJZQRCvJ6WcSBR09a9k1I-" data-bk="5151.1" aria-describedby="link-8" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAEnSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.4-traders.com" data-bns="Yahoo" data-bk="109.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> &lt;1m ago Anime Studio 10 Offers Improved Workflow With New Bone Constraint, Content Library and Smart Bone Features &lt;1m ago Digital Media ...</div></div></li><li><div class="res"><div><h3><a id="link-9" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAE3Szygt.;_ylu=X3oDMTE1dmo4ZmllBHNlYwNzcgRwb3MDOQRjb2xvA3NnMwR2dGlkA1FJSEswMl8xMzI-/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.sys-con.com%2fnode%2f2995470/RK=0/RS=5TBEqyJSuXTpcnACsm8GBhpoEEs-"target="_blank" lang="en" data-bk="5164.1">SUSS MicroTec Launches DSC300 Gen2: <wbr />Next Generation Projection Scanner ...</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.sys-con.com/node/2995470</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAFHSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27024392666153483%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dGxPpzq-iAlmii-GqQtKYMCw5lkAPpztz%26icp%3d1%26.intl%3dhk%26sig%3djSYwpbpqK4j1HRdRCgpckg--/RK=0/RS=PgHjsTT5gW0PCHZaySOydZrq4TA-" data-bk="5166.1" aria-describedby="link-9" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAFXSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.sys-con.com" data-bns="Yahoo" data-bk="110.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> Ain&#39;t Nobody&#39;s Dish Beatin&#39; a Plate of Brains - Dora Cote is <b>the</b> Sixth Home Cook Eliminated from CTV&#39;s MASTERCHEF CANADA Low Temperature ...</div></div></li><li><div class="res"><div><h3><a id="link-10" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAFnSzygt.;_ylu=X3oDMTE2czVpcnZhBHNlYwNzcgRwb3MDMTAEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fasia.etbnews.com%2f192602%2fasia-escape-holidays-scoops-malaysia-tourism-award%2f/RK=0/RS=yFrs4NHXaehVwf5FFyRH.everRE-"target="_blank" lang="en" data-bk="5178.1">Asia Escape Holidays scoops Malaysia <wbr />Tourism Award |ETB News Asia</a></h3><span id="resultTime">10 小時前</span></div><span class=url>asia.etbnews.com/192602/asia-escape-<wbr />holidays-scoops...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAF3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023477895595751%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dCjRMsFm_NaZtSbQUcQreds1KM6ulEBuv%26icp%3d1%26.intl%3dhk%26sig%3da3C3n9lhloIB.3S.EtcXtA--/RK=0/RS=A_WDj8ujo2bqc93iICdYgEtGpNc-" data-bk="5180.1" aria-describedby="link-10" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAGHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=asia.etbnews.com" data-bns="Yahoo" data-bk="111.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-ranked tennis star Maria Sharapova swings by to Hong Kong</b> Award-Winning Travel Writer Gets A Taste For South Africa Related Posts Asia Escape Holidays Sandakan famil December 3, 2013 AEH Award news September 17, 2013</div></div></li><li><div class="res"><div><h3><a id="link-11" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAGXSzygt.;_ylu=X3oDMTE2cDVhYTYwBHNlYwNzcgRwb3MDMTEEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.modernghana.com%2fnews%2f527180%2f1%2ftop-ranked-tennis-star-maria-sharapova-swings-by-t.html/RK=0/RS=UmSN69.RRoU5c97D5hDDyRWvlfQ-"target="_blank" lang="en" data-bk="5193.1"><b>Top-ranked tennis star Maria Sharapova <wbr />swings by to Hong Kong</b> ...</a></h3><span id="resultTime">2 小時前</span></div><span class=url>www.modernghana.com/news/527180/1/<b>top</b>-<wbr /><b>ranked</b>-<b>tennis</b>...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAGnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d1103859042483%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dVDr17bCninIU9JtqZzK3NMN8nBt_d_LQ%26icp%3d1%26.intl%3dhk%26sig%3dbVlPzz3TbE3VXe1_DT98wg--/RK=0/RS=6ht4iy9mCbwdts6TshnCrZDw64k-" data-bk="5195.1" aria-describedby="link-11" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAG3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.modernghana.com" data-bns="Yahoo" data-bk="112.1">更多此站結果</a><div class="abstr" lang="en"><b>Ranked</b> World No.5 <b>by</b> <b>the</b> Women&#39;s <b>Tennis</b>Association and with 29 WTA singles championships, including four Grand Slam singles titles <b>to</b> become <b>the</b> <b>top</b> <b>Russian</b> female <b>player</b>, <b>Maria</b> <b>Sharapova</b> sets foot onto ...</div></div></li><li><div class="res"><div><h3><a id="link-12" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAHHSzygt.;_ylu=X3oDMTE2cGlxaGtuBHNlYwNzcgRwb3MDMTIEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.einpresswire.com%2farticle%2f193264398%2ftitan-pharmaceuticals-announces-agreement-in-principle-on-path-forward-for-probuphine-clinical-study/RK=0/RS=IS8L6CV1oHe8O4Xt6OIH6jw98sc-"target="_blank" lang="en" data-bk="5207.1">Titan Pharmaceuticals Announces <wbr />Agreement in Principle on Path Forward <wbr />...</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.einpresswire.com/article/193264398/<wbr />titan...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAHXSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27022631778584482%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dBn1XuLfQFow8KQi8nzjiSDXZXR2BbrTP%26icp%3d1%26.intl%3dhk%26sig%3dFT.oFvovHKniEgN5L_jpOA--/RK=0/RS=IcQ9..bAm11cYH0Quy80B2uIwZI-" data-bk="5209.1" aria-describedby="link-12" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAHnSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.einpresswire.com" data-bns="Yahoo" data-bk="113.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> View All Stories From This Source Submit Release EIN Presswire Follow @EINPresswire BACK <b>TO</b> <b>TOP</b> Account Info: Account Create an Account: Register for an ...</div></div></li><li><div class="res"><div><h3><a id="link-13" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAH3Szygt.;_ylu=X3oDMTE2Nm50cWttBHNlYwNzcgRwb3MDMTMEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.streetinsider.com%2fPress%2bReleases%2fSUSS%2bMicroTec%2bLaunches%2bDSC300%2bGen2%253A%2bNext%2bGeneration%2bProjection%2bScanner%2bfor%2bAdvanced%2bPackaging%2f9239958.html/RK=0/RS=AYZVTE9a846a6zpD.1.sosv0bVg-"target="_blank" lang="en" data-bk="5222.1">SUSS MicroTec Launches DSC300 Gen2: <wbr />Next Generation Projection Scanner ...</a></h3><span id="resultTime">1 天前</span></div><span class=url>www.streetinsider.com/Press+Releases/<wbr />SUSS+MicroTec...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAIHSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023383404413678%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dsY4quND-Wvpn0DbhsFqyYhhUwHNIsONH%26icp%3d1%26.intl%3dhk%26sig%3doRk9PKJTjMxFsNcmBUGUTw--/RK=0/RS=HuNhFLhvLX7j6r3.pICP9o18AZY-" data-bk="5224.1" aria-describedby="link-13" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAIXSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.streetinsider.com" data-bns="Yahoo" data-bk="114.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> NetDimensions (Holdings) Limited: Presenting <b>at</b> <b>the</b> 26th Annual Roth Conference Create E-mail Alert Related Categories Press Releases Related ...</div></div></li><li><div class="res"><div><h3><a id="link-14" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAInSzygt.;_ylu=X3oDMTE2ZHFhMzA5BHNlYwNzcgRwb3MDMTQEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.4-traders.com%2fnews%2fWhat-Matters-in-the-Week-Ahead-3--18028181%2f/RK=0/RS=RfUZ2StQyCXmMXwX4BDFabYJXDo-"target="_blank" lang="en" data-bk="5237.1">What Matters in <b>the</b> Week Ahead -3-</a></h3><span id="resultTime">2 天前</span></div><span class=url>www.4-traders.com/news/What-Matters-in-<wbr /><b>the</b>-Week...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAI3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27023022597669148%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3duANQ-vY-WJpSxzTazgiRgGJ2BnVcMrM8%26icp%3d1%26.intl%3dhk%26sig%3dj_2xdGO_6xhZgbonF6HW1Q--/RK=0/RS=02HrZHr0IlSkTGB8zrgRposSohU-" data-bk="5239.1" aria-describedby="link-14" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAJHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.4-traders.com" data-bns="Yahoo" data-bk="115.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b> 2m ago SOLSTAD OFFSHORE ASA: SOFF - Mandatory notification of trade in connection with buy-back programme 4m ago FRENI BREMBO SPA: Red – <b>the</b> ...</div></div></li><li><div class="res"><div><h3><a id="link-15" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAJXSzygt.;_ylu=X3oDMTE2OXJyOW1tBHNlYwNzcgRwb3MDMTUEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fgalleries.myjoyonline.com%2fsports%2f2014%2fMarch-5th%2fnigeria-senate-summons-sports-minister-over-budget.php/RK=0/RS=y7LgeTVAoch6hTglUqiG32uH_oE-"target="_blank" lang="en" data-bk="5251.1">Ghana News - Nigeria Senate summons <wbr />Sports Minister over budget</a></h3><span id="resultTime">1 小時前</span></div><span class=url>galleries.myjoyonline.com/sports/2014/<wbr />March-5th/...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAJnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d1035139561373%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dEtYon6VxppU_Jvhgy1cTIblGPt1uGfTh%26icp%3d1%26.intl%3dhk%26sig%3doBa1GhtAgoOfz3lYxKqviw--/RK=0/RS=SLkcSeDtBlB1th2y1wijDWZPcRE-" data-bk="5253.1" aria-describedby="link-15" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAJ3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=galleries.myjoyonline.com" data-bns="Yahoo" data-bk="116.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-ranked tennis star Maria Sharapova swings by to Hong Kong</b>... Nigeria Senate summons Sports Minister over budget... American writer assesses US team ahead of World Cup... Carles Puyol: Barcelona captain <b>to</b> leave ...</div></div></li><li><div class="res"><div><h3><a id="link-16" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAKHSzygt.;_ylu=X3oDMTE2dG1sdDYzBHNlYwNzcgRwb3MDMTYEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.menafn.com%2fqn_mena_headlines.asp%3fnx%3d41702.5631944444-1108329144%26Query%3dfinance%2bbank%2bcurrency%2bPolitics%2binternet%2btechnology/RK=0/RS=idirsY7NuLgQN9lSw4L6iagRjlk-"target="_blank" lang="en" data-bk="5264.1">News:</a></h3><span id="resultTime">14 小時前</span></div><span class=url>www.menafn.com/qn_mena_<wbr />headlines.asp?nx=41702...</span><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAKXSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.menafn.com" data-bns="Yahoo" data-bk="117.1">更多此站結果</a><div class="abstr" lang="en"><b>Top Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b>,MENAFN Press (MENAFN Press) <b>HONG</b> <b>KONG</b>, CHINA--Media OutReach--March 4, 2014-- <b>Ranked</b> World No.5 <b>by</b> <b>the</b> Women&#39;s <b>Tennis</b> Association and with 29 WTA singles ...</div></div></li><li><div class="res"><div><h3><a id="link-17" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAKnSzygt.;_ylu=X3oDMTE2dGJqNXMyBHNlYwNzcgRwb3MDMTcEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fstocks.newsok.com%2fnewsok%2fnews%2fread%3fGUID%3d26589698/RK=0/RS=b1lEOLDCYf4qu8Ozc6wZ.wTUuoo-"target="_blank" lang="en" data-bk="5277.1"><b>Top-Ranked Tennis Star Maria Sharapova <wbr />Swings by to Hong Kong</b> | Stock ...</a></h3><span id="resultTime">1 天前</span></div><span class=url>stocks.newsok.com/newsok/news/<wbr />read?GUID=26589698</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAK3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27024963932720266%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3d6NTDyc8JDu3D1EsqWpqsl73g8WCjlwEz%26icp%3d1%26.intl%3dhk%26sig%3dCeRD6gzO1TKkZujyPC.jmQ--/RK=0/RS=VZYTuH7xgqvF0vwiv_xbWdwH7AQ-" data-bk="5279.1" aria-describedby="link-17" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsALHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=stocks.newsok.com" data-bns="Yahoo" data-bk="118.1">更多此站結果</a><div class="abstr" lang="en"><b>Russian Player to Be the First Tennis Athlete at Madame Tussauds Hong Kong</b> HONG KONG, CHINA -- (Marketwired) -- 03/04/14 -- <b>Ranked</b> World No.5 <b>by</b> the Women&#39;s Tennis Association and with 29 WTA singles ...</div></div></li><li><div class="res"><div><h3><a id="link-18" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsALXSzygt.;_ylu=X3oDMTE2ajhpYmtxBHNlYwNzcgRwb3MDMTgEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fgalleries.myjoyonline.com%2fnews%2f2014%2fMarch-5th%2ftweaa-dce-in-trouble-again-for-unrepentant-posture.php/RK=0/RS=5BwbwL5YLEeth4ytHruk4mShiNA-"target="_blank" lang="en" data-bk="5291.1">Ghana News - &#39;Tweaa&#39; DCE in <wbr />trouble again for unrepentant posture</a></h3><span id="resultTime">1 小時前</span></div><span class=url>galleries.myjoyonline.com/news/2014/<wbr />March-5th/tweaa...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsALnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d897707229512%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dV6uycxJ4JqYwYhp6h84muqUe--9YLA96%26icp%3d1%26.intl%3dhk%26sig%3dR.jMHmpQOsdqYB4So0kBtg--/RK=0/RS=Y6YQCyih_3L2xLH58F0VgqymCFE-" data-bk="5293.1" aria-describedby="link-18" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAL3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=galleries.myjoyonline.com" data-bns="Yahoo" data-bk="119.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-ranked tennis star Maria Sharapova swings by to Hong Kong</b> Don&#39;t sing gospel for awards -OJ &#39;Tweaa&#39; DCE in trouble again for unrepentant posture Nigeria Senate summons Sports Minister over budget Constructing 200 ...</div></div></li><li><div class="res"><div><h3><a id="link-19" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAMHSzygt.;_ylu=X3oDMTE2azBrOGdrBHNlYwNzcgRwb3MDMTkEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fwww.menafn.com%2fa02a6a89-85e5-4a3a-8fc9-b5b98f7ab08f%2fQualstar-Corporation-Celebrates-30-Years-in-Business/RK=0/RS=.qfLJEkZt_3xQ6LkAp6LcaNWe1M-"target="_blank" lang="en" data-bk="5305.1">Qualstar Corporation Celebrates 30 <wbr />Years in Business | MENAFN.com</a></h3><span id="resultTime">19 小時前</span></div><span class=url>www.menafn.com/a02a6a89-85e5-4a3a-8fc9-<wbr />b5b98f7ab08f/...</span><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAMXSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=www.menafn.com" data-bns="Yahoo" data-bk="120.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong</b>, Marketwire Mar 04, 2014 Qualstar Corporation Celebrates 30 Years in Business, Marketwire Mar 04, 2014 Anime Studio 10 Offers Improved Workflow ...</div></div></li><li><div class="res"><div><h3><a id="link-20" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAMnSzygt.;_ylu=X3oDMTE2amdoODg3BHNlYwNzcgRwb3MDMjAEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2ffinance.nrn.com%2fnrn%2fnews%2fread%3fGUID%3d26589698/RK=0/RS=lMpsV1zx6Y7LQw8l5lhj1AoHph8-"target="_blank" lang="en" data-bk="5318.1"><b>Top-Ranked Tennis Star Maria Sharapova <wbr />Swings by to Hong Kong</b> | Market ...</a></h3><span id="resultTime">1 天前</span></div><span class=url>finance.nrn.com/nrn/news/<wbr />read?GUID=26589698</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAM3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d27021807143365074%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3deorjMAwaCSUMPlB5Tj4XBYAChk8gmgS3%26icp%3d1%26.intl%3dhk%26sig%3d7yv5FDZTSf996lxibXQSCA--/RK=0/RS=F2qnblWKUIqkEHkOLhQRhqZE2Ww-" data-bk="5320.1" aria-describedby="link-20" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsANHSzygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=finance.nrn.com" data-bns="Yahoo" data-bk="121.1">更多此站結果</a><div class="abstr" lang="en"><b>Russian Player to Be the First Tennis Athlete at Madame Tussauds Hong Kong</b> HONG KONG, CHINA -- (Marketwired) -- 03/04/14 -- <b>Ranked</b> World No.5 <b>by</b> the Women&#39;s Tennis Association and with 29 WTA singles ...</div></div></li><li class=" last"><div class="res"><div><h3><a id="link-21" class="yschttl spt" href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsANXSzygt.;_ylu=X3oDMTE2ZGRsdTBwBHNlYwNzcgRwb3MDMjEEY29sbwNzZzMEdnRpZANRSUhLMDJfMTMy/RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fnews.myjoyonline.com%2fsports%2f2014%2fMarch-5th%2ftop-ranked-tennis-star-maria-sharapova-swings-by-to-hong-kong.php/RK=0/RS=UrK3dmnS6yuEv7UAFw4kJYxTr4E-"target="_blank" lang="en" data-bk="5333.1">Ghana News - <b>Top-ranked tennis star <wbr />Maria Sharapova swings by to Hong Kong</b></a></h3><span id="resultTime">1 小時前</span></div><span class=url>news.myjoyonline.com/sports/2014/March-<wbr />5th/<b>top</b>...</span>&nbsp;&nbsp;&nbsp;<a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsANnSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2f106.10.137.112%2fsearch%2fsrpcache%3fei%3dUTF-8%26p%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26n%3d100%26u%3dhttp%3a%2f%2fcc.bingj.com%2fcache.aspx%3fq%3d%2522Top-Ranked%2bTennis%2bStar%2bMaria%2bSharapova%2bSwings%2bby%2bto%2bHong%2bKong%2522%2bOR%2b%2522Russian%2bplayer%2bto%2bbe%2bthe%2bfirst%2btennis%2bathlete%2bat%2bMadame%2bTussauds%2bHong%2bKong%2522%26d%3d1310019302813%26mkt%3dzh-HK%26setlang%3dzh-HK%26w%3dOoK1LFEewG0Yije7e34sIP3j_6BR9gXC%26icp%3d1%26.intl%3dhk%26sig%3d7Wf8OQT_CGfJOkVNP_wJCA--/RK=0/RS=PE4dMVNoSc.e6DuW2v1lwdnWQHw-" data-bk="5335.1" aria-describedby="link-21" target="_blank" class="sub">網頁紀錄</a><span class="sep"></span><a class="sub" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAN3Szygt.?ei=UTF-8&p=%22Top-Ranked+Tennis+Star+Maria+Sharapova+Swings+by+to+Hong+Kong%22+OR+%22Russian+player+to+be+the+first+tennis+athlete+at+Madame+Tussauds+Hong+Kong%22&n=100&vst=0&vs=news.myjoyonline.com" data-bns="Yahoo" data-bk="122.1">更多此站結果</a><div class="abstr" lang="en"><b>Top-ranked tennis star Maria Sharapova swings by to Hong Kong</b>... Nigeria Senate summons Sports Minister over budget... American writer assesses US team ahead of World Cup... Carles Puyol: Barcelona captain ...</div></div></li></ol></div></div><h2 class="off-left">更多搜尋結果</h2><div id="pg" data-bns="Yahoo" data-bk="144.1"><span>21 個搜尋結果</span></div></div><div id="right"><div id="east"><style>#trending-now{margin:15px 10px 15px 10px}#trending-now h4{color:#949FA6}#trending-now .lf{clear:left;float:left}#trending-now li{width:49%;vertical-align:top;display:inline-block;padding-top:5px}#trending-now li a{display:block;color:#0000DE;white-space:nowrap;padding-left:22px;overflow:hidden;text-overflow:ellipsis}#trending-now .lf a{padding-left:13px}#trending-now li a.active,#trending-now li a:hover.active{color:#000;cursor:text;text-decoration:none}#trending-now .num{color:#949FA6;text-align:right;font-weight:300;position:absolute;min-width:1.3em}#trending-now .lf .num{min-width:0}</style><div id="trending-now"><h4>熱門搜尋</h4><ul><li class="lf"><b class="num">1</b><a id="tts0" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA5nOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E9%87%91%E6%AD%A3%E6%81%A9%E5%90%8C%E6%80%A7%E6%88%80" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA5nOzygt." title="金正恩同性戀">金正恩同性戀</a></li><li class="lf"><b class="num">2</b><a id="tts1" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA53Ozygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E7%8E%8B%E5%82%91%E5%A5%B3%E5%8F%8B%E5%87%BA%E8%BB%8C" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA53Ozygt." title="王傑女友出軌">王傑女友出軌</a></li><li class="lf"><b class="num">3</b><a id="tts2" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA6HOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E6%8B%86%E5%BD%88%E5%8D%81%E4%B8%80%E4%BA%BA" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA6HOzygt." title="拆彈11人">拆彈11人</a></li><li class="lf"><b class="num">4</b><a id="tts3" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA6XOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E8%A5%BF%E5%AE%89%E7%88%86%E7%82%B8" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA6XOzygt." title="西安爆炸">西安爆炸</a></li><li class="lf"><b class="num">5</b><a id="tts4" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA6nOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E4%BF%9D%E6%BF%95" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA6nOzygt." title="保濕">保濕</a></li><li ><b class="num">6</b><a id="tts5" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA63Ozygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E6%9C%AA%E4%BE%86%E5%9F%BA%E9%87%91" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA63Ozygt." title="未來基金">未來基金</a></li><li ><b class="num">7</b><a id="tts6" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA7HOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E6%A5%8A%E5%AE%B6%E8%AA%A0%E9%BB%91%E9%8C%A2" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA7HOzygt." title="楊家誠黑錢">楊家誠黑錢</a></li><li ><b class="num">8</b><a id="tts7" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA7XOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E6%AF%92%E5%A5%B6%E5%A5%B3%E6%A8%A1" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA7XOzygt." title="毒奶女模">毒奶女模</a></li><li ><b class="num">9</b><a id="tts8" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA7nOzygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E9%A6%96%E7%88%BE%E5%A4%A7%E5%AD%B8%E5%A5%B3%E7%A5%9E" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA7nOzygt." title="首爾大學女神">首爾大學女神</a></li><li ><b class="num">10</b><a id="tts9" class="" href="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsA73Ozygt.?ei=UTF-8&n=100&fr=&fr2=ps_east&cs=bz&p=%E8%95%AD%E6%AD%A3%E6%A5%A0%E7%A6%BF%E9%A0%AD" beacon="http://geo.yahoo.com/t;_ylt=A2oKmL_g7hZTaEsA73Ozygt." title="蕭正楠禿頭">蕭正楠禿頭</a></li></ul></div><style>#display-ad-east{margin:15px 10px 15px 10px}#display-ad-east h4 a{color:#949FA6}#display-ad-east iframe{display:block}</style><div id="display-ad-east" ><h4><a href="http://hk.searchmarketing.yahoo.com/index.html?o=HK0036" >廣告</a></h4><iframe src="http://hk.adserver.yahoo.com/a?f=2114702003&p=hksrcgspw&l=SKY&c=h" frameborder=0 scrolling="no" width="170px" height="615px"></iframe></div></div></div></div></div><div class="bdc" data-bns="Yahoo" data-bk="145.1"><div class="sbx"><form method="get" name="sB" id="sB" role="search" action="http://hk.search.yahoo.com/search;_ylt=A2oKmL_g7hZTaEsAOHSzygt."accept-charset="utf-8"><label for="yschsp-bot" class="off-left">搜尋關鍵字</label><div id="sbq-wrap-bot" class="sbq-w"><input type="text" class="sbq" id="yschsp-bot" name="p" value="&quot;Top-Ranked Tennis Star Maria Sharapova Swings by to Hong Kong&quot; OR &quot;Russian player to be the first tennis athlete at Madame Tussauds Hong Kong&quot;" autocomplete="off"></div><button id="sbq-clear-bot" type="button" class="sbq-x"><span class="sprite"></span></button><input type="submit" class="sbb" value="搜尋"><input type="hidden" name="fr2" value="sb-bot"><input type="hidden" name="n" value="100"></form></div><div id="ft" role="contentinfo" data-bns="Yahoo" data-bk="9.1"><ul><li class="copyright">Yahoo</li><li><a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAOXSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhelp.cc.hk.yahoo.com%2fcp_info.html%3fproduct%3dYSearch/RK=0/RS=cYzIeaEM_5yV1R1YODVp_4T8vzU-">服務中心</a></li><li><a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAOnSzygt./RV=2/RE=1394040672/RO=10/RU=https%3a%2f%2fyahoo.uservoice.com%2fforums%2f216680/RK=0/RS=S.nqGhhrvNF3Ts7mr8pmxzUe2u8-" id="usr-fdb-lnk" data-uv-lightbox="classic_widget" data-uv-mode="feedback" data-uv-primary-color="#cc6d00" data-uv-link-color="#007dbf" data-uv-forum-id="216680">建議</a></li><li><a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAO3Szygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2finfo.yahoo.com%2fprivacy%2fhk%2fyahoo%2fsearch/RK=0/RS=_h5i73D3dxfcqNqvpy0L1eILNGc-">私隱政策</a></li><li><a href="http://ri.search.yahoo.com/_ylt=A2oKmL_g7hZTaEsAPHSzygt./RV=2/RE=1394040672/RO=10/RU=http%3a%2f%2fhk.yahoo.com%2finfo%2futos.html%3ffr%3d/RK=0/RS=4hooDGKqaVt2.EVm_Bch3an67hA-">服務條款</a></li><li><a href="http://hk.search.yahoo.com/info/submit;_ylt=A2oKmL_g7hZTaEsAPXSzygt.?fr=">加入你的網站</a></li><li class="pbb">Powered by Bing&trade;</li></ul></div></div></div></div><!-- SpaceID=2114702003 loc=FOOT9 noad --><!-- fac-gd2-noad --><!-- gd2-status-2 --><!--QYZ CMS_NONE_AVAIL,,106.10.158.194;;FOOT9;2114702003;2;--><script>YUI_config={"spaceid":"2114702003","pvid":"oU2G7zEwNi6FsmOeT7nm7g5.MjAyLlMW7uD_6zzo","beacon":"http:\/\/geo.yahoo.com\/t","testid":"QIHK02","geo":[],"mtestid":"","fetchCSS":true};(function(){var e=window.location,d,b;function c(f){return decodeURIComponent(f.replace(/\+/g," "))}function a(j){var h=j.match(/([^\?#&]+)=([^#&]*)/g)||[],l={},g,f,k;for(g=0,f=h.length;g<f;++g){k=h[g].split("=");l[c(k[0])]=c(k[1])}return l}if(window.navigator&&window.navigator.userAgent.match(/Gecko\//)){d=/#.*$/.exec(e.href);d=d&&d[0]?d[0]:""}else{d=e.hash}b=a(d);if(b.sd){document.getElementById("yschsp").value=b.sd}else{if(b._sd){document.getElementById("yschsp").value=""}}})();(function(){YUI={Env:{mods:{},add:function(n,m,l,d){if(n&&n.addEventListener){n.addEventListener(m,l,d)}else{if(n&&n.attachEvent){n.attachEvent("on"+m,l)}}},remove:function(o,n,m,d){if(o&&o.removeEventListener){try{o.removeEventListener(n,m,d)}catch(l){}}else{if(o&&o.detachEvent){o.detachEvent("on"+n,m)}}}},add:function(l,n,d,m){YUI.Env.mods[l]={name:l,fn:n,version:d,details:m||{}}}};Y={_pending:[],use:function(){Y._pending.push(arguments)},Search:{}};var i=window,g=document,k=YUI.Env.add,f=YUI.Env.remove,b=(function(){var d=[];function l(){setTimeout(function(){var n=0,m=d.length;for(;n<m;n++){d[n]()}f(i,"load",l)},0)}k(i,"load",l);return{add:function(m){d.push(m)}}}()),a=(function(){var d=navigator.userAgent.match(/MSIE\s([^;]*)/);if(d){return parseFloat(d[1])}return 0}());function c(d){return d.replace(/^\s+|\s+$/g,"")}function e(m,d){var l=new RegExp("(\\s|^)"+d+"(\\s|$)");return m.className.match(l)}function j(m,d){var l=new RegExp("(\\s|^)"+d+"(\\s|$)");m.className=c(m.className.replace(l," "))}function h(l){var d=g.getElementById(l);if(d){d.reset()}}Y.Search.Loader=(function(){var l=[],m=false;function o(q,p){var s=g.createElement(q),r,t;for(r in p){if(p.hasOwnProperty(r)){t=p[r];s.setAttribute(r,t)}}return s}function d(){var r=0,p=l.length,s,t,q=g.getElementsByTagName("head")[0];for(;r<p;r++){s=l[r];if(s.type==="css"){t=o("link",{href:s.url,rel:"stylesheet",type:"text/css"})}else{if(s.type==="js"){t=o("script",{src:s.url})}else{continue}}q.appendChild(t)}m=true;l=[]}function n(){var r=arguments[0],s=Array.prototype.slice.call(arguments,1),q=0,p=s.length;for(;q<p;q++){l.push({type:r,url:s[q]})}if(m){d()}}b.add(d);return{js:function(){var p=Array.prototype.slice.call(arguments);n.apply(null,["js"].concat(p))},css:function(){var p=Array.prototype.slice.call(arguments);n.apply(null,["css"].concat(p))}}}());(function(){var o=0;function n(){if(--o===0&&typeof rt_AddTime==="function"){rt_AddTime("t2")}if(o===0&&typeof T!=="undefined"){T.stamp("img")}}function l(){var v=this,u=v.parentNode.parentNode,q,s,r,t,p;n();if(v.getAttribute("allowResize")==="true"||e(v,"sm-thumb")){j(u,"sm-hide");if(a&&e(u,"sm-media")){q=u.offsetWidth;s=u.offsetHeight;r=v.width;t=v.height;p=Math.max(r/q,t/s);if(p&&r&&t){v.style.width=(r/p)+"px";v.style.height=(t/p)+"px"}}}}function m(){n();this.style.display="none"}function d(){var p=g.images,q=p.length,r,s;while(q--){r=p[q];s=r.getAttribute("data-src")||r.getAttribute("__src")||r.getAttribute("_src");if(s){o++;r.onload=l;r.onerror=m;r.setAttribute("src",s);r.removeAttribute("data-src");r.removeAttribute("__src");r.removeAttribute("_src");j(r,"hidden")}}}b.add(d)}());b.add(function(){var l=g.getElementById("yschsp"),d=/(^|\s)sd(\s|$)/;if(l&&d.test(l.parentNode.className)){return}if(a&&(!l||!l.getAttribute("dirty"))){h("sf");h("sB")}});(function(){var q=g.getElementById("web"),l=g.getElementById("srp"),m=(q)?q.getElementsByTagName("a"):[],m=(l)?l.getElementsByTagName("a"):m,s=/(?:^|\s+)yschttl(?:\s+|$)/,o=m.length,n,r=(function(){if(a&&a<7){return function(w,u){var v=new RegExp("^<a.*\\s"+u+'="([^"]*)"',"i"),t=v.exec(w.outerHTML);return t?t[1]:null}}else{return function(u,t){return u.getAttribute(t)}}}());function p(u){var x=u||i.event,v=x.target||x.srcElement,w;while(v){if(v.tagName&&v.tagName.toLowerCase()==="a"&&v.getAttribute("dirtyhref")){w=r(v,"dirtyhref");if(w){v.setAttribute("href",w)}break}v=v.parentNode}}k(g,"mousedown",p);k(g,"click",p);function d(x){var u,y,t,w,v;u=r(x,"href");if(!u){return}y=r(x,"ourl");if(!y){t=u.indexOf("/**");if(t<0){return}y=decodeURIComponent(u.substr(t+3))}w=x.cloneNode(true);w.setAttribute("href",y);w.setAttribute("dirtyhref",u);if(a){v=w.innerHTML;u=r(w,"dirtyhref");w.setAttribute("href",u);if(w.innerHTML!==v){return}w.setAttribute("href",y)}x.parentNode.replaceChild(w,x)}while(o--){n=m[o];if(s.test(n.className)){d(n)}}}())}());Y.use("srp",function(){Y.Search.SRP.init({"enable_sidebar_collapse":"","pvid":"oU2G7zEwNi6FsmOeT7nm7g5.MjAyLlMW7uD_6zzo","url_img_progress":"http:\/\/l.yimg.com\/pv\/i\/us\/sch\/gr4\/sp-progress2.gif","tts":false},{"aria_loading_results":"\u641c\u5c0b\u9032\u884c\u4e2d\uff0c\u8acb\u8010\u5fc3\u7b49\u5019\u3002","aria_results_loaded":"New search results have been retrieved. Press control shift and down arrow key to jump to the first search result. Press control shift and up arrow key to jump back to the search box.","common.expando.playvideo":"\u64ad\u653e\u5f71\u7247","common.expando.closevideo":"\u505c\u6b62\u64ad\u653e","common.results.error":"\u5c0d\u4e0d\u8d77\uff0c\u6211\u5011\u66ab\u6642\u672a\u80fd\u63d0\u4f9b\u641c\u5c0b\u7d50\u679c\uff0c\u8acb\u91cd\u8a66\u4e00\u6b21\u3002","common.results.loading":"\u4e0b\u8f09\u4e2d...","srp.title":"%q - \u96c5\u864e\u9999\u6e2f \u641c\u5c0b\u7d50\u679c","common.more_dots":"\u66f4\u591a...","common.less":"\u8f03\u5c11"});});Y.use("srp-bing-beacon",function(){Y.Search.SRP.initBTrack({"cUrl":"http:\/\/sk.ybinst6.ec.yimg.com\/ec\/fd\/ls\/GlinkPing.aspx?IG=6a0a98bfa14d46efbe5316eee08b3ce8\u0026CID=7f16085ac9e7505b838c87b298f9eb31","pUrl":"http:\/\/sk.ybinst6.ec.yimg.com\/ec\/fd\/ls\/l?IG=6a0a98bfa14d46efbe5316eee08b3ce8\u0026CID=7f16085ac9e7505b838c87b298f9eb31\u0026Type=Event.CPT","Attr":["data-bns","data-bk"]});});Y.use("srp-session-tracking", function(){Y.Search.SRP.SessionTracking.init({"beaconUrl":"\/ra\/click","bcrumb":"KRrz1w658Ap","skey":"hiK6m3bBdaWHHlSbBCoKfA--"});});Y.use("srp-ysm", function (Y) {Y.Search.Ysm.clickable({"parentElem":"#main","childElem":".ads li","newWindow":true});});Y.use("srp-ysm", function (Y) {Y.Search.Ysm.clickable({"parentElem":"#east","childElem":".eads li","newWindow":true});});Y.use('loader','srp-lazy',function(){Y.config=Y.mix(Y.config,{bootstrap:true,combine:true,comboBase:'http://l.yimg.com/zz/combo?',ignore:['skin-sam-tabview'],root:'yui:3.10.0/build/',groups:{a:{combine:true,comboBase:'http://l.yimg.com/zz/combo?',ext:false,root:'pv/',modules:{"srp-universal-header":{"path":"static\/lib\/srp-universal-header_201207241050.js","requires":[]},"pphw":{"path":"static\/lib\/tw_pphw-201312061809.js","requires":["ult-linktrack","node-event-simulate","swf","swfdetect","overlay"]},"event-to-load":{"path":"static\/lib\/event-to-load_201304301257.js","requires":["get","event","node"]}}}}},true,null,0,true);Y.Search.use('srp-universal-header','event','event-mouseenter','substitute','oop','node-focusmanager','querystring-stringify','gallery-jsonp','lang/datatype-date','intl','pphw','ult-linktrack','node-event-simulate','swf','swfdetect','overlay','event-to-load','get','node',function(){(function(){Y.Search.UniversalHeader.init({"js":"http:\/\/l.yimg.com\/zz\/combo?kx\/ucs\/sts\/js\/442\/skip-min.js\u0026kx\/ucs\/uh\/js\/279\/timestamp_library-min.js\u0026kx\/ucs\/menu_utils\/js\/164\/menu_utils_v2-min.js\u0026kx\/ucs\/uh\/js\/267\/aria_toolbar-min.js\u0026kx\/ucs\/username\/js\/43\/user_menu-min.js\u0026kx\/ucs\/help\/js\/41\/help_menu-min.js\u0026kx\/ucs\/utility_link\/js\/20\/utility_menu-min.js\u0026kx\/ucs\/uh\/js\/262\/logo_debug-min.js\u0026kx\/ucs\/common\/js\/131\/jsonp-super-cached-min.js\u0026kx\/ucs\/avatar\/js\/29\/avatar-min.js\u0026kx\/ucs\/mailcount\/js\/75\/mailcount_ssl_v2-min.js\u0026kx\/ucs\/uh\/js\/286\/activate_library-min.js","sprite":"http:\/\/l.yimg.com\/dh\/ap\/ap\/default\/120503\/uh_sprite_2_16.png"});}());(function(){Y.use("ult-linktrack", "pphw", function(Y){Y.Search.PPHW.HandWriting.init({"srcNode":"#pphw-triggerbtn","overlayNode":"#pphw-content","inputNode":"#yschsp","title":"\u624b\u5beb\u8f38\u5165","sponsorText":"\u8499\u606c\u79d1\u6280\u63d0\u4f9b","sponsorLink":"http:\/\/www.penpower.net","helpLink":"http:\/\/help.cc.hk.yahoo.com\/help_cp.html?product=36\u0026catyname=%A4%E2%BCg%BF%E9%A4J","swfUrl":"http:\/\/l.yimg.com\/f\/i\/tw\/search\/metro\/pphw_201008171109.swf","swfArg":{"timeout":500,"intl":"zh_HK"}})});}());(function(){Y.use("event-to-load",function(){Y.Search.EventTL.init({"enable_js":true,"href":"https:\/\/yahoo.uservoice.com\/forums\/216680","url":"http:\/\/l.yimg.com\/pv\/static\/lib\/uservoice.js","id":"usr-fdb-lnk","uvid":"216680","eventType":"click","timeout":2000});});}());});});Y.use("vertical-pivots",function(){Y.Search.VerticalPivots.init({"more":"\u66f4\u591a","less":"\u8f03\u5c11"});});Y.use("search-assist-client", function() {new Y.SEARCHASSIST.CLIENT({"property":"web","searchBox":"#yschsp","hostNodeToAttach":"#sbq-wrap","maxSuggests":10,"anyKeySearch":false,"enableTrending":true,"autoAlign":false,"cancelButton":true,"tcpPreConnect":false,"quietMode":false,"ariaPlug":true,"stream":false,"webHistory":{"bcrumb":"KRrz1w658Ap","crumb":"q1eI0iuMxyo","highlightHistory":false},"reverseHighlight":false,"subAssist":true,"device":{"tablet":{"skin":"desktop"}},"dataSrc":{"url":"http:\/\/sugg-a.asia.search.yahoo.com\/gossip-hk-ura","supportsEmptyQuery":true},"lang":"zh-Hant-HK","translation":{"TRENDING_NOW_TITLE":"\u71b1\u9580\u641c\u5c0b\u95dc\u9375\u5b57"},"ult":{"spaceId":"2114702003","csrcpvid":"oU2G7zEwNi6FsmOeT7nm7g5.MjAyLlMW7uD_6zzo","vtestid":"QIHK02","mtestid":""},"extraUltParams":{"fr":"","n_rslt":21},"yltCustom":"_ylt=A2oKmL_g7hZTaEsA1XOzygt.","geo":[]});});Y.Search.Loader.js('http://l.yimg.com/pv/static/lib/srp-core-js-purple-1_201401121337.js','http://l.yimg.com/pv/static/lib/srp-core-js-purple-2_201402250738.js','http://l.yimg.com/pv/static/lib/tw_apac-srp-js_201203291514.js');</script></body></html><script language=javascript>
-(function(){window.xzq_p=function(R){M=R};window.xzq_svr=function(R){J=R};function F(S){var T=document;if(T.xzq_i==null){T.xzq_i=new Array();T.xzq_i.c=0}var R=T.xzq_i;R[++R.c]=new Image();R[R.c].src=S}window.xzq_sr=function(){var S=window;var Y=S.xzq_d;if(Y==null){return }if(J==null){return }var T=J+M;if(T.length>P){C();return }var X="";var U=0;var W=Math.random();var V=(Y.hasOwnProperty!=null);var R;for(R in Y){if(typeof Y[R]=="string"){if(V&&!Y.hasOwnProperty(R)){continue}if(T.length+X.length+Y[R].length<=P){X+=Y[R]}else{if(T.length+Y[R].length>P){}else{U++;N(T,X,U,W);X=Y[R]}}}}if(U){U++}N(T,X,U,W);C()};function N(R,U,S,T){if(U.length>0){R+="&al="}F(R+U+"&s="+S+"&r="+T)}function C(){window.xzq_d=null;M=null;J=null}function K(R){xzq_sr()}function B(R){xzq_sr()}function L(U,V,W){if(W){var R=W.toString();var T=U;var Y=R.match(new RegExp("\\\\(([^\\\\)]*)\\\\)"));Y=(Y[1].length>0?Y[1]:"e");T=T.replace(new RegExp("\\\\([^\\\\)]*\\\\)","g"),"("+Y+")");if(R.indexOf(T)<0){var X=R.indexOf("{");if(X>0){R=R.substring(X,R.length)}else{return W}R=R.replace(new RegExp("([^a-zA-Z0-9$_])this([^a-zA-Z0-9$_])","g"),"$1xzq_this$2");var Z=T+";var rv = f( "+Y+",this);";var S="{var a0 = '"+Y+"';var ofb = '"+escape(R)+"' ;var f = new Function( a0, 'xzq_this', unescape(ofb));"+Z+"return rv;}";return new Function(Y,S)}else{return W}}return V}window.xzq_eh=function(){if(E||I){this.onload=L("xzq_onload(e)",K,this.onload,0);if(E&&typeof (this.onbeforeunload)!=O){this.onbeforeunload=L("xzq_dobeforeunload(e)",B,this.onbeforeunload,0)}}};window.xzq_s=function(){setTimeout("xzq_sr()",1)};var J=null;var M=null;var Q=navigator.appName;var H=navigator.appVersion;var G=navigator.userAgent;var A=parseInt(H);var D=Q.indexOf("Microsoft");var E=D!=-1&&A>=4;var I=(Q.indexOf("Netscape")!=-1||Q.indexOf("Opera")!=-1)&&A>=4;var O="undefined";var P=2000})();
-</script><script language=javascript>
-if(window.xzq_svr)xzq_svr('http://csc.beap.bc.yahoo.com/');
-if(window.xzq_p)xzq_p('yi?bv=1.0.0&bs=(135rkan0t(gid$oU2G7zEwNi6FsmOeT7nm7g5.MjAyLlMW7uD_6zzo,st$1394011872653487,si$213061,sp$2114702003,pv$1,v$2.0))&t=JR_3-DR_3');
-if(window.xzq_s)xzq_s();
-</script><noscript><img width=1 height=1 alt="" src="http://csc.beap.bc.yahoo.com/yi?bv=1.0.0&bs=(135rkan0t(gid$oU2G7zEwNi6FsmOeT7nm7g5.MjAyLlMW7uD_6zzo,st$1394011872653487,si$213061,sp$2114702003,pv$1,v$2.0))&t=JR_3-DR_3"></noscript><script>(function(c){var e="https://",a=c&&c.JSON,f="ypcdb",g=document,d=["yahoo.com","flickr.com","rivals.com","yahoo.net","yimg.com"],b;function i(l,o,n,m){var k,p;try{k=new Date();k.setTime(k.getTime()+m*1000);g.cookie=[l,"=",encodeURIComponent(o),"; domain=",n,"; path=/; max-age=",m,"; expires=",k.toUTCString()].join("")}catch(p){}}function h(l){var k,m;try{k=new Image();k.onerror=k.onload=function(){k.onerror=k.onload=null;k=null};k.src=l}catch(m){}}function j(u,A,n,y){var w=0,v,z,x,s,t,p,m,r,l,o,k,q;try{b=location}catch(r){b=null}try{if(a){k=a.parse(y)}else{q=new Function("return "+y);k=q()}}catch(r){k=null}try{v=b.hostname;z=b.protocol;if(z){z+="//"}}catch(r){v=z=""}if(!v){try{x=g.URL||b.href||"";s=x.match(/^((http[s]?)\:[\/]+)?([^:\/\s]+|[\:\dabcdef\.]+)/i);if(s&&s[1]&&s[3]){z=s[1]||"";v=s[3]||""}}catch(r){z=v=""}}if(!v||!k||!z||!A){return}while(l=d[w++]){t=l.replace(/\./g,"\\.");p=new RegExp("(\\.)+"+t+"$");if(v==l||v.search(p)!=-1){o=l;break}}if(!o){return}if(z===e){A=n}w=0;while(m=A[w++]){h(z+m+k[m.substr(1+m.lastIndexOf("="))])}i(f,u,o,86400)}j('3f4da492062079dbe807ac5a3c2cdaa2',['ad.yieldmanager.com/csync?ver=2.1','u2sb.interclick.com/beacon.gif?ver=2.1'],['ad.yieldmanager.com/csync?ver=2.1','cdnk.interclick.com/beacon.gif?ver=2.1'],'{"2.1":"&id=23351&value=8opw3wc7ewcar%26o%3d4%26q%3dCEuaQCIcLS8qws800JQD3X9DOAb-%26f%3dz2%26v%3dYTwlL6xSLtm_E2cF36XO&optout=b%3d0&timeout=1394011872&sig=13jk7i4n3"}')})(window);
-</script>
-<!-- fe32.syc.search.sg3.yahoo.com compressed/chunked Wed Mar  5 09:31:12 UTC 2014 -->
diff --git a/PressRelease/Import/SearchFetch.php b/PressRelease/Import/SearchFetch.php
deleted file mode 100644 (file)
index c410989..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-<?php
-/*
- *
- * FIXME - needs to handle rate limiting..
- *
- */
-require_once 'Pman/Core/NotifySend.php';
-
-class Pman_PressRelease_Import_SearchFetch extends Pman_Core_NotifySend
-{
-    var $masterTemplate = 'fetchable.html';
-    
-    
-    static $cli_desc = "Fetch a campaignassign";
-    
-    static $cli_opts = array(
-        'force-fetch' => array(
-            'desc' => 'Force fetch',
-            'default' => 0,
-            'short' => 'F',
-            'min' => 1,
-            'max' => 1,
-            
-        ),
-        
-    );
-    
-    var $evtype = ''; // any notification...
-    
-    function getAuth()
-    {
-        if ($this->bootLoader->cli) {
-            return true;
-        }
-        
-        
-        Pman::getAuth();
-        $this->getAuthUser();
-        
-        if (!$this->authUser ) {
-            $this->jerr("access denied");
-        }
-        $c= $this->authUser->company();
-        if ($c->comptype !='OWNER') {
-            $this->jerr("access denied");
-        }
-        header('Content-type: text/plain; charset=utf-8');
-        
-        
-        return true;
-    }
-    
-    
-    function get($feed_id='', $opts = array())
-    {
-        //DB_DAtaObject::debugLevel(1);
-        
-        $feed_id = (int)$feed_id;
-        if (!$feed_id) {
-            die("No feed?");
-        }
-        //DB_DataObject::debugLevel(1);
-         
-        $assign = DB_DataObject::factory('CampaignAssign');
-        $assign->autoJoin();
-        if (!$assign->get($feed_id)) {
-            $this->jerr("invalid id");
-        }
-        // at this point we have the campaign assign which includes 'lastfetched'
-        
-        $lastfetch = $assign->lastfetched;
-        
-        // in the first (2 days) 48 hours, we can query once every 4 hours.
-        // in the first (7 days) 168 hours we can query once every 12 hours
-         // in the first (14 days) 336 hours we can query once every 24 hours
-        // after that we only query every 48 hours...
-        
-        $pr = DB_DAtaObject::Factory('pressrelease_entry');
-        $pr->get($assign->project_id_pressrelease_id);
-        
-        $since_published = (time()- strtotime($pr->publish_dt)) / (60 * 60);
-        
-        var_dump($since_published);
-        var_dump($lastfetch);
-        
-        print_r($opts);
-        if (!empty($opts['force-fetch'])) {
-            $since_published = 1;
-            $lastfetch = '1970-01-01 01:01:01';
-        }
-        if ($since_published > (20 * 24)) {
-                echo "article too old skipppng fetch";
-                print_R($pr);
-                die("\n");
-        }
-            
-        
-        
-        if ($since_published < 48) {
-            
-            if (time() < strtotime($lastfetch . ' + 4 HOURS')) {
-                echo "too soon - next fetch in " . date("Y-m-d H:i:s", strtotime($lastfetch . ' + 4 HOURS'));
-                die("\n");
-            }
-        } else if ($since_published < 168) {
-            if (time() < strtotime($lastfetch . ' + 12 HOURS')) {
-                echo "too soon - next fetch in " . date("Y-m-d H:i:s", strtotime($lastfetch . ' + 12 HOURS'));
-                die("\n");
-            }
-        } else if ($since_published < 336) {
-            if (time() < strtotime($lastfetch . ' + 24 HOURS')) {
-                echo "too soon - next fetch in " . date("Y-m-d H:i:s", strtotime($lastfetch . ' + 24 HOURS'));
-                die("\n");
-            }
-         } else {
-            if (time() < strtotime($lastfetch . ' + 48 HOURS')) {
-                echo "too soon - next fetch in " . date("Y-m-d H:i:s", strtotime($lastfetch . ' + 48 HOURS'));
-                die("\n");
-            }
-        }
-        
-        
-        
-        
-         
-        
-        $languages = explode(",", $assign->languages);
-        //print_r($languages);
-        foreach($languages as $lang) {
-            //print_r($assign);
-            
-                
-            $feed  = $assign->createSearchFeed(false, false, $lang) ;
-            $feed->id = 0; // fake feed..
-            $feed->assign  = $assign;
-            $feed->country = $assign->countries; //?? not multiple?
-            $feed->language = $lang;
-            //print_r($feed);
-        
-            
-            if (empty($feed->parser)) {
-                // create a fake reader_feed. and call download on it?
-                
-                $feed->id = 0; // fake feed..
-                $feed->country = $assign->countries; //?? not multiple?
-                $feed->language = $lang;
-                
-                $feed->download($this, false,array('campaign_id' => $assign->project_id, 'src_id' => $assign->id) );
-                continue;
-                
-            }
-            // next for - search based..
-            
-            
-            $feed->id = 0; // fake feed..
-            //echo "Using {$this->parser}\n";
-            $country = empty($assign->country) ? 'HK' : $assign->country;
-            
-            
-            require_once 'Pman/PressRelease/Import/Search/'. $feed->parser.'.php';
-            $cls = 'Pman_PressRelease_Import_Search_'.$feed->parser;
-            $x = new $cls;
-            echo "RUNNING:$cls\n";
-            // online searches should only be done every 12 hours..
-            // otherwise we get blocked...
-           
-            $ret = $x->run($feed);
-            //$ret = $x->parseSearch($this->params, strtolower($this->language), strtolower($this->country));
-            
-            if (!$ret) {
-                continue;
-                //return "No artices found when calling parser {$feed->parser}";
-            }
-            
-            foreach($ret as $r) {
-                
-                $dom = DB_DataObject::factory('clipping_domain')->lookupUrl($r['url']);
-                if ($dom && $dom->is_ignore) {
-                    continue;
-                }
-                
-                // make sure domain is not black listed..
-                
-                
-                $feed->generateArticle($r,
-                    array('campaign_id' => $assign->project_id, 'src_id' => $assign->id));
-            }
-            continue;
-            
-             
-        }
-        
-        $oa = clone ($assign);
-        $assign->lastfetched = $assign->sqlValue("NOW()");
-        $assign->update($oa);
-          
-            
-        die("done rss fetch");
-        
-    }
-     
-    
-    function output() {
-        if ($this->bootLoader->cli) {
-            return parent::output();
-        }
-        die("FETCH DONE");
-        return Pman::output();
-        
-        
-    }
-}
\ No newline at end of file
diff --git a/PressRelease/Import/TestProviders.php b/PressRelease/Import/TestProviders.php
deleted file mode 100644 (file)
index 7c5dac9..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-
-/**
- * Description of TestProviders
- *
- * @author chris
- */
-require_once 'Pman.php';
-
-class Pman_PressRelease_Import_TestProviders extends Pman
-{
-    //put your code here
-    var $cli  = false;
-    
-    static $cli_desc = "Local Search Engine -- TestProviders";
-    
-    static $cli_opts = array(
-         'mailto' => array(
-            'desc' => 'mail to person',
-            'short' => 'm',
-            'default' => '',
-            'min' => 1,
-            'max' => 1,
-        ),
-    );
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        parent::getAuth();
-        $au = $this->getAuthUser();
-        if (!$au) {
-            $this->jerrAuth();
-        }
-        return true;
-    }
-    
-    function get($q='', $opts)
-    {
-//        print_r('in?');
-//        print_r($this->cli_args);
-//        $arr = get_defined_functions();
-//
-//print_r($arr);
-        $searchTarget = get_defined_functions();
-        
-        
-        $this->opts = $opts;
-        $parser = array(
-            'Baidu',
-            'Bing',
-            'Google',
-            'Weibo',
-            'Yahoo'
-        );
-        
-        $ret = array();
-        
-        foreach($parser as $p){
-            require_once 'Pman/Reader/Parse/'. $p.'.php';
-            $cls = 'Pman_Reader_Parse_'.$p;
-            $x = new $cls;
-            
-            $st = rand(0,count($searchTarget['internal']));
-            
-            $str = '["'.$searchTarget['internal'][$st].'"]';
-            
-            if (!$x->parseSearch($str)) {
-                $ret[] = $p;
-                echo "No artices found when calling parser {$p} \n";
-            }
-        }
-        
-        if(!empty($ret)){
-            $this->mailto($ret);
-        }
-    }
-    
-    function mailto($parser)
-    {
-        if(empty($this->opts['mailto'])){
-            $admins = DB_DataObject::Factory('Groups')->lookup('name', 'system-email-from')->members('email');
-            if (!$admins) {
-                return $this->herr("email group has not bee set up");
-            }
-            $this->opts['mailto'] = implode(',', $admins);
-            
-        }
-        $aa = $this->sendTemplate('test_providers', array(
-            'email' => $this->opts['mailto'],
-            'failed' => implode(',', $parser)
-        ));
-        
-        echo "\n\nThe failed providers : " . implode(',', $parser) . " and email to ". $this->opts['mailto'] ."\n";
-        exit;
-    }
-}
diff --git a/PressRelease/Import/UpdateFails.php b/PressRelease/Import/UpdateFails.php
deleted file mode 100644 (file)
index ec2d00d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-
-
-require_once 'Pman.php';
-
-class Pman_PressRelease_Import_UpdateFails extends Pman
-{
-    var $cli  = false;
-    
-    static $cli_desc = "Run through last months notifications, and update the fail data..";
-    
-    static $cli_opts = array(
-    
-    );
-    
-    function getAuth()
-    {
-        $cli = HTML_FlexyFramework::get()->cli;
-        if ($cli) {
-            $this->cli = true;
-            return true;
-        }
-        $this->jerr("cli only");
-        
-    }
-    
-    function get()
-    {
-        echo "STARTING?\n";
-        //DB_DataObject::debugLevel(1);
-        $n = DB_DAtaObject::Factory('pressrelease_notify');
-        $nn = clone($n);
-        $n->whereAdd("act_when > NOW() - INTERVAL 3 MONTH AND sent > '1980-01-01 00:00:00'");
-        $n->ontable = 'pressrelease_entry';
-        $n->find();
-        $res = array();
-        while ($n->fetch()) {
-            $key = "{$n->person_id}-{$n->field}";
-            if ($n->msgid == '') {
-                // fail
-                if (!isset($res[$key])) {
-                    $res[$key] = 0;
-                }
-                $res[$key]++;
-                
-                //$q = "UPDATE pressrelease_contact SET {$n->field}_fail = {$n->field}_fail  + 1 WHERE id = {$n->person_id}";
-            } else {
-                if (isset($res[$key])) {
-                    $res[$key]  = 0;
-                }
-                // success.
-                //$q = "UPDATE pressrelease_contact SET {$n->field}_fail = 0 WHERE id = {$n->person_id}";
-            }
-            
-            
-        }
-         //DB_DataObject::debugLevel(1);
-        foreach($res as $k=>$v) {
-            if (!$v) {
-                continue;
-            }
-            list($id,$field) = explode('-', $k);
-            $nx = clone($nn);
-            $nx->query( "UPDATE pressrelease_contact SET {$field}_fails = {$v} WHERE id = {$id}");
-                
-        }
-        
-        echo "DONE";
-        
-        //print_R($res);
-        exit;
-    }
-    
-    
-}
\ No newline at end of file
diff --git a/PressRelease/MediaListExport.php b/PressRelease/MediaListExport.php
deleted file mode 100644 (file)
index c060d0e..0000000
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php 
-require_once 'Pman.php';
-
-class Pman_PressRelease_MediaListExport extends Pman {
-    var $masterTemplate = "distribution.html";
-    
-    
-    // get - same as parent.
-    function post($id) {
-        die("BAD URL")   ;
-    }
-    function get($id) {
-        // DB_DataObject::debugLevel(1);
-
-        // get distinct countries from DB
-        // get distinct news beat for each country
-        // get distinct publications for each news beat
-
-        $results = array();
-        $uCountry = (isset($id)) ? $id : $this->jerr('No country was provided');
-
-        $cty = DB_DataObject::Factory('pressrelease_contact');
-        $cty->selectAdd();
-        $cty->selectAdd('DISTINCT country');
-        $cty->country = $uCountry;
-        // $cty->query("SELECT DISTINCT country FROM pressrelease_contact");
-        // while($cty->fetch()) {
-
-        if(!$cty->count()) {
-            $this->jerr('Invalid country provided');
-        }else {
-            $items = array();
-
-            $nb = DB_DataObject::Factory('pressrelease_beats');
-            $nb->selectAdd();
-            $nb->selectAdd("DISTINCT category_id");
-            $nb->whereAdd("contact_id IN (SELECT id FROM pressrelease_contact WHERE country = '{$uCountry}')");
-            $ctgIds = $nb->fetchAll('category_id');
-
-            $nb = DB_DataObject::Factory('pressrelease_category');
-            $nb->selectAdd();
-            $nb->selectAdd("id, concat(hgroup, ' :: ',  name) AS cname");
-            $nb->whereAddIn('id', $ctgIds, 'int');
-            $nb->orderBy('hgroup ASC, name ASC');
-            $ctgs = $nb->fetchAll('id', 'cname');
-
-            foreach($ctgs as $_id=>$name) {
-                $pub = DB_DataObject::Factory('pressrelease_contact');
-                $pub->selectAdd();
-                $pub->selectAdd("DISTINCT publication_name");
-                $pub->country = $uCountry;
-                $pub->whereAdd("id IN (SELECT contact_id FROM pressrelease_beats WHERE category_id = {$_id})");
-                $pub->orderBy('publication_name ASC');
-                $pubs = $pub->fetchAll("publication_name");
-
-                $items[] = array(
-                    'id'=>$_id,
-                    'name'=>$name,
-                    'publications'=>$pubs
-                );
-            }
-
-            $results[] = array(
-                'country'=>$uCountry,
-                'beats'=>$items
-            );
-        }
-
-        $xid = 3;
-
-        //  create dom obj 
-        //  write results out to abw file
-        $dom = new DOMDocument();
-        $dom->formateOutput = true;
-        $dom->load(dirname(__FILE__).'/templates/mediaexport_template.abw');
-        $aw = $dom->documentElement;
-
-
-        /// attribute templates
-        $styleAttr = $dom->createAttribute('style');
-        $styleAttr->value = 'Normal';
-
-        $propAttr = $dom->createAttribute('props');
-        $propAttr->value = 'text-align:left; line-height:1.0; dom-dir:ltr';
-        ///
-
-        /// blank row template
-        $blank = $dom->createElement('p');
-        $blank->appendChild($styleAttr);
-        $blank->appendChild($propAttr);
-        $blank->appendChild($dom->createElement('c'));
-        ///
-
-
-        $content = $dom->createElement('section');
-        $aw->appendChild($content);
-
-        $attr = $dom->createAttribute('footer');
-        $attr->value = 9;
-        $content->appendChild($attr);
-
-        $attr = $dom->createAttribute('header');
-        $attr->value = 7;
-        $content->appendChild($attr);
-
-        $attr = $dom->createAttribute('xid');
-        $attr->value = 2;
-        $content->appendChild($attr);
-
-        $attr = $dom->createAttribute('props');
-        $attr->value = 'dom-dir:ltr; section-space-after:0.0000in; page-margin-right:1.2500in; 
-                page-margin-top:1.7000in; page-margin-footer:0.5000in; 
-                page-margin-left:1.2500in; page-margin-bottom:1.4257in; 
-                page-margin-header:0.5000in; columns:2; column-gap:0.5000in; 
-                section-restart-value:1';
-        $content->appendChild($attr);
-
-        foreach($results as $el) {
-             foreach($el['beats'] as $nb) {
-                $nbRow = $dom->createElement('p');
-                $content->appendChild($nbRow);
-
-                $nbRow->appendChild($styleAttr);
-                $nbRow->appendChild($propAttr);
-
-                $attr = $dom->createAttribute('xid');
-                $attr->value = $xid++;
-                $nbRow->appendChild($attr);
-
-                $nbTxt = $dom->createElement('c');
-                $nbRow->appendChild($nbTxt);
-
-                $attr = $dom->createAttribute('props');
-                $attr->value = 'lang:en-US; font-size:9pt; font-family:Arial Unicode MS; font-weight:bold';
-                $nbTxt->appendChild($attr);
-                $nbTxt->appendChild($dom->createTextNode($nb['name']));
-
-                foreach($nb['publications'] as $pub) {
-                    $pubRow = $dom->createElement('p');
-                    $content->appendChild($pubRow);
-
-                    $pubRow->appendChild($styleAttr);
-                    $pubRow->appendChild($propAttr);
-
-                    $attr = $dom->createAttribute('xid');
-                    $attr->value = $xid++;
-                    $pubRow->appendChild($attr);
-
-                    $pubTxt = $dom->createElement('c');
-                    $pubRow->appendChild($pubTxt);
-
-                    $attr = $dom->createAttribute('props');
-                    $attr->value = 'lang:en-US; font-size:9pt; font-family:Arial Unicode MS';
-                    $pubTxt->appendChild($attr);
-                    $pubTxt->appendChild($dom->createTextNode($pub));
-                }
-
-                // insert blank row
-                $content->appendChild($blank);
-             }
-            // insert 2 blank rows
-            $content->appendChild($blank);
-        }
-
-        /// HEADER
-        $hdr = $dom->createElement('section');
-        $aw->appendChild($hdr);
-
-        foreach(array('type'=>'header', 'id'=>7, 'xid'=>($xid++)) as $a=>$v) {
-            $attr = $dom->createAttribute($a);
-            $attr->value = $v;
-            $hdr->appendChild($attr);
-        }
-
-       $hdr->appendChild($blank);
-
-       $ctyRow = $dom->createElement('p');
-       $hdr->appendChild($ctyRow);
-
-       $ctyRow->appendChild($styleAttr);
-       $ctyRow->appendChild($propAttr);
-
-       $attr = $dom->createAttribute('xid');
-       $attr->value = $xid++;
-       $ctyRow->appendChild($attr);
-
-        $ctyTxt = $dom->createElement('c');
-        $ctyRow->appendChild($ctyTxt);
-        $attr = $dom->createAttribute('props');
-        $attr->value = 'lang:en-us; font-weight:bold; font-size:12pt; font-family:Arial Unicode MS; color:ff0000';
-        $ctyTxt->appendChild($attr);
-        $ctyTxt->appendChild($dom->createTextNode($uCountry));
-
-        $hdr->appendChild($blank);
-
-        $hdrRow = $dom->createElement('p');
-        $hdr->appendChild($hdrRow);
-
-        $hdrRow->appendChild($styleAttr);
-        $hdrRow->appendChild($propAttr);
-        $attr = $dom->createAttribute('xid');
-        $attr->value = $xid++;
-        $hdrRow->appendChild($attr);
-
-        $hdrTxt = $dom->createElement('c');
-        $hdrRow->appendChild($hdrTxt);
-
-        $attr = $dom->createAttribute('props');
-        $attr->value = 'lang:en-US; font-size:9pt; font-family:Arial Unicode MS; color:000000';
-        $hdrTxt->appendChild($attr);
-        $hdrTxt->appendChild($dom->createTextNode('The Hong Kong circuit sends your release to general media, magazines, newswires, broadcast, websites and trade publications according to client’s target journalist. Please advise your servicing which trade publications are to be included with the distribution'));
-
-
-        /// FOOTER
-        $ftr = $dom->createElement('section');
-        $aw->appendChild($ftr);
-
-        foreach(array('type'=>'footer', 'id'=>9, 'xid'=>($xid++)) as $a=>$v) {
-            $attr = $dom->createAttribute($a);
-            $attr->value = $v;
-            $ftr->appendChild($attr);
-        }
-
-        $ftr->appendChild($blank);
-        $ftr->appendChild($blank);
-        $ftr->appendChild($blank);
-
-        // $dom->save("ME_{$uCountry}.abw");
-        // print_r($results);
-
-        $fn = $this->tempName('abw');
-        $dom->save($fn);
-        require_once 'File/Convert.php';
-        $fc = new File_Convert($fn, 'application/x-abiword');
-        $fc->convert('application/msword');
-        $fc->serve('attachment');
-
-        unlink($fn);
-
-        return true;
-    }
- }
diff --git a/PressRelease/Migration/Domain.php b/PressRelease/Migration/Domain.php
deleted file mode 100644 (file)
index afe0050..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-require_once 'Pman/Roo.php';
-
-class Pman_PressRelease_Migration_Domain extends Pman_Roo
-{
-    static $cli_desc = "Flag if the domain matches the auto-import domain";
-    
-    static $cli_opts = array(
-        
-    );
-    
-    function getAuth()
-    {
-        $ff = HTML_FlexyFramework::get();
-        
-        if (!$ff->cli) {
-            die("cli only");
-        }
-        
-        return true;
-    }
-    
-    function get()
-    {
-        $this->transObj = DB_DataObject::Factory('core_enum');
-        
-        $this->transObj->query('BEGIN');
-        
-        PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
-        
-        $clippings = DB_DataObject::factory('clipping');
-        $clippings->media_type = 'ONLINE';
-        
-        $clippings->find();
-        while ($clippings->fetch()) { 
-            $c = clone($clippings);
-        
-            if(empty($c->remote_url)){
-                continue;
-            }
-            
-            $remote_url = parse_url($c->remote_url);
-            
-            if(empty($remote_url['host'])){
-                continue;
-            }
-            
-            $isFeed = 0;
-            
-            $pressrelease_auto_import = DB_DataObject::factory('pressrelease_auto_import');
-            $pressrelease_auto_import->is_active = 1;
-            $pressrelease_auto_import->whereAdd("url LIKE '%{$remote_url['host']}%'");
-
-            if($pressrelease_auto_import->count()){
-                $isFeed = 1;
-            }
-            
-            $o = clone ($c);
-            $c->release_is_feed = $isFeed;
-            
-            $c->update($o);
-        }
-        
-        $this->jok("Done");
-        
-    }
-    
-    
-}
\ No newline at end of file
diff --git a/PressRelease/Migration/PressRelease_is_feed.php b/PressRelease/Migration/PressRelease_is_feed.php
deleted file mode 100644 (file)
index b3e7c07..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-require_once 'Pman/Roo.php';
-
-class Pman_PressRelease_Migration_PressRelease_is_feed extends Pman_Roo
-{
-    static $cli_desc = "Flag if the domain matches the auto-import domain";
-    
-    static $cli_opts = array(
-        
-    );
-    
-    function getAuth()
-    {
-        $ff = HTML_FlexyFramework::get();
-        
-        if (!$ff->cli) {
-            die("cli only");
-        }
-        
-        return true;
-    }
-    
-    function get()
-    {
-        $this->transObj = DB_DataObject::Factory('core_enum');
-        
-        $this->transObj->query('BEGIN');
-        
-        PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
-        
-        
-        
-        $this->jok("Done");
-        
-    }
-    
-    
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseCategory.bjs b/PressRelease/Pman.Dialog.PressReleaseCategory.bjs
deleted file mode 100644 (file)
index 04a7bd6..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-{
-    "id": "roo-file-197",
-    "name": "Pman.Dialog.PressReleaseCategory",
-    "parent": "",
-    "title": "",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseCategory.bjs",
-    "items": [
-        {
-            "listeners": {
-                "show": "function (_self)\n{\n    (function() {_this.form.findField('name').focus(); }).defer(100);\n}"
-            },
-            "closable": false,
-            "collapsible": false,
-            "height": 150,
-            "modal": true,
-            "resizable": false,
-            "title": "Edit / Create Category",
-            "width": 400,
-            "xtype": "LayoutDialog",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "LayoutRegion",
-                    "*prop": "center"
-                },
-                {
-                    "region": "center",
-                    "xtype": "ContentPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       if (_this.data.id) {\n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       }\n       _this.data._nohead = _this.data._nohead || false;\n       \n       var he = this.findField('hgroup');\n       he.actionMode = 'fieldEl';\n       \n       he[_this.data._nohead ? 'hide' : 'show'](); \n       \n       \n       \n       return;\n    }\n    if (action.type == 'load') {\n        \n        return;\n    }\n    if (action.type =='submit') {\n    \n \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
-                                "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
-                            },
-                            "method": "POST",
-                            "style": "margin:10px;",
-                            "xtype": "Form",
-                            "|url": "baseURL + '/Roo/Pressrelease_category.php'",
-                            "|xns": "Roo.form",
-                            "items": [
-                                {
-                                    "fieldLabel": "Heading Group",
-                                    "name": "hgroup",
-                                    "width": 250,
-                                    "xtype": "TextField",
-                                    "|xns": "Roo.form"
-                                },
-                                {
-                                    "fieldLabel": "Name",
-                                    "name": "name",
-                                    "width": 250,
-                                    "xtype": "TextField",
-                                    "|xns": "Roo.form"
-                                },
-                                {
-                                    "name": "parent_id",
-                                    "xtype": "Hidden",
-                                    "|xns": "Roo.form"
-                                },
-                                {
-                                    "name": "id",
-                                    "|xns": "Roo.form",
-                                    "xtype": "Hidden"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Cancel",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n \n    _this.form.doAction(\"submit\");\n\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Save",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseCategory.js b/PressRelease/Pman.Dialog.PressReleaseCategory.js
deleted file mode 100644 (file)
index 58feee0..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Dialog.PressReleaseCategory = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            listeners : {
-                show : function (_self)
-                {
-                    (function() {_this.form.findField('name').focus(); }).defer(100);
-                }
-            },
-            closable : false,
-            collapsible : false,
-            height : 150,
-            modal : true,
-            resizable : false,
-            title : "Edit / Create Category",
-            width : 400,
-            items : [
-                {
-                    xtype: 'ContentPanel',
-                    xns: Roo,
-                    region : 'center',
-                    items : [
-                        {
-                            xtype: 'Form',
-                            xns: Roo.form,
-                            listeners : {
-                                actioncomplete : function(_self,action)
-                                {
-                                    if (action.type == 'setdata') {
-                                       //_this.dialog.el.mask("Loading");
-                                       if (_this.data.id) {
-                                           this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-                                       }
-                                       _this.data._nohead = _this.data._nohead || false;
-                                       
-                                       var he = this.findField('hgroup');
-                                       he.actionMode = 'fieldEl';
-                                       
-                                       he[_this.data._nohead ? 'hide' : 'show'](); 
-                                       
-                                       
-                                       
-                                       return;
-                                    }
-                                    if (action.type == 'load') {
-                                        
-                                        return;
-                                    }
-                                    if (action.type =='submit') {
-                                    
-                                 
-                                        _this.dialog.hide();
-                                    
-                                         if (_this.callback) {
-                                            _this.callback.call(_this, _this.form.getValues());
-                                         }
-                                         _this.form.reset();
-                                         return;
-                                    }
-                                },
-                                rendered : function (form)
-                                {
-                                    _this.form= form;
-                                }
-                            },
-                            method : 'POST',
-                            style : 'margin:10px;',
-                            url : baseURL + '/Roo/Pressrelease_category.php',
-                            items : [
-                                {
-                                    xtype: 'TextField',
-                                    xns: Roo.form,
-                                    fieldLabel : 'Heading Group',
-                                    name : 'hgroup',
-                                    width : 250
-                                },
-                                {
-                                    xtype: 'TextField',
-                                    xns: Roo.form,
-                                    fieldLabel : 'Name',
-                                    name : 'name',
-                                    width : 250
-                                },
-                                {
-                                    xtype: 'Hidden',
-                                    xns: Roo.form,
-                                    name : 'parent_id'
-                                },
-                                {
-                                    xtype: 'Hidden',
-                                    xns: Roo.form,
-                                    name : 'id'
-                                }
-                            ]
-                        }
-                    ]
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            _this.dialog.hide();
-                        }
-                    },
-                    text : "Cancel"
-                },
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            // do some checks?
-                             
-                            
-                         
-                            _this.form.doAction("submit");
-                        
-                        }
-                    },
-                    text : "Save"
-                }
-            ]
-        });
-    }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseContact.bjs b/PressRelease/Pman.Dialog.PressReleaseContact.bjs
deleted file mode 100644 (file)
index 25f4258..0000000
+++ /dev/null
@@ -1,1194 +0,0 @@
-{
-    "id": "roo-file-151",
-    "name": "Pman.Dialog.PressReleaseContact",
-    "parent": "",
-    "title": "",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseContact.bjs",
-    "items": [
-        {
-            "listeners": {
-                "show": "function (_self)\n{\n_this.dialog.layout.getRegion('center').showPanel(0)\n}"
-            },
-            "closable": false,
-            "collapsible": false,
-            "height": 550,
-            "modal": true,
-            "resizable": false,
-            "title": "Edit / Create Person",
-            "width": 800,
-            "xtype": "LayoutDialog",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "*prop": "center",
-                    "tabPosition": "top",
-                    "xtype": "LayoutRegion",
-                    "|xns": "Roo"
-                },
-                {
-                    "region": "center",
-                    "title": "Details",
-                    "xtype": "NestedLayoutPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "|xns": "Roo",
-                            "xtype": "BorderLayout",
-                            "*prop": "layout",
-                            "items": [
-                                {
-                                    "|xns": "Roo",
-                                    "xtype": "LayoutRegion",
-                                    "*prop": "center"
-                                },
-                                {
-                                    "*prop": "east",
-                                    "width": 270,
-                                    "xtype": "LayoutRegion",
-                                    "|xns": "Roo"
-                                },
-                                {
-                                    "listeners": {
-                                        "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        //_this.grid.ds.load({});\n    }\n}"
-                                    },
-                                    "background": false,
-                                    "fitContainer": true,
-                                    "fitToframe": true,
-                                    "region": "east",
-                                    "tableName": "pressrelease_category",
-                                    "title": "pressrelease_category",
-                                    "xtype": "GridPanel",
-                                    "|xns": "Roo",
-                                    "items": [
-                                        {
-                                            "listeners": {
-                                                "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n    //   this.ds.load({});\n    }\n}",
-                                                "cellclick": "function (_self, ri, ci , e)\n{\n   if (ci != 1) {return; }\n   \n    var rec = this.ds.getAt(ri);\n    rec.set('member', (rec.data.member * 1) ? 0 : 1);\n   rec.commit();\n}",
-                                                "rowclass": "function (gridview, rowcfg)\n{\n     Roo.log(rowcfg);\n     // determine if we need to show it..\n     var val=_this.beatfilter.getValue().toLowerCase();\n     rowcfg.rowClass= '';\n     if (!val.length) {\n        return; // always show..\n     }\n     var match = false;\n     var hg = rowcfg.record.data.hgroup.toLowerCase();\n     var n = rowcfg.record.data.name.toLowerCase();     \n     var re = new RegExp(val);\n     \n     if (hg.match(re) || n.match(re)) {\n        return; // display it..\n     }\n     //Roo.log('display none');\n     if (rowcfg.record.data.member * 1 > 0) {\n       // return;\n     }\n     rowcfg.rowClass = 'display-none';\n     \n     \n}"
-                                            },
-                                            "*prop": "grid",
-                                            "autoExpandColumn": "name",
-                                            "loadMask": true,
-                                            "xtype": "Grid",
-                                            "|filterResults": "function() {\n    \n}\n",
-                                            "|xns": "Roo.grid",
-                                            "items": [
-                                                {
-                                                    "listeners": {
-                                                        "beforeload": "function (_self, options)\n{\n    options.params =     options.params || {};\n    options.params.parent_id_name = 'News Beat';\n    options.params.for_beat = 1;\n    options.params.contact_id = _this.data ? _this.data.id : 0;\n    options.params.limit = 999;\n}"
-                                                    },
-                                                    "*prop": "dataSource",
-                                                    "remoteSort": true,
-                                                    "xtype": "Store",
-                                                    "|sortInfo": "{ field : 'hgroup,name', direction: 'ASC' }",
-                                                    "|xns": "Roo.data",
-                                                    "items": [
-                                                        {
-                                                            "*prop": "proxy",
-                                                            "xtype": "HttpProxy",
-                                                            "method": "GET",
-                                                            "|url": "baseURL + '/Roo/pressrelease_category.php'",
-                                                            "|xns": "Roo.data"
-                                                        },
-                                                        {
-                                                            "*prop": "reader",
-                                                            "id": "id",
-                                                            "root": "data",
-                                                            "totalProperty": "total",
-                                                            "xtype": "JsonReader",
-                                                            "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'visible',\n        'type': 'int'\n    }\n]",
-                                                            "|xns": "Roo.data"
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "*prop": "colModel[]",
-                                                    "dataIndex": "name",
-                                                    "header": "News Beat",
-                                                    "width": 200,
-                                                    "xtype": "ColumnModel",
-                                                    "|renderer": "function(v,x,r) { return String.format('{0}', (r.data.hgroup ? r.data.hgroup + ' : ' : '') + v); }",
-                                                    "|xns": "Roo.grid"
-                                                },
-                                                {
-                                                    "*prop": "colModel[]",
-                                                    "dataIndex": "member",
-                                                    "header": "Member",
-                                                    "width": 75,
-                                                    "xtype": "ColumnModel",
-                                                    "|renderer": "function(v) {  \n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
-                                                    "|xns": "Roo.grid"
-                                                },
-                                                {
-                                                    "|xns": "Roo",
-                                                    "xtype": "Toolbar",
-                                                    "*prop": "toolbar",
-                                                    "items": [
-                                                        {
-                                                            "listeners": {
-                                                                "keyup": "function (_self, e)\n{\n       _this.grid.view.refresh(true);\n    \n\n}",
-                                                                "render": "function (_self)\n{\n  _this.beatfilter = _self;\n}"
-                                                            },
-                                                            "width": 100,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "listeners": {
-                                                                "|click": "function (_self, e)\n{\n    _this.beatfilter.setValue('');\n     _this.grid.view.refresh(true);\n    \n}"
-                                                            },
-                                                            "cls": "x-btn-icon",
-                                                            "xtype": "Button",
-                                                            "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
-                                                            "|xns": "Roo.Toolbar"
-                                                        },
-                                                        {
-                                                            "|xns": "Roo.Toolbar",
-                                                            "xtype": "Fill"
-                                                        },
-                                                        {
-                                                            "listeners": {
-                                                                "click": "function (_self, e)\n{\n    \n    \n    _this.grid.ds.each(function(rec) {\n            rec.set('member', 0);\n            rec.commit();\n           \n    \n\n    });\n\n}"
-                                                            },
-                                                            "text": "Reset",
-                                                            "xtype": "Button",
-                                                            "|xns": "Roo.Toolbar"
-                                                        },
-                                                        {
-                                                            "listeners": {
-                                                                "click": "function (_self, e)\n{\n    \n     // determine if we need to show it..\n     var val =_this.beatfilter.getValue().toLowerCase();\n     var re = false;\n     if (val.length) {\n         re = new RegExp(val);\n        \n     }\n     \n    \n    \n    _this.grid.ds.each(function(rec) {\n        if (!re) {        \n            rec.set('member',  1);\n            rec.commit();\n            return;\n        }\n        var hg = rec.data.hgroup.toLowerCase();\n         var n = rec.data.name.toLowerCase();\n          if (!hg.match(re) && !n.match(re)) {\n            return; // do not select it..\n         }\n    \n          rec.set('member',  1);\n        rec.commit();\n           \n    \n\n    });\n\n}"
-                                                            },
-                                                            "text": "Select All",
-                                                            "xtype": "Button",
-                                                            "|xns": "Roo.Toolbar"
-                                                        }
-                                                    ]
-                                                }
-                                            ]
-                                        }
-                                    ]
-                                },
-                                {
-                                    "autoScroll": true,
-                                    "fitToFrame": true,
-                                    "region": "center",
-                                    "xtype": "ContentPanel",
-                                    "|xns": "Roo",
-                                    "items": [
-                                        {
-                                            "listeners": {
-                                                "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        if (_this.data.id) {\n \n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n           return;\n       }\n       _this.grid.ds.load({});\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        var l = this.findField('publication_lang').getValue();\n        this.setValues( {\n                publication_lang : l,\n                publication_lang_name : Pman.I18n.toName('l', l)\n        });\n        l = this.findField('contact_language_alt').getValue();\n        this.setValues( {\n                contact_language_alt : l,\n                contact_language_alt_name : Pman.I18n.toName('l', l)\n        });\n         l = this.findField('contact_language').getValue();\n        this.setValues( {\n                contact_language : l,\n                contact_language_name : Pman.I18n.toName('l', l)\n        });\n        \n        _this.grid.ds.load({});\n        return;\n        \n    }\n    if (action.type =='submit') {\n    \n \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
-                                                "|rendered": "function (form)\n{\n    _this.form= form;\n}\n",
-                                                "actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Roo.MessageBox.alert('Error', 'fix all the errors in red');\n}"
-                                            },
-                                            "labelAlign": "right",
-                                            "labelWidth": 120,
-                                            "method": "POST",
-                                            "style": "margin:10px;",
-                                            "xtype": "Form",
-                                            "|url": "baseURL + '/Roo/Pressrelease_contact.php'",
-                                            "|xns": "Roo.form",
-                                            "items": [
-                                                {
-                                                    "allowBlank": "false",
-                                                    "alwaysQuery": true,
-                                                    "displayField": "name",
-                                                    "editable": "false",
-                                                    "emptyText": "Select type",
-                                                    "fieldLabel": "Type",
-                                                    "forceSelection": true,
-                                                    "hiddenName": "category_type_id",
-                                                    "listWidth": 400,
-                                                    "loadingText": "Searching...",
-                                                    "minChars": 2,
-                                                    "name": "category_type_id_name",
-                                                    "pageSize": 20,
-                                                    "qtip": "Select type",
-                                                    "queryParam": "query[name]",
-                                                    "selectOnFocus": true,
-                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-                                                    "triggerAction": "all",
-                                                    "typeAhead": true,
-                                                    "valueField": "id",
-                                                    "width": 300,
-                                                    "xtype": "ComboBox",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "listeners": {
-                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    o.params.parent_id_name = 'Type of Database';\n    // set more here\n}\n"
-                                                            },
-                                                            "*prop": "store",
-                                                            "remoteSort": true,
-                                                            "xtype": "Store",
-                                                            "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                                            "|xns": "Roo.data",
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "proxy",
-                                                                    "xtype": "HttpProxy",
-                                                                    "method": "GET",
-                                                                    "|xns": "Roo.data",
-                                                                    "|url": "baseURL + '/Roo/pressrelease_category.php'"
-                                                                },
-                                                                {
-                                                                    "*prop": "reader",
-                                                                    "xtype": "JsonReader",
-                                                                    "|xns": "Roo.data",
-                                                                    "id": "id",
-                                                                    "root": "data",
-                                                                    "totalProperty": "total",
-                                                                    "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "legend": "Personal Details",
-                                                    "xtype": "FieldSet",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "displayField": "val",
-                                                            "editable": false,
-                                                            "emptyText": "Title",
-                                                            "fieldLabel": "Honorific",
-                                                            "forceSelection": false,
-                                                            "listWidth": 200,
-                                                            "loadingText": "Searching...",
-                                                            "mode": "local",
-                                                            "name": "honor",
-                                                            "selectOnFocus": false,
-                                                            "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{val}</b> </div>",
-                                                            "triggerAction": "all",
-                                                            "typeAhead": true,
-                                                            "valueField": "type",
-                                                            "width": 100,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "store",
-                                                                    "xtype": "SimpleStore",
-                                                                    "|data": "[ \n    [ 'Mr' ],\n    [ 'Mrs' ],\n    [ 'Ms' ]\n]",
-                                                                    "|fields": "[ 'val']",
-                                                                    "|xns": "Roo.data"
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelWidth": 120,
-                                                                    "width": 270,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "emptyText": "",
-                                                                            "fieldLabel": "Name (First/Last)",
-                                                                            "name": "firstname",
-                                                                            "width": 140,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "hideLabels": true,
-                                                                    "style": "margin-left:5px",
-                                                                    "width": 160,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "emptyText": "",
-                                                                            "fieldLabel": "Name",
-                                                                            "name": "lastname",
-                                                                            "width": 150,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelWidth": 120,
-                                                                    "width": 270,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "emptyText": "",
-                                                                            "fieldLabel": "Local (First/Last)",
-                                                                            "name": "firstname_alt",
-                                                                            "width": 140,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "hideLabels": true,
-                                                                    "style": "margin-left:5px",
-                                                                    "width": 160,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "fieldLabel": "Name",
-                                                                            "name": "lastname_alt",
-                                                                            "width": 150,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form",
-                                                                            "listeners": {}
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Job Title",
-                                                            "name": "role",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelWidth": 120,
-                                                                    "width": 270,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": false,
-                                                                            "alwaysQuery": true,
-                                                                            "displayField": "title",
-                                                                            "editable": false,
-                                                                            "fieldLabel": "Spoken Lang.",
-                                                                            "hiddenName": "contact_language",
-                                                                            "listWidth": 200,
-                                                                            "name": "contact_language_name",
-                                                                            "triggerAction": "all",
-                                                                            "valueField": "code",
-                                                                            "width": 140,
-                                                                            "xtype": "ComboBox",
-                                                                            "|xns": "Roo.form",
-                                                                            "items": [
-                                                                                {
-                                                                                    "*prop": "store",
-                                                                                    "xtype": "SimpleStore",
-                                                                                    "|data": "(function() {\n    return Pman.I18n.simpleStoreData('l');\n})()",
-                                                                                    "|fields": "[  'code', 'title' ]",
-                                                                                    "|xns": "Roo.data"
-                                                                                }
-                                                                            ]
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "hideLabels": true,
-                                                                    "style": "margin-left:5px",
-                                                                    "width": 160,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "alwaysQuery": true,
-                                                                            "displayField": "title",
-                                                                            "editable": false,
-                                                                            "fieldLabel": "Spoken Lang.",
-                                                                            "hiddenName": "contact_language_alt",
-                                                                            "listWidth": 200,
-                                                                            "name": "contact_language_alt_name",
-                                                                            "triggerAction": "all",
-                                                                            "valueField": "code",
-                                                                            "width": 150,
-                                                                            "xtype": "ComboBox",
-                                                                            "|xns": "Roo.form",
-                                                                            "listeners": {},
-                                                                            "items": [
-                                                                                {
-                                                                                    "*prop": "store",
-                                                                                    "xtype": "SimpleStore",
-                                                                                    "|data": "(function() {\n    return Pman.I18n.simpleStoreData('l');\n})()",
-                                                                                    "|fields": "[  'code', 'title' ]",
-                                                                                    "|xns": "Roo.data"
-                                                                                }
-                                                                            ]
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "legend": "Company / Publication",
-                                                    "xtype": "FieldSet",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "fieldLabel": "Company Name",
-                                                            "name": "company_id_name",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "allowBlank": false,
-                                                            "fieldLabel": "Publication Name",
-                                                            "name": "publication_name",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Publ. Name (Local)",
-                                                            "name": "publication_name_alt",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "allowBlank": false,
-                                                            "alwaysQuery": true,
-                                                            "displayField": "title",
-                                                            "editable": false,
-                                                            "fieldLabel": "Country",
-                                                            "hiddenName": "country",
-                                                            "listWidth": 300,
-                                                            "name": "country_name",
-                                                            "triggerAction": "all",
-                                                            "valueField": "code",
-                                                            "width": 300,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "store",
-                                                                    "xtype": "SimpleStore",
-                                                                    "|data": "(function() {\n    // if the user is only allowed to edit specific countries..\n    // then only display a list of that...\n    \n    var filter = false;\n    if (Pman.hasPerm && Pman.hasPerm(\"PressRelease.JournalistAll\",\"S\")) {\n        if (Pman.Login.authUser.role.length) {\n            var clist = Pman.Login.authUser.role.split(\",\");\n            filter = function(o) {\n                return clist.indexOf(o.code) > -1 ? true : false;\n            };\n        }\n    }\n\n    return Pman.I18n.simpleStoreData('c', filter); \n    \n})()",
-                                                                    "|fields": "[  'code', 'title' ]",
-                                                                    "|xns": "Roo.data"
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "fieldLabel": "City",
-                                                            "name": "city",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelWidth": 120,
-                                                                    "width": 270,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": false,
-                                                                            "alwaysQuery": true,
-                                                                            "displayField": "title",
-                                                                            "editable": false,
-                                                                            "fieldLabel": "Print Language(s)",
-                                                                            "hiddenName": "publication_lang",
-                                                                            "listWidth": 200,
-                                                                            "name": "publication_lang_name",
-                                                                            "triggerAction": "all",
-                                                                            "valueField": "code",
-                                                                            "width": 145,
-                                                                            "xtype": "ComboBox",
-                                                                            "|xns": "Roo.form",
-                                                                            "items": [
-                                                                                {
-                                                                                    "*prop": "store",
-                                                                                    "xtype": "SimpleStore",
-                                                                                    "|data": "(function() {\n    return Pman.I18n.simpleStoreData('l');\n})()",
-                                                                                    "|fields": "[  'code', 'title' ]",
-                                                                                    "|xns": "Roo.data"
-                                                                                }
-                                                                            ]
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "hideLabels": true,
-                                                                    "style": "margin-left:5px",
-                                                                    "width": 160,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "alwaysQuery": true,
-                                                                            "displayField": "title",
-                                                                            "editable": false,
-                                                                            "fieldLabel": "Print Language",
-                                                                            "hiddenName": "publication_lang_alt",
-                                                                            "listWidth": 200,
-                                                                            "name": "publication_lang_alt_name",
-                                                                            "triggerAction": "all",
-                                                                            "valueField": "code",
-                                                                            "width": 150,
-                                                                            "xtype": "ComboBox",
-                                                                            "|xns": "Roo.form",
-                                                                            "items": [
-                                                                                {
-                                                                                    "*prop": "store",
-                                                                                    "xtype": "SimpleStore",
-                                                                                    "|data": "(function() {\n    return Pman.I18n.simpleStoreData('l');\n})()",
-                                                                                    "|fields": "[  'code', 'title' ]",
-                                                                                    "|xns": "Roo.data"
-                                                                                }
-                                                                            ]
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "allowBlank": false,
-                                                            "alwaysQuery": true,
-                                                            "displayField": "name",
-                                                            "editable": "false",
-                                                            "emptyText": "Select scope",
-                                                            "fieldLabel": "Publication Scope",
-                                                            "forceSelection": true,
-                                                            "hiddenName": "category_scope_id",
-                                                            "listWidth": 400,
-                                                            "loadingText": "Searching...",
-                                                            "minChars": 2,
-                                                            "name": "category_scope_id_name",
-                                                            "pageSize": 20,
-                                                            "qtip": "Select type",
-                                                            "queryParam": "query[name]",
-                                                            "selectOnFocus": true,
-                                                            "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-                                                            "triggerAction": "all",
-                                                            "typeAhead": true,
-                                                            "valueField": "id",
-                                                            "width": 300,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "listeners": {
-                                                                        "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n     o.params.parent_id_name = 'Publication Scope';\n}\n"
-                                                                    },
-                                                                    "*prop": "store",
-                                                                    "remoteSort": true,
-                                                                    "xtype": "Store",
-                                                                    "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                                                    "|xns": "Roo.data",
-                                                                    "items": [
-                                                                        {
-                                                                            "*prop": "proxy",
-                                                                            "xtype": "HttpProxy",
-                                                                            "method": "GET",
-                                                                            "|xns": "Roo.data",
-                                                                            "|url": "baseURL + '/Roo/pressrelease_category.php'"
-                                                                        },
-                                                                        {
-                                                                            "*prop": "reader",
-                                                                            "xtype": "JsonReader",
-                                                                            "|xns": "Roo.data",
-                                                                            "id": "id",
-                                                                            "root": "data",
-                                                                            "totalProperty": "total",
-                                                                            "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "allowBlank": "false",
-                                                            "alwaysQuery": true,
-                                                            "displayField": "name",
-                                                            "editable": "false",
-                                                            "emptyText": "Select type of media",
-                                                            "fieldLabel": "Media Type",
-                                                            "forceSelection": true,
-                                                            "hiddenName": "category_media_id",
-                                                            "listWidth": 400,
-                                                            "loadingText": "Searching...",
-                                                            "minChars": 2,
-                                                            "name": "category_media_id_name",
-                                                            "pageSize": 20,
-                                                            "qtip": "Select type",
-                                                            "queryParam": "query[name]",
-                                                            "selectOnFocus": true,
-                                                            "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-                                                            "triggerAction": "all",
-                                                            "typeAhead": true,
-                                                            "valueField": "id",
-                                                            "width": 300,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "listeners": {
-                                                                        "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n     o.params.parent_id_name = 'Type of Media';\n}\n"
-                                                                    },
-                                                                    "*prop": "store",
-                                                                    "remoteSort": true,
-                                                                    "xtype": "Store",
-                                                                    "|sortInfo": "{ direction : 'ASC', field: 'id' }",
-                                                                    "|xns": "Roo.data",
-                                                                    "items": [
-                                                                        {
-                                                                            "*prop": "proxy",
-                                                                            "xtype": "HttpProxy",
-                                                                            "method": "GET",
-                                                                            "|xns": "Roo.data",
-                                                                            "|url": "baseURL + '/Roo/pressrelease_category.php'"
-                                                                        },
-                                                                        {
-                                                                            "*prop": "reader",
-                                                                            "xtype": "JsonReader",
-                                                                            "|xns": "Roo.data",
-                                                                            "id": "id",
-                                                                            "root": "data",
-                                                                            "totalProperty": "total",
-                                                                            "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Website",
-                                                            "name": "url",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "legend": "Phone numbers",
-                                                    "xtype": "FieldSet",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelAlign": "right",
-                                                                    "labelWidth": 80,
-                                                                    "width": 230,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "fieldLabel": "Office+Ext",
-                                                                            "name": "phone",
-                                                                            "width": 120,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "labelAlign": "right",
-                                                                    "labelWidth": 50,
-                                                                    "width": 200,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "fieldLabel": "Direct",
-                                                                            "name": "phone_direct",
-                                                                            "width": 120,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "width": 450,
-                                                            "xtype": "Row",
-                                                            "|xns": "Roo.form",
-                                                            "items": [
-                                                                {
-                                                                    "labelAlign": "right",
-                                                                    "labelWidth": 80,
-                                                                    "width": 230,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "fieldLabel": "Mobile",
-                                                                            "name": "phone_mobile",
-                                                                            "width": 120,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                },
-                                                                {
-                                                                    "labelAlign": "right",
-                                                                    "labelWidth": 50,
-                                                                    "width": 200,
-                                                                    "xtype": "Column",
-                                                                    "|xns": "Roo.form",
-                                                                    "items": [
-                                                                        {
-                                                                            "allowBlank": true,
-                                                                            "fieldLabel": "Fax",
-                                                                            "name": "fax",
-                                                                            "width": 120,
-                                                                            "xtype": "TextField",
-                                                                            "|xns": "Roo.form"
-                                                                        }
-                                                                    ]
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "legend": "Contact Details",
-                                                    "xtype": "FieldSet",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "fieldLabel": "Email",
-                                                            "name": "email",
-                                                            "vtype": "email",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Email (alt)",
-                                                            "name": "email2",
-                                                            "vtype": "email",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Email (alt)",
-                                                            "name": "email3",
-                                                            "vtype": "email",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Personal Email",
-                                                            "name": "email_personal",
-                                                            "vtype": "email",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Twitter handle",
-                                                            "name": "twitter",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Blog Website",
-                                                            "name": "blog_url",
-                                                            "vtype": "url",
-                                                            "width": 300,
-                                                            "xtype": "TextField",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Address",
-                                                            "height": 100,
-                                                            "name": "address",
-                                                            "width": 300,
-                                                            "xtype": "TextArea",
-                                                            "|xns": "Roo.form"
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "legend": "Best Contacted",
-                                                    "xtype": "FieldSet",
-                                                    "|xns": "Roo.form",
-                                                    "items": [
-                                                        {
-                                                            "displayField": "hr",
-                                                            "editable": false,
-                                                            "fieldLabel": "Method",
-                                                            "listWidth": 100,
-                                                            "mode": "local",
-                                                            "name": "best_contact_method",
-                                                            "triggerAction": "all",
-                                                            "valueField": "hr",
-                                                            "width": 100,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "listeners": {},
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "store",
-                                                                    "xtype": "SimpleStore",
-                                                                    "|data": "[ ['Email' ] ,[ 'Phone' ] ,[ 'Fax'] ]",
-                                                                    "|fields": "[  'hr' ]",
-                                                                    "|xns": "Roo.data"
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "fieldLabel": "Days",
-                                                            "name": "best_contact_days",
-                                                            "xtype": "DayPicker",
-                                                            "|xns": "Roo.form"
-                                                        },
-                                                        {
-                                                            "displayField": "hrd",
-                                                            "editable": false,
-                                                            "fieldLabel": "From",
-                                                            "hiddenName": "best_contact_from",
-                                                            "listWidth": 80,
-                                                            "mode": "local",
-                                                            "name": "best_contact_from_hr",
-                                                            "triggerAction": "all",
-                                                            "valueField": "hr",
-                                                            "width": 80,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "listeners": {},
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "store",
-                                                                    "xtype": "SimpleStore",
-                                                                    "|data": "(function() {\n   var r = [];\n   for (var i =0;i < 24;i++) {\n      var lh = i > 12 ? i-12 : i;\n      lh = lh < 1 ? 12 : lh;\n      var pm = i > 11  ? 'PM' : 'AM';\n      r.push( [ i + ':00' , lh +':00 ' + pm]);\n      r.push([ i + ':30', lh +':30 ' + pm]);\n   }\n   return r;\n})()",
-                                                                    "|fields": "[  'hr', 'hrd' ]",
-                                                                    "|xns": "Roo.data"
-                                                                }
-                                                            ]
-                                                        },
-                                                        {
-                                                            "displayField": "hrd",
-                                                            "editable": false,
-                                                            "fieldLabel": "To",
-                                                            "hiddenName": "best_contact_to",
-                                                            "listWidth": 80,
-                                                            "mode": "local",
-                                                            "name": "best_contact_from_hr",
-                                                            "triggerAction": "all",
-                                                            "valueField": "hr",
-                                                            "width": 80,
-                                                            "xtype": "ComboBox",
-                                                            "|xns": "Roo.form",
-                                                            "listeners": {},
-                                                            "items": [
-                                                                {
-                                                                    "*prop": "store",
-                                                                    "xtype": "SimpleStore",
-                                                                    "|data": "(function() {\n   var r = [];\n   for (var i =0;i < 24;i++) {\n      var lh = i > 12 ? i-12 : i;\n      lh = lh < 1 ? 12 : lh;\n      var pm = i > 11  ? 'PM' : 'AM';\n      r.push( [ i + ':00' , lh +':00 ' + pm]);\n      r.push([ i + ':30', lh +':30 ' + pm]);\n   }\n   return r;\n})()",
-                                                                    "|fields": "[  'hr', 'hrd' ]",
-                                                                    "|xns": "Roo.data"
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "labelAlign": "top",
-                                                    "xtype": "Row",
-                                                    "|xns": "Roo.form",
-                                                    "listeners": {},
-                                                    "items": [
-                                                        {
-                                                            "fieldLabel": "Notes",
-                                                            "height": 100,
-                                                            "name": "remarks",
-                                                            "width": 450,
-                                                            "xtype": "TextArea",
-                                                            "|xns": "Roo.form"
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "name": "beats",
-                                                    "xtype": "Hidden",
-                                                    "|xns": "Roo.form"
-                                                },
-                                                {
-                                                    "name": "id",
-                                                    "|xns": "Roo.form",
-                                                    "xtype": "Hidden"
-                                                }
-                                            ]
-                                        }
-                                    ]
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "|activate": "function() {\n    _this.hpanel = this;\n    if (_this.hgrid) {\n        _this.hgrid.ds.load({});\n    }\n}"
-                    },
-                    "background": true,
-                    "fitContainer": true,
-                    "fitToframe": true,
-                    "region": "center",
-                    "tableName": "Events",
-                    "title": "History",
-                    "xtype": "GridPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|render": "function() \n{\n    _this.hgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.hpanel.active) {\n       _this.hgrid.ds.load({});\n    }\n}"
-                            },
-                            "*prop": "grid",
-                            "autoExpandColumn": "remarks",
-                            "loadMask": true,
-                            "xtype": "Grid",
-                            "|xns": "Roo.grid",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "beforeload": "function (_self, options)\n{\n    options.params =     options.params || {};\n    options.params.on_table = 'pressrelease_contact';\n    options.params.on_id = _this.form.findField('id').getValue() * 1;\n    if (!options.params.on_id) {\n        return false;\n    }\n        \n}"
-                                    },
-                                    "*prop": "dataSource",
-                                    "remoteSort": true,
-                                    "xtype": "Store",
-                                    "|sortInfo": "{ field : 'id', direction: 'DESC' }",
-                                    "|xns": "Roo.data",
-                                    "items": [
-                                        {
-                                            "*prop": "proxy",
-                                            "xtype": "HttpProxy",
-                                            "method": "GET",
-                                            "|url": "baseURL + '/Roo/Events.php'",
-                                            "|xns": "Roo.data"
-                                        },
-                                        {
-                                            "|xns": "Roo.data",
-                                            "xtype": "JsonReader",
-                                            "totalProperty": "total",
-                                            "root": "data",
-                                            "*prop": "reader",
-                                            "id": "id",
-                                            "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_name',\n        'type': 'string'\n    },\n    {\n        'name': 'event_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'action',\n        'type': 'string'\n    },\n    {\n        'name': 'ipaddr',\n        'type': 'string'\n    },\n    {\n        'name': 'on_id',\n        'type': 'int'\n    },\n    {\n        'name': 'on_table',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_dt',\n        'type': 'date'\n    }\n]"
-                                        }
-                                    ]
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Event when",
-                                    "width": 75,
-                                    "dataIndex": "event_when",
-                                    "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "person_id_name",
-                                    "header": "Who",
-                                    "width": 200,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "action",
-                                    "header": "Action",
-                                    "width": 100,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Remarks",
-                                    "width": 200,
-                                    "dataIndex": "remarks",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "|activate": "function() {\n    _this.circpanel = this;\n    if (_this.circgrid) {\n        _this.circgrid.footer.onClick('first');\n    }\n     \n}"
-                    },
-                    "background": true,
-                    "fitContainer": true,
-                    "fitToframe": true,
-                    "region": "center",
-                    "tableName": "pressrelease_notify",
-                    "title": "Delivery History",
-                    "xtype": "GridPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|render": "function() \n{\n    _this.circgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.circpanel.active) {\n       this.footer.onClick('first');\n    }\n}"
-                            },
-                            "*prop": "grid",
-                            "autoExpandColumn": "event_id_remarks",
-                            "loadMask": true,
-                            "xtype": "Grid",
-                            "|xns": "Roo.grid",
-                            "items": [
-                                {
-                                    "*prop": "sm",
-                                    "singleSelect": true,
-                                    "xtype": "RowSelectionModel",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "listeners": {
-                                        "beforeload": "function (_self, o)\n{\n  o.params = o.params || {};\n  o.params.ontable = 'pressrelease_entry';\n  //\n  \n  //o.params.onid = _this.form.findField('id').getValue();\n  //o.params.vtype = \"FAILED\";\n  \n  //o.params.fail_reviewed = 0;\n  \n  o.params.person_id = _this.form.findField('id').getValue() * 1;\n  if (!o.params.person_id) {\n    return false;\n    \n  }\n\n}",
-                                        "load": "function (_self, records, options)\n{\n    Roo.log(records);\n    if (!records.length) {\n        _this.grid.footer.onClick('refresh');\n    }\n}"
-                                    },
-                                    "*prop": "dataSource",
-                                    "remoteSort": true,
-                                    "xtype": "Store",
-                                    "|sortInfo": "{ field : 'sent', direction: 'DESC' }",
-                                    "|xns": "Roo.data",
-                                    "items": [
-                                        {
-                                            "*prop": "proxy",
-                                            "xtype": "HttpProxy",
-                                            "method": "GET",
-                                            "|url": "baseURL + '/Roo/pressrelease_notify.php'",
-                                            "|xns": "Roo.data"
-                                        },
-                                        {
-                                            "|xns": "Roo.data",
-                                            "xtype": "JsonReader",
-                                            "totalProperty": "total",
-                                            "root": "data",
-                                            "*prop": "reader",
-                                            "id": "id",
-                                            "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'act_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'onid',\n        'type': 'int'\n    },\n    {\n        'name': 'ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'msgid',\n        'type': 'string'\n    },\n    {\n        'name': 'sent',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'bounced',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_honor',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_scope_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_contact_language',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_contact_language_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_country',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_method',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_from',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_to',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_days',\n        'type': 'string'\n    }\n]"
-                                        }
-                                    ]
-                                },
-                                {
-                                    "*prop": "footer",
-                                    "displayInfo": true,
-                                    "displayMsg": "Displaying history 0} - {1} of {2}",
-                                    "emptyMsg": "No Items found",
-                                    "pageSize": 25,
-                                    "xtype": "PagingToolbar",
-                                    "|xns": "Roo"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "Ref#",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "act_when",
-                                    "header": "Due out (Local time)",
-                                    "width": 120,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "sent",
-                                    "header": "Sent",
-                                    "width": 120,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n   if (!r.data.event_id) {\n        return 'not sent yet';\n   }\n   \n    return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); \n}",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "to_email",
-                                    "header": "Sent to",
-                                    "width": 150,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n\n    \n        return String.format('<B>{0}</B>', v);\n}",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "event_id_remarks",
-                                    "header": "Status",
-                                    "width": 150,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) { \n     \n    var tag = 'span';\n    if (r.data.fail_reviewed * 1) {\n        tag = 's';\n    } \n     \n    return String.format('<' + tag + ' qtip=\"{1}\">{0}</' + tag + '>', v,String.format('{0}', v)); \n}",
-                                    "|xns": "Roo.grid"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Cancel",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    var beats = [];\n    _this.grid.ds.each(function(rec)  {\n        if (rec.data.member * 1) {\n            beats.push(rec.data.id);\n        }\n        \n    });\n    _this.form.setValues({'beats' : beats.join(',')});\n    \n \n    _this.form.doAction(\"submit\");\n\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Save",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseContact.js b/PressRelease/Pman.Dialog.PressReleaseContact.js
deleted file mode 100644 (file)
index 1e90a4f..0000000
+++ /dev/null
@@ -1,1736 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Dialog.PressReleaseContact = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            listeners : {
-                show : function (_self)
-                {
-                _this.dialog.layout.getRegion('center').showPanel(0)
-                }
-            },
-            closable : false,
-            collapsible : false,
-            height : 550,
-            modal : true,
-            resizable : false,
-            title : "Edit / Create Person",
-            width : 800,
-            items : [
-                {
-                    xtype: 'NestedLayoutPanel',
-                    xns: Roo,
-                    region : 'center',
-                    title : "Details",
-                    layout : {
-                        xtype: 'BorderLayout',
-                        xns: Roo,
-                        items : [
-                            {
-                                xtype: 'GridPanel',
-                                xns: Roo,
-                                listeners : {
-                                    activate : function() {
-                                        _this.panel = this;
-                                        if (_this.grid) {
-                                            //_this.grid.ds.load({});
-                                        }
-                                    }
-                                },
-                                background : false,
-                                fitContainer : true,
-                                fitToframe : true,
-                                region : 'east',
-                                tableName : 'pressrelease_category',
-                                title : "pressrelease_category",
-                                grid : {
-                                    xtype: 'Grid',
-                                    xns: Roo.grid,
-                                    listeners : {
-                                        render : function() 
-                                        {
-                                            _this.grid = this; 
-                                            //_this.dialog = Pman.Dialog.FILL_IN
-                                            if (_this.panel.active) {
-                                            //   this.ds.load({});
-                                            }
-                                        },
-                                        cellclick : function (_self, ri, ci , e)
-                                        {
-                                           if (ci != 1) {return; }
-                                           
-                                            var rec = this.ds.getAt(ri);
-                                            rec.set('member', (rec.data.member * 1) ? 0 : 1);
-                                           rec.commit();
-                                        },
-                                        rowclass : function (gridview, rowcfg)
-                                        {
-                                             Roo.log(rowcfg);
-                                             // determine if we need to show it..
-                                             var val=_this.beatfilter.getValue().toLowerCase();
-                                             rowcfg.rowClass= '';
-                                             if (!val.length) {
-                                                return; // always show..
-                                             }
-                                             var match = false;
-                                             var hg = rowcfg.record.data.hgroup.toLowerCase();
-                                             var n = rowcfg.record.data.name.toLowerCase();     
-                                             var re = new RegExp(val);
-                                             
-                                             if (hg.match(re) || n.match(re)) {
-                                                return; // display it..
-                                             }
-                                             //Roo.log('display none');
-                                             if (rowcfg.record.data.member * 1 > 0) {
-                                               // return;
-                                             }
-                                             rowcfg.rowClass = 'display-none';
-                                             
-                                             
-                                        }
-                                    },
-                                    autoExpandColumn : 'name',
-                                    loadMask : true,
-                                    filterResults : function() {
-                                        
-                                    },
-                                    dataSource : {
-                                        xtype: 'Store',
-                                        xns: Roo.data,
-                                        listeners : {
-                                            beforeload : function (_self, options)
-                                            {
-                                                options.params =     options.params || {};
-                                                options.params.parent_id_name = 'News Beat';
-                                                options.params.for_beat = 1;
-                                                options.params.contact_id = _this.data ? _this.data.id : 0;
-                                                options.params.limit = 999;
-                                            }
-                                        },
-                                        remoteSort : true,
-                                        sortInfo : { field : 'hgroup,name', direction: 'ASC' },
-                                        proxy : {
-                                            xtype: 'HttpProxy',
-                                            xns: Roo.data,
-                                            method : 'GET',
-                                            url : baseURL + '/Roo/pressrelease_category.php'
-                                        },
-                                        reader : {
-                                            xtype: 'JsonReader',
-                                            xns: Roo.data,
-                                            id : 'id',
-                                            root : 'data',
-                                            totalProperty : 'total',
-                                            fields : [
-                                                {
-                                                    'name': 'id',
-                                                    'type': 'int'
-                                                },
-                                                {
-                                                    'name': 'parent_id',
-                                                    'type': 'int'
-                                                },
-                                                {
-                                                    'name': 'name',
-                                                    'type': 'string'
-                                                },
-                                                {
-                                                    'name': 'display_order',
-                                                    'type': 'int'
-                                                },
-                                                {
-                                                    'name': 'visible',
-                                                    'type': 'int'
-                                                }
-                                            ]
-                                        }
-                                    },
-                                    colModel : [
-                                        {
-                                            xtype: 'ColumnModel',
-                                            xns: Roo.grid,
-                                            dataIndex : 'name',
-                                            header : 'News Beat',
-                                            width : 200,
-                                            renderer : function(v,x,r) { return String.format('{0}', (r.data.hgroup ? r.data.hgroup + ' : ' : '') + v); }
-                                        },
-                                        {
-                                            xtype: 'ColumnModel',
-                                            xns: Roo.grid,
-                                            dataIndex : 'member',
-                                            header : 'Member',
-                                            width : 75,
-                                            renderer : function(v) {  
-                                                var state = v> 0 ?  '-checked' : '';
-                                            
-                                                return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
-                                                            
-                                             }
-                                        }
-                                    ],
-                                    toolbar : {
-                                        xtype: 'Toolbar',
-                                        xns: Roo,
-                                        items : [
-                                            {
-                                                xtype: 'TextField',
-                                                xns: Roo.form,
-                                                listeners : {
-                                                    keyup : function (_self, e)
-                                                    {
-                                                           _this.grid.view.refresh(true);
-                                                        
-                                                    
-                                                    },
-                                                    render : function (_self)
-                                                    {
-                                                      _this.beatfilter = _self;
-                                                    }
-                                                },
-                                                width : 100
-                                            },
-                                            {
-                                                xtype: 'Button',
-                                                xns: Roo.Toolbar,
-                                                listeners : {
-                                                    click : function (_self, e)
-                                                    {
-                                                        _this.beatfilter.setValue('');
-                                                         _this.grid.view.refresh(true);
-                                                        
-                                                    }
-                                                },
-                                                cls : 'x-btn-icon',
-                                                icon : rootURL + '/Pman/templates/images/edit-clear.gif'
-                                            },
-                                            {
-                                                xtype: 'Fill',
-                                                xns: Roo.Toolbar
-                                            },
-                                            {
-                                                xtype: 'Button',
-                                                xns: Roo.Toolbar,
-                                                listeners : {
-                                                    click : function (_self, e)
-                                                    {
-                                                        
-                                                        
-                                                        _this.grid.ds.each(function(rec) {
-                                                                rec.set('member', 0);
-                                                                rec.commit();
-                                                               
-                                                        
-                                                    
-                                                        });
-                                                    
-                                                    }
-                                                },
-                                                text : "Reset"
-                                            },
-                                            {
-                                                xtype: 'Button',
-                                                xns: Roo.Toolbar,
-                                                listeners : {
-                                                    click : function (_self, e)
-                                                    {
-                                                        
-                                                         // determine if we need to show it..
-                                                         var val =_this.beatfilter.getValue().toLowerCase();
-                                                         var re = false;
-                                                         if (val.length) {
-                                                             re = new RegExp(val);
-                                                            
-                                                         }
-                                                         
-                                                        
-                                                        
-                                                        _this.grid.ds.each(function(rec) {
-                                                            if (!re) {        
-                                                                rec.set('member',  1);
-                                                                rec.commit();
-                                                                return;
-                                                            }
-                                                            var hg = rec.data.hgroup.toLowerCase();
-                                                             var n = rec.data.name.toLowerCase();
-                                                              if (!hg.match(re) && !n.match(re)) {
-                                                                return; // do not select it..
-                                                             }
-                                                        
-                                                              rec.set('member',  1);
-                                                            rec.commit();
-                                                               
-                                                        
-                                                    
-                                                        });
-                                                    
-                                                    }
-                                                },
-                                                text : "Select All"
-                                            }
-                                        ]
-                                    }
-                                }
-                            },
-                            {
-                                xtype: 'ContentPanel',
-                                xns: Roo,
-                                autoScroll : true,
-                                fitToFrame : true,
-                                region : 'center',
-                                items : [
-                                    {
-                                        xtype: 'Form',
-                                        xns: Roo.form,
-                                        listeners : {
-                                            actioncomplete : function(_self,action)
-                                            {
-                                                if (action.type == 'setdata') {
-                                                    if (_this.data.id) {
-                                             
-                                                       this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-                                                       return;
-                                                   }
-                                                   _this.grid.ds.load({});
-                                                   return;
-                                                }
-                                                if (action.type == 'load') {
-                                                    _this.dialog.el.unmask();
-                                                    var l = this.findField('publication_lang').getValue();
-                                                    this.setValues( {
-                                                            publication_lang : l,
-                                                            publication_lang_name : Pman.I18n.toName('l', l)
-                                                    });
-                                                    l = this.findField('contact_language_alt').getValue();
-                                                    this.setValues( {
-                                                            contact_language_alt : l,
-                                                            contact_language_alt_name : Pman.I18n.toName('l', l)
-                                                    });
-                                                     l = this.findField('contact_language').getValue();
-                                                    this.setValues( {
-                                                            contact_language : l,
-                                                            contact_language_name : Pman.I18n.toName('l', l)
-                                                    });
-                                                    
-                                                    _this.grid.ds.load({});
-                                                    return;
-                                                    
-                                                }
-                                                if (action.type =='submit') {
-                                                
-                                             
-                                                    _this.dialog.hide();
-                                                
-                                                     if (_this.callback) {
-                                                        _this.callback.call(_this, _this.form.getValues());
-                                                     }
-                                                     _this.form.reset();
-                                                     return;
-                                                }
-                                            },
-                                            rendered : function (form)
-                                            {
-                                                _this.form= form;
-                                            },
-                                            actionfailed : function (_self, action)
-                                            {
-                                                _this.dialog.el.unmask();
-                                                Roo.MessageBox.alert('Error', 'fix all the errors in red');
-                                            }
-                                        },
-                                        labelAlign : 'right',
-                                        labelWidth : 120,
-                                        method : 'POST',
-                                        style : 'margin:10px;',
-                                        url : baseURL + '/Roo/Pressrelease_contact.php',
-                                        items : [
-                                            {
-                                                xtype: 'ComboBox',
-                                                xns: Roo.form,
-                                                allowBlank : 'false',
-                                                alwaysQuery : true,
-                                                displayField : 'name',
-                                                editable : 'false',
-                                                emptyText : "Select type",
-                                                fieldLabel : 'Type',
-                                                forceSelection : true,
-                                                hiddenName : 'category_type_id',
-                                                listWidth : 400,
-                                                loadingText : "Searching...",
-                                                minChars : 2,
-                                                name : 'category_type_id_name',
-                                                pageSize : 20,
-                                                qtip : "Select type",
-                                                queryParam : 'query[name]',
-                                                selectOnFocus : true,
-                                                tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
-                                                triggerAction : 'all',
-                                                typeAhead : true,
-                                                valueField : 'id',
-                                                width : 300,
-                                                store : {
-                                                    xtype: 'Store',
-                                                    xns: Roo.data,
-                                                    listeners : {
-                                                        beforeload : function (_self, o){
-                                                            o.params = o.params || {};
-                                                            o.params.parent_id_name = 'Type of Database';
-                                                            // set more here
-                                                        }
-                                                    },
-                                                    remoteSort : true,
-                                                    sortInfo : { direction : 'ASC', field: 'id' },
-                                                    proxy : {
-                                                        xtype: 'HttpProxy',
-                                                        xns: Roo.data,
-                                                        method : 'GET',
-                                                        url : baseURL + '/Roo/pressrelease_category.php'
-                                                    },
-                                                    reader : {
-                                                        xtype: 'JsonReader',
-                                                        xns: Roo.data,
-                                                        id : 'id',
-                                                        root : 'data',
-                                                        totalProperty : 'total',
-                                                        fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
-                                                    }
-                                                }
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Personal Details",
-                                                items : [
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        displayField : 'val',
-                                                        editable : false,
-                                                        emptyText : "Title",
-                                                        fieldLabel : 'Honorific',
-                                                        forceSelection : false,
-                                                        listWidth : 200,
-                                                        loadingText : "Searching...",
-                                                        mode : 'local',
-                                                        name : 'honor',
-                                                        selectOnFocus : false,
-                                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{val}</b> </div>',
-                                                        triggerAction : 'all',
-                                                        typeAhead : true,
-                                                        valueField : 'type',
-                                                        width : 100,
-                                                        store : {
-                                                            xtype: 'SimpleStore',
-                                                            xns: Roo.data,
-                                                            data : [ 
-                                                                [ 'Mr' ],
-                                                                [ 'Mrs' ],
-                                                                [ 'Ms' ]
-                                                            ],
-                                                            fields : [ 'val']
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelWidth : 120,
-                                                                width : 270,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        emptyText : "",
-                                                                        fieldLabel : 'Name (First/Last)',
-                                                                        name : 'firstname',
-                                                                        width : 140
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                hideLabels : true,
-                                                                style : 'margin-left:5px',
-                                                                width : 160,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        emptyText : "",
-                                                                        fieldLabel : 'Name',
-                                                                        name : 'lastname',
-                                                                        width : 150
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    },
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelWidth : 120,
-                                                                width : 270,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        emptyText : "",
-                                                                        fieldLabel : 'Local (First/Last)',
-                                                                        name : 'firstname_alt',
-                                                                        width : 140
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                hideLabels : true,
-                                                                style : 'margin-left:5px',
-                                                                width : 160,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        fieldLabel : 'Name',
-                                                                        name : 'lastname_alt',
-                                                                        width : 150
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Job Title',
-                                                        name : 'role',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelWidth : 120,
-                                                                width : 270,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'ComboBox',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : false,
-                                                                        alwaysQuery : true,
-                                                                        displayField : 'title',
-                                                                        editable : false,
-                                                                        fieldLabel : 'Spoken Lang.',
-                                                                        hiddenName : 'contact_language',
-                                                                        listWidth : 200,
-                                                                        name : 'contact_language_name',
-                                                                        triggerAction : 'all',
-                                                                        valueField : 'code',
-                                                                        width : 140,
-                                                                        store : {
-                                                                            xtype: 'SimpleStore',
-                                                                            xns: Roo.data,
-                                                                            data : (function() {
-                                                                                return Pman.I18n.simpleStoreData('l');
-                                                                            })(),
-                                                                            fields : [  'code', 'title' ]
-                                                                        }
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                hideLabels : true,
-                                                                style : 'margin-left:5px',
-                                                                width : 160,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'ComboBox',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        alwaysQuery : true,
-                                                                        displayField : 'title',
-                                                                        editable : false,
-                                                                        fieldLabel : 'Spoken Lang.',
-                                                                        hiddenName : 'contact_language_alt',
-                                                                        listWidth : 200,
-                                                                        name : 'contact_language_alt_name',
-                                                                        triggerAction : 'all',
-                                                                        valueField : 'code',
-                                                                        width : 150,
-                                                                        store : {
-                                                                            xtype: 'SimpleStore',
-                                                                            xns: Roo.data,
-                                                                            data : (function() {
-                                                                                return Pman.I18n.simpleStoreData('l');
-                                                                            })(),
-                                                                            fields : [  'code', 'title' ]
-                                                                        }
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Company / Publication",
-                                                items : [
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Company Name',
-                                                        name : 'company_id_name',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        allowBlank : false,
-                                                        fieldLabel : 'Publication Name',
-                                                        name : 'publication_name',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Publ. Name (Local)',
-                                                        name : 'publication_name_alt',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        allowBlank : false,
-                                                        alwaysQuery : true,
-                                                        displayField : 'title',
-                                                        editable : false,
-                                                        fieldLabel : 'Country',
-                                                        hiddenName : 'country',
-                                                        listWidth : 300,
-                                                        name : 'country_name',
-                                                        triggerAction : 'all',
-                                                        valueField : 'code',
-                                                        width : 300,
-                                                        store : {
-                                                            xtype: 'SimpleStore',
-                                                            xns: Roo.data,
-                                                            data : (function() {
-                                                                // if the user is only allowed to edit specific countries..
-                                                                // then only display a list of that...
-                                                                
-                                                                var filter = false;
-                                                                if (Pman.hasPerm && Pman.hasPerm("PressRelease.JournalistAll","S")) {
-                                                                    if (Pman.Login.authUser.role.length) {
-                                                                        var clist = Pman.Login.authUser.role.split(",");
-                                                                        filter = function(o) {
-                                                                            return clist.indexOf(o.code) > -1 ? true : false;
-                                                                        };
-                                                                    }
-                                                                }
-                                                            
-                                                                return Pman.I18n.simpleStoreData('c', filter); 
-                                                                
-                                                            })(),
-                                                            fields : [  'code', 'title' ]
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'City',
-                                                        name : 'city',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelWidth : 120,
-                                                                width : 270,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'ComboBox',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : false,
-                                                                        alwaysQuery : true,
-                                                                        displayField : 'title',
-                                                                        editable : false,
-                                                                        fieldLabel : 'Print Language(s)',
-                                                                        hiddenName : 'publication_lang',
-                                                                        listWidth : 200,
-                                                                        name : 'publication_lang_name',
-                                                                        triggerAction : 'all',
-                                                                        valueField : 'code',
-                                                                        width : 145,
-                                                                        store : {
-                                                                            xtype: 'SimpleStore',
-                                                                            xns: Roo.data,
-                                                                            data : (function() {
-                                                                                return Pman.I18n.simpleStoreData('l');
-                                                                            })(),
-                                                                            fields : [  'code', 'title' ]
-                                                                        }
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                hideLabels : true,
-                                                                style : 'margin-left:5px',
-                                                                width : 160,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'ComboBox',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        alwaysQuery : true,
-                                                                        displayField : 'title',
-                                                                        editable : false,
-                                                                        fieldLabel : 'Print Language',
-                                                                        hiddenName : 'publication_lang_alt',
-                                                                        listWidth : 200,
-                                                                        name : 'publication_lang_alt_name',
-                                                                        triggerAction : 'all',
-                                                                        valueField : 'code',
-                                                                        width : 150,
-                                                                        store : {
-                                                                            xtype: 'SimpleStore',
-                                                                            xns: Roo.data,
-                                                                            data : (function() {
-                                                                                return Pman.I18n.simpleStoreData('l');
-                                                                            })(),
-                                                                            fields : [  'code', 'title' ]
-                                                                        }
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    },
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        allowBlank : false,
-                                                        alwaysQuery : true,
-                                                        displayField : 'name',
-                                                        editable : 'false',
-                                                        emptyText : "Select scope",
-                                                        fieldLabel : 'Publication Scope',
-                                                        forceSelection : true,
-                                                        hiddenName : 'category_scope_id',
-                                                        listWidth : 400,
-                                                        loadingText : "Searching...",
-                                                        minChars : 2,
-                                                        name : 'category_scope_id_name',
-                                                        pageSize : 20,
-                                                        qtip : "Select type",
-                                                        queryParam : 'query[name]',
-                                                        selectOnFocus : true,
-                                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
-                                                        triggerAction : 'all',
-                                                        typeAhead : true,
-                                                        valueField : 'id',
-                                                        width : 300,
-                                                        store : {
-                                                            xtype: 'Store',
-                                                            xns: Roo.data,
-                                                            listeners : {
-                                                                beforeload : function (_self, o){
-                                                                    o.params = o.params || {};
-                                                                    // set more here
-                                                                     o.params.parent_id_name = 'Publication Scope';
-                                                                }
-                                                            },
-                                                            remoteSort : true,
-                                                            sortInfo : { direction : 'ASC', field: 'id' },
-                                                            proxy : {
-                                                                xtype: 'HttpProxy',
-                                                                xns: Roo.data,
-                                                                method : 'GET',
-                                                                url : baseURL + '/Roo/pressrelease_category.php'
-                                                            },
-                                                            reader : {
-                                                                xtype: 'JsonReader',
-                                                                xns: Roo.data,
-                                                                id : 'id',
-                                                                root : 'data',
-                                                                totalProperty : 'total',
-                                                                fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
-                                                            }
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        allowBlank : 'false',
-                                                        alwaysQuery : true,
-                                                        displayField : 'name',
-                                                        editable : 'false',
-                                                        emptyText : "Select type of media",
-                                                        fieldLabel : 'Media Type',
-                                                        forceSelection : true,
-                                                        hiddenName : 'category_media_id',
-                                                        listWidth : 400,
-                                                        loadingText : "Searching...",
-                                                        minChars : 2,
-                                                        name : 'category_media_id_name',
-                                                        pageSize : 20,
-                                                        qtip : "Select type",
-                                                        queryParam : 'query[name]',
-                                                        selectOnFocus : true,
-                                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
-                                                        triggerAction : 'all',
-                                                        typeAhead : true,
-                                                        valueField : 'id',
-                                                        width : 300,
-                                                        store : {
-                                                            xtype: 'Store',
-                                                            xns: Roo.data,
-                                                            listeners : {
-                                                                beforeload : function (_self, o){
-                                                                    o.params = o.params || {};
-                                                                    // set more here
-                                                                     o.params.parent_id_name = 'Type of Media';
-                                                                }
-                                                            },
-                                                            remoteSort : true,
-                                                            sortInfo : { direction : 'ASC', field: 'id' },
-                                                            proxy : {
-                                                                xtype: 'HttpProxy',
-                                                                xns: Roo.data,
-                                                                method : 'GET',
-                                                                url : baseURL + '/Roo/pressrelease_category.php'
-                                                            },
-                                                            reader : {
-                                                                xtype: 'JsonReader',
-                                                                xns: Roo.data,
-                                                                id : 'id',
-                                                                root : 'data',
-                                                                totalProperty : 'total',
-                                                                fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
-                                                            }
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Website',
-                                                        name : 'url',
-                                                        width : 300
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Phone numbers",
-                                                items : [
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelAlign : 'right',
-                                                                labelWidth : 80,
-                                                                width : 230,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        fieldLabel : 'Office+Ext',
-                                                                        name : 'phone',
-                                                                        width : 120
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelAlign : 'right',
-                                                                labelWidth : 50,
-                                                                width : 200,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        fieldLabel : 'Direct',
-                                                                        name : 'phone_direct',
-                                                                        width : 120
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    },
-                                                    {
-                                                        xtype: 'Row',
-                                                        xns: Roo.form,
-                                                        width : 450,
-                                                        items : [
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelAlign : 'right',
-                                                                labelWidth : 80,
-                                                                width : 230,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        fieldLabel : 'Mobile',
-                                                                        name : 'phone_mobile',
-                                                                        width : 120
-                                                                    }
-                                                                ]
-                                                            },
-                                                            {
-                                                                xtype: 'Column',
-                                                                xns: Roo.form,
-                                                                labelAlign : 'right',
-                                                                labelWidth : 50,
-                                                                width : 200,
-                                                                items : [
-                                                                    {
-                                                                        xtype: 'TextField',
-                                                                        xns: Roo.form,
-                                                                        allowBlank : true,
-                                                                        fieldLabel : 'Fax',
-                                                                        name : 'fax',
-                                                                        width : 120
-                                                                    }
-                                                                ]
-                                                            }
-                                                        ]
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Contact Details",
-                                                items : [
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Email',
-                                                        name : 'email',
-                                                        vtype : 'email',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Email (alt)',
-                                                        name : 'email2',
-                                                        vtype : 'email',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Email (alt)',
-                                                        name : 'email3',
-                                                        vtype : 'email',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Personal Email',
-                                                        name : 'email_personal',
-                                                        vtype : 'email',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Twitter handle',
-                                                        name : 'twitter',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Blog Website',
-                                                        name : 'blog_url',
-                                                        vtype : 'url',
-                                                        width : 300
-                                                    },
-                                                    {
-                                                        xtype: 'TextArea',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Address',
-                                                        height : 100,
-                                                        name : 'address',
-                                                        width : 300
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Best Contacted",
-                                                items : [
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        displayField : 'hr',
-                                                        editable : false,
-                                                        fieldLabel : 'Method',
-                                                        listWidth : 100,
-                                                        mode : 'local',
-                                                        name : 'best_contact_method',
-                                                        triggerAction : 'all',
-                                                        valueField : 'hr',
-                                                        width : 100,
-                                                        store : {
-                                                            xtype: 'SimpleStore',
-                                                            xns: Roo.data,
-                                                            data : [ ['Email' ] ,[ 'Phone' ] ,[ 'Fax'] ],
-                                                            fields : [  'hr' ]
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'DayPicker',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Days',
-                                                        name : 'best_contact_days'
-                                                    },
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        displayField : 'hrd',
-                                                        editable : false,
-                                                        fieldLabel : 'From',
-                                                        hiddenName : 'best_contact_from',
-                                                        listWidth : 80,
-                                                        mode : 'local',
-                                                        name : 'best_contact_from_hr',
-                                                        triggerAction : 'all',
-                                                        valueField : 'hr',
-                                                        width : 80,
-                                                        store : {
-                                                            xtype: 'SimpleStore',
-                                                            xns: Roo.data,
-                                                            data : (function() {
-                                                               var r = [];
-                                                               for (var i =0;i < 24;i++) {
-                                                                  var lh = i > 12 ? i-12 : i;
-                                                                  lh = lh < 1 ? 12 : lh;
-                                                                  var pm = i > 11  ? 'PM' : 'AM';
-                                                                  r.push( [ i + ':00' , lh +':00 ' + pm]);
-                                                                  r.push([ i + ':30', lh +':30 ' + pm]);
-                                                               }
-                                                               return r;
-                                                            })(),
-                                                            fields : [  'hr', 'hrd' ]
-                                                        }
-                                                    },
-                                                    {
-                                                        xtype: 'ComboBox',
-                                                        xns: Roo.form,
-                                                        displayField : 'hrd',
-                                                        editable : false,
-                                                        fieldLabel : 'To',
-                                                        hiddenName : 'best_contact_to',
-                                                        listWidth : 80,
-                                                        mode : 'local',
-                                                        name : 'best_contact_from_hr',
-                                                        triggerAction : 'all',
-                                                        valueField : 'hr',
-                                                        width : 80,
-                                                        store : {
-                                                            xtype: 'SimpleStore',
-                                                            xns: Roo.data,
-                                                            data : (function() {
-                                                               var r = [];
-                                                               for (var i =0;i < 24;i++) {
-                                                                  var lh = i > 12 ? i-12 : i;
-                                                                  lh = lh < 1 ? 12 : lh;
-                                                                  var pm = i > 11  ? 'PM' : 'AM';
-                                                                  r.push( [ i + ':00' , lh +':00 ' + pm]);
-                                                                  r.push([ i + ':30', lh +':30 ' + pm]);
-                                                               }
-                                                               return r;
-                                                            })(),
-                                                            fields : [  'hr', 'hrd' ]
-                                                        }
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'Row',
-                                                xns: Roo.form,
-                                                labelAlign : 'top',
-                                                items : [
-                                                    {
-                                                        xtype: 'TextArea',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Notes',
-                                                        height : 100,
-                                                        name : 'remarks',
-                                                        width : 450
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'Hidden',
-                                                xns: Roo.form,
-                                                name : 'beats'
-                                            },
-                                            {
-                                                xtype: 'Hidden',
-                                                xns: Roo.form,
-                                                name : 'id'
-                                            }
-                                        ]
-                                    }
-                                ]
-                            }
-                        ],
-                        center : {
-                            xtype: 'LayoutRegion',
-                            xns: Roo
-                        },
-                        east : {
-                            xtype: 'LayoutRegion',
-                            xns: Roo,
-                            width : 270
-                        }
-                    }
-                },
-                {
-                    xtype: 'GridPanel',
-                    xns: Roo,
-                    listeners : {
-                        activate : function() {
-                            _this.hpanel = this;
-                            if (_this.hgrid) {
-                                _this.hgrid.ds.load({});
-                            }
-                        }
-                    },
-                    background : true,
-                    fitContainer : true,
-                    fitToframe : true,
-                    region : 'center',
-                    tableName : 'Events',
-                    title : "History",
-                    grid : {
-                        xtype: 'Grid',
-                        xns: Roo.grid,
-                        listeners : {
-                            render : function() 
-                            {
-                                _this.hgrid = this; 
-                                //_this.dialog = Pman.Dialog.FILL_IN
-                                if (_this.hpanel.active) {
-                                   _this.hgrid.ds.load({});
-                                }
-                            }
-                        },
-                        autoExpandColumn : 'remarks',
-                        loadMask : true,
-                        dataSource : {
-                            xtype: 'Store',
-                            xns: Roo.data,
-                            listeners : {
-                                beforeload : function (_self, options)
-                                {
-                                    options.params =     options.params || {};
-                                    options.params.on_table = 'pressrelease_contact';
-                                    options.params.on_id = _this.form.findField('id').getValue() * 1;
-                                    if (!options.params.on_id) {
-                                        return false;
-                                    }
-                                        
-                                }
-                            },
-                            remoteSort : true,
-                            sortInfo : { field : 'id', direction: 'DESC' },
-                            proxy : {
-                                xtype: 'HttpProxy',
-                                xns: Roo.data,
-                                method : 'GET',
-                                url : baseURL + '/Roo/Events.php'
-                            },
-                            reader : {
-                                xtype: 'JsonReader',
-                                xns: Roo.data,
-                                totalProperty : 'total',
-                                root : 'data',
-                                id : 'id',
-                                fields : [
-                                    {
-                                        'name': 'id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'event_when',
-                                        'type': 'date',
-                                        'dateFormat': 'Y-m-d'
-                                    },
-                                    {
-                                        'name': 'action',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'ipaddr',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'on_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'on_table',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'remarks',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_office_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_phone',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_fax',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_email',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_company_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_role',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_active',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_remarks',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_passwd',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_owner_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_lang',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_no_reset_sent',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_action_type',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_project_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_deleted_by',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_deleted_dt',
-                                        'type': 'date'
-                                    }
-                                ]
-                            }
-                        },
-                        colModel : [
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                header : 'Event when',
-                                width : 75,
-                                dataIndex : 'event_when',
-                                renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'person_id_name',
-                                header : 'Who',
-                                width : 200,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'action',
-                                header : 'Action',
-                                width : 100,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                header : 'Remarks',
-                                width : 200,
-                                dataIndex : 'remarks',
-                                renderer : function(v) { return String.format('{0}', v); }
-                            }
-                        ]
-                    }
-                },
-                {
-                    xtype: 'GridPanel',
-                    xns: Roo,
-                    listeners : {
-                        activate : function() {
-                            _this.circpanel = this;
-                            if (_this.circgrid) {
-                                _this.circgrid.footer.onClick('first');
-                            }
-                             
-                        }
-                    },
-                    background : true,
-                    fitContainer : true,
-                    fitToframe : true,
-                    region : 'center',
-                    tableName : 'pressrelease_notify',
-                    title : "Delivery History",
-                    grid : {
-                        xtype: 'Grid',
-                        xns: Roo.grid,
-                        listeners : {
-                            render : function() 
-                            {
-                                _this.circgrid = this; 
-                                //_this.dialog = Pman.Dialog.FILL_IN
-                                if (_this.circpanel.active) {
-                                   this.footer.onClick('first');
-                                }
-                            }
-                        },
-                        autoExpandColumn : 'event_id_remarks',
-                        loadMask : true,
-                        sm : {
-                            xtype: 'RowSelectionModel',
-                            xns: Roo.grid,
-                            singleSelect : true
-                        },
-                        dataSource : {
-                            xtype: 'Store',
-                            xns: Roo.data,
-                            listeners : {
-                                beforeload : function (_self, o)
-                                {
-                                  o.params = o.params || {};
-                                  o.params.ontable = 'pressrelease_entry';
-                                  //
-                                  
-                                  //o.params.onid = _this.form.findField('id').getValue();
-                                  //o.params.vtype = "FAILED";
-                                  
-                                  //o.params.fail_reviewed = 0;
-                                  
-                                  o.params.person_id = _this.form.findField('id').getValue() * 1;
-                                  if (!o.params.person_id) {
-                                    return false;
-                                    
-                                  }
-                                
-                                },
-                                load : function (_self, records, options)
-                                {
-                                    Roo.log(records);
-                                    if (!records.length) {
-                                        _this.grid.footer.onClick('refresh');
-                                    }
-                                }
-                            },
-                            remoteSort : true,
-                            sortInfo : { field : 'sent', direction: 'DESC' },
-                            proxy : {
-                                xtype: 'HttpProxy',
-                                xns: Roo.data,
-                                method : 'GET',
-                                url : baseURL + '/Roo/pressrelease_notify.php'
-                            },
-                            reader : {
-                                xtype: 'JsonReader',
-                                xns: Roo.data,
-                                totalProperty : 'total',
-                                root : 'data',
-                                id : 'id',
-                                fields : [
-                                    {
-                                        'name': 'id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'act_when',
-                                        'type': 'date',
-                                        'dateFormat': 'Y-m-d'
-                                    },
-                                    {
-                                        'name': 'onid',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'ontable',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'msgid',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'sent',
-                                        'type': 'date',
-                                        'dateFormat': 'Y-m-d'
-                                    },
-                                    {
-                                        'name': 'bounced',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_category_type_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_honor',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_name_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_company_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_role',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_email',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_email_personal',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_phone',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_fax',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_address',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_category_media_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_submission_time',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_publication_lang',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_url',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_remarks',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_phone_mobile',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_phone_direct',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_firstname',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_lastname',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_firstname_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_lastname_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_publication_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_publication_name_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_category_scope_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id_contact_language',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_contact_language_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_country',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_best_contact_method',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_best_contact_from',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_best_contact_to',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'person_id_best_contact_days',
-                                        'type': 'string'
-                                    }
-                                ]
-                            }
-                        },
-                        footer : {
-                            xtype: 'PagingToolbar',
-                            xns: Roo,
-                            displayInfo : true,
-                            displayMsg : "Displaying history 0} - {1} of {2}",
-                            emptyMsg : "No Items found",
-                            pageSize : 25
-                        },
-                        colModel : [
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : 'Ref#',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'act_when',
-                                header : 'Due out (Local time)',
-                                width : 120,
-                                renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'sent',
-                                header : 'Sent',
-                                width : 120,
-                                renderer : function(v,x,r) { 
-                                   if (!r.data.event_id) {
-                                        return 'not sent yet';
-                                   }
-                                   
-                                    return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); 
-                                }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'to_email',
-                                header : 'Sent to',
-                                width : 150,
-                                renderer : function(v,x,r) { 
-                                
-                                    
-                                        return String.format('<B>{0}</B>', v);
-                                }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'event_id_remarks',
-                                header : 'Status',
-                                width : 150,
-                                renderer : function(v,x,r) { 
-                                     
-                                    var tag = 'span';
-                                    if (r.data.fail_reviewed * 1) {
-                                        tag = 's';
-                                    } 
-                                     
-                                    return String.format('<' + tag + ' qtip="{1}">{0}</' + tag + '>', v,String.format('{0}', v)); 
-                                }
-                            }
-                        ]
-                    }
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo,
-                tabPosition : 'top'
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            _this.dialog.hide();
-                        }
-                    },
-                    text : "Cancel"
-                },
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            // do some checks?
-                             
-                            var beats = [];
-                            _this.grid.ds.each(function(rec)  {
-                                if (rec.data.member * 1) {
-                                    beats.push(rec.data.id);
-                                }
-                                
-                            });
-                            _this.form.setValues({'beats' : beats.join(',')});
-                            
-                         
-                            _this.form.doAction("submit");
-                        
-                        }
-                    },
-                    text : "Save"
-                }
-            ]
-        });
-    }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseEdit.bjs b/PressRelease/Pman.Dialog.PressReleaseEdit.bjs
deleted file mode 100644 (file)
index 8fa439f..0000000
+++ /dev/null
@@ -1,2185 +0,0 @@
-{
- "name" : "Pman.Dialog.PressReleaseEdit",
- "parent" : "",
- "title" : "",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseEdit.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "f31bbdd1b3e85bccd652680e16935819" : "Source",
-  "2f26e35d61be90501e099089dc533638" : "Select Images",
-  "90e02e896b4ee833a24236b45060d175" : "Description / Byline",
-  "91412465ea9169dfd901dd5e7c96dd99" : "Upload",
-  "c1df1da7a1ce305a3b60af9d5733ac1d" : "Contents",
-  "f0bac093bb884df2891d32385d053788" : "Distribution",
-  "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
-  "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
-  "b1515c8965e8b24b15046bb2afe27123" : "Sub-Headline",
-  "01a5bf98dc3a43bb2f6d0787d87030b7" : "Add From Image Store",
-  "3f0f4d7d0b92612398cc55d9e47965e2" : "Financial Data",
-  "c864347be68dbc6a7b0540f1f79d8ea3" : "Reset selections",
-  "c78bf45129eff892d5c654c159fd8182" : "Displaying pressrelease_notify{0} - {1} of {2}",
-  "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
-  "31fde7b05ac8952dacf4af8a704074ec" : "Preview",
-  "c6568e77f61109390e82d035aaacaef0" : "Headline",
-  "9c715f0e523e7e1d00d538db7b78615b" : "Word count",
-  "e0626222614bdee31951d84c64e5e9ff" : "Select",
-  "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
-  "a97749f6323c1743aad997aaf0197b19" : "Remove undelivered messages",
-  "2dd37afd617264989a9dbad32cc239ad" : " same as (different publish dates)",
-  "9aa698f602b1e5694855cee73a683488" : "Contacts",
-  "471ddaf9e80da04dd5a3a54daa0239b0" : "Select Image Type",
-  "c9289663240146eaa1ec2d9838b0875a" : "News Beat",
-  "47b09b64b87dc1cb923065dd6167ecde" : "No pressrelease_notify found",
-  "d171235ac80dfa3cd3c83d27312565e5" : "Stock Code",
-  "336f78a6c761db5eb97973c04b0a2fe0" : "Release Details",
-  "47bd5f0bae18a1ce015e40d73a33a15f" : "Company Boiler Plate Statement",
-  "c00adc22f2bb333883dc1723e2899a0c" : "Related Web Links <B>Must have http:// before the link</b>",
-  "b18c29b8470190a02813415a04a2191f" : "Filesize",
-  "9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
-  "95291adff6df977dbba485210bcf6b3c" : "pressrelease_entry",
-  "ad5fd38e083fd0d559ca3f54fa7ed593" : "Upload Excel of Financial data",
-  "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
-  "cd1195c061c70621a670027d606c0be0" : "Fill this in when this release goes out at a different time",
-  "1243daf593fa297e07ab03bf06d925af" : "Searching...",
-  "11f7b456ca765e9f556f653090045ae7" : "Images / PDF",
-  "577d7068826de925ea2aec01dbadf5e4" : "Client",
-  "5f159bce162b1b90e6ffc45602f151ea" : "This press release is a translation of",
-  "7205d42d6d975c911bc1147259d78935" : "Displaying Events{0} - {1} of {2}",
-  "97e7c9a7d06eac006a28bf05467fcc8b" : "Link",
-  "867343577fa1f33caa632a19543bd252" : "Keywords",
-  "addf678354e22ee4f52fefb5f25069d1" : "Select Client",
-  "15ec5490b30354020a6756796c5e4835" : "Edit Press Release",
-  "ec53a8c4f07baed5d8825072c89799be" : "Status",
-  "20e9dc20a361244eb40c7b723a393995" : "Forward Looking Statement",
-  "55cfeeacad2f92b9fea0a1bbb6449fac" : "Update Image Details",
-  "526d688f37a86d3c3f27d0c5016eb71d" : "Reset",
-  "b9e14d9b2886bcff408b85aefa780419" : "FAILED",
-  "ea4788705e6873b424c65e91c2846b19" : "Cancel",
-  "a76d4ef5f3f6a672bbfab2865563e530" : "Time",
-  "69046eb2a80f3965bcd41bfdb1a7bf5c" : "Add Keyword",
-  "c4ca4238a0b923820dcc509a6f75849b" : "1",
-  "cc8498ab909997b95b2207684dbce5cf" : "Select industry",
-  "b9ea5920734c27f9ec7596d53589fb3c" : "Select Press release",
-  "4994a8ffeba4ac3140beb89e8d41f174" : "Language",
-  "432c508d90a57863d3800a123fdefa23" : "Financial Content",
-  "8e16a71b3d8217eb80b39b7d8dec4296" : "Image Type",
-  "4b1b4dc8cf38b3c64b1d657da8f5ac8c" : "Report",
-  "b9dc4c481b230aaec437ef58b23ca1ef" : " (Chinese) Name",
-  "2bb46cdcd6c198689d1c95ac20bba931" : "Beat",
-  "917d465e9a9e8b16a8da50a1ca8156ca" : "Show: ",
-  "dc9227804a61468a485e682cb932bdf7" : "Company Details",
-  "df1390c4238324679161da9c6652d17a" : "Select Exchange",
-  "b78a3223503896721cca1303f776159b" : "Title",
-  "8567f15f1470a10fcb0dfa920ac7c21b" : "Force Re-delivery",
-  "90e4ac2e5a22e53df63b6b186d8727ba" : "No Events found",
-  "4ee972120bcda675f75222c87cb9d356" : "Who",
-  "d7df5b64df1181ef1d62d646a13aa860" : "keyword",
-  "c91c7b93c28cd18741b71f727ee81ee3" : "Reports",
-  "446a6000511ab6fb0711400379a62a04" : "Select Image",
-  "f15c1cae7882448b3fb0404682e17e61" : "Content",
-  "236df51bb0e6416236e255b528346fca" : "Timezone",
-  "110a4b01beabd53b661a47d4b44bd7a8" : "Publish",
-  "59716c97497eb9694541f7c3d37b1a4d" : "Country",
-  "801ab24683a4a8c433c6eb40c48bcd9d" : "Download",
-  "992374d8e2e24f17bebc50a6e57becd6" : "Exchange",
-  "4fd0a37b0a02153b23bbb61d7915a429" : "Industry",
-  "8189ecf686157db0c0274c1f49373318" : "International",
-  "122a26ef126e03089bb959c949d12b0a" : "Due out (Local time)",
-  "cbe695bf80e8066f16a941601cd6846b" : "Select exchange",
-  "45e96c0a422ce8a1a6ec1bd5eb9625c6" : "Select All",
-  "e12167aa0a7698e6ebc92b4ce3909b53" : "To",
-  "7f8c0283f16925caed8e632086b81b9c" : "Sent",
-  "b112803ab9deb7deba2a6b24ef3bb91a" : "Add Group",
-  "c9cc8cce247e49bae79f15173ce97354" : "Save",
-  "ea72bacd2fdfa818907bb9559e6905a1" : "Upload Image or File",
-  "fff0d600f8a0b5e19e88bfb821dd1157" : "Images",
-  "c9d03748d1a54666b5c7a5187109301b" : "Delete Selected File or  Image",
-  "8535bcc0f05358a583bb432bbadf7e0d" : "Select type",
-  "f45381a54504218e39aca33492d29306" : "Circulation",
-  "004bf6c9a40003140292e97330236c53" : "Action",
-  "0a90b1bc4078f74b6f0d117ec7df65af" : "Credit",
-  "529701d5ccccf8a1c604c27f48ce7d82" : "Mimetype",
-  "4d1c8263ba1036754f8db14a98f9f006" : "Reload",
-  "ce0be71e33226e4c1db2bcea5959f16b" : "Log"
- },
- "items" : [
-  {
-   "modal" : true,
-   "collapsible" : false,
-   "minWidth" : 810,
-   "title" : "Edit Press Release",
-   "xtype" : "LayoutDialog",
-   "minHeight" : 650,
-   "width" : 810,
-   "$ xns" : "Roo",
-   "closable" : false,
-   "resizable" : true,
-   "height" : 600,
-   "items" : [
-    {
-     "alwaysShowTabs" : true,
-     "xtype" : "LayoutRegion",
-     "tabPosition" : "top",
-     "$ xns" : "Roo",
-     "* prop" : "center"
-    },
-    {
-     "listeners" : {
-      "activate" : "function (_self)\n{\n  if (_this.form) {\n      _this.form.updateWordCount();\n  }\n  \n}",
-      "deactivate" : "function (_self)\n{\n    \n    //Roo.log('deactivate ' + _this.loaded);\n    if (!_this.loaded) {\n        return;\n    }\n    //Roo.log(_this.form.findField('id').getValue());\n    if (_this.form.findField('id').getValue() * 1 > 0) {\n        return;\n    }\n    (function() {\n        Roo.MessageBox.alert(\"Error\", \"Save first\");\n        _this.dialog.layout.getRegion('center').showPanel(0);\n    }).defer(100);\n\n\n}"
-     },
-     "autoScroll" : true,
-     "fitToFrame" : true,
-     "region" : "center",
-     "title" : "Contents",
-     "xtype" : "ContentPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "listeners" : {
-        "actionfailed" : "function (_self, action)\n{\n   if (action.failureType) {\n          _this.dialog.el.unmask();\n       \n        Roo.MessageBox.alert(\"Error\", \"Please correct the errors in red\");\n        return;\n    \n    }\n}",
-        "|actioncomplete" : "function(_self,action)\n{\n    \n     if (action.failureType) {\n \n       \n        Roo.MessageBox.alert(\"Error\", \"Please correct the errors in red\");\n        return;\n    \n    }\n  if (action.type == 'setdata') {\n        _this.loaded = false;\n \n       _this.dialog.getLayout().showPanel(0);\n        _this.form.addForm(_this.form2);\n          _this.form.addForm(_this.form3);\n        if ( _this.data.id) {\n            _this.dialog.setTitle(\"Edit Press Release #\" + _this.data.id);\n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       } else {\n        \n           _this.dialog.setTitle(\"Create a new  Press Release\");\n           \n          _this.loaded = true;\n          _this.form.findField('publish_status').setValue(-1);\n          _this.form.findField('distribute_to_feed').setValue(1);\n       }\n       \n       return;\n    }\n    if (action.type == 'load') {\n        _this.loaded = true;\n       var fd  =  _this.form3.findField('content_data').getValue(); \n\n       // not it uses mostly HTML..\n       //if (!fd.match(/<pre>/i)) {\n        //     _this.form3.findField('content_data').setValue('<pre>' + String.format('{0}', fd.replace(/\\&nbsp;/g, ' ').replace(/\\&amp;nbsp;/g, ' ')) +  '</pre>'); \n         //}   \n       \n        if (_this.data._translation_of) {\n            this.setValues({\n                id : 0,\n                parent_id  : _this.data.id,\n                parent_id_headline  : this.findField('headline').getValue(),\n                language : '',\n                language_name : '',                \n                content : '',\n                headline: '',\n                publish_status : -1\n                \n            });\n            //this.findField('language').el.dom.value = '';\n            _this.data.id = 0;\n        }\n        //_this.loadedData = action.result.data;\n        this.updateWordCount();\n        \n       \n        return;\n    }\n    if (action.type =='submit') {\n    \n        var hide = true;\n        if (_this.form.findField('id').getValue() * 1 < 1) {\n            hide = false;\n            _this.form.findField('id').setValue(action.result.data.id);\n        }\n        \n        if (_this.showPreview) {\n            _this.showPreview();\n            _this.showPreview = false;\n            return;\n        }\n        \n        if (!hide) {\n            return;\n        }\n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
-        "|rendered" : "function (form)\n{\n    _this.form= form;\n  \n}\n"
-       },
-       "$ url" : "baseURL + '/Roo/pressrelease_entry.php'",
-       "method" : "POST",
-       "xtype" : "Form",
-       "style" : "margin: 10px;",
-       "$ updateWordCount" : "function() {\n    var wc = 0;\n    \n    function html2wc(val)\n    {\n        var d = document.createElement('div');\n        d.innerHTML =val;\n        return txt2wc(Roo.isIE ? d.innerText : d.textContent);\n    \n    }\n    function txt2wc(val) {\n        return val.split(/\\s+/).length;\n    }\n    \n    wc += html2wc(this.findField('content').getValue());\n    wc += txt2wc(_this.form2.findField('contact_txt').getValue());    \n    wc += txt2wc(_this.form2.findField('content_about').getValue());        \n    wc += txt2wc(_this.form2.findField('content_links').getValue());        \n    wc += txt2wc(_this.form3.findField('content_forward').getValue());        \n    wc += html2wc(_this.form3.findField('content_data').getValue());\n    this.findField('word_count').setValue(wc);\n    \n}\n",
-       "$ xns" : "Roo.form",
-       "items" : [
-        {
-         "xtype" : "FieldSet",
-         "legend" : "Release Details",
-         "labelWidth" : 75,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "xtype" : "Row",
-           "labelWidth" : 240,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "alwaysQuery" : true,
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "fieldLabel" : "This press release is a translation of",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "headline",
-             "emptyText" : "Select Press release",
-             "hiddenName" : "parent_id",
-             "minChars" : 2,
-             "valueField" : "id",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 420,
-             "$ xns" : "Roo.form",
-             "name" : "parent_id_headline",
-             "qtip" : "Select Press release",
-             "queryParam" : "query[name]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>#{id} - {headline}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    var client_id = _this.form.findField('client_id').getValue();\n    if (!client_id) {\n        Roo.MessageBox.alert(\"Error\", \"Select a client first\");\n        return false;\n    }\n    o.params.client_id = client_id;\n    o.params.parent_id = 0; /// only releases that do not have a parent..\n    var id = _this.form.findField('id').getValue();\n    if (id ) {\n        o.params['!id'] = id;\n    }\n    // set more here\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'DESC', field: 'id' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_entry.php'",
-                 "xtype" : "HttpProxy",
-                 "method" : "GET",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"language\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "alwaysQuery" : true,
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "fieldLabel" : " same as (different publish dates)",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "headline",
-             "emptyText" : "Fill this in when this release goes out at a different time",
-             "hiddenName" : "same_as_id",
-             "minChars" : 2,
-             "valueField" : "id",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 420,
-             "$ xns" : "Roo.form",
-             "name" : "same_as_id_headline",
-             "qtip" : "Select Press release",
-             "queryParam" : "query[name]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>#{id} - {headline}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    var client_id = _this.form.findField('client_id').getValue();\n    if (!client_id) {\n        Roo.MessageBox.alert(\"Error\", \"Select a client first\");\n        return false;\n    }\n    o.params.client_id = client_id;\n    o.params.parent_id = 0; /// only releases that do not have a parent..\n    var id = _this.form.findField('id').getValue();\n    if (id ) {\n        o.params['!id'] = id;\n    }\n    // set more here\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'DESC', field: 'id' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_entry.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"language\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 75,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "fieldLabel" : "Status",
-             "displayField" : "fname",
-             "hiddenName" : "publish_status",
-             "valueField" : "ftype",
-             "xtype" : "ComboBox",
-             "allowBlank" : false,
-             "editable" : false,
-             "width" : 200,
-             "$ xns" : "Roo.form",
-             "mode" : "local",
-             "name" : "publish_status_name",
-             "items" : [
-              {
-               "xtype" : "SimpleStore",
-               "$ data" : "[ [-1, \"Draft\"],[ 0 , \"Ready to Distribute\"],[ 1, \"Embargoed\"] ]\n",
-               "$ fields" : "[  'ftype', 'fname']",
-               "$ xns" : "Roo.data",
-               "* prop" : "store"
-              }
-             ]
-            },
-            {
-             "alwaysQuery" : true,
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "fieldLabel" : "Industry",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 150,
-             "displayField" : "hgroup",
-             "minChars" : 2,
-             "valueField" : "hgroup",
-             "xtype" : "ComboBox",
-             "allowBlank" : true,
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 300,
-             "$ xns" : "Roo.form",
-             "name" : "industry_name",
-             "qtip" : "Select industry",
-             "queryParam" : "query[hgroup]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{hgroup}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct']='hgroup';\n    o.params['!hgroup']='';\n    o.params['parent_id_name'] = 'News Beat';\n    o.params['_columns'] = 'hgroup';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'hgroup' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_category.php'",
-                 "xtype" : "HttpProxy",
-                 "method" : "GET",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 75,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "listeners" : {
-              "add" : "function (combo)\n{\n    Pman.Dialog.Companies.show({},\n        function (data) {\n            _this.form.setValues({\n                client_id_name : data.name,\n                client_id : data.id\n            });\n        \n        }\n    );\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "fieldLabel" : "Client",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "name",
-             "emptyText" : "Select Client",
-             "hiddenName" : "client_id",
-             "minChars" : 2,
-             "valueField" : "id",
-             "xtype" : "ComboBox",
-             "allowBlank" : true,
-             "typeAhead" : false,
-             "editable" : true,
-             "width" : 300,
-             "$ xns" : "Roo.form",
-             "name" : "client_id_name",
-             "qtip" : "Select Client",
-             "queryParam" : "query[name]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n     o.params['comptype[0]'] = 'CLIENT';\n   o.params['comptype[1]'] = 'AGENCY';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ field: 'name', direction: 'ASC' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/Companies.php'",
-                 "xtype" : "HttpProxy",
-                 "method" : "GET",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[\n    {\n        'name': 'code',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'tel',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'ava_craft',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'created_dt',\n        'type': 'string'\n    },\n    {\n        'name': 'updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_dt',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    }\n]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "fieldLabel" : "Word count",
-             "xtype" : "NumberField",
-             "readOnly" : true,
-             "width" : 50,
-             "$ xns" : "Roo.form",
-             "name" : "word_count"
-            },
-            {
-             "hideLabels" : true,
-             "xtype" : "Row",
-             "style" : "overflow:hidden",
-             "labelWidth" : 0,
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "items" : [
-              {
-               "value" : 1,
-               "xtype" : "Checkbox",
-               "valueOff" : 0,
-               "boxLabel" : "Distribute To Feed",
-               "width" : 150,
-               "$ xns" : "Roo.form",
-               "name" : "distribute_to_feed"
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 75,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "fieldLabel" : "Language",
-             "displayField" : "title",
-             "hiddenName" : "language",
-             "valueField" : "code",
-             "xtype" : "ComboBox",
-             "allowBlank" : false,
-             "editable" : false,
-             "width" : 200,
-             "$ xns" : "Roo.form",
-             "mode" : "local",
-             "name" : "language_name",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
-             "items" : [
-              {
-               "| data" : "(function() {return typeof(Pman) == 'object'  ? Pman.I18n.simpleStoreData('l') : []})()",
-               "xtype" : "SimpleStore",
-               "$ fields" : "['code', 'title']",
-               "$ xns" : "Roo.data",
-               "* prop" : "store"
-              }
-             ]
-            },
-            {
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "fieldLabel" : "Country",
-             "displayField" : "title",
-             "hiddenName" : "country",
-             "valueField" : "code",
-             "xtype" : "ComboBox",
-             "allowBlank" : false,
-             "editable" : false,
-             "width" : 200,
-             "$ xns" : "Roo.form",
-             "mode" : "local",
-             "name" : "country_name",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
-             "items" : [
-              {
-               "| data" : "(function() {return typeof(Pman) == 'object'  ? Pman.I18n.simpleStoreData('c') : []})()",
-               "xtype" : "SimpleStore",
-               "$ sortInfo" : "{ field : 'title', direction: 'ASC' }",
-               "$ fields" : "['code', 'title']",
-               "$ xns" : "Roo.data",
-               "* prop" : "store"
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 75,
-           "width" : 730,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "format" : "Y-m-d",
-             "fieldLabel" : "Publish",
-             "xtype" : "DateField",
-             "allowBlank" : true,
-             "width" : 100,
-             "$ xns" : "Roo.form",
-             "name" : "publish_dt_day"
-            },
-            {
-             "listWidth" : 80,
-             "triggerAction" : "all",
-             "fieldLabel" : "Time",
-             "displayField" : "hr",
-             "valueField" : "hr",
-             "xtype" : "ComboBox",
-             "allowBlank" : false,
-             "editable" : false,
-             "width" : 60,
-             "$ xns" : "Roo.form",
-             "mode" : "local",
-             "name" : "publish_dt_hr",
-             "items" : [
-              {
-               "| data" : "(function() {\n   var r = [];\n   for (var i =0;i < 24;i++) {\n      r.push( [ i + ':00']);\n      r.push([ i + ':30']);\n   }\n   return r;\n})()",
-               "xtype" : "SimpleStore",
-               "$ fields" : "[  'hr']",
-               "$ xns" : "Roo.data",
-               "* prop" : "store"
-              }
-             ]
-            },
-            {
-             "listWidth" : 500,
-             "triggerAction" : "all",
-             "fieldLabel" : "Timezone",
-             "displayField" : "fname",
-             "hiddenName" : "publish_dt_tz",
-             "valueField" : "ftype",
-             "xtype" : "ComboBox",
-             "allowBlank" : false,
-             "editable" : false,
-             "width" : 280,
-             "$ xns" : "Roo.form",
-             "mode" : "local",
-             "name" : "publish_dt_tz_name",
-             "items" : [
-              {
-               "xtype" : "SimpleStore",
-               "$ data" : "[\n         ['-12.00' ,  '(GMT -12:00) Eniwetok, Kwajalein'],\n         ['-11.00' ,  '(GMT -11:00) Midway Island, Samoa'],\n         ['-10.00' ,  '(GMT -10:00) Hawaii'],\n         ['-9.00' ,  '(GMT -9:00) Alaska'],\n         ['-8.00' ,  '(GMT -8:00) Pacific Time (US & Canada)'],\n         ['-7.00' ,  '(GMT -7:00) Mountain Time (US & Canada)'],\n         ['-6.00' ,  '(GMT -6:00) Central Time (US & Canada), Mexico City'],\n         ['-5.00' ,  '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'],\n         ['-4.00' ,  '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'],\n         ['-3.50' ,  '(GMT -3:30) Newfoundland'],\n         ['-3.00' ,  '(GMT -3:00) Brazil, Buenos Aires, Georgetown'],\n         ['-2.00' ,  '(GMT -2:00) Mid-Atlantic'],\n         ['-1.00' ,  '(GMT -1:00 hour) Azores, Cape Verde Islands'],\n         ['0.00' ,  '(GMT) Western Europe Time, London, Lisbon, Casablanca'],\n         ['1.00' ,  '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris'],\n         ['2.00' ,  '(GMT +2:00) Kaliningrad, South Africa'],\n         ['3.00' ,  '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'],\n         ['3.30' ,  '(GMT +3:30) Tehran'],\n         ['4.00' , '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'],\n         ['4.50' , '(GMT +4:30) Kabul'],\n         ['5.00' , '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'],\n         ['5.30' ,  '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'],\n         ['5.45' ,  '(GMT +5:45) Kathmandu'],\n         ['6.00' ,  '(GMT +6:00) Almaty, Dhaka, Colombo'],\n         ['7.00' ,  '(GMT +7:00) Bangkok, Hanoi, Jakarta'],\n         ['8.00' ,  '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'],\n         ['9.00' ,  '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'],\n         ['9.30' ,  '(GMT +9:30) Adelaide, Darwin'],\n         ['10.00' ,  '(GMT +10:00) Eastern Australia, Guam, Vladivostok'],\n         ['11.00' ,  '(GMT +11:00) Magadan, Solomon Islands, New Caledonia'],\n         ['12.00' ,  '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka']\n        ]\n",
-               "$ fields" : "[  'ftype', 'fname' ]",
-               "$ xns" : "Roo.data",
-               "* prop" : "store"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Column",
-         "width" : 750,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "fieldLabel" : "Headline",
-           "xtype" : "TextField",
-           "allowBlank" : false,
-           "width" : 650,
-           "$ xns" : "Roo.form",
-           "name" : "headline"
-          },
-          {
-           "fieldLabel" : "Sub-Headline",
-           "xtype" : "TextField",
-           "width" : 650,
-           "$ xns" : "Roo.form",
-           "name" : "subheadline"
-          }
-         ]
-        },
-        {
-         "labelAlign" : "top",
-         "xtype" : "Row",
-         "width" : 760,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "listeners" : {
-            "sync" : "function (_self, html)\n{\n    Roo.log('sync');\n    var lab =  this.fieldEl.query('label')[0];\n    var it = this.editorcore.doc.body.innerText || this.editorcore.doc.body.textContent;\n    var n = Math.max(0, it.replace(/^\\s+/, '').replace(/\\s+$/, '').split(/\\s+/).length );\n    \n    lab.innerHTML = 'Content: (' + n + ' Words)';\n    _this.form.updateWordCount();\n}"
-           },
-           "fieldLabel" : "Content",
-           "xtype" : "HtmlEditor",
-           "allowBlank" : false,
-           "$ stylesheets" : "[ \n   rootURL + '/Pman/PressRelease/templates/images/css/press.release.preview.css'\n]",
-           "width" : 750,
-           "$ xns" : "Roo.form",
-           "resizable" : "s",
-           "height" : 230,
-           "name" : "content",
-           "$ cblack" : "[ 'font-size' ]",
-           "items" : [
-            {
-             "xtype" : "ToolbarStandard",
-             "$ xns" : "Roo.form.HtmlEditor",
-             "* prop" : "toolbars[]",
-             "items" : [
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.bodyimgselect = _self;\n}",
-                "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n \n    var id = _this.form.findField('id').getValue() * 1;    \n    if (!id) {\n        Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n        return false;\n    }\n}",
-                "select" : "function (combo, record, index)\n{\n    Roo.log(record);\n    (function() { \n        combo.setValue('');\n    }).defer(100);\n\n    var editor = _this.form.findField('content').editorcore;\n    \n    var curnode = editor.getSelectedNode();\n\n    if (curnode && curnode.tagName == 'IMG') {\n        curnode.src= String.format('{0}/Images/{1}/{2}#image-{1}',\n                baseURL,  record.data.id, record.data.filename\n            );\n            // note -forces an update... hopefully...\n        editor.owner.fireEvent('editorevent', editor, false);\n    } else {\n    \n        editor.insertAtCursor(\n            String.format('<img src=\"{0}/Images/{1}/{2}#image-{1}\">',\n            baseURL,  record.data.id, record.data.filename\n            )\n        );\n\n    }\n    \n}"
-               },
-               "alwaysQuery" : true,
-               "listWidth" : 400,
-               "triggerAction" : "all",
-               "fieldLabel" : "Images",
-               "forceSelection" : true,
-               "selectOnFocus" : true,
-               "pageSize" : 20,
-               "displayField" : "name",
-               "emptyText" : "Select Image",
-               "minChars" : 2,
-               "valueField" : "id",
-               "xtype" : "ComboBox",
-               "typeAhead" : true,
-               "editable" : false,
-               "width" : 100,
-               "$ xns" : "Roo.form",
-               "* prop" : "btns[]",
-               "qtip" : "Select Images",
-               "queryParam" : "search",
-               "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><img src=\"{url_thumb}\" height=\"150\" width=\"150\"><b>{filename}</b> </div>",
-               "loadingText" : "Searching...",
-               "items" : [
-                {
-                 "listeners" : {
-                  "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n\n    var id = _this.form.findField('id').getValue() * 1;    \n    if (!id) {\n        Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n        return false;\n    }\n    o.params.onid = id\n    o.params.ontable = 'pressrelease_entry';\n   // o.params.imgtype = 'PressRelease';\n    o.params['query[imagesize]'] = '150x150';\n    // set more here\n}\n"
-                 },
-                 "xtype" : "Store",
-                 "remoteSort" : true,
-                 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "store",
-                 "items" : [
-                  {
-                   "$ url" : "baseURL + '/Roo/Images.php'",
-                   "xtype" : "HttpProxy",
-                   "method" : "GET",
-                   "$ xns" : "Roo.data",
-                   "* prop" : "proxy"
-                  },
-                  {
-                   "id" : "id",
-                   "root" : "data",
-                   "xtype" : "JsonReader",
-                   "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"filename\",\"type\":\"string\"},{\"name\":\"url_thumb\",\"type\":\"string\"}]",
-                   "$ xns" : "Roo.data",
-                   "* prop" : "reader",
-                   "totalProperty" : "total"
-                  }
-                 ]
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "xtype" : "ToolbarContext",
-             "$ xns" : "Roo.form.HtmlEditor",
-             "* prop" : "toolbars[]"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "distribution_config"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "distribution_countries"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "blacklist_ids"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "project_id"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "parent_id_project_id"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "id"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "background" : true,
-     "region" : "center",
-     "title" : "Company Details",
-     "xtype" : "ContentPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "listeners" : {
-        "|rendered" : "function (form)\n{\n    _this.form2= form;\n}\n"
-       },
-       "$ url" : "baseURL + '/Roo/Companies.php'",
-       "method" : "POST",
-       "style" : "margin:10px;",
-       "xtype" : "Form",
-       "labelWidth" : 80,
-       "$ xns" : "Roo.form",
-       "items" : [
-        {
-         "xtype" : "Row",
-         "labelWidth" : 80,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "fieldLabel" : "Stock Code",
-           "xtype" : "TextField",
-           "width" : 100,
-           "$ xns" : "Roo.form",
-           "name" : "stockcode"
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 110,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "fieldLabel" : " (Chinese) Name",
-             "xtype" : "TextField",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "company_name_alt"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Row",
-         "labelWidth" : 80,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "listWidth" : 400,
-           "triggerAction" : "all",
-           "fieldLabel" : "Exchange",
-           "forceSelection" : true,
-           "selectOnFocus" : true,
-           "pageSize" : 20,
-           "displayField" : "name",
-           "emptyText" : "Select exchange",
-           "hiddenName" : "stock_exchange_id",
-           "minChars" : 2,
-           "valueField" : "id",
-           "xtype" : "ComboBox",
-           "allowBlank" : true,
-           "typeAhead" : true,
-           "editable" : false,
-           "width" : 100,
-           "$ xns" : "Roo.form",
-           "name" : "stock_exchange_id_name",
-           "qtip" : "Select Exchange",
-           "queryParam" : "query[name]",
-           "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-           "loadingText" : "Searching...",
-           "items" : [
-            {
-             "listeners" : {
-              "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype='Exchange';\n}\n"
-             },
-             "xtype" : "Store",
-             "remoteSort" : true,
-             "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
-             "$ xns" : "Roo.data",
-             "* prop" : "store",
-             "items" : [
-              {
-               "$ url" : "baseURL + '/Roo/core_enum.php'",
-               "xtype" : "HttpProxy",
-               "method" : "GET",
-               "$ xns" : "Roo.data",
-               "* prop" : "proxy"
-              },
-              {
-               "id" : "id",
-               "root" : "data",
-               "xtype" : "JsonReader",
-               "$ xns" : "Roo.data",
-               "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
-               "* prop" : "reader",
-               "totalProperty" : "total"
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "Row",
-           "labelWidth" : 70,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "fieldLabel" : "Source",
-             "xtype" : "TextField",
-             "width" : 300,
-             "$ xns" : "Roo.form",
-             "name" : "source_name"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "labelAlign" : "top",
-         "xtype" : "Column",
-         "width" : 800,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "fieldLabel" : "Contacts",
-           "xtype" : "TextArea",
-           "width" : 750,
-           "$ xns" : "Roo.form",
-           "name" : "contact_txt",
-           "height" : 100
-          },
-          {
-           "fieldLabel" : "Company Boiler Plate Statement",
-           "xtype" : "TextArea",
-           "width" : 750,
-           "$ xns" : "Roo.form",
-           "name" : "content_about",
-           "height" : 150
-          },
-          {
-           "fieldLabel" : "Related Web Links <B>Must have http:// before the link</b>",
-           "xtype" : "TextArea",
-           "width" : 750,
-           "$ xns" : "Roo.form",
-           "name" : "content_links",
-           "height" : 100
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "activate" : "function (_self)\n{\n   //console.log('activate');\n   if (_this.hasFinanceWatch) {\n     return;\n   }\n   _this.hasFinanceWatch =true;\n   _this.financeSending =false;\n     window.setInterval( function() {\n        // stops warning in editor..\n        if (!_this.financeForm) {\n            return;\n        }\n        var val = _this.financeForm.findField('imageUpload').getValue();\n        if (!val || !val.length) {\n            return;\n        }\n        \n        if (_this.financeSending) {\n            return;\n        }\n         _this.financeSending =true;\n         \n        _this.financeForm.el.mask(\"Sending\");\n        _this.financeForm.submit.defer(100, _this.financeForm);\n   \n  }, 1000)  \n   \n}"
-     },
-     "region" : "center",
-     "title" : "Financial Data",
-     "xtype" : "NestedLayoutPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "xtype" : "BorderLayout",
-       "$ xns" : "Roo",
-       "* prop" : "layout",
-       "items" : [
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "* prop" : "center"
-        },
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "* prop" : "south",
-         "height" : 40
-        },
-        {
-         "region" : "center",
-         "fitToFrame" : true,
-         "xtype" : "ContentPanel",
-         "fitContainer" : true,
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "listeners" : {
-            "|rendered" : "function (form)\n{\n    _this.form3= form;\n}\n"
-           },
-           "$ url" : "baseURL + '/Roo/pressrelease_entry.php'",
-           "method" : "POST",
-           "xtype" : "Form",
-           "style" : "margin:10px;",
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "labelAlign" : "top",
-             "xtype" : "Row",
-             "$ xns" : "Roo.form",
-             "items" : [
-              {
-               "fieldLabel" : "Forward Looking Statement",
-               "xtype" : "TextArea",
-               "width" : 750,
-               "$ xns" : "Roo.form",
-               "name" : "content_forward",
-               "height" : 150
-              },
-              {
-               "fieldLabel" : "Financial Content",
-               "xtype" : "HtmlEditor",
-               "style" : "font-family: monospace;",
-               "$ stylesheets" : "[ \n   rootURL + '/Pman/PressRelease/templates/images/css/press.release.preview.css'\n  \n]",
-               "width" : 750,
-               "$ xns" : "Roo.form",
-               "resizable" : "s",
-               "name" : "content_data",
-               "height" : 200,
-               "items" : [
-                {
-                 "xtype" : "ToolbarStandard",
-                 "$ xns" : "Roo.form.HtmlEditor",
-                 "* prop" : "toolbars[]"
-                },
-                {
-                 "xtype" : "ToolbarContext",
-                 "$ xns" : "Roo.form.HtmlEditor",
-                 "$ styles" : "{ \n   'TD' :  [ 'underline', 'double-underline' ]\n}",
-                 "* prop" : "toolbars[]"
-                }
-               ]
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "region" : "south",
-         "xtype" : "ContentPanel",
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "listeners" : {
-            "actioncomplete" : "function (_self, action)\n{\n// only action this will handle is submit?\n// should test for errors..\n    if (action.failureType) {\n          _this.financeForm.el.unmask();\n          _this.uploadSending = false;\n        Roo.MessageBox.alert(\"Error\", \"Upload Failed\");\n        return false;\n    \n    }\n      \n    \n    if (action.type =='submit') {\n         _this.financeForm.reset();\n           _this.financeSending = false;\n          _this.financeForm.el.unmask();         \n        _this.form3.findField('content_data').setValue(action.result.data);\n\n         return;\n    }\n     \n}",
-            "rendered" : "function (form)\n{\n  _this.financeForm = form;\n}"
-           },
-           "$ url" : "baseURL + '/PressRelease/ExcelToText.php'",
-           "fileUpload" : true,
-           "style" : "margin: 10px;",
-           "xtype" : "Form",
-           "labelWidth" : 200,
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "xtype" : "Row",
-             "$ xns" : "Roo.form",
-             "items" : [
-              {
-               "inputType" : "file",
-               "fieldLabel" : "Upload Excel of Financial data",
-               "xtype" : "TextField",
-               "allowBlank" : false,
-               "width" : 350,
-               "$ xns" : "Roo.form",
-               "name" : "imageUpload"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "activate" : "function (_self)\n{\n   _this.imagePanel = _self;\n   if (_this.addFromStore) {\n       _this.addFromStore.lastQuery = '~~~~';\n   }\n\n\n   \n   \n//   console.log('activate');\n   if (!_this.loaded) {\n     return;\n   }\n   _this.imageView.el.unmask();\n   if (_this.data.id) {\n       _this.imageView.loadImages();\n   } else {\n      _this.imageView.el.mask(\"Save Press Release First\");\n   }\n   \n   if (_this.hasUploadWatch) {\n     return;\n   }\n    _this.hasUploadWatch =true;\n    _this.uploadSending =false;\n    window.setInterval( function() {\n        // prevent warning in editor..\n        if (!_this.uploadForm) {return; }\n        \n      \n        \n        var val = _this.uploadForm.findField('imageUpload').getValue();\n        if (!val || !val.length) {\n            return;\n        }\n         var id = _this.form.findField('id').getValue() * 1;    \n        if (!id) {\n            Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n           _this.uploadForm.reset();\n            return;\n        }\n        if (_this.uploadSending) {\n            return;\n        }\n         _this.uploadSending =true;\n        _this.uploadForm.findField('onid').setValue(_this.data.id);\n        _this.uploadForm.el.mask(\"Sending\");\n        _this.uploadForm.submit.defer(100, _this.uploadForm);\n   \n  }, 1000)  \n   \n}"
-     },
-     "region" : "center",
-     "title" : "Images / PDF",
-     "xtype" : "NestedLayoutPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "xtype" : "BorderLayout",
-       "$ xns" : "Roo",
-       "* prop" : "layout",
-       "items" : [
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "* prop" : "center"
-        },
-        {
-         "hidden" : true,
-         "xtype" : "LayoutRegion",
-         "width" : 200,
-         "$ xns" : "Roo",
-         "* prop" : "east"
-        },
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "* prop" : "south",
-         "height" : 60
-        },
-        {
-         "autoScroll" : true,
-         "region" : "center",
-         "fitToFrame" : true,
-         "xtype" : "ContentPanel",
-         "fitContainer" : true,
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "xtype" : "Toolbar",
-           "$ xns" : "Roo",
-           "* prop" : "toolbar",
-           "items" : [
-            {
-             "text" : "Add From Image Store",
-             "xtype" : "TextItem",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n    _this.addFromStore = _self;\n}",
-              "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\nvar c = _this.form.findField('client_id').getValue();\n    if (!c) {\n        Roo.MessageBox.alert(\"Error\", \"Select a company first\");\n        return false;\n    }\n    var id = _this.form.findField('id').getValue() * 1;    \n    if (!id) {\n        Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n        return false;\n    }\n}",
-              "select" : "function (combo, record, index)\n{\n    Roo.log(record);\n    new Pman.Request({\n        url: baseURL + '/Roo/Images',\n        method : 'POST',\n        params : {\n            ontable : 'pressrelease_entry',\n            onid : _this.form.findField('id').getValue(),\n            _copy_from : record.data.id\n        }, \n        success : function()\n        {\n            _this.imageView.loadImages();\n        }\n    });   \n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "fieldLabel" : "Images",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "name",
-             "emptyText" : "Select Image",
-             "minChars" : 2,
-             "valueField" : "id",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 300,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Images",
-             "queryParam" : "search",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><img src=\"{url_thumb}\" height=\"150\" width=\"150\"><b>{filename}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    var c = _this.form.findField('client_id').getValue();\n    if (!c) {\n        Roo.MessageBox.alert(\"Error\", \"Select a company first\");\n        return false;\n    }\n    var id = _this.form.findField('id').getValue() * 1;    \n    if (!id) {\n        Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n        return false;\n    }\n    o.params.onid = c;\n    o.params.ontable = 'Companies';\n   // o.params.imgtype = 'PressRelease';\n    o.params['query[imagesize]'] = '150x150';\n    // set more here\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/Images.php'",
-                 "xtype" : "HttpProxy",
-                 "method" : "GET",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"filename\",\"type\":\"string\"},{\"name\":\"url_thumb\",\"type\":\"string\"}]",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "xtype" : "Fill",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n    if (!_this.imageView.getSelectedNodes().length) {\n     Roo.MessageBox.alert(\"Error\", \"Select an Image\");\n     return;\n   }\n   var id  = _this.imageView.getNodeData(_this.imageView.getSelectedNodes()[0]).id;\n   _this.imageView.el.mask('Deleting');\n   \n   Roo.Ajax.request({\n      url : baseURL + '/Roo/Images.php',\n      params : {\n         _delete : id\n      },\n      method : 'POST',\n      success : function() {\n          _this.imageView.loadImages();\n      },\n      failure : function() {\n           _this.imageView.el.unmask();\n           Roo.MessageBox.alert(\"Error\", \"Error deleting image\");\n           return;\n      }\n  });\n }"
-             },
-             "text" : "Delete Selected File or  Image",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "listeners" : {
-            "selectionchange" : "function (_self, selections)\n{\n     \n     var snode = false;\n     if (selections && selections.length) {\n        try {\n           var snode =  _this.imageView.getNodeData(selections[0]);\n        } catch (e) {}\n    }\n     \n    if (!snode) {\n         _this.imagePanel.layout.getRegion('east').hide();\n        return;\n    }\n    _this.imagePanel.layout.getRegion('east').show();    \n \n    _this.imageForm.setValues(snode);\n}",
-            "beforerender" : "function (_self, data)\n{\n   _this.imageView = _self;\n   \n   if (this.stylesheet) {\n      return;\n   }\n   this.el.addClass('thumb-browser');\n\n   \n   this.stylesheet = Roo.util.CSS.createStyleSheet(\n        {\n          '.thumb-browser .thumb-wrap' : {\n                border:'3px solid #EEE',\n                'float':'left',\n                height:'190px',\n                margin:'2px',\n                'padding-left':'5px',\n                'padding-top':'5px',\n                width:'160px'\n            },\n            '.thumb-browser .x-view-selected' : {\n              border:'3px solid #333'\n          \n            },\n            '.thumblabel' : {\n                font: 'normal normal normal 11px/normal tahoma, verdana, helvetica'\n            }\n\n        }, Roo.id()\n        );\n   \n}"
-           },
-           "jsonRoot" : "data",
-           "$ loadImages" : "function() {\n     this.load({\n        url : baseURL + '/Roo/Images.php',\n        method : 'GET',\n        params : {\n           ontable : 'pressrelease_entry',\n           onid : _this.data.id,\n           'query[imagesize]' : '150x150',\n           'query[imageBaseURL]' : rootURL + '/release.php'\n        },\n        text : 'Loading'\n   });\n   \n}\n",
-           "xtype" : "JsonView",
-           "singleSelect" : true,
-           "$ xns" : "Roo",
-           "items" : [
-            {
-             "xtype" : "Template",
-             "$ html" : "'<div class=\"thumb-wrap\"> ' + \n  '<div class=\"thumb\"><img  src=\"{url_thumb}\" class=\"thumb-img\"></div>' + \n  '<div class=\"thumblabel\">{title}<br/>{linkurl}</div>' + \n'</div>'",
-             "$ xns" : "Roo",
-             "* prop" : "tpl"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "region" : "south",
-         "xtype" : "ContentPanel",
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "listeners" : {
-            "actionfailed" : "function (_self, action)\n{\n\n   _this.uploadForm.el.unmask();\n   _this.uploadForm.reset();\n    _this.uploadSending = false;\n    Roo.MessageBox.alert(\"Error\", \"Upload Failed\");\n    _this.imageView.loadImages();\n    \n  \n}",
-            "rendered" : "function (form)\n{\n  _this.uploadForm = form;\n}",
-            "actioncomplete" : "function (_self, action)\n{\n// only action this will handle is submit?\n// should test for errors..\n    if (action.failureType) {\n        _this.uploadForm.el.unmask();\n        _this.uploadSending = false;\n        Roo.MessageBox.alert(\"Error\", \"Upload Failed\");\n        return false;\n    \n    }\n      \n    \n    if (action.type =='submit') {\n         _this.uploadForm.reset();\n           _this.uploadSending = false;\n          _this.uploadForm.el.unmask();         \n          _this.imageView.loadImages();\n         return;\n    }\n     \n}"
-           },
-           "$ url" : "baseURL + '/Roo/Images.php'",
-           "fileUpload" : true,
-           "style" : "margin: 10px;",
-           "xtype" : "Form",
-           "labelWidth" : 200,
-           "$ xns" : "Roo.form",
-           "$ progressUrl" : "baseURL  + '/Core/UploadProgress.php'",
-           "items" : [
-            {
-             "xtype" : "Row",
-             "$ xns" : "Roo.form",
-             "items" : [
-              {
-               "inputType" : "file",
-               "fieldLabel" : "Upload Image or File",
-               "xtype" : "TextField",
-               "allowBlank" : false,
-               "width" : 250,
-               "$ xns" : "Roo.form",
-               "name" : "imageUpload"
-              }
-             ]
-            },
-            {
-             "xtype" : "Hidden",
-             "$ xns" : "Roo.form",
-             "name" : "onid"
-            },
-            {
-             "xtype" : "Hidden",
-             "value" : "pressrelease_entry",
-             "$ xns" : "Roo.form",
-             "name" : "ontable"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "region" : "east",
-         "xtype" : "ContentPanel",
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "listeners" : {
-            "actionfailed" : "function (_self, action)\n{\n        var lr =  _this.imagePanel.layout.getRegion('east');\n        lr.el.unmask();\n   if (action.failureType ==  Roo.form.Action.CLIENT_INVALID) {\n    Roo.MessageBox.alert(\"Error\", \"Correct All the errors in Red\");\n    return;\n   }\n    Roo.MessageBox.alert(\"Error\", \"Problem sending to server\");\n}",
-            "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n\n        return;\n    }\n    if (action.type =='submit') {\n         _this.selectAfterLoad = this.findField('id').getValue();\n           var lr =  _this.imagePanel.layout.getRegion('east');\n        lr.el.unmask();\n        _this.imageView.loadImages();\n         return;\n    }\n}\n",
-            "|rendered" : "function (form)\n{\n    _this.imageForm= form;\n}\n"
-           },
-           "labelAlign" : "top",
-           "$ url" : "baseURL + '/Roo/Images.php'",
-           "style" : "margin:10px;",
-           "method" : "POST",
-           "xtype" : "Form",
-           "$ xns" : "Roo.form",
-           "items" : [
-            {
-             "fieldLabel" : "Title",
-             "xtype" : "TextArea",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "title",
-             "height" : 50
-            },
-            {
-             "fieldLabel" : "Description / Byline",
-             "xtype" : "TextArea",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "descript",
-             "height" : 75
-            },
-            {
-             "alwaysQuery" : true,
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "fieldLabel" : "Image Type",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "name",
-             "emptyText" : "Select type",
-             "minChars" : 2,
-             "valueField" : "name",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "imgtype",
-             "qtip" : "Select Image Type",
-             "queryParam" : "query[name]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n       // set more here\n    o.params.etype=\"Image Types\";\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/core_enum.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "fieldLabel" : "Link",
-             "xtype" : "TextField",
-             "vtype" : "url",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "linkurl"
-            },
-            {
-             "fieldLabel" : "Credit",
-             "xtype" : "TextField",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "credit"
-            },
-            {
-             "fieldLabel" : "Source",
-             "xtype" : "TextField",
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "source"
-            },
-            {
-             "fieldLabel" : "Mimetype",
-             "xtype" : "TextField",
-             "readOnly" : true,
-             "width" : 150,
-             "$ xns" : "Roo.form",
-             "name" : "mimetype"
-            },
-            {
-             "fieldLabel" : "Filesize",
-             "xtype" : "TextField",
-             "readOnly" : true,
-             "width" : 75,
-             "$ xns" : "Roo.form",
-             "name" : "filesize"
-            },
-            {
-             "xtype" : "Hidden",
-             "$ xns" : "Roo.form",
-             "name" : "id"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n\n    var lr =  _this.imagePanel.layout.getRegion('east');\n    lr.el.mask(\"Saving\");\n   _this.imageForm.submit();\n}"
-             },
-             "text" : "Update Image Details",
-             "xtype" : "Button",
-             "$ xns" : "Roo"
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "activate" : "function (_self)\n{\n    \n    _this.distributionTab = _self;\n    \n    if (!_this.countrypanel) {\n        return;\n    }\n    \n    if (_this.form.findField('parent_id').getValue() * 1 > 0) {\n        _self.el.mask(\"Distribution is done on Original Language version\");\n        return;\n    \n    \n    }\n    _self.el.unmask();\n    \n    \n    _this.countrypanel.tree.root.reload(function() {\n        _this.countrypanel.tree.expandAll();\n        _this.countrypanel.tree.onloadComplete(function() {\n\n        \n            //Roo.log(\"load Complete\");\n               _this.beatgrid.ds.load({});\n                _this.countrypanel.tree.collapseUnchecked();               \n             // _this.distSummary.refreshContent();\n        });\n    });\n        \n     return;\n//    _this.distpanel = _self;\n    var parent_id = _this.form.findField('parent_id').getValue(); \n    if (parent_id * 1 > 0) {\n        _self.el.mask(\"This is a translation of #\" + parent_id + \" - set up the distribution on that release\");\n        return;\n    } \n      _self.el.unmask();\n   // _this.beatgrid.ds.load({});\n   _this.countrygrid.ds.block_next_load = false;\n   _this.countrygrid.ds.load({});\n\n}"
-     },
-     "background" : true,
-     "region" : "center",
-     "title" : "Distribution",
-     "xtype" : "NestedLayoutPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "xtype" : "Fill",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n \n    _this.form.findField('distribution_countries').setValue('_generalnews');\n    _this.form.findField('distribution_config').setValue( ''); \n     _this.countrypanel.tree.root.reload(function() {\n        _this.countrypanel.tree.expandAll();\n        _this.countrypanel.tree.onloadComplete(function() {\n            //Roo.log(\"load Complete\");\n               _this.beatgrid.ds.load({});\n             // _this.distSummary.refreshContent();\n        });\n    });\n    \n}"
-         },
-         "text" : "Reset selections",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "xtype" : "BorderLayout",
-       "$ xns" : "Roo",
-       "* prop" : "layout",
-       "items" : [
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "width" : 350,
-         "* prop" : "west",
-         "titlebar" : true
-        },
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "* prop" : "center",
-         "titlebar" : true
-        },
-        {
-         "xtype" : "LayoutRegion",
-         "$ xns" : "Roo",
-         "split" : true,
-         "* prop" : "south",
-         "height" : 100
-        },
-        {
-         "listeners" : {
-          "activate" : "function (_self)\n{\n    _this.distSummary = _self;\n}"
-         },
-         "$ refreshContent" : "function() {\n    // display a summary of what we need..\n    \n    \n    function tr(k,v,vv) {\n        vv = vv || '';\n        return String.format('<tr><td style=\"text-align:right;width: 150px;\"><b>{0}</b>: </td>' + \n            '<td style=\"white-space: normal;\">'+vv+'{1}</td></tr>' + \"\\n\", k, v === false ? '' : v);\n    }\n    \n    var beats = [];\n    _this.beatgrid.ds.each(function(r) {\n        \n        if (r.data.member*1 < 1 ) {\n            return;\n        }\n        var n = (r.data.hgroup.length ? r.data.hgroup + ' : ' : '') + r.data.name; \n        beats.push(n);\n    });\n    var rt = {};\n    \n    var total = '???';\n    var cns_ar = _this.countrypanel.tree.getChecked('name');\n\n    // remove general..\n    var has_gen = false;\n    cns_ar = cns_ar.filter(function(e, i, a) {\n        if (e == 'General News') {\n            has_gen = true;\n            return false;\n        }\n        return true;\n    });\n    this.setContent(\"Loading....\");\n    var _t = this;\n    new Pman.Request({\n        url : baseURL+ '/Roo/Pressrelease_contact',\n        method : 'GET',\n        params : {\n            limit : 1,\n            'distfilter[beats]' : _this.form.findField('distribution_config').getValue(),\n            'distfilter[countries]' : _this.form.findField('distribution_countries').getValue()\n            \n        },\n        success : function(r) {\n           // Roo.log(r);\n            _t.setContent(\n                '<h3>Press release will be distributed to ' + r.total + ' Journalist' + ( r.total == 1 ? '' : 's') + ':</h3>' + \n                '<table class=\"x-grid-row\" style=\"width:100%\">' + \n                    tr(\"General Distribution\", false, has_gen ? 'YES' : '<span style=\"color:red\">NO</span>') +  \n                    tr(\"News Beats\",beats.join(', ')) + \n                    tr(\"Countries\", cns_ar.join(', '))  + \n                \"</table>\");\n        }\n    });\n                \n}\n",
-         "autoScroll" : true,
-         "region" : "south",
-         "fitToFrame" : true,
-         "xtype" : "ContentPanel",
-         "$ xns" : "Roo"
-        },
-        {
-         "listeners" : {
-          "render" : "function (_self)\n{\n   _this.countrypanel = this;\n    \n}"
-         },
-         "region" : "west",
-         "xtype" : "TreePanel",
-         "$ xns" : "Roo",
-         "items" : [
-          {
-           "listeners" : {
-            "checkchange" : "function (node, checked)\n{\n    var t= this;\n    this.onloadComplete(function() {\n            _this.form.findField('distribution_countries').setValue(t.getChecked('id').join(','));\n         // _this.distSummary.refreshContent();\n           _this.beatgrid.ds.load({});\n    });\n    return;\n     \n     \n        \n}",
-            "click" : "function (node, e)\n{\n        if (node.ui.checkbox) {\n           node.ui.checkbox.checked = !node.ui.checkbox.checked;\n           node.ui.onCheckChange();\n       }\n}"
-           },
-           "$ isNodeLoaded" : "function(node) {\n    if (node.leaf) {\n        return true;\n    }\n    if (!node.loaded) {\n        return false;\n    }\n    var ret = true;\n    var t = this;\n    node.eachChild(function(n) {\n        if (!t.isNodeLoaded(n)) {\n            ret = false;\n            return false;\n        }\n    });\n    return ret;\n\n}\n",
-           "xtype" : "TreePanel",
-           "$ collapseUnchecked" : "function() {\n\n    var r = this.root;\n    \n    function closeNode  (n) {\n        if (n.leaf) { // do not look a leaves.\n            return false;\n        }\n        // do children first.\n        var chk = 0;\n        n.eachChild(function(nn) {\n            if (!nn.leaf) {\n                closeNode(nn);\n                // if they have leaf's keep them expanded\n                //if (nn.expanded) {\n                    chk++;\n                //}\n                return;\n            }\n\n            if (nn.attributes.checked) {\n                chk++;\n            }\n            \n        });\n        if (chk > 0) { // something is checked or expanded.\n            return;\n        }\n        if (n != r) {\n            n.collapse(false, false);\n        }\n\n    \n    }\n\n    closeNode(this.root);\n}\n",
-           "rootVisible" : false,
-           "$ xns" : "Roo.tree",
-           "* prop" : "tree",
-           "$ onloadComplete" : "function(fn) {\n   \n\n\n     var t = this;\n        // loop through all nodes and check if loaded  == true?\n\n    if (!this.isNodeLoaded(this.root)) {\n        this.onloadComplete.defer(500, this, [ fn ], false);\n        return;\n    }\n    fn.call(this);\n    \n    \n}\n",
-           "items" : [
-            {
-             "listeners" : {
-              "load" : "function (This, node, response)\n{\n  //  _this.beatgrid.ds.load({});\n}",
-              "create" : "function (This, attr)\n{\n   //Roo.log(attr);\n  // attr.text = \"set in create handler\";\n  \n  var v = _this.form.findField('distribution_countries').getValue();\n  if (!v.length) {\n       v = '_generalnews';\n       _this.form.findField('distribution_countries').setValue(v);\n\n  }\n  var x = v.split(',');\n //Roo.log(x);\n  \n   attr.checked = x.indexOf(attr.id) > -1 ; // read from cfg..\n}"
-             },
-             "$ baseParams" : " { _tree: 1, limit: 9999, sort: 'cname', dir : 'ASC'  }",
-             "root" : "data",
-             "xtype" : "TreeLoader",
-             "requestMethod" : "GET",
-             "$ xns" : "Roo.tree",
-             "* prop" : "loader",
-             "$ dataUrl" : " baseURL + '/Roo/Pressrelease_regionmap.php'"
-            },
-            {
-             "id" : "_root",
-             "text" : "International",
-             "xtype" : "AsyncTreeNode",
-             "$ xns" : "Roo.tree",
-             "* prop" : "root",
-             "checked" : false
-            },
-            {
-             "listeners" : {
-              "beforeselect" : "function (_self, node, node)\n{\n  return false;\n}"
-             },
-             "xtype" : "DefaultSelectionModel",
-             "$ xns" : "Roo.tree",
-             "* prop" : "sm"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "|activate" : "function() {\n    \n    if (_this.beatgrid) {\n        //_this.grid.ds.load({});\n    }\n}"
-         },
-         "fitToframe" : true,
-         "background" : false,
-         "region" : "center",
-         "title" : "Beat",
-         "xtype" : "GridPanel",
-         "fitContainer" : true,
-         "$ xns" : "Roo",
-         "tableName" : "pressrelease_category",
-         "items" : [
-          {
-           "listeners" : {
-            "|render" : "function() \n{\n    _this.beatgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    // if (_this.panel.active) {\n    //   this.ds.load({});\n    // }\n}",
-            "cellclick" : "function (_self, ri, ci , e)\n{\n   if (ci != 1) {return; }\n   \n    var rec = this.ds.getAt(ri);\n    rec.set('member', (rec.data.member * 1) ? 0 : 1);\n    rec.commit();\n\n    \n    var cfg = [];\n    \n    _this.beatgrid.ds.each(function(r) {\n        if (r.data.member*1 < 1) {\n            return;\n        }\n        cfg.push(r.data.id);\n    });\n\n    _this.form.findField('distribution_config').setValue( cfg.join(','));\n\n  //  _this.typegrid.ds.load({});\n\n     _this.distSummary.refreshContent();\n\n   //_this.countrygrid.ds.load({});\n}",
-            "rowclass" : "function (gridview, rowcfg)\n{\n     //Roo.log(rowcfg);\n     // determine if we need to show it..\n     var val=_this.beatfilter.getValue().toLowerCase();\n     rowcfg.rowClass= '';\n     if (!val.length) {\n        return; // always show..\n     }\n     var match = false;\n     var hg = rowcfg.record.data.hgroup.toLowerCase();\n     var n = rowcfg.record.data.name.toLowerCase();     \n     var re = new RegExp(val);\n     \n     if (hg.match(re) || n.match(re)) {\n        return; // display it..\n     }\n     //Roo.log('display none');\n     if (rowcfg.record.data.member * 1 > 0) {\n       // return;\n     }\n     rowcfg.rowClass = 'display-none';\n     \n     \n}"
-           },
-           "autoExpandColumn" : "name",
-           "xtype" : "Grid",
-           "loadMask" : true,
-           "$ xns" : "Roo.grid",
-           "* prop" : "grid",
-           "items" : [
-            {
-             "xtype" : "Toolbar",
-             "$ xns" : "Roo",
-             "* prop" : "toolbar",
-             "items" : [
-              {
-               "listeners" : {
-                "keyup" : "function (_self, e)\n{\n       _this.beatgrid.view.refresh(true);\n    \n\n}",
-                "render" : "function (_self)\n{\n  _this.beatfilter = _self;\n}"
-               },
-               "xtype" : "TextField",
-               "width" : 100,
-               "$ xns" : "Roo.form"
-              },
-              {
-               "listeners" : {
-                "|click" : "function (_self, e)\n{\n    _this.beatfilter.setValue('');\n     _this.beatgrid.view.refresh(true);\n    \n}"
-               },
-               "xtype" : "Button",
-               "cls" : "x-btn-icon",
-               "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "xtype" : "Fill",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "click" : "function (_self, e)\n{\n    \n    \n    _this.beatgrid.ds.each(function(rec) {\n            rec.set('member', 0);\n            rec.commit();\n           \n    \n\n    });\n\n}"
-               },
-               "text" : "Reset",
-               "xtype" : "Button",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "click" : "function (_self, e)\n{\n    \n     // determine if we need to show it..\n     var val =_this.beatfilter.getValue().toLowerCase();\n     var re = false;\n     if (val.length) {\n         re = new RegExp(val);\n        \n     }\n     \n    \n    \n    _this.beatgrid.ds.each(function(rec) {\n        if (!re) {        \n            rec.set('member',  1);\n            rec.commit();\n            return;\n        }\n         var hg = rec.data.hgroup.toLowerCase();\n         var n = rec.data.name.toLowerCase();\n          if (!hg.match(re) && !n.match(re)) {\n            return; // do not select it..\n         }\n    \n          rec.set('member',  1);\n        rec.commit();\n           \n    \n\n    });\n\n}"
-               },
-               "text" : "Select All",
-               "xtype" : "Button",
-               "$ xns" : "Roo.Toolbar"
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "beforeload" : "function (_self, options)\n{\n    if (!_this.form.findField('distribution_countries').getValue().length) {\n        this.beatgrid.ds.removeAll();\n    \n        return false;\n    }\n    options.params =     options.params || {};\n    options.params.parent_id_name = 'News Beat';\n  //  options.params.for_beat = 1;\n  //  options.params.contact_id = _this.data ? _this.data.id : 0;\n    options.params['query[with_empty_member]'] = 1; // this sets member=0 (blank list..)\n    \n    options.params['query[hide_empty_member]'] = 1;\n    \n    options.params['query[only_countries_tree]'] = _this.form.findField('distribution_countries').getValue();\n  \n    options.params.limit = 999;\n}",
-              "load" : "function (_self, records, options)\n{\n    var fdef = _this.form.findField('distribution_config')\n    // beat list is loaded..\n    // if there are no data.. we should clear the distribution config..\n    if (!records.length) {\n       \n        fdef.setValue('');\n         _this.distSummary.refreshContent();\n       // _this.typegrid.ds.load({});\n       return;\n    }\n    \n    \n    // otherwise, grab the first item.. find the parent id..\n    // filter that list to make sure that nothing that is selected is hidden...\n    \n   \n    var def = fdef.getValue();    \n\n    if (def.length) {\n\n        var crecs = def.split(',');\n        \n        // crecs holds our current config...\n        \n        var avail = [];\n        \n        Roo.each(records, function(r) {\n        \n            if ( crecs.indexOf(''+r.data.id) > -1) {\n                r.set('member', 1);\n            }\n            avail.push(''+r.data.id);\n            \n        });\n        \n        // now clear out from crecs all the \n        var crec_new = [];\n        Roo.each(crecs, function(r) {\n            if (avail.indexOf(r) > -1) {\n                crec_new.push(r);\n            }\n        });\n      \n        fdef.setValue( crec_new.join(','));\n        \n        \n    }\n        // update the summary\n_this.distSummary.refreshContent();\n\n   //  _this.typegrid.ds.load({});\n}"
-             },
-             "xtype" : "Store",
-             "remoteSort" : true,
-             "$ sortInfo" : "{ field : 'hgroup,name', direction: 'ASC' }",
-             "$ xns" : "Roo.data",
-             "* prop" : "dataSource",
-             "items" : [
-              {
-               "$ url" : "baseURL + '/Roo/pressrelease_category.php'",
-               "xtype" : "HttpProxy",
-               "method" : "GET",
-               "$ xns" : "Roo.data",
-               "* prop" : "proxy"
-              },
-              {
-               "id" : "id",
-               "root" : "data",
-               "xtype" : "JsonReader",
-               "$ xns" : "Roo.data",
-               "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'visible',\n        'type': 'int'\n    }\n]",
-               "* prop" : "reader",
-               "totalProperty" : "total"
-              }
-             ]
-            },
-            {
-             "xtype" : "ColumnModel",
-             "width" : 200,
-             "header" : "News Beat",
-             "$ renderer" : "function(v,x,r) { return String.format('{0}', (r.data.hgroup ? r.data.hgroup + ' : ' : '') + v); }",
-             "$ xns" : "Roo.grid",
-             "* prop" : "colModel[]",
-             "dataIndex" : "name"
-            },
-            {
-             "xtype" : "ColumnModel",
-             "width" : 75,
-             "header" : "Select",
-             "$ renderer" : "function(v) {  \n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
-             "$ xns" : "Roo.grid",
-             "* prop" : "colModel[]",
-             "dataIndex" : "member"
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "|activate" : "function() {\n    _this.circpanel = this;\n    if (_this.circvtype) {\n        _this.circvtype.setValue('FAILED');\n    }\n    if (_this.circgrid) {\n        _this.circgrid.footer.onClick('first');\n    }\n}"
-     },
-     "fitToframe" : true,
-     "background" : true,
-     "region" : "center",
-     "title" : "Circulation",
-     "xtype" : "GridPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo",
-     "tableName" : "pressrelease_notify",
-     "items" : [
-      {
-       "listeners" : {
-        "rowdblclick" : "function (_self, rowIndex, e)\n{\n    var rec = this.ds.getAt(rowIndex);\n    var g= this;\n    Pman.Dialog.PressReleaseContact.show({ id : rec.data.person_id }, function()\n    {\n        g.footer.onClick('first');\n    });\n}",
-        "|render" : "function() \n{\n    _this.circgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.circpanel.active) {\n       this.footer.onClick('first');\n    }\n}"
-       },
-       "autoExpandColumn" : "person_id_firstname",
-       "xtype" : "Grid",
-       "loadMask" : true,
-       "$ xns" : "Roo.grid",
-       "* prop" : "grid",
-       "items" : [
-        {
-         "xtype" : "Toolbar",
-         "$ xns" : "Roo",
-         "* prop" : "toolbar",
-         "items" : [
-          {
-           "text" : "Show: ",
-           "xtype" : "TextItem",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "specialkey" : "function (_self, e)\n{\n\n    if (e.getCharCode() == 13) {\n        _this.circgrid.footer.onClick('first');\n    }\n}",
-            "render" : "function (_self)\n{\n  _this.searchBox = _self;\n}"
-           },
-           "xtype" : "TextField",
-           "$ xns" : "Roo.form"
-          },
-          {
-           "listeners" : {
-            "render" : "function (_self)\n{\n  _this.circvtype = _self;\n}",
-            "beforeselect" : "function (combo, record, index)\n{\n    (function() {\n        _this.circgrid.footer.onClick('first');\n    }).defer(100);\n}"
-           },
-           "listWidth" : 200,
-           "triggerAction" : "all",
-           "displayField" : "fname",
-           "hiddenName" : "vtype",
-           "value" : "FAILED",
-           "valueField" : "ftype",
-           "xtype" : "ComboBox",
-           "allowBlank" : false,
-           "editable" : false,
-           "width" : 200,
-           "$ xns" : "Roo.form",
-           "mode" : "local",
-           "name" : "vtype_name",
-           "items" : [
-            {
-             "xtype" : "SimpleStore",
-             "$ data" : "[ ['FAILED', \"Failed\"],[ 'DELIVERED' , \"Delivered\"],[ 'PENDING', \"Pending\"],[ 'ONLINE', \"ONLINE\"] ]\n",
-             "$ fields" : "[  'ftype', 'fname']",
-             "$ xns" : "Roo.data",
-             "* prop" : "store"
-            }
-           ]
-          },
-          {
-           "listeners" : {
-            "|click" : "function (_self, e)\n{\n_this.circgrid.footer.onClick('first');\n}"
-           },
-           "xtype" : "Button",
-           "cls" : "x-btn-icon",
-           "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "|click" : "function (_self, e)\n{\n    _this.searchBox.setValue('');\n    \n    \n    _this.circgrid.footer.onClick('first');\n}"
-           },
-           "xtype" : "Button",
-           "cls" : "x-btn-icon",
-           "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "xtype" : "Fill",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n    var id = _this.form.findField('id').getValue()*1\n    if (id < 1) {\n        Roo.MessageBox.alert(\"Error\", \"Save Release first\");\n        return;\n    }\n\n    new Pman.Request({\n        url : baseURL + '/PressRelease/View/' + id,\n        params : {\n            reset : 1\n        },\n        method : 'POST',\n        success : function() \n        {\n            _this.circgrid.footer.onClick('first');\n        } \n    \n    });\n}"
-           },
-           "text" : "Remove undelivered messages",
-           "xtype" : "Button",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n    var id = _this.form.findField('id').getValue()*1\n    if (id < 1) {\n        Roo.MessageBox.alert(\"Error\", \"Save Release first\");\n        return;\n    }\n    var s = _this.circgrid.getSelectionModel().getSelections();\n    if (!s || !s.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select item to re-deliver\");\n        return;\n    }\n     \n\n    new Pman.Request({\n        url : baseURL + '/PressRelease/View/' + id,\n        params : {\n            redeliver : s[0].data.id\n        },\n        method : 'POST',\n        success : function() \n        {\n            _this.circgrid.footer.onClick('first');\n        } \n    \n    });\n}"
-           },
-           "text" : "Force Re-delivery",
-           "xtype" : "Button",
-           "$ xns" : "Roo.Toolbar"
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "beforeload" : "function (_self, o)\n{\n  o.params = o.params || {};\n  o.params.ontable = 'pressrelease_entry';\n  o.params.onid = _this.form.findField('id').getValue();\n  if ( ! o.params.onid) {\n     return false;\n  \n  }\n  o.params['search[remarks]'] = _this.searchBox.getValue();\n  \n  o.params.vtype = _this.circvtype.getValue();\n  \n}"
-         },
-         "xtype" : "Store",
-         "remoteSort" : true,
-         "$ sortInfo" : "{ field : 'ontable', direction: 'ASC' }",
-         "$ xns" : "Roo.data",
-         "* prop" : "dataSource",
-         "items" : [
-          {
-           "$ url" : "baseURL + '/Roo/pressrelease_notify.php'",
-           "xtype" : "HttpProxy",
-           "method" : "GET",
-           "$ xns" : "Roo.data",
-           "* prop" : "proxy"
-          },
-          {
-           "id" : "id",
-           "root" : "data",
-           "xtype" : "JsonReader",
-           "$ xns" : "Roo.data",
-           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'act_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'onid',\n        'type': 'int'\n    },\n    {\n        'name': 'ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'msgid',\n        'type': 'string'\n    },\n    {\n        'name': 'sent',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'bounced',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_honor',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_scope_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_contact_language',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_contact_language_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_country',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_method',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_from',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_to',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_days',\n        'type': 'string'\n    }\n]",
-           "* prop" : "reader",
-           "totalProperty" : "total"
-          }
-         ]
-        },
-        {
-         "pageSize" : 25,
-         "xtype" : "PagingToolbar",
-         "emptyMsg" : "No pressrelease_notify found",
-         "$ xns" : "Roo",
-         "displayInfo" : true,
-         "displayMsg" : "Displaying pressrelease_notify{0} - {1} of {2}",
-         "* prop" : "footer",
-         "items" : [
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n \n     new Pman.Download({\n          grid : _this.circgrid\n    });\n   Roo.MessageBox.alert(\"Downloading\", \"File should be downloading now\");\n\n}"
-           },
-           "xtype" : "Button",
-           "String text" : "Download",
-           "$ xns" : "Roo.Toolbar"
-          }
-         ]
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 50,
-         "header" : "Ref#",
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "id"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 50,
-         "header" : "Type",
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "evtype"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "Due out (Local time)",
-         "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "act_when"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "To",
-         "$ renderer" : "function(v,x,r) { \n\n    if (r.data.person_id < 0) {\n        return String.format('{0} <a qtip=\"{1}\" href=\"mailto:{1}\">{1}</a>>', \n            r.data.firstname, r.data.to_email); \n    \n    }\n    \n    if (!Pman.hasPerm('PressRelease.JournalistAll', 'S')) {\n        return String.format('{0} {1} ({2})', \n                v, r.data.person_id_lastname, r.data.person_id_publication_name\n        );     \n    }\n\n    return String.format('<a qtip=\"{3}\" href=\"mailto:{3}\">{0} {1}</a> ({2})', \n        v, r.data.person_id_lastname,  r.data.person_id_publication_name,\n         r.json['person_id_' + r.data.field]); \n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "person_id_firstname"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "Sent",
-         "$ renderer" : "function(v,x,r) \n{ \n    var prefix = '';\n    if (r.data.person_id < 0) {\n        prefix = 'MANUAL SEND: ';\n    \n    }\n\n   if (!r.data.event_id) {\n        return prefix + 'not sent yet';\n   }\n   \n    return String.format(prefix + '{0}', v ? v.format('d/M/Y H:i:s') : ''); \n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "sent"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "Status",
-         "$ renderer" : "function(v) { \n     \n    return String.format('<span qtip=\"{1}\">{0}</span>', v,String.format('{0}', v)); \n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "event_id_remarks"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-     },
-     "fitToframe" : true,
-     "background" : true,
-     "region" : "center",
-     "title" : "Log",
-     "xtype" : "GridPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo",
-     "tableName" : "Events",
-     "items" : [
-      {
-       "listeners" : {
-        "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
-        "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-       },
-       "autoExpandColumn" : "remarks",
-       "xtype" : "Grid",
-       "loadMask" : true,
-       "$ xns" : "Roo.grid",
-       "* prop" : "grid",
-       "items" : [
-        {
-         "listeners" : {
-          "beforeload" : "function (_self, o)\n{\n    if (!_this.data || !_this.data.id) {\n        return false;\n    }\n    o.params.on_table = 'pressrelease_entry';\n    o.params.on_id = _this.data.id;\n    \n}"
-         },
-         "xtype" : "Store",
-         "remoteSort" : true,
-         "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
-         "$ xns" : "Roo.data",
-         "* prop" : "dataSource",
-         "items" : [
-          {
-           "$ url" : "baseURL + '/Roo/Events.php'",
-           "xtype" : "HttpProxy",
-           "method" : "GET",
-           "$ xns" : "Roo.data",
-           "* prop" : "proxy"
-          },
-          {
-           "id" : "id",
-           "root" : "data",
-           "xtype" : "JsonReader",
-           "$ xns" : "Roo.data",
-           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_name',\n        'type': 'string'\n    },\n    {\n        'name': 'event_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'action',\n        'type': 'string'\n    },\n    {\n        'name': 'ipaddr',\n        'type': 'string'\n    },\n    {\n        'name': 'on_id',\n        'type': 'int'\n    },\n    {\n        'name': 'on_table',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_dt',\n        'type': 'date'\n    }\n]",
-           "* prop" : "reader",
-           "totalProperty" : "total"
-          }
-         ]
-        },
-        {
-         "pageSize" : 25,
-         "xtype" : "PagingToolbar",
-         "emptyMsg" : "No Events found",
-         "$ xns" : "Roo",
-         "displayInfo" : true,
-         "displayMsg" : "Displaying Events{0} - {1} of {2}",
-         "* prop" : "footer"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "When",
-         "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "event_when"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 100,
-         "header" : "Who",
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "person_id_name"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 75,
-         "header" : "Action",
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "action"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 200,
-         "header" : "Remarks",
-         "$ renderer" : "function(v) { return String.format('<span qtip=\"{0}\">{1}</span>', \n    Roo.util.Format.htmlEncode(v),v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "remarks"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "activate" : "function (_self)\n{\n    _this.treepanel.el.mask('Before you add a keyword, please publish release first');\n    \n    _this.treepanel.tree.getRootNode().reload(function() {\n        _this.treepanel.tree.getRootNode().expand(true,true);\n    });\n    \n    if(_this.form.findField('project_id').getValue()*1 > 0 || \n       _this.form.findField('parent_id_project_id').getValue()*1 > 0){\n        _this.treepanel.el.unmask();\n    }\n    \n    \n}",
-      "render" : "function (_self)\n{\n  _this.treepanel = _self;\n}"
-     },
-     "region" : "center",
-     "title" : "Keywords",
-     "xtype" : "TreePanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "text" : "Add",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar",
-         "items" : [
-          {
-           "xtype" : "Menu",
-           "$ xns" : "Roo.menu",
-           "* prop" : "menu",
-           "items" : [
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n    if(!_this.form.findField('project_id').getValue()*1 && !_this.form.findField('parent_id_project_id').getValue()*1){\n        Roo.MessageBox.alert('Error', 'Please publish release first');\n        return;\n    }\n    var sn  = _this.treepanel.tree.getSelectionModel().getSelectedNode();\n    if(!sn || sn.leaf || sn.id == 'keyword'){\n        sn = 0;\n    }\n    Pman.Dialog.ClippingKeyword.show({\n            project_id: (_this.form.findField('project_id').getValue()) ? _this.form.findField('project_id').getValue() : _this.form.findField('parent_id_project_id').getValue(),\n            language: _this.form.findField('language').getValue(),\n            is_keyword : 1,\n            parent_id: sn ? sn.id : 0\n        },\n        function () {\n            (sn || _this.treepanel.tree.getRootNode()).reload(); \n    });\n}"
-             },
-             "text" : "Add Keyword",
-             "xtype" : "Item",
-             "$ xns" : "Roo.menu"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n    //var sn  = _this.treepanel.tree.getSelectionModel().getSelectedNode();\n    if(!_this.form.findField('project_id').getValue()*1 && !_this.form.findField('parent_id_project_id').getValue()*1){\n        Roo.MessageBox.alert('Error', 'Please publish release first');\n        return;\n    }\n    Pman.Dialog.ClippingKeywordGroup.show({\n        project_id: (_this.form.findField('project_id').getValue()) ? _this.form.findField('project_id').getValue() : _this.form.findField('parent_id_project_id').getValue(),\n        language: _this.form.findField('language').getValue(),\n        parent_id: 0\n    },\n    function () {\n        _this.treepanel.tree.getRootNode().reload();\n    });\n}"
-             },
-             "text" : "Add Group",
-             "xtype" : "Item",
-             "$ xns" : "Roo.menu"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n    if(!_this.form.findField('project_id').getValue()*1){\n        Roo.MessageBox.alert('Error', 'Please publish release first');\n        return;\n    }\n    var tree = _this.treepanel.tree;\n    var sn  = tree.getSelectionModel().getSelectedNode();\n    if (!sn || isNaN(sn.id *1)) {\n        Roo.MessageBox.alert(\"Error\", \"Select a keyword\");\n        return;\n    }\n    Roo.MessageBox.confirm(\"Confirm\", \"Are sure you want to delete the keyword?\", function (v){\n        if (v != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Clipping_keywords',\n            method: 'POST',\n            params : {\n                _delete : sn.id\n            },\n            success : function()\n            {\n               //_this.treepanel.tree.getRootNode().reload();\n               sn.parentNode.removeChild(sn);\n               \n                //g.getDataSource().reload();\n            }\n        });\n    });\n}"
-         },
-         "text" : "Delete",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "text" : "Upload",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n    if(!_this.form.findField('project_id').getValue()*1){\n        Roo.MessageBox.alert('Error', 'Please publish release first');\n        return;\n    }\n    _this.treepanel.tree.getRootNode().reload();\n}"
-         },
-         "text" : "Reload",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "beforenodedrop" : "function (dropEvent)\n{\n    Roo.log(dropEvent);\n    Roo.log(dropEvent.target);\n    \n    \n    var target_parent = dropEvent.point ==  'append' ? \n            dropEvent.target : dropEvent.target.parentNode;\n            \n    // same parent\n    Roo.log(target_parent);\n    if (target_parent.id == dropEvent.data.node.parentNode.id) {\n         dropEvent.cancel = true;\n         return;\n    }\n    \n    \n    var tree = this;\n    if(!target_parent.leaf){\n        // parent is not a 'keyword'\n        // make sure we are dragging a keyword\n        if(dropEvent.data.node.leaf){\n            new Pman.Request({\n                url : baseURL + '/Roo/Clipping_keywords',\n                method: 'POST',\n                params : {\n                    parent_id : target_parent.id == 'keyword' ? 0 : target_parent.id,\n                    id : dropEvent.data.node.id\n                },\n                success : function()\n                {\n                    //_this.treepanel.tree.getRootNode().reload();\n                    //g.getDataSource().reload();\n                },\n                failure : function(){\n                    Roo.MessageBox.alert(\"Error\", \"problem saving change, please try again\");\n                    _this.treepanel.tree.getRootNode().reload();\n                }\n            });\n        }else{\n            dropEvent.cancel = true;\n        }\n    }else{\n        dropEvent.cancel = true;\n        Roo.MessageBox.confirm(\"Confirm\", \"Do you want to add this to alternatives?\", function (v){\n            if (v != 'yes') {\n               // _this.treepanel.tree.getRootNode().reload();\n                return;\n            }\n\n            var alt = dropEvent.target.attributes.alternatives;\n            alt = alt || '';\n            alt += (alt && alt.length) ? \"\\n\" : '';\n            alt += dropEvent.data.node.text;\n             dropEvent.target.attributes.alternatives = alt;\n             \n             dropEvent.data.node.parentNode.removeChild(dropEvent.data.node);\n             // update the tip..\n             dropEvent.target.ui.textNode.setAttribute('qtip', tree.rendererTip(dropEvent.target.attributes));\n             \n            new Pman.Request({\n                url : baseURL + '/Roo/Clipping_keywords',\n                method: 'POST',\n                params : {\n                    id : dropEvent.target.id,\n                    alternatives : alt\n                },\n                success : function()\n                {\n                    new Pman.Request({\n                        url : baseURL + '/Roo/Clipping_keywords',\n                        method: 'POST',\n                        params : {\n                            _delete : dropEvent.data.node.id\n                        },\n                        success : function()\n                        {\n                          // _this.treepanel.tree.getRootNode().reload();\n                            //g.getDataSource().reload();\n                        }\n                    });\n                }\n            });\n        });\n    }\n\n}",
-        "dblclick" : "function (node, e)\n{\n    var     tree =this;\n    if(parseInt(node.attributes.is_keyword)){\n        Pman.Dialog.ClippingKeyword.show({id:node.attributes.id},\n        function (res) {\n            node.attributes.alternatives = res.alternatives;\n            node.attributes.keyword = res.keyword; \n            node.attributes.text = res.keyword;             \n            \n            node.setText(res.keyword);\n            node.ui.textNode.setAttribute('qtip', tree.rendererTip(node.attributes));\n           \n            //_this.treepanel.tree.getRootNode().reload();\n        });\n    }else{\n        Pman.Dialog.ClippingKeywordGroup.show({id:node.attributes.id},\n        function (res) {\n\n            node.attributes.keyword = res.keyword; \n            node.attributes.text = res.keyword;             \n            \n            node.setText(res.keyword);\n\n\n        });\n    }\n}"
-       },
-       "$ rendererTip" : "function(attr) {\n    var alternatives = (attr.alternatives) ? attr.alternatives : '';\n    return attr.text + '<br/>' + alternatives.split('\\n').join('<br/>');\n}\n",
-       "xtype" : "TreePanel",
-       "enableDD" : true,
-       "rootVisible" : false,
-       "$ xns" : "Roo.tree",
-       "containerScroll" : true,
-       "ddScroll" : true,
-       "* prop" : "tree",
-       "items" : [
-        {
-         "listeners" : {
-          "beforeload" : "function (This, node, callback)\n{\n    this.baseParams._tree = 1;\n    if (!_this.form) {\n        return false;\n    }\n    \n    var pid = (_this.form.findField('parent_id').getValue()*1 > 0 && _this.form.findField('parent_id_project_id').getValue()*1 > 0) ?\n             _this.form.findField('parent_id_project_id').getValue() : _this.form.findField('project_id').getValue()\n    \n    this.baseParams.project_id = pid;\n    this.baseParams.language = _this.form.findField('language').getValue();\n}",
-          "create" : "function (This, attr)\n{\n\n    attr.text =  attr.text;\n    attr.allowChildren = true;\n}"
-         },
-         "$ baseParams" : "{_tree:1}",
-         "xtype" : "TreeLoader",
-         "requestMethod" : "GET",
-         "$ xns" : "Roo.tree",
-         "* prop" : "loader",
-         "$ dataUrl" : "baseURL + '/Roo/Clipping_keywords'"
-        },
-        {
-         "xtype" : "DefaultSelectionModel",
-         "$ xns" : "Roo.tree",
-         "* prop" : "selModel"
-        },
-        {
-         "id" : "keyword",
-         "text" : "keyword",
-         "xtype" : "AsyncTreeNode",
-         "$ xns" : "Roo.tree",
-         "* prop" : "root"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "|activate" : "function() {\n    _this.notifypanel = this;\n    if (_this.notifygrid) {\n        _this.grid.notifyfooter.onClick('first');\n    }\n}"
-     },
-     "region" : "center",
-     "fitToframe" : true,
-     "background" : true,
-     "title" : "Reports",
-     "xtype" : "GridPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo",
-     "tableName" : "Events",
-     "items" : [
-      {
-       "listeners" : {
-        "|rowdblclick" : "function (_self, rowIndex, e)\n{\n\n\n     var fd = _this.form.getFieldValues();\n     var dt = Date.parseDate (\n        fd.publish_dt_day + ' ' + fd.publish_dt_hr\n     , \"Y-m-d H:i\");\n     Roo.log(dt);\n      \n     Pman.Dialog.PressReleaseReportNotify.show({\n            id : this.getDataSource().getAt(rowIndex).data.id,\n            release_dt : dt,\n            act_when_tz: fd.publish_dt_tz\n            \n        }, function() {\n         _this.notifygrid.footer.onClick('refresh');\n     });\n\n\n}\n",
-        "|render" : "function() \n{\n    _this.notifygrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.notifypanel.active) {\n       this.footer.onClick('first');\n    }\n}"
-       },
-       "autoExpandColumn" : "to_email",
-       "xtype" : "Grid",
-       "loadMask" : true,
-       "$ xns" : "Roo.grid",
-       "* prop" : "grid",
-       "items" : [
-        {
-         "listeners" : {
-          "beforeload" : "function (_self, o)\n{\n    if (!_this.data || !_this.data.id) {\n        return false;\n    }\n    o.params.ontable = 'pressrelease_entry';\n    o.params.onid = _this.data.id;\n    o.params.evtype = 'distributionReport';\n    \n    \n}"
-         },
-         "xtype" : "Store",
-         "remoteSort" : true,
-         "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
-         "$ xns" : "Roo.data",
-         "* prop" : "dataSource",
-         "items" : [
-          {
-           "$ url" : "baseURL + '/Roo/core_notify.php'",
-           "method" : "GET",
-           "xtype" : "HttpProxy",
-           "$ xns" : "Roo.data",
-           "* prop" : "proxy"
-          },
-          {
-           "id" : "id",
-           "root" : "data",
-           "xtype" : "JsonReader",
-           "$ xns" : "Roo.data",
-           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_name',\n        'type': 'string'\n    },\n    {\n        'name': 'event_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'action',\n        'type': 'string'\n    },\n    {\n        'name': 'ipaddr',\n        'type': 'string'\n    },\n    {\n        'name': 'on_id',\n        'type': 'int'\n    },\n    {\n        'name': 'on_table',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_dt',\n        'type': 'date'\n    }\n]",
-           "* prop" : "reader",
-           "totalProperty" : "total"
-          }
-         ]
-        },
-        {
-         "xtype" : "Toolbar",
-         "$ xns" : "Roo",
-         "* prop" : "toolbar",
-         "items" : [
-          {
-           "listeners" : {
-            "|click" : "function()\n{\n     var fd = _this.form.getFieldValues();\n     var dt = Date.parseDate (\n        fd.publish_dt_day + ' ' + fd.publish_dt_hr\n     , \"Y-m-d H:i\");\n     Roo.log(dt);\n     \n     Pman.Dialog.PressReleaseReportNotify.show({\n            ontable:  'pressrelease_entry',\n            onid : _this.data.id,\n            evtype : 'distributionReport',\n            release_dt : dt,\n            act_when_tz: fd.publish_dt_tz\n            \n        }, function() {\n         _this.notifygrid.footer.onClick('refresh');\n     });\n}\n",
-            "render" : "function (_self)\n{\n    _this.addItemBtn = _self;\n}"
-           },
-           "text" : "Add",
-           "xtype" : "Button",
-           "cls" : "x-btn-text-icon",
-           "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "xtype" : "Fill",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "|click" : "function()\n        {\n        Pman.genericDelete(_this.notifypanel, 'core_notify'); \n        }\n        "
-           },
-           "text" : "Delete",
-           "xtype" : "Button",
-           "cls" : "x-btn-text-icon",
-           "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
-           "$ xns" : "Roo.Toolbar"
-          }
-         ]
-        },
-        {
-         "pageSize" : 25,
-         "xtype" : "PagingToolbar",
-         "emptyMsg" : "No Events found",
-         "$ xns" : "Roo",
-         "displayInfo" : true,
-         "displayMsg" : "Displaying Events{0} - {1} of {2}",
-         "* prop" : "footer"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Report",
-         "width" : 150,
-         "$ renderer" : "function(v) { \n  if (!v) { \n       return '??';\n  }\n   var fd = _this.form.getFieldValues();\n    var reltime = Date.parseDate (\n        fd.publish_dt_day + ' ' + fd.publish_dt_hr\n     , \"Y-m-d H:i\");\n\n       \n   var tz =  fd.publish_dt_tz;\n \n   var parts = tz.split('.');\n   \n   var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);\n   \n  \n   var diff =  Math.round(v.getElapsed(hkt) / (1000 * 60 * 60 * 24));\n  return '' + diff + ' Days';\n\n//return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); \n\n\n\n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "act_start"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 150,
-         "header" : "When",
-         "$ renderer" : "function(v) { \n  if (!v) { \n       return '??';\n  }\n   return v.format('d/M/Y h:ia'); \n\n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "act_start"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Who",
-         "width" : 100,
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "to_email"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Sent",
-         "width" : 200,
-         "$ renderer" : "function(v,x,r) {\n    if (!v || v < r.data.act_start) {\n        return '';\n    }\n    return v.format('d/M/Y H:i');\n\n  }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "sent"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "width" : 50,
-         "header" : "Ref#",
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "id"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-     },
-     "text" : "Cancel",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    \n   \n    var lang = _this.form.findField('language').getValue();\n    if (!lang.length) {\n        Roo.MessageBox.alert(\"Error\", \"No Lanugage has been set\");\n        return;\n    }\n \n   \n    _this.showPreview = function() {\n    \n        var id = _this.form.findField('id').getValue()  * 1;\n        if (!id) {\n            Roo.MessageBox.alert(\"Error\", \"Could not find ID after saving?\");\n            return;\n        }\n    \n        Pman.Dialog.PressReleasePreview.show({\n            id : id,\n            title : _this.form.findField('headline').getValue(),\n            blacklist_ids :   _this.form.findField('blacklist_ids').getValue(),\n            beats:   _this.form.findField('distribution_config').getValue(),\n            countries :  _this.form.findField('distribution_countries').getValue() \n            \n          }, function()\n        {\n            _this.showPreview = false;\n        });\n    }\n     _this.form.doAction(\"submit\");\n     \n    \n}"
-     },
-     "text" : "Preview",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n     \n    var lang = _this.form.findField('language').getValue();\n    if (!lang.length) {\n        Roo.MessageBox.alert(\"Error\", \"No Lanugage has been set\");\n        return;\n    }\n \n    _this.form.doAction(\"submit\");\n\n}"
-     },
-     "text" : "Save",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseEdit.js b/PressRelease/Pman.Dialog.PressReleaseEdit.js
deleted file mode 100644 (file)
index dc43a0f..0000000
+++ /dev/null
@@ -1,4337 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Dialog');
-
-Pman.Dialog.PressReleaseEdit = {
-
- _strings : {
-  'f31bbdd1b3e85bccd652680e16935819' :"Source",
-  '2f26e35d61be90501e099089dc533638' :"Select Images",
-  '90e02e896b4ee833a24236b45060d175' :"Description / Byline",
-  '91412465ea9169dfd901dd5e7c96dd99' :"Upload",
-  'c1df1da7a1ce305a3b60af9d5733ac1d' :"Contents",
-  'f0bac093bb884df2891d32385d053788' :"Distribution",
-  '4e97aeeaa8b15ca1180fcd1f3ac478d1' :"When",
-  'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
-  'b1515c8965e8b24b15046bb2afe27123' :"Sub-Headline",
-  '01a5bf98dc3a43bb2f6d0787d87030b7' :"Add From Image Store",
-  '3f0f4d7d0b92612398cc55d9e47965e2' :"Financial Data",
-  'c864347be68dbc6a7b0540f1f79d8ea3' :"Reset selections",
-  'c78bf45129eff892d5c654c159fd8182' :"Displaying pressrelease_notify{0} - {1} of {2}",
-  '231bc72756b5e6de492aaaa1577f61b1' :"Remarks",
-  '31fde7b05ac8952dacf4af8a704074ec' :"Preview",
-  'c6568e77f61109390e82d035aaacaef0' :"Headline",
-  '9c715f0e523e7e1d00d538db7b78615b' :"Word count",
-  'e0626222614bdee31951d84c64e5e9ff' :"Select",
-  'a1fa27779242b4902f7ae3bdd5c6d508' :"Type",
-  'a97749f6323c1743aad997aaf0197b19' :"Remove undelivered messages",
-  '2dd37afd617264989a9dbad32cc239ad' :" same as (different publish dates)",
-  '9aa698f602b1e5694855cee73a683488' :"Contacts",
-  '471ddaf9e80da04dd5a3a54daa0239b0' :"Select Image Type",
-  'c9289663240146eaa1ec2d9838b0875a' :"News Beat",
-  '47b09b64b87dc1cb923065dd6167ecde' :"No pressrelease_notify found",
-  'd171235ac80dfa3cd3c83d27312565e5' :"Stock Code",
-  '336f78a6c761db5eb97973c04b0a2fe0' :"Release Details",
-  '47bd5f0bae18a1ce015e40d73a33a15f' :"Company Boiler Plate Statement",
-  'c00adc22f2bb333883dc1723e2899a0c' :"Related Web Links <B>Must have http:// before the link</b>",
-  'b18c29b8470190a02813415a04a2191f' :"Filesize",
-  '9c9745a343efeacc9efe9b7222b27afb' :"Ref#",
-  '95291adff6df977dbba485210bcf6b3c' :"pressrelease_entry",
-  'ad5fd38e083fd0d559ca3f54fa7ed593' :"Upload Excel of Financial data",
-  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
-  'cd1195c061c70621a670027d606c0be0' :"Fill this in when this release goes out at a different time",
-  '1243daf593fa297e07ab03bf06d925af' :"Searching...",
-  '11f7b456ca765e9f556f653090045ae7' :"Images / PDF",
-  '577d7068826de925ea2aec01dbadf5e4' :"Client",
-  '5f159bce162b1b90e6ffc45602f151ea' :"This press release is a translation of",
-  '7205d42d6d975c911bc1147259d78935' :"Displaying Events{0} - {1} of {2}",
-  '97e7c9a7d06eac006a28bf05467fcc8b' :"Link",
-  '867343577fa1f33caa632a19543bd252' :"Keywords",
-  'addf678354e22ee4f52fefb5f25069d1' :"Select Client",
-  '15ec5490b30354020a6756796c5e4835' :"Edit Press Release",
-  'ec53a8c4f07baed5d8825072c89799be' :"Status",
-  '20e9dc20a361244eb40c7b723a393995' :"Forward Looking Statement",
-  '55cfeeacad2f92b9fea0a1bbb6449fac' :"Update Image Details",
-  '526d688f37a86d3c3f27d0c5016eb71d' :"Reset",
-  'b9e14d9b2886bcff408b85aefa780419' :"FAILED",
-  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
-  'a76d4ef5f3f6a672bbfab2865563e530' :"Time",
-  '69046eb2a80f3965bcd41bfdb1a7bf5c' :"Add Keyword",
-  'c4ca4238a0b923820dcc509a6f75849b' :"1",
-  'cc8498ab909997b95b2207684dbce5cf' :"Select industry",
-  'b9ea5920734c27f9ec7596d53589fb3c' :"Select Press release",
-  '4994a8ffeba4ac3140beb89e8d41f174' :"Language",
-  '432c508d90a57863d3800a123fdefa23' :"Financial Content",
-  '8e16a71b3d8217eb80b39b7d8dec4296' :"Image Type",
-  '4b1b4dc8cf38b3c64b1d657da8f5ac8c' :"Report",
-  'b9dc4c481b230aaec437ef58b23ca1ef' :" (Chinese) Name",
-  '2bb46cdcd6c198689d1c95ac20bba931' :"Beat",
-  '917d465e9a9e8b16a8da50a1ca8156ca' :"Show: ",
-  'dc9227804a61468a485e682cb932bdf7' :"Company Details",
-  'df1390c4238324679161da9c6652d17a' :"Select Exchange",
-  'b78a3223503896721cca1303f776159b' :"Title",
-  '8567f15f1470a10fcb0dfa920ac7c21b' :"Force Re-delivery",
-  '90e4ac2e5a22e53df63b6b186d8727ba' :"No Events found",
-  '4ee972120bcda675f75222c87cb9d356' :"Who",
-  'd7df5b64df1181ef1d62d646a13aa860' :"keyword",
-  'c91c7b93c28cd18741b71f727ee81ee3' :"Reports",
-  '446a6000511ab6fb0711400379a62a04' :"Select Image",
-  'f15c1cae7882448b3fb0404682e17e61' :"Content",
-  '236df51bb0e6416236e255b528346fca' :"Timezone",
-  '110a4b01beabd53b661a47d4b44bd7a8' :"Publish",
-  '59716c97497eb9694541f7c3d37b1a4d' :"Country",
-  '801ab24683a4a8c433c6eb40c48bcd9d' :"Download",
-  '992374d8e2e24f17bebc50a6e57becd6' :"Exchange",
-  '4fd0a37b0a02153b23bbb61d7915a429' :"Industry",
-  '8189ecf686157db0c0274c1f49373318' :"International",
-  '122a26ef126e03089bb959c949d12b0a' :"Due out (Local time)",
-  'cbe695bf80e8066f16a941601cd6846b' :"Select exchange",
-  '45e96c0a422ce8a1a6ec1bd5eb9625c6' :"Select All",
-  'e12167aa0a7698e6ebc92b4ce3909b53' :"To",
-  '7f8c0283f16925caed8e632086b81b9c' :"Sent",
-  'b112803ab9deb7deba2a6b24ef3bb91a' :"Add Group",
-  'c9cc8cce247e49bae79f15173ce97354' :"Save",
-  'ea72bacd2fdfa818907bb9559e6905a1' :"Upload Image or File",
-  'fff0d600f8a0b5e19e88bfb821dd1157' :"Images",
-  'c9d03748d1a54666b5c7a5187109301b' :"Delete Selected File or  Image",
-  '8535bcc0f05358a583bb432bbadf7e0d' :"Select type",
-  'f45381a54504218e39aca33492d29306' :"Circulation",
-  '004bf6c9a40003140292e97330236c53' :"Action",
-  '0a90b1bc4078f74b6f0d117ec7df65af' :"Credit",
-  '529701d5ccccf8a1c604c27f48ce7d82' :"Mimetype",
-  '4d1c8263ba1036754f8db14a98f9f006' :"Reload",
-  'ce0be71e33226e4c1db2bcea5959f16b' :"Log"
- },
-
- dialog : false,
- callback:  false,
-
- show : function(data, cb)
- {
-  if (!this.dialog) {
-   this.create();
-  }
-
-  this.callback = cb;
-  this.data = data;
-  this.dialog.show(this.data._el);
-  if (this.form) {
-   this.form.reset();
-   this.form.setValues(data);
-   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-  }
-
- },
-
- create : function()
- {
-   var _this = this;
-   this.dialog = Roo.factory({
-    closable : false,
-    collapsible : false,
-    height : 600,
-    minHeight : 650,
-    minWidth : 810,
-    modal : true,
-    resizable : true,
-    title : _this._strings['15ec5490b30354020a6756796c5e4835'] /* Edit Press Release */,
-    width : 810,
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'LayoutDialog',
-    center : {
-     alwaysShowTabs : true,
-     tabPosition : 'top',
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    buttons : [
-     {
-      text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            _this.dialog.hide();
-        }
-      }
-     },
-     {
-      text : _this._strings['31fde7b05ac8952dacf4af8a704074ec'] /* Preview */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            
-           
-            var lang = _this.form.findField('language').getValue();
-            if (!lang.length) {
-                Roo.MessageBox.alert("Error", "No Lanugage has been set");
-                return;
-            }
-         
-           
-            _this.showPreview = function() {
-            
-                var id = _this.form.findField('id').getValue()  * 1;
-                if (!id) {
-                    Roo.MessageBox.alert("Error", "Could not find ID after saving?");
-                    return;
-                }
-            
-                Pman.Dialog.PressReleasePreview.show({
-                    id : id,
-                    title : _this.form.findField('headline').getValue(),
-                    blacklist_ids :   _this.form.findField('blacklist_ids').getValue(),
-                    beats:   _this.form.findField('distribution_config').getValue(),
-                    countries :  _this.form.findField('distribution_countries').getValue() 
-                    
-                  }, function()
-                {
-                    _this.showPreview = false;
-                });
-            }
-             _this.form.doAction("submit");
-             
-            
-        }
-      }
-     },
-     {
-      text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            // do some checks?
-             
-            var lang = _this.form.findField('language').getValue();
-            if (!lang.length) {
-                Roo.MessageBox.alert("Error", "No Lanugage has been set");
-                return;
-            }
-         
-            _this.form.doAction("submit");
-        
-        }
-      }
-     }
-    ],
-    items  : [
-     {
-      autoScroll : true,
-      fitToFrame : true,
-      region : 'center',
-      title : _this._strings['c1df1da7a1ce305a3b60af9d5733ac1d'] /* Contents */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'ContentPanel',
-      listeners : {
-       activate : function (_self)
-        {
-          if (_this.form) {
-              _this.form.updateWordCount();
-          }
-          
-        },
-       deactivate : function (_self)
-        {
-            
-            //Roo.log('deactivate ' + _this.loaded);
-            if (!_this.loaded) {
-                return;
-            }
-            //Roo.log(_this.form.findField('id').getValue());
-            if (_this.form.findField('id').getValue() * 1 > 0) {
-                return;
-            }
-            (function() {
-                Roo.MessageBox.alert("Error", "Save first");
-                _this.dialog.layout.getRegion('center').showPanel(0);
-            }).defer(100);
-        
-        
-        }
-      },
-      items  : [
-       {
-        method : 'POST',
-        style : 'margin: 10px;',
-        updateWordCount : function() {
-            var wc = 0;
-            
-            function html2wc(val)
-            {
-                var d = document.createElement('div');
-                d.innerHTML =val;
-                return txt2wc(Roo.isIE ? d.innerText : d.textContent);
-            
-            }
-            function txt2wc(val) {
-                return val.split(/\s+/).length;
-            }
-            
-            wc += html2wc(this.findField('content').getValue());
-            wc += txt2wc(_this.form2.findField('contact_txt').getValue());    
-            wc += txt2wc(_this.form2.findField('content_about').getValue());        
-            wc += txt2wc(_this.form2.findField('content_links').getValue());        
-            wc += txt2wc(_this.form3.findField('content_forward').getValue());        
-            wc += html2wc(_this.form3.findField('content_data').getValue());
-            this.findField('word_count').setValue(wc);
-            
-        },
-        url : baseURL + '/Roo/pressrelease_entry.php',
-        xns : Roo.form,
-        '|xns' : 'Roo.form',
-        xtype : 'Form',
-        listeners : {
-         actioncomplete : function(_self,action)
-          {
-              
-               if (action.failureType) {
-           
-                 
-                  Roo.MessageBox.alert("Error", "Please correct the errors in red");
-                  return;
-              
-              }
-            if (action.type == 'setdata') {
-                  _this.loaded = false;
-           
-                 _this.dialog.getLayout().showPanel(0);
-                  _this.form.addForm(_this.form2);
-                    _this.form.addForm(_this.form3);
-                  if ( _this.data.id) {
-                      _this.dialog.setTitle("Edit Press Release #" + _this.data.id);
-                     this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-                 } else {
-                  
-                     _this.dialog.setTitle("Create a new  Press Release");
-                     
-                    _this.loaded = true;
-                    _this.form.findField('publish_status').setValue(-1);
-                    _this.form.findField('distribute_to_feed').setValue(1);
-                 }
-                 
-                 return;
-              }
-              if (action.type == 'load') {
-                  _this.loaded = true;
-                 var fd  =  _this.form3.findField('content_data').getValue(); 
-          
-                 // not it uses mostly HTML..
-                 //if (!fd.match(/<pre>/i)) {
-                  //     _this.form3.findField('content_data').setValue('<pre>' + String.format('{0}', fd.replace(/\&nbsp;/g, ' ').replace(/\&amp;nbsp;/g, ' ')) +  '</pre>'); 
-                   //}   
-                 
-                  if (_this.data._translation_of) {
-                      this.setValues({
-                          id : 0,
-                          parent_id  : _this.data.id,
-                          parent_id_headline  : this.findField('headline').getValue(),
-                          language : '',
-                          language_name : '',                
-                          content : '',
-                          headline: '',
-                          publish_status : -1
-                          
-                      });
-                      //this.findField('language').el.dom.value = '';
-                      _this.data.id = 0;
-                  }
-                  //_this.loadedData = action.result.data;
-                  this.updateWordCount();
-                  
-                 
-                  return;
-              }
-              if (action.type =='submit') {
-              
-                  var hide = true;
-                  if (_this.form.findField('id').getValue() * 1 < 1) {
-                      hide = false;
-                      _this.form.findField('id').setValue(action.result.data.id);
-                  }
-                  
-                  if (_this.showPreview) {
-                      _this.showPreview();
-                      _this.showPreview = false;
-                      return;
-                  }
-                  
-                  if (!hide) {
-                      return;
-                  }
-                  _this.dialog.hide();
-              
-                   if (_this.callback) {
-                      _this.callback.call(_this, _this.form.getValues());
-                   }
-                   _this.form.reset();
-                   return;
-              }
-          },
-         actionfailed : function (_self, action)
-          {
-             if (action.failureType) {
-                    _this.dialog.el.unmask();
-                 
-                  Roo.MessageBox.alert("Error", "Please correct the errors in red");
-                  return;
-              
-              }
-          },
-         rendered : function (form)
-          {
-              _this.form= form;
-            
-          }
-        },
-        items  : [
-         {
-          labelWidth : 75,
-          legend : _this._strings['336f78a6c761db5eb97973c04b0a2fe0'] /* Release Details */,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'FieldSet',
-          items  : [
-           {
-            labelWidth : 240,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              alwaysQuery : true,
-              displayField : 'headline',
-              editable : false,
-              emptyText : _this._strings['b9ea5920734c27f9ec7596d53589fb3c'] /* Select Press release */,
-              fieldLabel : _this._strings['5f159bce162b1b90e6ffc45602f151ea'] /* This press release is a translation of */,
-              forceSelection : true,
-              hiddenName : 'parent_id',
-              listWidth : 400,
-              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-              minChars : 2,
-              name : 'parent_id_headline',
-              pageSize : 20,
-              qtip : _this._strings['b9ea5920734c27f9ec7596d53589fb3c'] /* Select Press release */,
-              queryParam : 'query[name]',
-              selectOnFocus : true,
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>#{id} - {headline}</b> </div>',
-              triggerAction : 'all',
-              typeAhead : true,
-              valueField : 'id',
-              width : 420,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               remoteSort : true,
-               sortInfo : { direction : 'DESC', field: 'id' },
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'Store',
-               listeners : {
-                beforeload : function (_self, o){
-                     o.params = o.params || {};
-                     var client_id = _this.form.findField('client_id').getValue();
-                     if (!client_id) {
-                         Roo.MessageBox.alert("Error", "Select a client first");
-                         return false;
-                     }
-                     o.params.client_id = client_id;
-                     o.params.parent_id = 0; /// only releases that do not have a parent..
-                     var id = _this.form.findField('id').getValue();
-                     if (id ) {
-                         o.params['!id'] = id;
-                     }
-                     // set more here
-                 }
-               },
-               proxy : {
-                method : 'GET',
-                url : baseURL + '/Roo/pressrelease_entry.php',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'HttpProxy'
-               },
-               reader : {
-                fields : [{"name":"id","type":"int"},{"name":"language","type":"string"}],
-                id : 'id',
-                root : 'data',
-                totalProperty : 'total',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'JsonReader'
-               }
-              }
-             },
-             {
-              alwaysQuery : true,
-              displayField : 'headline',
-              editable : false,
-              emptyText : _this._strings['cd1195c061c70621a670027d606c0be0'] /* Fill this in when this release goes out at a different time */,
-              fieldLabel : _this._strings['2dd37afd617264989a9dbad32cc239ad'] /*  same as (different publish dates) */,
-              forceSelection : true,
-              hiddenName : 'same_as_id',
-              listWidth : 400,
-              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-              minChars : 2,
-              name : 'same_as_id_headline',
-              pageSize : 20,
-              qtip : _this._strings['b9ea5920734c27f9ec7596d53589fb3c'] /* Select Press release */,
-              queryParam : 'query[name]',
-              selectOnFocus : true,
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>#{id} - {headline}</b> </div>',
-              triggerAction : 'all',
-              typeAhead : true,
-              valueField : 'id',
-              width : 420,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               remoteSort : true,
-               sortInfo : { direction : 'DESC', field: 'id' },
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'Store',
-               listeners : {
-                beforeload : function (_self, o){
-                     o.params = o.params || {};
-                     var client_id = _this.form.findField('client_id').getValue();
-                     if (!client_id) {
-                         Roo.MessageBox.alert("Error", "Select a client first");
-                         return false;
-                     }
-                     o.params.client_id = client_id;
-                     o.params.parent_id = 0; /// only releases that do not have a parent..
-                     var id = _this.form.findField('id').getValue();
-                     if (id ) {
-                         o.params['!id'] = id;
-                     }
-                     // set more here
-                 }
-               },
-               proxy : {
-                method : 'GET',
-                url : baseURL + '/Roo/pressrelease_entry.php',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'HttpProxy'
-               },
-               reader : {
-                fields : [{"name":"id","type":"int"},{"name":"language","type":"string"}],
-                id : 'id',
-                root : 'data',
-                totalProperty : 'total',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'JsonReader'
-               }
-              }
-             }
-            ]
-           },
-           {
-            labelWidth : 75,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              allowBlank : false,
-              displayField : 'fname',
-              editable : false,
-              fieldLabel : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
-              hiddenName : 'publish_status',
-              listWidth : 200,
-              mode : 'local',
-              name : 'publish_status_name',
-              triggerAction : 'all',
-              valueField : 'ftype',
-              width : 200,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               data : [ [-1, "Draft"],[ 0 , "Ready to Distribute"],[ 1, "Embargoed"] ],
-               fields : [  'ftype', 'fname'],
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'SimpleStore'
-              }
-             },
-             {
-              allowBlank : true,
-              alwaysQuery : true,
-              displayField : 'hgroup',
-              editable : false,
-              fieldLabel : _this._strings['4fd0a37b0a02153b23bbb61d7915a429'] /* Industry */,
-              forceSelection : true,
-              listWidth : 400,
-              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-              minChars : 2,
-              name : 'industry_name',
-              pageSize : 150,
-              qtip : _this._strings['cc8498ab909997b95b2207684dbce5cf'] /* Select industry */,
-              queryParam : 'query[hgroup]',
-              selectOnFocus : true,
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{hgroup}</b> </div>',
-              triggerAction : 'all',
-              typeAhead : true,
-              valueField : 'hgroup',
-              width : 300,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               remoteSort : true,
-               sortInfo : { direction : 'ASC', field: 'hgroup' },
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'Store',
-               listeners : {
-                beforeload : function (_self, o){
-                     o.params = o.params || {};
-                     // set more here
-                     o.params['_distinct']='hgroup';
-                     o.params['!hgroup']='';
-                     o.params['parent_id_name'] = 'News Beat';
-                     o.params['_columns'] = 'hgroup';
-                 }
-               },
-               proxy : {
-                method : 'GET',
-                url : baseURL + '/Roo/pressrelease_category.php',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'HttpProxy'
-               },
-               reader : {
-                fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
-                id : 'id',
-                root : 'data',
-                totalProperty : 'total',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'JsonReader'
-               }
-              }
-             }
-            ]
-           },
-           {
-            labelWidth : 75,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              allowBlank : true,
-              alwaysQuery : true,
-              displayField : 'name',
-              editable : true,
-              emptyText : _this._strings['addf678354e22ee4f52fefb5f25069d1'] /* Select Client */,
-              fieldLabel : _this._strings['577d7068826de925ea2aec01dbadf5e4'] /* Client */,
-              forceSelection : true,
-              hiddenName : 'client_id',
-              listWidth : 400,
-              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-              minChars : 2,
-              name : 'client_id_name',
-              pageSize : 20,
-              qtip : _this._strings['addf678354e22ee4f52fefb5f25069d1'] /* Select Client */,
-              queryParam : 'query[name]',
-              selectOnFocus : true,
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
-              triggerAction : 'all',
-              typeAhead : false,
-              valueField : 'id',
-              width : 300,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              listeners : {
-               add : function (combo)
-                {
-                    Pman.Dialog.Companies.show({},
-                        function (data) {
-                            _this.form.setValues({
-                                client_id_name : data.name,
-                                client_id : data.id
-                            });
-                        
-                        }
-                    );
-                }
-              },
-              store : {
-               remoteSort : true,
-               sortInfo : { field: 'name', direction: 'ASC' },
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'Store',
-               listeners : {
-                beforeload : function (_self, o){
-                     o.params = o.params || {};
-                     // set more here
-                      o.params['comptype[0]'] = 'CLIENT';
-                    o.params['comptype[1]'] = 'AGENCY';
-                 }
-               },
-               proxy : {
-                method : 'GET',
-                url : baseURL + '/Roo/Companies.php',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'HttpProxy'
-               },
-               reader : {
-                fields : [
-                    {
-                        'name': 'code',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'name',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'remarks',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'owner_id',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'address',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'tel',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'fax',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'email',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'id',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'isOwner',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'logo_id',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'background_color',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'comptype',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'ava_craft',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'url',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'main_office_id',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'created_by',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'created_dt',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'updated_by',
-                        'type': 'int'
-                    },
-                    {
-                        'name': 'updated_dt',
-                        'type': 'string'
-                    },
-                    {
-                        'name': 'passwd',
-                        'type': 'string'
-                    }
-                ],
-                id : 'id',
-                root : 'data',
-                totalProperty : 'total',
-                xns : Roo.data,
-                '|xns' : 'Roo.data',
-                xtype : 'JsonReader'
-               }
-              }
-             },
-             {
-              fieldLabel : _this._strings['9c715f0e523e7e1d00d538db7b78615b'] /* Word count */,
-              name : 'word_count',
-              readOnly : true,
-              width : 50,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'NumberField'
-             },
-             {
-              hideLabels : true,
-              labelWidth : 0,
-              style : 'overflow:hidden',
-              width : 150,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'Row',
-              items  : [
-               {
-                boxLabel : 'Distribute To Feed',
-                name : 'distribute_to_feed',
-                value : 1,
-                valueOff : 0,
-                width : 150,
-                xns : Roo.form,
-                '|xns' : 'Roo.form',
-                xtype : 'Checkbox'
-               }
-              ]
-             }
-            ]
-           },
-           {
-            labelWidth : 75,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              allowBlank : false,
-              displayField : 'title',
-              editable : false,
-              fieldLabel : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'] /* Language */,
-              hiddenName : 'language',
-              listWidth : 200,
-              mode : 'local',
-              name : 'language_name',
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>',
-              triggerAction : 'all',
-              valueField : 'code',
-              width : 200,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               data : (function() {return typeof(Pman) == 'object'  ? Pman.I18n.simpleStoreData('l') : []})(),
-               fields : ['code', 'title'],
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'SimpleStore'
-              }
-             },
-             {
-              allowBlank : false,
-              displayField : 'title',
-              editable : false,
-              fieldLabel : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-              hiddenName : 'country',
-              listWidth : 200,
-              mode : 'local',
-              name : 'country_name',
-              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>',
-              triggerAction : 'all',
-              valueField : 'code',
-              width : 200,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               data : (function() {return typeof(Pman) == 'object'  ? Pman.I18n.simpleStoreData('c') : []})(),
-               fields : ['code', 'title'],
-               sortInfo : { field : 'title', direction: 'ASC' },
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'SimpleStore'
-              }
-             }
-            ]
-           },
-           {
-            labelWidth : 75,
-            width : 730,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              allowBlank : true,
-              fieldLabel : _this._strings['110a4b01beabd53b661a47d4b44bd7a8'] /* Publish */,
-              format : 'Y-m-d',
-              name : 'publish_dt_day',
-              width : 100,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'DateField'
-             },
-             {
-              allowBlank : false,
-              displayField : 'hr',
-              editable : false,
-              fieldLabel : _this._strings['a76d4ef5f3f6a672bbfab2865563e530'] /* Time */,
-              listWidth : 80,
-              mode : 'local',
-              name : 'publish_dt_hr',
-              triggerAction : 'all',
-              valueField : 'hr',
-              width : 60,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               data : (function() {
-                  var r = [];
-                  for (var i =0;i < 24;i++) {
-                     r.push( [ i + ':00']);
-                     r.push([ i + ':30']);
-                  }
-                  return r;
-               })(),
-               fields : [  'hr'],
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'SimpleStore'
-              }
-             },
-             {
-              allowBlank : false,
-              displayField : 'fname',
-              editable : false,
-              fieldLabel : _this._strings['236df51bb0e6416236e255b528346fca'] /* Timezone */,
-              hiddenName : 'publish_dt_tz',
-              listWidth : 500,
-              mode : 'local',
-              name : 'publish_dt_tz_name',
-              triggerAction : 'all',
-              valueField : 'ftype',
-              width : 280,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'ComboBox',
-              store : {
-               data : [
-                        ['-12.00' ,  '(GMT -12:00) Eniwetok, Kwajalein'],
-                        ['-11.00' ,  '(GMT -11:00) Midway Island, Samoa'],
-                        ['-10.00' ,  '(GMT -10:00) Hawaii'],
-                        ['-9.00' ,  '(GMT -9:00) Alaska'],
-                        ['-8.00' ,  '(GMT -8:00) Pacific Time (US & Canada)'],
-                        ['-7.00' ,  '(GMT -7:00) Mountain Time (US & Canada)'],
-                        ['-6.00' ,  '(GMT -6:00) Central Time (US & Canada), Mexico City'],
-                        ['-5.00' ,  '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'],
-                        ['-4.00' ,  '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'],
-                        ['-3.50' ,  '(GMT -3:30) Newfoundland'],
-                        ['-3.00' ,  '(GMT -3:00) Brazil, Buenos Aires, Georgetown'],
-                        ['-2.00' ,  '(GMT -2:00) Mid-Atlantic'],
-                        ['-1.00' ,  '(GMT -1:00 hour) Azores, Cape Verde Islands'],
-                        ['0.00' ,  '(GMT) Western Europe Time, London, Lisbon, Casablanca'],
-                        ['1.00' ,  '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris'],
-                        ['2.00' ,  '(GMT +2:00) Kaliningrad, South Africa'],
-                        ['3.00' ,  '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'],
-                        ['3.30' ,  '(GMT +3:30) Tehran'],
-                        ['4.00' , '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'],
-                        ['4.50' , '(GMT +4:30) Kabul'],
-                        ['5.00' , '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'],
-                        ['5.30' ,  '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'],
-                        ['5.45' ,  '(GMT +5:45) Kathmandu'],
-                        ['6.00' ,  '(GMT +6:00) Almaty, Dhaka, Colombo'],
-                        ['7.00' ,  '(GMT +7:00) Bangkok, Hanoi, Jakarta'],
-                        ['8.00' ,  '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'],
-                        ['9.00' ,  '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'],
-                        ['9.30' ,  '(GMT +9:30) Adelaide, Darwin'],
-                        ['10.00' ,  '(GMT +10:00) Eastern Australia, Guam, Vladivostok'],
-                        ['11.00' ,  '(GMT +11:00) Magadan, Solomon Islands, New Caledonia'],
-                        ['12.00' ,  '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka']
-                       ],
-               fields : [  'ftype', 'fname' ],
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'SimpleStore'
-              }
-             }
-            ]
-           }
-          ]
-         },
-         {
-          width : 750,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Column',
-          items  : [
-           {
-            allowBlank : false,
-            fieldLabel : _this._strings['c6568e77f61109390e82d035aaacaef0'] /* Headline */,
-            name : 'headline',
-            width : 650,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextField'
-           },
-           {
-            fieldLabel : _this._strings['b1515c8965e8b24b15046bb2afe27123'] /* Sub-Headline */,
-            name : 'subheadline',
-            width : 650,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextField'
-           }
-          ]
-         },
-         {
-          labelAlign : 'top',
-          width : 760,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Row',
-          items  : [
-           {
-            allowBlank : false,
-            cblack : [ 'font-size' ],
-            fieldLabel : _this._strings['f15c1cae7882448b3fb0404682e17e61'] /* Content */,
-            height : 230,
-            name : 'content',
-            resizable : 's',
-            stylesheets : [ 
-               rootURL + '/Pman/PressRelease/templates/images/css/press.release.preview.css'
-            ],
-            width : 750,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'HtmlEditor',
-            listeners : {
-             sync : function (_self, html)
-              {
-                  Roo.log('sync');
-                  var lab =  this.fieldEl.query('label')[0];
-                  var it = this.editorcore.doc.body.innerText || this.editorcore.doc.body.textContent;
-                  var n = Math.max(0, it.replace(/^\s+/, '').replace(/\s+$/, '').split(/\s+/).length );
-                  
-                  lab.innerHTML = 'Content: (' + n + ' Words)';
-                  _this.form.updateWordCount();
-              }
-            },
-            toolbars : [
-             {
-              xns : Roo.form.HtmlEditor,
-              '|xns' : 'Roo.form.HtmlEditor',
-              xtype : 'ToolbarStandard',
-              btns : [
-               {
-                alwaysQuery : true,
-                displayField : 'name',
-                editable : false,
-                emptyText : _this._strings['446a6000511ab6fb0711400379a62a04'] /* Select Image */,
-                fieldLabel : _this._strings['fff0d600f8a0b5e19e88bfb821dd1157'] /* Images */,
-                forceSelection : true,
-                listWidth : 400,
-                loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-                minChars : 2,
-                pageSize : 20,
-                qtip : _this._strings['2f26e35d61be90501e099089dc533638'] /* Select Images */,
-                queryParam : 'search',
-                selectOnFocus : true,
-                tpl : '<div class=\"x-grid-cell-text x-btn button\"><img src=\"{url_thumb}\" height=\"150\" width=\"150\"><b>{filename}</b> </div>',
-                triggerAction : 'all',
-                typeAhead : true,
-                valueField : 'id',
-                width : 100,
-                xns : Roo.form,
-                '|xns' : 'Roo.form',
-                xtype : 'ComboBox',
-                listeners : {
-                 beforequery : function (combo, query, forceAll, cancel, e)
-                  {
-                   
-                      var id = _this.form.findField('id').getValue() * 1;    
-                      if (!id) {
-                          Roo.MessageBox.alert("Error", "Save press release first");
-                          return false;
-                      }
-                  },
-                 render : function (_self)
-                  {
-                      _this.bodyimgselect = _self;
-                  },
-                 select : function (combo, record, index)
-                  {
-                      Roo.log(record);
-                      (function() { 
-                          combo.setValue('');
-                      }).defer(100);
-                  
-                      var editor = _this.form.findField('content').editorcore;
-                      
-                      var curnode = editor.getSelectedNode();
-                  
-                      if (curnode && curnode.tagName == 'IMG') {
-                          curnode.src= String.format('{0}/Images/{1}/{2}#image-{1}',
-                                  baseURL,  record.data.id, record.data.filename
-                              );
-                              // note -forces an update... hopefully...
-                          editor.owner.fireEvent('editorevent', editor, false);
-                      } else {
-                      
-                          editor.insertAtCursor(
-                              String.format('<img src="{0}/Images/{1}/{2}#image-{1}">',
-                              baseURL,  record.data.id, record.data.filename
-                              )
-                          );
-                  
-                      }
-                      
-                  }
-                },
-                store : {
-                 remoteSort : true,
-                 sortInfo : { direction : 'ASC', field: 'id' },
-                 xns : Roo.data,
-                 '|xns' : 'Roo.data',
-                 xtype : 'Store',
-                 listeners : {
-                  beforeload : function (_self, o){
-                       o.params = o.params || {};
-                   
-                       var id = _this.form.findField('id').getValue() * 1;    
-                       if (!id) {
-                           Roo.MessageBox.alert("Error", "Save press release first");
-                           return false;
-                       }
-                       o.params.onid = id
-                       o.params.ontable = 'pressrelease_entry';
-                      // o.params.imgtype = 'PressRelease';
-                       o.params['query[imagesize]'] = '150x150';
-                       // set more here
-                   }
-                 },
-                 proxy : {
-                  method : 'GET',
-                  url : baseURL + '/Roo/Images.php',
-                  xns : Roo.data,
-                  '|xns' : 'Roo.data',
-                  xtype : 'HttpProxy'
-                 },
-                 reader : {
-                  fields : [{"name":"id","type":"int"},{"name":"filename","type":"string"},{"name":"url_thumb","type":"string"}],
-                  id : 'id',
-                  root : 'data',
-                  totalProperty : 'total',
-                  xns : Roo.data,
-                  '|xns' : 'Roo.data',
-                  xtype : 'JsonReader'
-                 }
-                }
-               }
-              ]
-             },
-             {
-              xns : Roo.form.HtmlEditor,
-              '|xns' : 'Roo.form.HtmlEditor',
-              xtype : 'ToolbarContext'
-             }
-            ]
-           }
-          ]
-         },
-         {
-          name : 'distribution_config',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         },
-         {
-          name : 'distribution_countries',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         },
-         {
-          name : 'blacklist_ids',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         },
-         {
-          name : 'project_id',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         },
-         {
-          name : 'parent_id_project_id',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         },
-         {
-          name : 'id',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         }
-        ]
-       }
-      ]
-     },
-     {
-      background : true,
-      region : 'center',
-      title : _this._strings['dc9227804a61468a485e682cb932bdf7'] /* Company Details */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'ContentPanel',
-      items  : [
-       {
-        labelWidth : 80,
-        method : 'POST',
-        style : 'margin:10px;',
-        url : baseURL + '/Roo/Companies.php',
-        xns : Roo.form,
-        '|xns' : 'Roo.form',
-        xtype : 'Form',
-        listeners : {
-         rendered : function (form)
-          {
-              _this.form2= form;
-          }
-        },
-        items  : [
-         {
-          labelWidth : 80,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Row',
-          items  : [
-           {
-            fieldLabel : _this._strings['d171235ac80dfa3cd3c83d27312565e5'] /* Stock Code */,
-            name : 'stockcode',
-            width : 100,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextField'
-           },
-           {
-            labelWidth : 110,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              fieldLabel : _this._strings['b9dc4c481b230aaec437ef58b23ca1ef'] /*  (Chinese) Name */,
-              name : 'company_name_alt',
-              width : 150,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'TextField'
-             }
-            ]
-           }
-          ]
-         },
-         {
-          labelWidth : 80,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Row',
-          items  : [
-           {
-            allowBlank : true,
-            displayField : 'name',
-            editable : false,
-            emptyText : _this._strings['cbe695bf80e8066f16a941601cd6846b'] /* Select exchange */,
-            fieldLabel : _this._strings['992374d8e2e24f17bebc50a6e57becd6'] /* Exchange */,
-            forceSelection : true,
-            hiddenName : 'stock_exchange_id',
-            listWidth : 400,
-            loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-            minChars : 2,
-            name : 'stock_exchange_id_name',
-            pageSize : 20,
-            qtip : _this._strings['df1390c4238324679161da9c6652d17a'] /* Select Exchange */,
-            queryParam : 'query[name]',
-            selectOnFocus : true,
-            tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
-            triggerAction : 'all',
-            typeAhead : true,
-            valueField : 'id',
-            width : 100,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'ComboBox',
-            store : {
-             remoteSort : true,
-             sortInfo : { direction : 'ASC', field: 'id' },
-             xns : Roo.data,
-             '|xns' : 'Roo.data',
-             xtype : 'Store',
-             listeners : {
-              beforeload : function (_self, o){
-                   o.params = o.params || {};
-                   // set more here
-                   o.params.etype='Exchange';
-               }
-             },
-             proxy : {
-              method : 'GET',
-              url : baseURL + '/Roo/core_enum.php',
-              xns : Roo.data,
-              '|xns' : 'Roo.data',
-              xtype : 'HttpProxy'
-             },
-             reader : {
-              fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
-              id : 'id',
-              root : 'data',
-              totalProperty : 'total',
-              xns : Roo.data,
-              '|xns' : 'Roo.data',
-              xtype : 'JsonReader'
-             }
-            }
-           },
-           {
-            labelWidth : 70,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'Row',
-            items  : [
-             {
-              fieldLabel : _this._strings['f31bbdd1b3e85bccd652680e16935819'] /* Source */,
-              name : 'source_name',
-              width : 300,
-              xns : Roo.form,
-              '|xns' : 'Roo.form',
-              xtype : 'TextField'
-             }
-            ]
-           }
-          ]
-         },
-         {
-          labelAlign : 'top',
-          width : 800,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Column',
-          items  : [
-           {
-            fieldLabel : _this._strings['9aa698f602b1e5694855cee73a683488'] /* Contacts */,
-            height : 100,
-            name : 'contact_txt',
-            width : 750,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextArea'
-           },
-           {
-            fieldLabel : _this._strings['47bd5f0bae18a1ce015e40d73a33a15f'] /* Company Boiler Plate Statement */,
-            height : 150,
-            name : 'content_about',
-            width : 750,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextArea'
-           },
-           {
-            fieldLabel : _this._strings['c00adc22f2bb333883dc1723e2899a0c'] /* Related Web Links <B>Must have http:// before the link</b> */,
-            height : 100,
-            name : 'content_links',
-            width : 750,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'TextArea'
-           }
-          ]
-         }
-        ]
-       }
-      ]
-     },
-     {
-      region : 'center',
-      title : _this._strings['3f0f4d7d0b92612398cc55d9e47965e2'] /* Financial Data */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'NestedLayoutPanel',
-      listeners : {
-       activate : function (_self)
-        {
-           //console.log('activate');
-           if (_this.hasFinanceWatch) {
-             return;
-           }
-           _this.hasFinanceWatch =true;
-           _this.financeSending =false;
-             window.setInterval( function() {
-                // stops warning in editor..
-                if (!_this.financeForm) {
-                    return;
-                }
-                var val = _this.financeForm.findField('imageUpload').getValue();
-                if (!val || !val.length) {
-                    return;
-                }
-                
-                if (_this.financeSending) {
-                    return;
-                }
-                 _this.financeSending =true;
-                 
-                _this.financeForm.el.mask("Sending");
-                _this.financeForm.submit.defer(100, _this.financeForm);
-           
-          }, 1000)  
-           
-        }
-      },
-      layout : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'BorderLayout',
-       center : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       south : {
-        height : 40,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       items  : [
-        {
-         fitContainer : true,
-         fitToFrame : true,
-         region : 'center',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         items  : [
-          {
-           method : 'POST',
-           style : 'margin:10px;',
-           url : baseURL + '/Roo/pressrelease_entry.php',
-           xns : Roo.form,
-           '|xns' : 'Roo.form',
-           xtype : 'Form',
-           listeners : {
-            rendered : function (form)
-             {
-                 _this.form3= form;
-             }
-           },
-           items  : [
-            {
-             labelAlign : 'top',
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Row',
-             items  : [
-              {
-               fieldLabel : _this._strings['20e9dc20a361244eb40c7b723a393995'] /* Forward Looking Statement */,
-               height : 150,
-               name : 'content_forward',
-               width : 750,
-               xns : Roo.form,
-               '|xns' : 'Roo.form',
-               xtype : 'TextArea'
-              },
-              {
-               fieldLabel : _this._strings['432c508d90a57863d3800a123fdefa23'] /* Financial Content */,
-               height : 200,
-               name : 'content_data',
-               resizable : 's',
-               style : 'font-family: monospace;',
-               stylesheets : [ 
-                  rootURL + '/Pman/PressRelease/templates/images/css/press.release.preview.css'
-                 
-               ],
-               width : 750,
-               xns : Roo.form,
-               '|xns' : 'Roo.form',
-               xtype : 'HtmlEditor',
-               toolbars : [
-                {
-                 xns : Roo.form.HtmlEditor,
-                 '|xns' : 'Roo.form.HtmlEditor',
-                 xtype : 'ToolbarStandard'
-                },
-                {
-                 styles : { 
-                    'TD' :  [ 'underline', 'double-underline' ]
-                 },
-                 xns : Roo.form.HtmlEditor,
-                 '|xns' : 'Roo.form.HtmlEditor',
-                 xtype : 'ToolbarContext'
-                }
-               ]
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         region : 'south',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         items  : [
-          {
-           fileUpload : true,
-           labelWidth : 200,
-           style : 'margin: 10px;',
-           url : baseURL + '/PressRelease/ExcelToText.php',
-           xns : Roo.form,
-           '|xns' : 'Roo.form',
-           xtype : 'Form',
-           listeners : {
-            actioncomplete : function (_self, action)
-             {
-             // only action this will handle is submit?
-             // should test for errors..
-                 if (action.failureType) {
-                       _this.financeForm.el.unmask();
-                       _this.uploadSending = false;
-                     Roo.MessageBox.alert("Error", "Upload Failed");
-                     return false;
-                 
-                 }
-                   
-                 
-                 if (action.type =='submit') {
-                      _this.financeForm.reset();
-                        _this.financeSending = false;
-                       _this.financeForm.el.unmask();         
-                     _this.form3.findField('content_data').setValue(action.result.data);
-             
-                      return;
-                 }
-                  
-             },
-            rendered : function (form)
-             {
-               _this.financeForm = form;
-             }
-           },
-           items  : [
-            {
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Row',
-             items  : [
-              {
-               allowBlank : false,
-               fieldLabel : _this._strings['ad5fd38e083fd0d559ca3f54fa7ed593'] /* Upload Excel of Financial data */,
-               inputType : 'file',
-               name : 'imageUpload',
-               width : 350,
-               xns : Roo.form,
-               '|xns' : 'Roo.form',
-               xtype : 'TextField'
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     },
-     {
-      region : 'center',
-      title : _this._strings['11f7b456ca765e9f556f653090045ae7'] /* Images / PDF */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'NestedLayoutPanel',
-      listeners : {
-       activate : function (_self)
-        {
-           _this.imagePanel = _self;
-           if (_this.addFromStore) {
-               _this.addFromStore.lastQuery = '~~~~';
-           }
-        
-        
-           
-           
-        //   console.log('activate');
-           if (!_this.loaded) {
-             return;
-           }
-           _this.imageView.el.unmask();
-           if (_this.data.id) {
-               _this.imageView.loadImages();
-           } else {
-              _this.imageView.el.mask("Save Press Release First");
-           }
-           
-           if (_this.hasUploadWatch) {
-             return;
-           }
-            _this.hasUploadWatch =true;
-            _this.uploadSending =false;
-            window.setInterval( function() {
-                // prevent warning in editor..
-                if (!_this.uploadForm) {return; }
-                
-              
-                
-                var val = _this.uploadForm.findField('imageUpload').getValue();
-                if (!val || !val.length) {
-                    return;
-                }
-                 var id = _this.form.findField('id').getValue() * 1;    
-                if (!id) {
-                    Roo.MessageBox.alert("Error", "Save press release first");
-                   _this.uploadForm.reset();
-                    return;
-                }
-                if (_this.uploadSending) {
-                    return;
-                }
-                 _this.uploadSending =true;
-                _this.uploadForm.findField('onid').setValue(_this.data.id);
-                _this.uploadForm.el.mask("Sending");
-                _this.uploadForm.submit.defer(100, _this.uploadForm);
-           
-          }, 1000)  
-           
-        }
-      },
-      layout : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'BorderLayout',
-       center : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       east : {
-        hidden : true,
-        width : 200,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       south : {
-        height : 60,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       items  : [
-        {
-         autoScroll : true,
-         fitContainer : true,
-         fitToFrame : true,
-         region : 'center',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         toolbar : {
-          xns : Roo,
-          '|xns' : 'Roo',
-          xtype : 'Toolbar',
-          items  : [
-           {
-            text : _this._strings['01a5bf98dc3a43bb2f6d0787d87030b7'] /* Add From Image Store */,
-            xns : Roo.Toolbar,
-            '|xns' : 'Roo.Toolbar',
-            xtype : 'TextItem'
-           },
-           {
-            alwaysQuery : true,
-            displayField : 'name',
-            editable : false,
-            emptyText : _this._strings['446a6000511ab6fb0711400379a62a04'] /* Select Image */,
-            fieldLabel : _this._strings['fff0d600f8a0b5e19e88bfb821dd1157'] /* Images */,
-            forceSelection : true,
-            listWidth : 400,
-            loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-            minChars : 2,
-            pageSize : 20,
-            qtip : _this._strings['2f26e35d61be90501e099089dc533638'] /* Select Images */,
-            queryParam : 'search',
-            selectOnFocus : true,
-            tpl : '<div class=\"x-grid-cell-text x-btn button\"><img src=\"{url_thumb}\" height=\"150\" width=\"150\"><b>{filename}</b> </div>',
-            triggerAction : 'all',
-            typeAhead : true,
-            valueField : 'id',
-            width : 300,
-            xns : Roo.form,
-            '|xns' : 'Roo.form',
-            xtype : 'ComboBox',
-            listeners : {
-             beforequery : function (combo, query, forceAll, cancel, e)
-              {
-              var c = _this.form.findField('client_id').getValue();
-                  if (!c) {
-                      Roo.MessageBox.alert("Error", "Select a company first");
-                      return false;
-                  }
-                  var id = _this.form.findField('id').getValue() * 1;    
-                  if (!id) {
-                      Roo.MessageBox.alert("Error", "Save press release first");
-                      return false;
-                  }
-              },
-             render : function (_self)
-              {
-                  _this.addFromStore = _self;
-              },
-             select : function (combo, record, index)
-              {
-                  Roo.log(record);
-                  new Pman.Request({
-                      url: baseURL + '/Roo/Images',
-                      method : 'POST',
-                      params : {
-                          ontable : 'pressrelease_entry',
-                          onid : _this.form.findField('id').getValue(),
-                          _copy_from : record.data.id
-                      }, 
-                      success : function()
-                      {
-                          _this.imageView.loadImages();
-                      }
-                  });   
-              }
-            },
-            store : {
-             remoteSort : true,
-             sortInfo : { direction : 'ASC', field: 'id' },
-             xns : Roo.data,
-             '|xns' : 'Roo.data',
-             xtype : 'Store',
-             listeners : {
-              beforeload : function (_self, o){
-                   o.params = o.params || {};
-                   var c = _this.form.findField('client_id').getValue();
-                   if (!c) {
-                       Roo.MessageBox.alert("Error", "Select a company first");
-                       return false;
-                   }
-                   var id = _this.form.findField('id').getValue() * 1;    
-                   if (!id) {
-                       Roo.MessageBox.alert("Error", "Save press release first");
-                       return false;
-                   }
-                   o.params.onid = c;
-                   o.params.ontable = 'Companies';
-                  // o.params.imgtype = 'PressRelease';
-                   o.params['query[imagesize]'] = '150x150';
-                   // set more here
-               }
-             },
-             proxy : {
-              method : 'GET',
-              url : baseURL + '/Roo/Images.php',
-              xns : Roo.data,
-              '|xns' : 'Roo.data',
-              xtype : 'HttpProxy'
-             },
-             reader : {
-              fields : [{"name":"id","type":"int"},{"name":"filename","type":"string"},{"name":"url_thumb","type":"string"}],
-              id : 'id',
-              root : 'data',
-              totalProperty : 'total',
-              xns : Roo.data,
-              '|xns' : 'Roo.data',
-              xtype : 'JsonReader'
-             }
-            }
-           },
-           {
-            xns : Roo.Toolbar,
-            '|xns' : 'Roo.Toolbar',
-            xtype : 'Fill'
-           },
-           {
-            text : _this._strings['c9d03748d1a54666b5c7a5187109301b'] /* Delete Selected File or  Image */,
-            xns : Roo.Toolbar,
-            '|xns' : 'Roo.Toolbar',
-            xtype : 'Button',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if (!_this.imageView.getSelectedNodes().length) {
-                   Roo.MessageBox.alert("Error", "Select an Image");
-                   return;
-                 }
-                 var id  = _this.imageView.getNodeData(_this.imageView.getSelectedNodes()[0]).id;
-                 _this.imageView.el.mask('Deleting');
-                 
-                 Roo.Ajax.request({
-                    url : baseURL + '/Roo/Images.php',
-                    params : {
-                       _delete : id
-                    },
-                    method : 'POST',
-                    success : function() {
-                        _this.imageView.loadImages();
-                    },
-                    failure : function() {
-                         _this.imageView.el.unmask();
-                         Roo.MessageBox.alert("Error", "Error deleting image");
-                         return;
-                    }
-                });
-               }
-            }
-           }
-          ]
-         },
-         items  : [
-          {
-           jsonRoot : 'data',
-           loadImages : function() {
-                this.load({
-                   url : baseURL + '/Roo/Images.php',
-                   method : 'GET',
-                   params : {
-                      ontable : 'pressrelease_entry',
-                      onid : _this.data.id,
-                      'query[imagesize]' : '150x150',
-                      'query[imageBaseURL]' : rootURL + '/release.php'
-                   },
-                   text : 'Loading'
-              });
-              
-           },
-           singleSelect : true,
-           xns : Roo,
-           '|xns' : 'Roo',
-           xtype : 'JsonView',
-           listeners : {
-            beforerender : function (_self, data)
-             {
-                _this.imageView = _self;
-                
-                if (this.stylesheet) {
-                   return;
-                }
-                this.el.addClass('thumb-browser');
-             
-                
-                this.stylesheet = Roo.util.CSS.createStyleSheet(
-                     {
-                       '.thumb-browser .thumb-wrap' : {
-                             border:'3px solid #EEE',
-                             'float':'left',
-                             height:'190px',
-                             margin:'2px',
-                             'padding-left':'5px',
-                             'padding-top':'5px',
-                             width:'160px'
-                         },
-                         '.thumb-browser .x-view-selected' : {
-                           border:'3px solid #333'
-                       
-                         },
-                         '.thumblabel' : {
-                             font: 'normal normal normal 11px/normal tahoma, verdana, helvetica'
-                         }
-             
-                     }, Roo.id()
-                     );
-                
-             },
-            selectionchange : function (_self, selections)
-             {
-                  
-                  var snode = false;
-                  if (selections && selections.length) {
-                     try {
-                        var snode =  _this.imageView.getNodeData(selections[0]);
-                     } catch (e) {}
-                 }
-                  
-                 if (!snode) {
-                      _this.imagePanel.layout.getRegion('east').hide();
-                     return;
-                 }
-                 _this.imagePanel.layout.getRegion('east').show();    
-              
-                 _this.imageForm.setValues(snode);
-             }
-           },
-           tpl : {
-            html : '<div class="thumb-wrap"> ' + 
-              '<div class="thumb"><img  src="{url_thumb}" class="thumb-img"></div>' + 
-              '<div class="thumblabel">{title}<br/>{linkurl}</div>' + 
-            '</div>',
-            xns : Roo,
-            '|xns' : 'Roo',
-            xtype : 'Template'
-           }
-          }
-         ]
-        },
-        {
-         region : 'south',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         items  : [
-          {
-           fileUpload : true,
-           labelWidth : 200,
-           progressUrl : baseURL  + '/Core/UploadProgress.php',
-           style : 'margin: 10px;',
-           url : baseURL + '/Roo/Images.php',
-           xns : Roo.form,
-           '|xns' : 'Roo.form',
-           xtype : 'Form',
-           listeners : {
-            actioncomplete : function (_self, action)
-             {
-             // only action this will handle is submit?
-             // should test for errors..
-                 if (action.failureType) {
-                     _this.uploadForm.el.unmask();
-                     _this.uploadSending = false;
-                     Roo.MessageBox.alert("Error", "Upload Failed");
-                     return false;
-                 
-                 }
-                   
-                 
-                 if (action.type =='submit') {
-                      _this.uploadForm.reset();
-                        _this.uploadSending = false;
-                       _this.uploadForm.el.unmask();         
-                       _this.imageView.loadImages();
-                      return;
-                 }
-                  
-             },
-            actionfailed : function (_self, action)
-             {
-             
-                _this.uploadForm.el.unmask();
-                _this.uploadForm.reset();
-                 _this.uploadSending = false;
-                 Roo.MessageBox.alert("Error", "Upload Failed");
-                 _this.imageView.loadImages();
-                 
-               
-             },
-            rendered : function (form)
-             {
-               _this.uploadForm = form;
-             }
-           },
-           items  : [
-            {
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Row',
-             items  : [
-              {
-               allowBlank : false,
-               fieldLabel : _this._strings['ea72bacd2fdfa818907bb9559e6905a1'] /* Upload Image or File */,
-               inputType : 'file',
-               name : 'imageUpload',
-               width : 250,
-               xns : Roo.form,
-               '|xns' : 'Roo.form',
-               xtype : 'TextField'
-              }
-             ]
-            },
-            {
-             name : 'onid',
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Hidden'
-            },
-            {
-             name : 'ontable',
-             value : _this._strings['95291adff6df977dbba485210bcf6b3c'] /* pressrelease_entry */,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Hidden'
-            }
-           ]
-          }
-         ]
-        },
-        {
-         region : 'east',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         items  : [
-          {
-           labelAlign : 'top',
-           method : 'POST',
-           style : 'margin:10px;',
-           url : baseURL + '/Roo/Images.php',
-           xns : Roo.form,
-           '|xns' : 'Roo.form',
-           xtype : 'Form',
-           listeners : {
-            actioncomplete : function(_self,action)
-             {
-                 if (action.type == 'setdata') {
-                    //_this.dialog.el.mask("Loading");
-                    //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-                    return;
-                 }
-                 if (action.type == 'load') {
-             
-                     return;
-                 }
-                 if (action.type =='submit') {
-                      _this.selectAfterLoad = this.findField('id').getValue();
-                        var lr =  _this.imagePanel.layout.getRegion('east');
-                     lr.el.unmask();
-                     _this.imageView.loadImages();
-                      return;
-                 }
-             },
-            actionfailed : function (_self, action)
-             {
-                     var lr =  _this.imagePanel.layout.getRegion('east');
-                     lr.el.unmask();
-                if (action.failureType ==  Roo.form.Action.CLIENT_INVALID) {
-                 Roo.MessageBox.alert("Error", "Correct All the errors in Red");
-                 return;
-                }
-                 Roo.MessageBox.alert("Error", "Problem sending to server");
-             },
-            rendered : function (form)
-             {
-                 _this.imageForm= form;
-             }
-           },
-           items  : [
-            {
-             fieldLabel : _this._strings['b78a3223503896721cca1303f776159b'] /* Title */,
-             height : 50,
-             name : 'title',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextArea'
-            },
-            {
-             fieldLabel : _this._strings['90e02e896b4ee833a24236b45060d175'] /* Description / Byline */,
-             height : 75,
-             name : 'descript',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextArea'
-            },
-            {
-             alwaysQuery : true,
-             displayField : 'name',
-             editable : false,
-             emptyText : _this._strings['8535bcc0f05358a583bb432bbadf7e0d'] /* Select type */,
-             fieldLabel : _this._strings['8e16a71b3d8217eb80b39b7d8dec4296'] /* Image Type */,
-             forceSelection : true,
-             listWidth : 200,
-             loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-             minChars : 2,
-             name : 'imgtype',
-             pageSize : 20,
-             qtip : _this._strings['471ddaf9e80da04dd5a3a54daa0239b0'] /* Select Image Type */,
-             queryParam : 'query[name]',
-             selectOnFocus : true,
-             tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
-             triggerAction : 'all',
-             typeAhead : true,
-             valueField : 'name',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'ComboBox',
-             store : {
-              remoteSort : true,
-              sortInfo : { direction : 'ASC', field: 'id' },
-              xns : Roo.data,
-              '|xns' : 'Roo.data',
-              xtype : 'Store',
-              listeners : {
-               beforeload : function (_self, o){
-                    o.params = o.params || {};
-                    // set more here
-                       // set more here
-                    o.params.etype="Image Types";
-                }
-              },
-              proxy : {
-               method : 'GET',
-               url : baseURL + '/Roo/core_enum.php',
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'HttpProxy'
-              },
-              reader : {
-               fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
-               id : 'id',
-               root : 'data',
-               totalProperty : 'total',
-               xns : Roo.data,
-               '|xns' : 'Roo.data',
-               xtype : 'JsonReader'
-              }
-             }
-            },
-            {
-             fieldLabel : _this._strings['97e7c9a7d06eac006a28bf05467fcc8b'] /* Link */,
-             name : 'linkurl',
-             vtype : 'url',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField'
-            },
-            {
-             fieldLabel : _this._strings['0a90b1bc4078f74b6f0d117ec7df65af'] /* Credit */,
-             name : 'credit',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField'
-            },
-            {
-             fieldLabel : _this._strings['f31bbdd1b3e85bccd652680e16935819'] /* Source */,
-             name : 'source',
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField'
-            },
-            {
-             fieldLabel : _this._strings['529701d5ccccf8a1c604c27f48ce7d82'] /* Mimetype */,
-             name : 'mimetype',
-             readOnly : true,
-             width : 150,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField'
-            },
-            {
-             fieldLabel : _this._strings['b18c29b8470190a02813415a04a2191f'] /* Filesize */,
-             name : 'filesize',
-             readOnly : true,
-             width : 75,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField'
-            },
-            {
-             name : 'id',
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'Hidden'
-            },
-            {
-             text : _this._strings['55cfeeacad2f92b9fea0a1bbb6449fac'] /* Update Image Details */,
-             xns : Roo,
-             '|xns' : 'Roo',
-             xtype : 'Button',
-             listeners : {
-              click : function (_self, e)
-               {
-               
-                   var lr =  _this.imagePanel.layout.getRegion('east');
-                   lr.el.mask("Saving");
-                  _this.imageForm.submit();
-               }
-             }
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     },
-     {
-      background : true,
-      region : 'center',
-      title : _this._strings['f0bac093bb884df2891d32385d053788'] /* Distribution */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'NestedLayoutPanel',
-      listeners : {
-       activate : function (_self)
-        {
-            
-            _this.distributionTab = _self;
-            
-            if (!_this.countrypanel) {
-                return;
-            }
-            
-            if (_this.form.findField('parent_id').getValue() * 1 > 0) {
-                _self.el.mask("Distribution is done on Original Language version");
-                return;
-            
-            
-            }
-            _self.el.unmask();
-            
-            
-            _this.countrypanel.tree.root.reload(function() {
-                _this.countrypanel.tree.expandAll();
-                _this.countrypanel.tree.onloadComplete(function() {
-        
-                
-                    //Roo.log("load Complete");
-                       _this.beatgrid.ds.load({});
-                        _this.countrypanel.tree.collapseUnchecked();               
-                     // _this.distSummary.refreshContent();
-                });
-            });
-                
-             return;
-        //    _this.distpanel = _self;
-            var parent_id = _this.form.findField('parent_id').getValue(); 
-            if (parent_id * 1 > 0) {
-                _self.el.mask("This is a translation of #" + parent_id + " - set up the distribution on that release");
-                return;
-            } 
-              _self.el.unmask();
-           // _this.beatgrid.ds.load({});
-           _this.countrygrid.ds.block_next_load = false;
-           _this.countrygrid.ds.load({});
-        
-        }
-      },
-      toolbar : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'Toolbar',
-       items  : [
-        {
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Fill'
-        },
-        {
-         text : _this._strings['c864347be68dbc6a7b0540f1f79d8ea3'] /* Reset selections */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button',
-         listeners : {
-          click : function (_self, e)
-           {
-            
-               _this.form.findField('distribution_countries').setValue('_generalnews');
-               _this.form.findField('distribution_config').setValue( ''); 
-                _this.countrypanel.tree.root.reload(function() {
-                   _this.countrypanel.tree.expandAll();
-                   _this.countrypanel.tree.onloadComplete(function() {
-                       //Roo.log("load Complete");
-                          _this.beatgrid.ds.load({});
-                        // _this.distSummary.refreshContent();
-                   });
-               });
-               
-           }
-         }
-        }
-       ]
-      },
-      layout : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'BorderLayout',
-       center : {
-        titlebar : true,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       west : {
-        titlebar : true,
-        width : 350,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       south : {
-        height : 100,
-        split : true,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'LayoutRegion'
-       },
-       items  : [
-        {
-         autoScroll : true,
-         fitToFrame : true,
-         refreshContent : function() {
-             // display a summary of what we need..
-             
-             
-             function tr(k,v,vv) {
-                 vv = vv || '';
-                 return String.format('<tr><td style="text-align:right;width: 150px;"><b>{0}</b>: </td>' + 
-                     '<td style="white-space: normal;">'+vv+'{1}</td></tr>' + "\n", k, v === false ? '' : v);
-             }
-             
-             var beats = [];
-             _this.beatgrid.ds.each(function(r) {
-                 
-                 if (r.data.member*1 < 1 ) {
-                     return;
-                 }
-                 var n = (r.data.hgroup.length ? r.data.hgroup + ' : ' : '') + r.data.name; 
-                 beats.push(n);
-             });
-             var rt = {};
-             
-             var total = '???';
-             var cns_ar = _this.countrypanel.tree.getChecked('name');
-         
-             // remove general..
-             var has_gen = false;
-             cns_ar = cns_ar.filter(function(e, i, a) {
-                 if (e == 'General News') {
-                     has_gen = true;
-                     return false;
-                 }
-                 return true;
-             });
-             this.setContent("Loading....");
-             var _t = this;
-             new Pman.Request({
-                 url : baseURL+ '/Roo/Pressrelease_contact',
-                 method : 'GET',
-                 params : {
-                     limit : 1,
-                     'distfilter[beats]' : _this.form.findField('distribution_config').getValue(),
-                     'distfilter[countries]' : _this.form.findField('distribution_countries').getValue()
-                     
-                 },
-                 success : function(r) {
-                    // Roo.log(r);
-                     _t.setContent(
-                         '<h3>Press release will be distributed to ' + r.total + ' Journalist' + ( r.total == 1 ? '' : 's') + ':</h3>' + 
-                         '<table class="x-grid-row" style="width:100%">' + 
-                             tr("General Distribution", false, has_gen ? 'YES' : '<span style="color:red">NO</span>') +  
-                             tr("News Beats",beats.join(', ')) + 
-                             tr("Countries", cns_ar.join(', '))  + 
-                         "</table>");
-                 }
-             });
-                         
-         },
-         region : 'south',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'ContentPanel',
-         listeners : {
-          activate : function (_self)
-           {
-               _this.distSummary = _self;
-           }
-         }
-        },
-        {
-         region : 'west',
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'TreePanel',
-         listeners : {
-          render : function (_self)
-           {
-              _this.countrypanel = this;
-               
-           }
-         },
-         tree : {
-          collapseUnchecked : function() {
-          
-              var r = this.root;
-              
-              function closeNode  (n) {
-                  if (n.leaf) { // do not look a leaves.
-                      return false;
-                  }
-                  // do children first.
-                  var chk = 0;
-                  n.eachChild(function(nn) {
-                      if (!nn.leaf) {
-                          closeNode(nn);
-                          // if they have leaf's keep them expanded
-                          //if (nn.expanded) {
-                              chk++;
-                          //}
-                          return;
-                      }
-          
-                      if (nn.attributes.checked) {
-                          chk++;
-                      }
-                      
-                  });
-                  if (chk > 0) { // something is checked or expanded.
-                      return;
-                  }
-                  if (n != r) {
-                      n.collapse(false, false);
-                  }
-          
-              
-              }
-          
-              closeNode(this.root);
-          },
-          isNodeLoaded : function(node) {
-              if (node.leaf) {
-                  return true;
-              }
-              if (!node.loaded) {
-                  return false;
-              }
-              var ret = true;
-              var t = this;
-              node.eachChild(function(n) {
-                  if (!t.isNodeLoaded(n)) {
-                      ret = false;
-                      return false;
-                  }
-              });
-              return ret;
-          
-          },
-          onloadComplete : function(fn) {
-             
-          
-          
-               var t = this;
-                  // loop through all nodes and check if loaded  == true?
-          
-              if (!this.isNodeLoaded(this.root)) {
-                  this.onloadComplete.defer(500, this, [ fn ], false);
-                  return;
-              }
-              fn.call(this);
-              
-              
-          },
-          rootVisible : false,
-          xns : Roo.tree,
-          '|xns' : 'Roo.tree',
-          xtype : 'TreePanel',
-          listeners : {
-           checkchange : function (node, checked)
-            {
-                var t= this;
-                this.onloadComplete(function() {
-                        _this.form.findField('distribution_countries').setValue(t.getChecked('id').join(','));
-                     // _this.distSummary.refreshContent();
-                       _this.beatgrid.ds.load({});
-                });
-                return;
-                 
-                 
-                    
-            },
-           click : function (node, e)
-            {
-                    if (node.ui.checkbox) {
-                       node.ui.checkbox.checked = !node.ui.checkbox.checked;
-                       node.ui.onCheckChange();
-                   }
-            }
-          },
-          root : {
-           checked : false,
-           id : '_root',
-           text : _this._strings['8189ecf686157db0c0274c1f49373318'] /* International */,
-           xns : Roo.tree,
-           '|xns' : 'Roo.tree',
-           xtype : 'AsyncTreeNode'
-          },
-          loader : {
-           baseParams : { _tree: 1, limit: 9999, sort: 'cname', dir : 'ASC'  },
-           dataUrl : baseURL + '/Roo/Pressrelease_regionmap.php',
-           requestMethod : 'GET',
-           root : 'data',
-           xns : Roo.tree,
-           '|xns' : 'Roo.tree',
-           xtype : 'TreeLoader',
-           listeners : {
-            create : function (This, attr)
-             {
-                //Roo.log(attr);
-               // attr.text = "set in create handler";
-               
-               var v = _this.form.findField('distribution_countries').getValue();
-               if (!v.length) {
-                    v = '_generalnews';
-                    _this.form.findField('distribution_countries').setValue(v);
-             
-               }
-               var x = v.split(',');
-              //Roo.log(x);
-               
-                attr.checked = x.indexOf(attr.id) > -1 ; // read from cfg..
-             },
-            load : function (This, node, response)
-             {
-               //  _this.beatgrid.ds.load({});
-             }
-           }
-          },
-          sm : {
-           xns : Roo.tree,
-           '|xns' : 'Roo.tree',
-           xtype : 'DefaultSelectionModel',
-           listeners : {
-            beforeselect : function (_self, node, node)
-             {
-               return false;
-             }
-           }
-          }
-         }
-        },
-        {
-         background : false,
-         fitContainer : true,
-         fitToframe : true,
-         region : 'center',
-         tableName : 'pressrelease_category',
-         title : _this._strings['2bb46cdcd6c198689d1c95ac20bba931'] /* Beat */,
-         xns : Roo,
-         '|xns' : 'Roo',
-         xtype : 'GridPanel',
-         listeners : {
-          activate : function() {
-               
-               if (_this.beatgrid) {
-                   //_this.grid.ds.load({});
-               }
-           }
-         },
-         grid : {
-          autoExpandColumn : 'name',
-          loadMask : true,
-          xns : Roo.grid,
-          '|xns' : 'Roo.grid',
-          xtype : 'Grid',
-          listeners : {
-           cellclick : function (_self, ri, ci , e)
-            {
-               if (ci != 1) {return; }
-               
-                var rec = this.ds.getAt(ri);
-                rec.set('member', (rec.data.member * 1) ? 0 : 1);
-                rec.commit();
-            
-                
-                var cfg = [];
-                
-                _this.beatgrid.ds.each(function(r) {
-                    if (r.data.member*1 < 1) {
-                        return;
-                    }
-                    cfg.push(r.data.id);
-                });
-            
-                _this.form.findField('distribution_config').setValue( cfg.join(','));
-            
-              //  _this.typegrid.ds.load({});
-            
-                 _this.distSummary.refreshContent();
-            
-               //_this.countrygrid.ds.load({});
-            },
-           render : function() 
-            {
-                _this.beatgrid = this; 
-                //_this.dialog = Pman.Dialog.FILL_IN
-                // if (_this.panel.active) {
-                //   this.ds.load({});
-                // }
-            },
-           rowclass : function (gridview, rowcfg)
-            {
-                 //Roo.log(rowcfg);
-                 // determine if we need to show it..
-                 var val=_this.beatfilter.getValue().toLowerCase();
-                 rowcfg.rowClass= '';
-                 if (!val.length) {
-                    return; // always show..
-                 }
-                 var match = false;
-                 var hg = rowcfg.record.data.hgroup.toLowerCase();
-                 var n = rowcfg.record.data.name.toLowerCase();     
-                 var re = new RegExp(val);
-                 
-                 if (hg.match(re) || n.match(re)) {
-                    return; // display it..
-                 }
-                 //Roo.log('display none');
-                 if (rowcfg.record.data.member * 1 > 0) {
-                   // return;
-                 }
-                 rowcfg.rowClass = 'display-none';
-                 
-                 
-            }
-          },
-          toolbar : {
-           xns : Roo,
-           '|xns' : 'Roo',
-           xtype : 'Toolbar',
-           items  : [
-            {
-             width : 100,
-             xns : Roo.form,
-             '|xns' : 'Roo.form',
-             xtype : 'TextField',
-             listeners : {
-              keyup : function (_self, e)
-               {
-                      _this.beatgrid.view.refresh(true);
-                   
-               
-               },
-              render : function (_self)
-               {
-                 _this.beatfilter = _self;
-               }
-             }
-            },
-            {
-             cls : 'x-btn-icon',
-             icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-             xns : Roo.Toolbar,
-             '|xns' : 'Roo.Toolbar',
-             xtype : 'Button',
-             listeners : {
-              click : function (_self, e)
-               {
-                   _this.beatfilter.setValue('');
-                    _this.beatgrid.view.refresh(true);
-                   
-               }
-             }
-            },
-            {
-             xns : Roo.Toolbar,
-             '|xns' : 'Roo.Toolbar',
-             xtype : 'Fill'
-            },
-            {
-             text : _this._strings['526d688f37a86d3c3f27d0c5016eb71d'] /* Reset */,
-             xns : Roo.Toolbar,
-             '|xns' : 'Roo.Toolbar',
-             xtype : 'Button',
-             listeners : {
-              click : function (_self, e)
-               {
-                   
-                   
-                   _this.beatgrid.ds.each(function(rec) {
-                           rec.set('member', 0);
-                           rec.commit();
-                          
-                   
-               
-                   });
-               
-               }
-             }
-            },
-            {
-             text : _this._strings['45e96c0a422ce8a1a6ec1bd5eb9625c6'] /* Select All */,
-             xns : Roo.Toolbar,
-             '|xns' : 'Roo.Toolbar',
-             xtype : 'Button',
-             listeners : {
-              click : function (_self, e)
-               {
-                   
-                    // determine if we need to show it..
-                    var val =_this.beatfilter.getValue().toLowerCase();
-                    var re = false;
-                    if (val.length) {
-                        re = new RegExp(val);
-                       
-                    }
-                    
-                   
-                   
-                   _this.beatgrid.ds.each(function(rec) {
-                       if (!re) {        
-                           rec.set('member',  1);
-                           rec.commit();
-                           return;
-                       }
-                        var hg = rec.data.hgroup.toLowerCase();
-                        var n = rec.data.name.toLowerCase();
-                         if (!hg.match(re) && !n.match(re)) {
-                           return; // do not select it..
-                        }
-                   
-                         rec.set('member',  1);
-                       rec.commit();
-                          
-                   
-               
-                   });
-               
-               }
-             }
-            }
-           ]
-          },
-          dataSource : {
-           remoteSort : true,
-           sortInfo : { field : 'hgroup,name', direction: 'ASC' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, options)
-             {
-                 if (!_this.form.findField('distribution_countries').getValue().length) {
-                     this.beatgrid.ds.removeAll();
-                 
-                     return false;
-                 }
-                 options.params =     options.params || {};
-                 options.params.parent_id_name = 'News Beat';
-               //  options.params.for_beat = 1;
-               //  options.params.contact_id = _this.data ? _this.data.id : 0;
-                 options.params['query[with_empty_member]'] = 1; // this sets member=0 (blank list..)
-                 
-                 options.params['query[hide_empty_member]'] = 1;
-                 
-                 options.params['query[only_countries_tree]'] = _this.form.findField('distribution_countries').getValue();
-               
-                 options.params.limit = 999;
-             },
-            load : function (_self, records, options)
-             {
-                 var fdef = _this.form.findField('distribution_config')
-                 // beat list is loaded..
-                 // if there are no data.. we should clear the distribution config..
-                 if (!records.length) {
-                    
-                     fdef.setValue('');
-                      _this.distSummary.refreshContent();
-                    // _this.typegrid.ds.load({});
-                    return;
-                 }
-                 
-                 
-                 // otherwise, grab the first item.. find the parent id..
-                 // filter that list to make sure that nothing that is selected is hidden...
-                 
-                
-                 var def = fdef.getValue();    
-             
-                 if (def.length) {
-             
-                     var crecs = def.split(',');
-                     
-                     // crecs holds our current config...
-                     
-                     var avail = [];
-                     
-                     Roo.each(records, function(r) {
-                     
-                         if ( crecs.indexOf(''+r.data.id) > -1) {
-                             r.set('member', 1);
-                         }
-                         avail.push(''+r.data.id);
-                         
-                     });
-                     
-                     // now clear out from crecs all the 
-                     var crec_new = [];
-                     Roo.each(crecs, function(r) {
-                         if (avail.indexOf(r) > -1) {
-                             crec_new.push(r);
-                         }
-                     });
-                   
-                     fdef.setValue( crec_new.join(','));
-                     
-                     
-                 }
-                     // update the summary
-             _this.distSummary.refreshContent();
-             
-                //  _this.typegrid.ds.load({});
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_category.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [
-                {
-                    'name': 'id',
-                    'type': 'int'
-                },
-                {
-                    'name': 'parent_id',
-                    'type': 'int'
-                },
-                {
-                    'name': 'name',
-                    'type': 'string'
-                },
-                {
-                    'name': 'display_order',
-                    'type': 'int'
-                },
-                {
-                    'name': 'visible',
-                    'type': 'int'
-                }
-            ],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          },
-          colModel : [
-           {
-            dataIndex : 'name',
-            header : _this._strings['c9289663240146eaa1ec2d9838b0875a'] /* News Beat */,
-            renderer : function(v,x,r) { return String.format('{0}', (r.data.hgroup ? r.data.hgroup + ' : ' : '') + v); },
-            width : 200,
-            xns : Roo.grid,
-            '|xns' : 'Roo.grid',
-            xtype : 'ColumnModel'
-           },
-           {
-            dataIndex : 'member',
-            header : _this._strings['e0626222614bdee31951d84c64e5e9ff'] /* Select */,
-            renderer : function(v) {  
-                var state = v> 0 ?  '-checked' : '';
-            
-                return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
-                            
-             },
-            width : 75,
-            xns : Roo.grid,
-            '|xns' : 'Roo.grid',
-            xtype : 'ColumnModel'
-           }
-          ]
-         }
-        }
-       ]
-      }
-     },
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'pressrelease_notify',
-      title : _this._strings['f45381a54504218e39aca33492d29306'] /* Circulation */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.circpanel = this;
-            if (_this.circvtype) {
-                _this.circvtype.setValue('FAILED');
-            }
-            if (_this.circgrid) {
-                _this.circgrid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'person_id_firstname',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.circgrid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.circpanel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             var rec = this.ds.getAt(rowIndex);
-             var g= this;
-             Pman.Dialog.PressReleaseContact.show({ id : rec.data.person_id }, function()
-             {
-                 g.footer.onClick('first');
-             });
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['c78bf45129eff892d5c654c159fd8182'] /* Displaying pressrelease_notify{0} - {1} of {2} */,
-        emptyMsg : _this._strings['47b09b64b87dc1cb923065dd6167ecde'] /* No pressrelease_notify found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar',
-        items  : [
-         {
-          text : _this._strings['801ab24683a4a8c433c6eb40c48bcd9d'] /* Download */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-             
-                 new Pman.Download({
-                      grid : _this.circgrid
-                });
-               Roo.MessageBox.alert("Downloading", "File should be downloading now");
-            
-            }
-          }
-         }
-        ]
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          text : _this._strings['917d465e9a9e8b16a8da50a1ca8156ca'] /* Show:  */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'TextItem'
-         },
-         {
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           render : function (_self)
-            {
-              _this.searchBox = _self;
-            },
-           specialkey : function (_self, e)
-            {
-            
-                if (e.getCharCode() == 13) {
-                    _this.circgrid.footer.onClick('first');
-                }
-            }
-          }
-         },
-         {
-          allowBlank : false,
-          displayField : 'fname',
-          editable : false,
-          hiddenName : 'vtype',
-          listWidth : 200,
-          mode : 'local',
-          name : 'vtype_name',
-          triggerAction : 'all',
-          value : _this._strings['b9e14d9b2886bcff408b85aefa780419'] /* FAILED */,
-          valueField : 'ftype',
-          width : 200,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboBox',
-          listeners : {
-           beforeselect : function (combo, record, index)
-            {
-                (function() {
-                    _this.circgrid.footer.onClick('first');
-                }).defer(100);
-            },
-           render : function (_self)
-            {
-              _this.circvtype = _self;
-            }
-          },
-          store : {
-           data : [ ['FAILED', "Failed"],[ 'DELIVERED' , "Delivered"],[ 'PENDING', "Pending"],[ 'ONLINE', "ONLINE"] ],
-           fields : [  'ftype', 'fname'],
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'SimpleStore'
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/search.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.circgrid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                _this.searchBox.setValue('');
-                
-                
-                _this.circgrid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          text : _this._strings['a97749f6323c1743aad997aaf0197b19'] /* Remove undelivered messages */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                var id = _this.form.findField('id').getValue()*1
-                if (id < 1) {
-                    Roo.MessageBox.alert("Error", "Save Release first");
-                    return;
-                }
-            
-                new Pman.Request({
-                    url : baseURL + '/PressRelease/View/' + id,
-                    params : {
-                        reset : 1
-                    },
-                    method : 'POST',
-                    success : function() 
-                    {
-                        _this.circgrid.footer.onClick('first');
-                    } 
-                
-                });
-            }
-          }
-         },
-         {
-          text : _this._strings['8567f15f1470a10fcb0dfa920ac7c21b'] /* Force Re-delivery */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                var id = _this.form.findField('id').getValue()*1
-                if (id < 1) {
-                    Roo.MessageBox.alert("Error", "Save Release first");
-                    return;
-                }
-                var s = _this.circgrid.getSelectionModel().getSelections();
-                if (!s || !s.length) {
-                    Roo.MessageBox.alert("Error", "Select item to re-deliver");
-                    return;
-                }
-                 
-            
-                new Pman.Request({
-                    url : baseURL + '/PressRelease/View/' + id,
-                    params : {
-                        redeliver : s[0].data.id
-                    },
-                    method : 'POST',
-                    success : function() 
-                    {
-                        _this.circgrid.footer.onClick('first');
-                    } 
-                
-                });
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'ontable', direction: 'ASC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-            o.params = o.params || {};
-            o.params.ontable = 'pressrelease_entry';
-            o.params.onid = _this.form.findField('id').getValue();
-            if ( ! o.params.onid) {
-               return false;
-            
-            }
-            o.params['search[remarks]'] = _this.searchBox.getValue();
-            
-            o.params.vtype = _this.circvtype.getValue();
-            
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_notify.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'act_when',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'onid',
-                 'type': 'int'
-             },
-             {
-                 'name': 'ontable',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'msgid',
-                 'type': 'string'
-             },
-             {
-                 'name': 'sent',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'bounced',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_category_type_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email_personal',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_category_media_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_submission_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_mobile',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_direct',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_firstname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_lastname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_firstname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_lastname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_category_scope_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_contact_language',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_contact_language_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_country',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_method',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_from',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_to',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_days',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'id',
-         header : _this._strings['9c9745a343efeacc9efe9b7222b27afb'] /* Ref# */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'evtype',
-         header : _this._strings['a1fa27779242b4902f7ae3bdd5c6d508'] /* Type */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'act_when',
-         header : _this._strings['122a26ef126e03089bb959c949d12b0a'] /* Due out (Local time) */,
-         renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'person_id_firstname',
-         header : _this._strings['e12167aa0a7698e6ebc92b4ce3909b53'] /* To */,
-         renderer : function(v,x,r) { 
-         
-             if (r.data.person_id < 0) {
-                 return String.format('{0} <a qtip="{1}" href="mailto:{1}">{1}</a>>', 
-                     r.data.firstname, r.data.to_email); 
-             
-             }
-             
-             if (!Pman.hasPerm('PressRelease.JournalistAll', 'S')) {
-                 return String.format('{0} {1} ({2})', 
-                         v, r.data.person_id_lastname, r.data.person_id_publication_name
-                 );     
-             }
-         
-             return String.format('<a qtip="{3}" href="mailto:{3}">{0} {1}</a> ({2})', 
-                 v, r.data.person_id_lastname,  r.data.person_id_publication_name,
-                  r.json['person_id_' + r.data.field]); 
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'sent',
-         header : _this._strings['7f8c0283f16925caed8e632086b81b9c'] /* Sent */,
-         renderer : function(v,x,r) 
-         { 
-             var prefix = '';
-             if (r.data.person_id < 0) {
-                 prefix = 'MANUAL SEND: ';
-             
-             }
-         
-            if (!r.data.event_id) {
-                 return prefix + 'not sent yet';
-            }
-            
-             return String.format(prefix + '{0}', v ? v.format('d/M/Y H:i:s') : ''); 
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'event_id_remarks',
-         header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
-         renderer : function(v) { 
-              
-             return String.format('<span qtip="{1}">{0}</span>', v,String.format('{0}', v)); 
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     },
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'Events',
-      title : _this._strings['ce0be71e33226e4c1db2bcea5959f16b'] /* Log */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.panel = this;
-            if (_this.grid) {
-                _this.grid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'remarks',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.grid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.panel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             if (!_this.dialog) return;
-             _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                 _this.grid.footer.onClick('first');
-             }); 
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['7205d42d6d975c911bc1147259d78935'] /* Displaying Events{0} - {1} of {2} */,
-        emptyMsg : _this._strings['90e4ac2e5a22e53df63b6b186d8727ba'] /* No Events found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'event_when', direction: 'DESC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-              if (!_this.data || !_this.data.id) {
-                  return false;
-              }
-              o.params.on_table = 'pressrelease_entry';
-              o.params.on_id = _this.data.id;
-              
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/Events.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'event_when',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'action',
-                 'type': 'string'
-             },
-             {
-                 'name': 'ipaddr',
-                 'type': 'string'
-             },
-             {
-                 'name': 'on_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'on_table',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_no_reset_sent',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_action_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_project_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_dt',
-                 'type': 'date'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'event_when',
-         header : _this._strings['4e97aeeaa8b15ca1180fcd1f3ac478d1'] /* When */,
-         renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'person_id_name',
-         header : _this._strings['4ee972120bcda675f75222c87cb9d356'] /* Who */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'action',
-         header : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 75,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'remarks',
-         header : _this._strings['231bc72756b5e6de492aaaa1577f61b1'] /* Remarks */,
-         renderer : function(v) { return String.format('<span qtip="{0}">{1}</span>', 
-             Roo.util.Format.htmlEncode(v),v); },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     },
-     {
-      region : 'center',
-      title : _this._strings['867343577fa1f33caa632a19543bd252'] /* Keywords */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'TreePanel',
-      listeners : {
-       activate : function (_self)
-        {
-            _this.treepanel.el.mask('Before you add a keyword, please publish release first');
-            
-            _this.treepanel.tree.getRootNode().reload(function() {
-                _this.treepanel.tree.getRootNode().expand(true,true);
-            });
-            
-            if(_this.form.findField('project_id').getValue()*1 > 0 || 
-               _this.form.findField('parent_id_project_id').getValue()*1 > 0){
-                _this.treepanel.el.unmask();
-            }
-            
-            
-        },
-       render : function (_self)
-        {
-          _this.treepanel = _self;
-        }
-      },
-      toolbar : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'Toolbar',
-       items  : [
-        {
-         text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button',
-         menu : {
-          xns : Roo.menu,
-          '|xns' : 'Roo.menu',
-          xtype : 'Menu',
-          items  : [
-           {
-            text : _this._strings['69046eb2a80f3965bcd41bfdb1a7bf5c'] /* Add Keyword */,
-            xns : Roo.menu,
-            '|xns' : 'Roo.menu',
-            xtype : 'Item',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if(!_this.form.findField('project_id').getValue()*1 && !_this.form.findField('parent_id_project_id').getValue()*1){
-                      Roo.MessageBox.alert('Error', 'Please publish release first');
-                      return;
-                  }
-                  var sn  = _this.treepanel.tree.getSelectionModel().getSelectedNode();
-                  if(!sn || sn.leaf || sn.id == 'keyword'){
-                      sn = 0;
-                  }
-                  Pman.Dialog.ClippingKeyword.show({
-                          project_id: (_this.form.findField('project_id').getValue()) ? _this.form.findField('project_id').getValue() : _this.form.findField('parent_id_project_id').getValue(),
-                          language: _this.form.findField('language').getValue(),
-                          is_keyword : 1,
-                          parent_id: sn ? sn.id : 0
-                      },
-                      function () {
-                          (sn || _this.treepanel.tree.getRootNode()).reload(); 
-                  });
-              }
-            }
-           },
-           {
-            text : _this._strings['b112803ab9deb7deba2a6b24ef3bb91a'] /* Add Group */,
-            xns : Roo.menu,
-            '|xns' : 'Roo.menu',
-            xtype : 'Item',
-            listeners : {
-             click : function (_self, e)
-              {
-                  //var sn  = _this.treepanel.tree.getSelectionModel().getSelectedNode();
-                  if(!_this.form.findField('project_id').getValue()*1 && !_this.form.findField('parent_id_project_id').getValue()*1){
-                      Roo.MessageBox.alert('Error', 'Please publish release first');
-                      return;
-                  }
-                  Pman.Dialog.ClippingKeywordGroup.show({
-                      project_id: (_this.form.findField('project_id').getValue()) ? _this.form.findField('project_id').getValue() : _this.form.findField('parent_id_project_id').getValue(),
-                      language: _this.form.findField('language').getValue(),
-                      parent_id: 0
-                  },
-                  function () {
-                      _this.treepanel.tree.getRootNode().reload();
-                  });
-              }
-            }
-           }
-          ]
-         }
-        },
-        {
-         text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button',
-         listeners : {
-          click : function (_self, e)
-           {
-               if(!_this.form.findField('project_id').getValue()*1){
-                   Roo.MessageBox.alert('Error', 'Please publish release first');
-                   return;
-               }
-               var tree = _this.treepanel.tree;
-               var sn  = tree.getSelectionModel().getSelectedNode();
-               if (!sn || isNaN(sn.id *1)) {
-                   Roo.MessageBox.alert("Error", "Select a keyword");
-                   return;
-               }
-               Roo.MessageBox.confirm("Confirm", "Are sure you want to delete the keyword?", function (v){
-                   if (v != 'yes') {
-                       return;
-                   }
-                   
-                   new Pman.Request({
-                       url : baseURL + '/Roo/Clipping_keywords',
-                       method: 'POST',
-                       params : {
-                           _delete : sn.id
-                       },
-                       success : function()
-                       {
-                          //_this.treepanel.tree.getRootNode().reload();
-                          sn.parentNode.removeChild(sn);
-                          
-                           //g.getDataSource().reload();
-                       }
-                   });
-               });
-           }
-         }
-        },
-        {
-         text : _this._strings['91412465ea9169dfd901dd5e7c96dd99'] /* Upload */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button'
-        },
-        {
-         text : _this._strings['4d1c8263ba1036754f8db14a98f9f006'] /* Reload */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button',
-         listeners : {
-          click : function (_self, e)
-           {
-               if(!_this.form.findField('project_id').getValue()*1){
-                   Roo.MessageBox.alert('Error', 'Please publish release first');
-                   return;
-               }
-               _this.treepanel.tree.getRootNode().reload();
-           }
-         }
-        }
-       ]
-      },
-      tree : {
-       containerScroll : true,
-       ddScroll : true,
-       enableDD : true,
-       rendererTip : function(attr) {
-           var alternatives = (attr.alternatives) ? attr.alternatives : '';
-           return attr.text + '<br/>' + alternatives.split('\n').join('<br/>');
-       },
-       rootVisible : false,
-       xns : Roo.tree,
-       '|xns' : 'Roo.tree',
-       xtype : 'TreePanel',
-       listeners : {
-        beforenodedrop : function (dropEvent)
-         {
-             Roo.log(dropEvent);
-             Roo.log(dropEvent.target);
-             
-             
-             var target_parent = dropEvent.point ==  'append' ? 
-                     dropEvent.target : dropEvent.target.parentNode;
-                     
-             // same parent
-             Roo.log(target_parent);
-             if (target_parent.id == dropEvent.data.node.parentNode.id) {
-                  dropEvent.cancel = true;
-                  return;
-             }
-             
-             
-             var tree = this;
-             if(!target_parent.leaf){
-                 // parent is not a 'keyword'
-                 // make sure we are dragging a keyword
-                 if(dropEvent.data.node.leaf){
-                     new Pman.Request({
-                         url : baseURL + '/Roo/Clipping_keywords',
-                         method: 'POST',
-                         params : {
-                             parent_id : target_parent.id == 'keyword' ? 0 : target_parent.id,
-                             id : dropEvent.data.node.id
-                         },
-                         success : function()
-                         {
-                             //_this.treepanel.tree.getRootNode().reload();
-                             //g.getDataSource().reload();
-                         },
-                         failure : function(){
-                             Roo.MessageBox.alert("Error", "problem saving change, please try again");
-                             _this.treepanel.tree.getRootNode().reload();
-                         }
-                     });
-                 }else{
-                     dropEvent.cancel = true;
-                 }
-             }else{
-                 dropEvent.cancel = true;
-                 Roo.MessageBox.confirm("Confirm", "Do you want to add this to alternatives?", function (v){
-                     if (v != 'yes') {
-                        // _this.treepanel.tree.getRootNode().reload();
-                         return;
-                     }
-         
-                     var alt = dropEvent.target.attributes.alternatives;
-                     alt = alt || '';
-                     alt += (alt && alt.length) ? "\n" : '';
-                     alt += dropEvent.data.node.text;
-                      dropEvent.target.attributes.alternatives = alt;
-                      
-                      dropEvent.data.node.parentNode.removeChild(dropEvent.data.node);
-                      // update the tip..
-                      dropEvent.target.ui.textNode.setAttribute('qtip', tree.rendererTip(dropEvent.target.attributes));
-                      
-                     new Pman.Request({
-                         url : baseURL + '/Roo/Clipping_keywords',
-                         method: 'POST',
-                         params : {
-                             id : dropEvent.target.id,
-                             alternatives : alt
-                         },
-                         success : function()
-                         {
-                             new Pman.Request({
-                                 url : baseURL + '/Roo/Clipping_keywords',
-                                 method: 'POST',
-                                 params : {
-                                     _delete : dropEvent.data.node.id
-                                 },
-                                 success : function()
-                                 {
-                                   // _this.treepanel.tree.getRootNode().reload();
-                                     //g.getDataSource().reload();
-                                 }
-                             });
-                         }
-                     });
-                 });
-             }
-         
-         },
-        dblclick : function (node, e)
-         {
-             var     tree =this;
-             if(parseInt(node.attributes.is_keyword)){
-                 Pman.Dialog.ClippingKeyword.show({id:node.attributes.id},
-                 function (res) {
-                     node.attributes.alternatives = res.alternatives;
-                     node.attributes.keyword = res.keyword; 
-                     node.attributes.text = res.keyword;             
-                     
-                     node.setText(res.keyword);
-                     node.ui.textNode.setAttribute('qtip', tree.rendererTip(node.attributes));
-                    
-                     //_this.treepanel.tree.getRootNode().reload();
-                 });
-             }else{
-                 Pman.Dialog.ClippingKeywordGroup.show({id:node.attributes.id},
-                 function (res) {
-         
-                     node.attributes.keyword = res.keyword; 
-                     node.attributes.text = res.keyword;             
-                     
-                     node.setText(res.keyword);
-         
-         
-                 });
-             }
-         }
-       },
-       root : {
-        id : 'keyword',
-        text : _this._strings['d7df5b64df1181ef1d62d646a13aa860'] /* keyword */,
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'AsyncTreeNode'
-       },
-       loader : {
-        baseParams : {_tree:1},
-        dataUrl : baseURL + '/Roo/Clipping_keywords',
-        requestMethod : 'GET',
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'TreeLoader',
-        listeners : {
-         beforeload : function (This, node, callback)
-          {
-              this.baseParams._tree = 1;
-              if (!_this.form) {
-                  return false;
-              }
-              
-              var pid = (_this.form.findField('parent_id').getValue()*1 > 0 && _this.form.findField('parent_id_project_id').getValue()*1 > 0) ?
-                       _this.form.findField('parent_id_project_id').getValue() : _this.form.findField('project_id').getValue()
-              
-              this.baseParams.project_id = pid;
-              this.baseParams.language = _this.form.findField('language').getValue();
-          },
-         create : function (This, attr)
-          {
-          
-              attr.text =  attr.text;
-              attr.allowChildren = true;
-          }
-        }
-       },
-       selModel : {
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'DefaultSelectionModel'
-       }
-      }
-     },
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'Events',
-      title : _this._strings['c91c7b93c28cd18741b71f727ee81ee3'] /* Reports */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.notifypanel = this;
-            if (_this.notifygrid) {
-                _this.grid.notifyfooter.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'to_email',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.notifygrid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.notifypanel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-         
-         
-              var fd = _this.form.getFieldValues();
-              var dt = Date.parseDate (
-                 fd.publish_dt_day + ' ' + fd.publish_dt_hr
-              , "Y-m-d H:i");
-              Roo.log(dt);
-               
-              Pman.Dialog.PressReleaseReportNotify.show({
-                     id : this.getDataSource().getAt(rowIndex).data.id,
-                     release_dt : dt,
-                     act_when_tz: fd.publish_dt_tz
-                     
-                 }, function() {
-                  _this.notifygrid.footer.onClick('refresh');
-              });
-         
-         
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['7205d42d6d975c911bc1147259d78935'] /* Displaying Events{0} - {1} of {2} */,
-        emptyMsg : _this._strings['90e4ac2e5a22e53df63b6b186d8727ba'] /* No Events found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          cls : 'x-btn-text-icon',
-          icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-          text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                 var fd = _this.form.getFieldValues();
-                 var dt = Date.parseDate (
-                    fd.publish_dt_day + ' ' + fd.publish_dt_hr
-                 , "Y-m-d H:i");
-                 Roo.log(dt);
-                 
-                 Pman.Dialog.PressReleaseReportNotify.show({
-                        ontable:  'pressrelease_entry',
-                        onid : _this.data.id,
-                        evtype : 'distributionReport',
-                        release_dt : dt,
-                        act_when_tz: fd.publish_dt_tz
-                        
-                    }, function() {
-                     _this.notifygrid.footer.onClick('refresh');
-                 });
-            },
-           render : function (_self)
-            {
-                _this.addItemBtn = _self;
-            }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : rootURL + '/Pman/templates/images/trash.gif',
-          text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-                    {
-                    Pman.genericDelete(_this.notifypanel, 'core_notify'); 
-                    }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'event_when', direction: 'DESC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-              if (!_this.data || !_this.data.id) {
-                  return false;
-              }
-              o.params.ontable = 'pressrelease_entry';
-              o.params.onid = _this.data.id;
-              o.params.evtype = 'distributionReport';
-              
-              
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/core_notify.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'event_when',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'action',
-                 'type': 'string'
-             },
-             {
-                 'name': 'ipaddr',
-                 'type': 'string'
-             },
-             {
-                 'name': 'on_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'on_table',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_no_reset_sent',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_action_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_project_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_dt',
-                 'type': 'date'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'act_start',
-         header : _this._strings['4b1b4dc8cf38b3c64b1d657da8f5ac8c'] /* Report */,
-         renderer : function(v) { 
-           if (!v) { 
-                return '??';
-           }
-            var fd = _this.form.getFieldValues();
-             var reltime = Date.parseDate (
-                 fd.publish_dt_day + ' ' + fd.publish_dt_hr
-              , "Y-m-d H:i");
-         
-                
-            var tz =  fd.publish_dt_tz;
-          
-            var parts = tz.split('.');
-            
-            var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);
-            
-           
-            var diff =  Math.round(v.getElapsed(hkt) / (1000 * 60 * 60 * 24));
-           return '' + diff + ' Days';
-         
-         //return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); 
-         
-         
-         
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'act_start',
-         header : _this._strings['4e97aeeaa8b15ca1180fcd1f3ac478d1'] /* When */,
-         renderer : function(v) { 
-           if (!v) { 
-                return '??';
-           }
-            return v.format('d/M/Y h:ia'); 
-         
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'to_email',
-         header : _this._strings['4ee972120bcda675f75222c87cb9d356'] /* Who */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'sent',
-         header : _this._strings['7f8c0283f16925caed8e632086b81b9c'] /* Sent */,
-         renderer : function(v,x,r) {
-             if (!v || v < r.data.act_start) {
-                 return '';
-             }
-             return v.format('d/M/Y H:i');
-         
-           },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'id',
-         header : _this._strings['9c9745a343efeacc9efe9b7222b27afb'] /* Ref# */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     }
-    ]
-   });
- }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseImage.bjs b/PressRelease/Pman.Dialog.PressReleaseImage.bjs
deleted file mode 100644 (file)
index d612229..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-{
- "name" : "Pman.Dialog.PressReleaseImage",
- "parent" : "",
- "title" : "Image Edit",
- "path" : "/home/edward/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseImage.bjs",
- "permname" : "",
- "modOrder" : "001",
- "items" : [
-  {
-   "modal" : true,
-   "collapsible" : false,
-   "background" : true,
-   "title" : "Edit Image Details",
-   "xtype" : "LayoutDialog",
-   "width" : 580,
-   "$ xns" : "Roo",
-   "closable" : false,
-   "resizable" : false,
-   "height" : 400,
-   "items" : [
-    {
-     "xtype" : "LayoutRegion",
-     "$ xns" : "Roo",
-     "titlebar" : false,
-     "* prop" : "center"
-    },
-    {
-     "fitToFrame" : true,
-     "background" : true,
-     "region" : "center",
-     "xtype" : "ContentPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "listeners" : {
-        "|actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
-        "|actioncomplete" : "function (_s, action)\n{\n    \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n}\n",
-        "|rendered" : "function (_self)\n{\n    _this.form = _self;\n}\n"
-       },
-       "$ url" : "baseURL + '/Roo/Images.php'",
-       "xtype" : "Form",
-       "style" : "margin: 5px",
-       "method" : "POST",
-       "$ xns" : "Roo.form",
-       "items" : [
-        {
-         "labelAlign" : "top",
-         "xtype" : "Column",
-         "width" : 200,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "fieldLabel" : "Image Preview",
-           "xtype" : "DisplayImage",
-           "readOnly" : true,
-           "width" : 180,
-           "$ renderer" : "function(v)    {\n    return String.format('<img src=\"{0}/Images/Thumb/200x200/{1}/{2}\" width=\"180\">', baseURL, _this.data.id, _this.data.filename);\n    }",
-           "$ xns" : "Roo.form",
-           "name" : "filename"
-          }
-         ]
-        },
-        {
-         "labelAlign" : "top",
-         "xtype" : "Column",
-         "width" : 320,
-         "$ xns" : "Roo.form",
-         "items" : [
-          {
-           "fieldLabel" : "Press Release Name",
-           "xtype" : "TextField",
-           "width" : 300,
-           "$ xns" : "Roo.form",
-           "name" : "title"
-          },
-          {
-           "fieldLabel" : "Photo Release Text",
-           "xtype" : "TextArea",
-           "width" : 300,
-           "$ xns" : "Roo.form",
-           "name" : "descript",
-           "height" : 100
-          },
-          {
-           "fieldLabel" : "Source",
-           "xtype" : "TextField",
-           "width" : 300,
-           "$ xns" : "Roo.form",
-           "name" : "source"
-          },
-          {
-           "fieldLabel" : "Credit",
-           "xtype" : "TextField",
-           "width" : 300,
-           "$ xns" : "Roo.form",
-           "name" : "credit"
-          },
-          {
-           "alwaysQuery" : true,
-           "listWidth" : 400,
-           "triggerAction" : "all",
-           "fieldLabel" : "Type",
-           "forceSelection" : true,
-           "selectOnFocus" : true,
-           "pageSize" : 20,
-           "displayField" : "name",
-           "emptyText" : "Select Image type",
-           "minChars" : 2,
-           "valueField" : "name",
-           "xtype" : "ComboBox",
-           "typeAhead" : true,
-           "editable" : false,
-           "width" : 300,
-           "$ xns" : "Roo.form",
-           "name" : "imgtype",
-           "qtip" : "Select Image type",
-           "queryParam" : "query[name]",
-           "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
-           "loadingText" : "Searching...",
-           "items" : [
-            {
-             "listeners" : {
-              "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype=\"Image Types\";\n}\n"
-             },
-             "xtype" : "Store",
-             "remoteSort" : true,
-             "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
-             "$ xns" : "Roo.data",
-             "* prop" : "store",
-             "items" : [
-              {
-               "$ url" : "baseURL + '/Roo/core_enum.php'",
-               "xtype" : "HttpProxy",
-               "method" : "GET",
-               "$ xns" : "Roo.data",
-               "* prop" : "proxy"
-              },
-              {
-               "id" : "id",
-               "root" : "data",
-               "xtype" : "JsonReader",
-               "$ xns" : "Roo.data",
-               "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
-               "* prop" : "reader",
-               "totalProperty" : "total"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "id"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "|click" : " function() {\n\n                                    _this.form.reset();\n\n                                    _this.dialog.hide();\n\n                                }\n"
-     },
-     "text" : "Cancel",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "|click" : " function() {\n\n                                    _this.dialog.el.mask(\"Saving\");\n\n                                    _this.form.doAction(\"submit\");\n\n                                }\n"
-     },
-     "text" : "OK",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseImage.js b/PressRelease/Pman.Dialog.PressReleaseImage.js
deleted file mode 100644 (file)
index 2eb4339..0000000
+++ /dev/null
@@ -1,268 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Dialog');
-
-Pman.Dialog.PressReleaseImage = {
-
- dialog : false,
- callback:  false,
-
- show : function(data, cb)
- {
-  if (!this.dialog) {
-   this.create();
-  }
-
-  this.callback = cb;
-  this.data = data;
-  this.dialog.show(this.data._el);
-  if (this.form) {
-   this.form.reset();
-   this.form.setValues(data);
-   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-  }
-
- },
-
- create : function()
- {
-   var _this = this;
-   this.dialog = Roo.factory({
-    center : {
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion',
-     xns : Roo,
-     titlebar : false
-    },
-    '|xns' : 'Roo',
-    modal : true,
-    collapsible : false,
-    background : true,
-    title : "Edit Image Details",
-    xtype : 'LayoutDialog',
-    width : 580,
-    xns : Roo,
-    closable : false,
-    resizable : false,
-    height : 400,
-    buttons : [
-      {
-       '|xns' : 'Roo',
-       text : "Cancel",
-       xtype : 'Button',
-       xns : Roo,
-       listeners : {
-        click : function() {
-         
-                                             _this.form.reset();
-         
-                                             _this.dialog.hide();
-         
-                                         }
-       }
-      },
-{
-       '|xns' : 'Roo',
-       text : "OK",
-       xtype : 'Button',
-       xns : Roo,
-       listeners : {
-        click : function() {
-         
-                                             _this.dialog.el.mask("Saving");
-         
-                                             _this.form.doAction("submit");
-         
-                                         }
-       }
-      }
-    ],
-    items : [
-     {
-      '|xns' : 'Roo',
-      fitToFrame : true,
-      background : true,
-      region : 'center',
-      xtype : 'ContentPanel',
-      xns : Roo,
-      items : [
-       {
-        '|xns' : 'Roo.form',
-        url : baseURL + '/Roo/Images.php',
-        xtype : 'Form',
-        style : 'margin: 5px',
-        method : 'POST',
-        xns : Roo.form,
-        listeners : {
-         actionfailed : function (_self, action)
-          {
-              _this.dialog.el.unmask();
-              Pman.standardActionFailed(_self, action);
-          },
-         actioncomplete : function (_s, action)
-          {
-              
-             if (action.type =='submit') {
-                 
-                 _this.dialog.el.unmask();
-                 _this.dialog.hide();
-                 
-                  if (_this.callback) {
-                     _this.callback.call(_this, _this.form.getValues());
-                  }
-                  _this.form.reset();
-                  return;
-              }
-          },
-         rendered : function (_self)
-          {
-              _this.form = _self;
-          }
-        },
-        items : [
-         {
-          '|xns' : 'Roo.form',
-          labelAlign : 'top',
-          xtype : 'Column',
-          width : 200,
-          xns : Roo.form,
-          items : [
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'Image Preview',
-            xtype : 'DisplayImage',
-            readOnly : true,
-            width : 180,
-            renderer : function(v)    {
-                return String.format('<img src="{0}/Images/Thumb/200x200/{1}/{2}" width="180">', baseURL, _this.data.id, _this.data.filename);
-                },
-            xns : Roo.form,
-            name : 'filename'
-           }
-          ]
-
-         },
-         {
-          '|xns' : 'Roo.form',
-          labelAlign : 'top',
-          xtype : 'Column',
-          width : 320,
-          xns : Roo.form,
-          items : [
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'Press Release Name',
-            xtype : 'TextField',
-            width : 300,
-            xns : Roo.form,
-            name : 'title'
-           },
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'Photo Release Text',
-            xtype : 'TextArea',
-            width : 300,
-            xns : Roo.form,
-            name : 'descript',
-            height : 100
-           },
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'Source',
-            xtype : 'TextField',
-            width : 300,
-            xns : Roo.form,
-            name : 'source'
-           },
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'Credit',
-            xtype : 'TextField',
-            width : 300,
-            xns : Roo.form,
-            name : 'credit'
-           },
-           {
-            store : {
-             proxy : {
-              '|xns' : 'Roo.data',
-              url : baseURL + '/Roo/core_enum.php',
-              xtype : 'HttpProxy',
-              method : 'GET',
-              xns : Roo.data
-             },
-             reader : {
-              '|xns' : 'Roo.data',
-              id : 'id',
-              root : 'data',
-              xtype : 'JsonReader',
-              xns : Roo.data,
-              fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
-              totalProperty : 'total'
-             },
-             '|xns' : 'Roo.data',
-             xtype : 'Store',
-             remoteSort : true,
-             sortInfo : { direction : 'ASC', field: 'id' },
-             xns : Roo.data,
-             listeners : {
-              beforeload : function (_self, o){
-                   o.params = o.params || {};
-                   // set more here
-                   o.params.etype="Image Types";
-               }
-             },
-             items : [
-
-             ]
-
-            },
-            '|xns' : 'Roo.form',
-            alwaysQuery : true,
-            listWidth : 400,
-            triggerAction : 'all',
-            fieldLabel : 'Type',
-            forceSelection : true,
-            selectOnFocus : true,
-            pageSize : 20,
-            displayField : 'name',
-            emptyText : "Select Image type",
-            minChars : 2,
-            valueField : 'name',
-            xtype : 'ComboBox',
-            typeAhead : true,
-            editable : false,
-            width : 300,
-            xns : Roo.form,
-            name : 'imgtype',
-            qtip : "Select Image type",
-            queryParam : 'query[name]',
-            tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
-            loadingText : "Searching...",
-            items : [
-
-            ]
-
-           }
-          ]
-
-         },
-         {
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden',
-          xns : Roo.form,
-          name : 'id'
-         }
-        ]
-
-       }
-      ]
-
-     }
-    ]
-
-   });
- }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseJournalistImport.bjs b/PressRelease/Pman.Dialog.PressReleaseJournalistImport.bjs
deleted file mode 100644 (file)
index 5335369..0000000
+++ /dev/null
@@ -1,259 +0,0 @@
-{
-    "id": "roo-file-60",
-    "name": "Pman.Dialog.PressReleaseJournalistImport",
-    "parent": "",
-    "title": "",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseJournalistImport.bjs",
-    "items": [
-        {
-            "listeners": {
-                "show": "function (_self)\n{\n    (function() {\n        _this.grid.dataSource.load({});\n    }).defer(100);\n\n}"
-            },
-            "height": 400,
-            "minHeight": 400,
-            "minWidth": 950,
-            "resizable": true,
-            "title": "Preview before importing",
-            "width": 950,
-            "xtype": "LayoutDialog",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "*prop": "center",
-                    "tabPosition": "top",
-                    "xtype": "LayoutRegion",
-                    "|xns": "Roo"
-                },
-                {
-                    "listeners": {
-                        "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.dataSource.load({});\n    }\n}"
-                    },
-                    "background": false,
-                    "fitContainer": false,
-                    "fitToframe": false,
-                    "region": "center",
-                    "tableName": "pressrelease_contact",
-                    "title": "pressrelease_contact",
-                    "xtype": "GridPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.dataSource.load({});\n    }\n}",
-                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                            },
-                            "*prop": "grid",
-                            "autoExpandColumn": "remarks",
-                            "loadMask": true,
-                            "xtype": "Grid",
-                            "|xns": "Roo.grid",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "beforeload": "function (_self, o)\n{\n\n    if (!_this.data || !_this.data.data) {\n        Roo.MessageBox.alert(\"error\", \"no data\");\n        return  false;\n    }\n    this.removeAll();\n    this.loadData({ data: _this.data.data, length  : _this.data.data.length } );\n    \n    return false;\n    \n    if (!_this.data) {\n        return;\n    }\n    o.params.id = _this.data.id;\n    \n}"
-                                    },
-                                    "*prop": "dataSource",
-                                    "remoteSort": true,
-                                    "xtype": "Store",
-                                    "|sortInfo": "{ field : 'honor', direction: 'ASC' }",
-                                    "|xns": "Roo.data",
-                                    "items": [
-                                        {
-                                            "*prop": "proxy",
-                                            "method": "GET",
-                                            "xtype": "HttpProxy",
-                                            "|url": "baseURL + '/PressRelease/Import/Journalist'",
-                                            "|xns": "Roo.data"
-                                        },
-                                        {
-                                            "|xns": "Roo.data",
-                                            "xtype": "JsonReader",
-                                            "totalProperty": "total",
-                                            "root": "data",
-                                            "*prop": "reader",
-                                            "id": "id",
-                                            "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'honor',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'contact_language',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'firstname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'lastname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_name',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id',\n        'type': 'int'\n    },\n    {\n        'name': 'contact_language_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'country',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_method',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_from',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_to',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_days',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_lang_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'city',\n        'type': 'string'\n    },\n    {\n        'name': 'category_type_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_type_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_hgroup',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_hgroup',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_hgroup',\n        'type': 'string'\n    }\n]"
-                                        }
-                                    ]
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "Id",
-                                    "width": 20,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (v < 0) {\n            return '';\n    }    \n    return 'EXISTS';\n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "country",
-                                    "header": "Country",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (!v.length) {\n            return '<span style=\"color:red\">MISSING</span>';\n    }    \n    return String.format('{0}', v); \n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "News Beat",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (!r.json.news_beat_id) {\n            return '<span style=\"color:red\">Invalid Newsbeat</span>';\n    }    \n    return String.format('{0}', r.json.news_beat); \n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "contact_language",
-                                    "header": "Contact language",
-                                    "width": 40,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (!v.length) {\n            return '<span style=\"color:red\">NO LANG</span>';\n    }    \n    return String.format('{0}', v); \n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "contact_language_alt",
-                                    "header": "Contact language alt",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "Media Type",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (r.json.category_media_id * 1 < 1) {\n        return String.format('<span style=\"color:red\">Invalid:  {0}</span>',\n            r.json.category_media_id_name);\n    }    \n    return String.format('{0}', r.json.category_media_id_name); \n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "id",
-                                    "header": "Pub. scope",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v,x,r) {\n    if (r.json.category_scope_id * 1 < 1) {\n        return String.format('<span style=\"color:red\">Invalid:  {0}</span>',\n            r.json.category_scope_id_name);\n    }    \n    return String.format('{0}', r.json.category_scope_id_name); \n    \n }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "publication_name",
-                                    "header": "Publication name",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "firstname",
-                                    "header": "Firstname",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "lastname",
-                                    "header": "Lastname",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "role",
-                                    "header": "Role",
-                                    "width": 75,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "email",
-                                    "header": "Email",
-                                    "width": 75,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "phone_direct",
-                                    "header": "Direct",
-                                    "width": 70,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "phone",
-                                    "header": "Phone",
-                                    "width": 70,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "fax",
-                                    "header": "Fax",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "url",
-                                    "header": "Url",
-                                    "width": 50,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "remarks",
-                                    "header": "Remarks",
-                                    "width": 20,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n        Pman.Dialog.Image.show({\n            _url : baseURL + '/PressRelease/Import/Journalist?confirmed=1'\n        \n        }, function (d) {\n            //Roo.log(d);\n            \n             (function() {\n                Roo.MessageBox.alert(\"Done\", \"Upload completed\");\n                _this.dialog.hide();\n             }).defer(300);\n        });\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "confirm import",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n  _this.dialog.hide();\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "cancel import",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseJournalistImport.js b/PressRelease/Pman.Dialog.PressReleaseJournalistImport.js
deleted file mode 100644 (file)
index 2e588e3..0000000
+++ /dev/null
@@ -1,561 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Dialog.PressReleaseJournalistImport = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            listeners : {
-                show : function (_self)
-                {
-                    (function() {
-                        _this.grid.dataSource.load({});
-                    }).defer(100);
-                
-                }
-            },
-            height : 400,
-            minHeight : 400,
-            minWidth : 950,
-            resizable : true,
-            title : "Preview before importing",
-            width : 950,
-            items : [
-                {
-                    xtype: 'GridPanel',
-                    xns: Roo,
-                    listeners : {
-                        activate : function() {
-                            _this.panel = this;
-                            if (_this.grid) {
-                                _this.grid.dataSource.load({});
-                            }
-                        }
-                    },
-                    background : false,
-                    fitContainer : false,
-                    fitToframe : false,
-                    region : 'center',
-                    tableName : 'pressrelease_contact',
-                    title : "pressrelease_contact",
-                    grid : {
-                        xtype: 'Grid',
-                        xns: Roo.grid,
-                        listeners : {
-                            render : function() 
-                            {
-                                _this.grid = this; 
-                                //_this.dialog = Pman.Dialog.FILL_IN
-                                if (_this.panel.active) {
-                                   this.dataSource.load({});
-                                }
-                            },
-                            rowdblclick : function (_self, rowIndex, e)
-                            {
-                                if (!_this.dialog) return;
-                                _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                                    _this.grid.footer.onClick('first');
-                                }); 
-                            }
-                        },
-                        autoExpandColumn : 'remarks',
-                        loadMask : true,
-                        dataSource : {
-                            xtype: 'Store',
-                            xns: Roo.data,
-                            listeners : {
-                                beforeload : function (_self, o)
-                                {
-                                
-                                    if (!_this.data || !_this.data.data) {
-                                        Roo.MessageBox.alert("error", "no data");
-                                        return  false;
-                                    }
-                                    this.removeAll();
-                                    this.loadData({ data: _this.data.data, length  : _this.data.data.length } );
-                                    
-                                    return false;
-                                    
-                                    if (!_this.data) {
-                                        return;
-                                    }
-                                    o.params.id = _this.data.id;
-                                    
-                                }
-                            },
-                            remoteSort : true,
-                            sortInfo : { field : 'honor', direction: 'ASC' },
-                            proxy : {
-                                xtype: 'HttpProxy',
-                                xns: Roo.data,
-                                method : 'GET',
-                                url : baseURL + '/PressRelease/Import/Journalist'
-                            },
-                            reader : {
-                                xtype: 'JsonReader',
-                                xns: Roo.data,
-                                totalProperty : 'total',
-                                root : 'data',
-                                id : 'id',
-                                fields : [
-                                    {
-                                        'name': 'id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_type_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'honor',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'name_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'company_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'role',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'email',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'email_personal',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'phone',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'fax',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'address',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_media_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'submission_time',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'contact_language',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'url',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'remarks',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'phone_mobile',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'phone_direct',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'firstname',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'lastname',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'firstname_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'lastname_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'publication_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'publication_name_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'publication_lang',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_scope_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'contact_language_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'country',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'best_contact_method',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'best_contact_from',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'best_contact_to',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'best_contact_days',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'publication_lang_alt',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'city',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_type_id_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_type_id_parent_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_type_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_type_id_display_order',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_type_id_visible',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_type_id_hgroup',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_media_id_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_media_id_parent_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_media_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_media_id_display_order',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_media_id_visible',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_media_id_hgroup',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_parent_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_name',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_display_order',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_visible',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'category_scope_id_hgroup',
-                                        'type': 'string'
-                                    }
-                                ]
-                            }
-                        },
-                        colModel : [
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : 'Id',
-                                width : 20,
-                                renderer : function(v,x,r) {
-                                    if (v < 0) {
-                                            return '';
-                                    }    
-                                    return 'EXISTS';
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'country',
-                                header : 'Country',
-                                width : 50,
-                                renderer : function(v,x,r) {
-                                    if (!v.length) {
-                                            return '<span style="color:red">MISSING</span>';
-                                    }    
-                                    return String.format('{0}', v); 
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : 'News Beat',
-                                width : 50,
-                                renderer : function(v,x,r) {
-                                    if (!r.json.news_beat_id) {
-                                            return '<span style="color:red">Invalid Newsbeat</span>';
-                                    }    
-                                    return String.format('{0}', r.json.news_beat); 
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'contact_language',
-                                header : 'Contact language',
-                                width : 40,
-                                renderer : function(v,x,r) {
-                                    if (!v.length) {
-                                            return '<span style="color:red">NO LANG</span>';
-                                    }    
-                                    return String.format('{0}', v); 
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'contact_language_alt',
-                                header : 'Contact language alt',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : 'Media Type',
-                                width : 50,
-                                renderer : function(v,x,r) {
-                                    if (r.json.category_media_id * 1 < 1) {
-                                        return String.format('<span style="color:red">Invalid:  {0}</span>',
-                                            r.json.category_media_id_name);
-                                    }    
-                                    return String.format('{0}', r.json.category_media_id_name); 
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'id',
-                                header : 'Pub. scope',
-                                width : 50,
-                                renderer : function(v,x,r) {
-                                    if (r.json.category_scope_id * 1 < 1) {
-                                        return String.format('<span style="color:red">Invalid:  {0}</span>',
-                                            r.json.category_scope_id_name);
-                                    }    
-                                    return String.format('{0}', r.json.category_scope_id_name); 
-                                    
-                                 }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'publication_name',
-                                header : 'Publication name',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'firstname',
-                                header : 'Firstname',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'lastname',
-                                header : 'Lastname',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'role',
-                                header : 'Role',
-                                width : 75,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'email',
-                                header : 'Email',
-                                width : 75,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'phone_direct',
-                                header : 'Direct',
-                                width : 70,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'phone',
-                                header : 'Phone',
-                                width : 70,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'fax',
-                                header : 'Fax',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'url',
-                                header : 'Url',
-                                width : 50,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            },
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'remarks',
-                                header : 'Remarks',
-                                width : 20,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            }
-                        ]
-                    }
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo,
-                tabPosition : 'top'
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                                Pman.Dialog.Image.show({
-                                    _url : baseURL + '/PressRelease/Import/Journalist?confirmed=1'
-                                
-                                }, function (d) {
-                                    //Roo.log(d);
-                                    
-                                     (function() {
-                                        Roo.MessageBox.alert("Done", "Upload completed");
-                                        _this.dialog.hide();
-                                     }).defer(300);
-                                });
-                        }
-                    },
-                    text : "confirm import"
-                },
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                          _this.dialog.hide();
-                        }
-                    },
-                    text : "cancel import"
-                }
-            ]
-        });
-    }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseMediaList.bjs b/PressRelease/Pman.Dialog.PressReleaseMediaList.bjs
deleted file mode 100644 (file)
index 1bfc9f8..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-{
-    "id": "roo-file-165",
-    "name": "Pman.Dialog.PressReleaseMediaList",
-    "parent": "",
-    "title": "",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseMediaList.bjs",
-    "items": [
-        {
-            "closable": false,
-            "height": 110,
-            "modal": true,
-            "resizable": false,
-            "title": "Download Media List",
-            "width": 400,
-            "xtype": "LayoutDialog",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "LayoutRegion",
-                    "*prop": "center"
-                },
-                {
-                    "region": "center",
-                    "xtype": "ContentPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "rendered": "function (form)\n{\n   _this.form = form;\n}"
-                            },
-                            "collapsible": true,
-                            "constraintoviewport": true,
-                            "draggable": true,
-                            "fixedcenter": true,
-                            "height": 0,
-                            "minButtonWidth": 0,
-                            "minHeight": 0,
-                            "minWidth": 0,
-                            "modal": true,
-                            "proxyDrag": true,
-                            "resizable": true,
-                            "resizeHandles": "",
-                            "shadow": "",
-                            "shadowOffset": 0,
-                            "shim": true,
-                            "syncHeightBeforeShow": true,
-                            "tabTag": "",
-                            "title": "",
-                            "width": 0,
-                            "x": 0,
-                            "xtype": "Form",
-                            "y": 0,
-                            "|xns": "Roo.form",
-                            "items": [
-                                {
-                                    "allowBlank": "false",
-                                    "displayField": "country_name",
-                                    "editable": "false",
-                                    "emptyText": "Select country",
-                                    "fieldLabel": "Country",
-                                    "forceSelection": true,
-                                    "hiddenName": "country",
-                                    "listWidth": 400,
-                                    "loadingText": "Searching...",
-                                    "minChars": 2,
-                                    "name": "country",
-                                    "pageSize": 20,
-                                    "qtip": "Select pressrelease_contact",
-                                    "queryParam": "",
-                                    "selectOnFocus": true,
-                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{country_name}</b> </div>",
-                                    "triggerAction": "all",
-                                    "typeAhead": true,
-                                    "valueField": "country",
-                                    "width": 200,
-                                    "xtype": "ComboBox",
-                                    "|xns": "Roo.form",
-                                    "items": [
-                                        {
-                                            "listeners": {
-                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    o.params._distinct = 'country';\n    o.params._columns = 'country,country_name';\n    // set more here\n}\n"
-                                            },
-                                            "*prop": "store",
-                                            "remoteSort": true,
-                                            "xtype": "Store",
-                                            "|sortInfo": "{ direction : 'ASC', field: 'country_name' }",
-                                            "|xns": "Roo.data",
-                                            "items": [
-                                                {
-                                                    "*prop": "proxy",
-                                                    "xtype": "HttpProxy",
-                                                    "method": "GET",
-                                                    "|xns": "Roo.data",
-                                                    "|url": "baseURL + '/Roo/pressrelease_contact.php'"
-                                                },
-                                                {
-                                                    "*prop": "reader",
-                                                    "xtype": "JsonReader",
-                                                    "|xns": "Roo.data",
-                                                    "id": "id",
-                                                    "root": "data",
-                                                    "totalProperty": "total",
-                                                    "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]"
-                                                }
-                                            ]
-                                        }
-                                    ]
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Cancel",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n\n    cn = _this.form.findField('country').getValue();\n    if (!cn.length) {\n              Roo.MessageBox.alert(\"Error\", \"Select a country\");\n            return;\n        }\n\n      new Pman.Download({\n      \n        url : baseURL + '/PressRelease/MediaListExport/' + cn\n      \n      });\n      \n      _this.dialog.hide();\n      Roo.MessageBox.alert(\"Notice\", \"File should start downloading\");\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Download",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseMediaList.js b/PressRelease/Pman.Dialog.PressReleaseMediaList.js
deleted file mode 100644 (file)
index 237d46e..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Dialog.PressReleaseMediaList = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            closable : false,
-            height : 110,
-            modal : true,
-            resizable : false,
-            title : "Download Media List",
-            width : 400,
-            items : [
-                {
-                    xtype: 'ContentPanel',
-                    xns: Roo,
-                    region : 'center',
-                    items : [
-                        {
-                            xtype: 'Form',
-                            xns: Roo.form,
-                            listeners : {
-                                rendered : function (form)
-                                {
-                                   _this.form = form;
-                                }
-                            },
-                            collapsible : true,
-                            constraintoviewport : true,
-                            draggable : true,
-                            fixedcenter : true,
-                            height : 0,
-                            minButtonWidth : 0,
-                            minHeight : 0,
-                            minWidth : 0,
-                            modal : true,
-                            proxyDrag : true,
-                            resizable : true,
-                            resizeHandles : '',
-                            shadow : '',
-                            shadowOffset : 0,
-                            shim : true,
-                            syncHeightBeforeShow : true,
-                            tabTag : '',
-                            title : "",
-                            width : 0,
-                            x : 0,
-                            y : 0,
-                            items : [
-                                {
-                                    xtype: 'ComboBox',
-                                    xns: Roo.form,
-                                    allowBlank : 'false',
-                                    displayField : 'country_name',
-                                    editable : 'false',
-                                    emptyText : "Select country",
-                                    fieldLabel : 'Country',
-                                    forceSelection : true,
-                                    hiddenName : 'country',
-                                    listWidth : 400,
-                                    loadingText : "Searching...",
-                                    minChars : 2,
-                                    name : 'country',
-                                    pageSize : 20,
-                                    qtip : "Select pressrelease_contact",
-                                    queryParam : '',
-                                    selectOnFocus : true,
-                                    tpl : '<div class="x-grid-cell-text x-btn button"><b>{country_name}</b> </div>',
-                                    triggerAction : 'all',
-                                    typeAhead : true,
-                                    valueField : 'country',
-                                    width : 200,
-                                    store : {
-                                        xtype: 'Store',
-                                        xns: Roo.data,
-                                        listeners : {
-                                            beforeload : function (_self, o){
-                                                o.params = o.params || {};
-                                                o.params._distinct = 'country';
-                                                o.params._columns = 'country,country_name';
-                                                // set more here
-                                            }
-                                        },
-                                        remoteSort : true,
-                                        sortInfo : { direction : 'ASC', field: 'country_name' },
-                                        proxy : {
-                                            xtype: 'HttpProxy',
-                                            xns: Roo.data,
-                                            method : 'GET',
-                                            url : baseURL + '/Roo/pressrelease_contact.php'
-                                        },
-                                        reader : {
-                                            xtype: 'JsonReader',
-                                            xns: Roo.data,
-                                            id : 'id',
-                                            root : 'data',
-                                            totalProperty : 'total',
-                                            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}]
-                                        }
-                                    }
-                                }
-                            ]
-                        }
-                    ]
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            _this.dialog.hide();
-                        }
-                    },
-                    text : "Cancel"
-                },
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                        
-                            cn = _this.form.findField('country').getValue();
-                            if (!cn.length) {
-                                      Roo.MessageBox.alert("Error", "Select a country");
-                                    return;
-                                }
-                        
-                              new Pman.Download({
-                              
-                                url : baseURL + '/PressRelease/MediaListExport/' + cn
-                              
-                              });
-                              
-                              _this.dialog.hide();
-                              Roo.MessageBox.alert("Notice", "File should start downloading");
-                        }
-                    },
-                    text : "Download"
-                }
-            ]
-        });
-    }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleasePreview.bjs b/PressRelease/Pman.Dialog.PressReleasePreview.bjs
deleted file mode 100644 (file)
index 6f54606..0000000
+++ /dev/null
@@ -1,254 +0,0 @@
-{
- "name" : "Pman.Dialog.PressReleasePreview",
- "parent" : "",
- "title" : "",
- "path" : "/home/edward/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleasePreview.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "e45c559f5de4a9f38b3cc11ffd7fef1c" : "Preview Release",
-  "99f1888871e14cbf8bca1cd8db21e400" : "No pressrelease_contact found",
-  "e12167aa0a7698e6ebc92b4ce3909b53" : "To",
-  "e925915109b4a15c1f15b2c0e9739bac" : "Contact language",
-  "eea7699a7f07e294c651d3842569512c" : "Send a copy to me",
-  "4f604bfc9885126ed4a7a986d0145aff" : "Preview press release",
-  "91a105e1c679f3320b6372a2f6e00de5" : "Approve for distribution",
-  "326185f4d4dfc0ef9df05d4de4ad5b5e" : "Displaying pressrelease_contact{0} - {1} of {2}",
-  "ffebf16bea0aaac6cf0c3b15e2b3fa76" : "Send a copy to",
-  "ea4788705e6873b424c65e91c2846b19" : "Cancel",
-  "e3d388b2c43e5ba0905702620ae2abc1" : "Search for",
-  "a47ed9d50ffef087c683dc24f9a413db" : "Distribution Summary",
-  "cb50207904226f8409d63b3f1a6b8ccb" : "Distribution to",
-  "648a529e2eddc96da88575f89353f810" : "Publication name",
-  "94966d90747b97d1f0f206c98a8b1ac3" : "Send",
-  "bbbabdbe1b262f75d99d62880b953be1" : "Role"
- },
- "items" : [
-  {
-   "listeners" : {
-    "show" : "function (_self)\n{\n    // this overlays the loaded data onto a spreadsheet layout.\n    if (!_this.data) {\n     \n        // products..\n         _this.data =  {\n            title : \"Preview Press release\",\n            id : 1,\n\n        };\n    }\n    _this.dialog.setTitle(_this.data.title);\n    var reg = _this.dialog.layout.getRegion('center');\n    var pan = reg.getPanel(0);\n    var sz = reg.el.getSize();\n    var psz = pan.el.getSize();\n    pan.setContent(\n        '<iframe ' + \n        'style=\"border: 0px;width:' + psz.width +'px;height:' + psz.height +'px\" ' +\n        'src=\"' +  baseURL + '/PressRelease/ViewDistribution/' + _this.data.id + '.html' + \n        '\"/>'\n        );\n     pan = reg.getPanel(1);\n     sz = reg.el.getSize();\n     psz = pan.el.getSize();\n    pan.setContent(\n        '<iframe ' + \n        'style=\"border: 0px;width:' + psz.width +'px;height:' + psz.height +'px\" ' +\n        'src=\"' +  baseURL + '/PressRelease/View/' + _this.data.id + '.html' + \n        '\"/>'\n        );\n     reg.showPanel(0);\n\n}"
-   },
-   "modal" : true,
-   "collapsible" : false,
-   "title" : "Preview press release",
-   "xtype" : "LayoutDialog",
-   "width" : 750,
-   "$ xns" : "Roo",
-   "closable" : false,
-   "resizable" : false,
-   "height" : 600,
-   "items" : [
-    {
-     "xtype" : "LayoutRegion",
-     "tabPosition" : "top",
-     "$ xns" : "Roo",
-     "* prop" : "center"
-    },
-    {
-     "autoScroll" : false,
-     "fitToFrame" : true,
-     "region" : "center",
-     "title" : "Distribution Summary",
-     "xtype" : "ContentPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo"
-    },
-    {
-     "autoScroll" : false,
-     "fitToFrame" : true,
-     "region" : "center",
-     "title" : "Preview Release",
-     "xtype" : "ContentPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo"
-    },
-    {
-     "listeners" : {
-      "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-     },
-     "background" : true,
-     "region" : "center",
-     "fitToframe" : true,
-     "title" : "Distribution to",
-     "xtype" : "GridPanel",
-     "fitContainer" : true,
-     "$ xns" : "Roo",
-     "tableName" : "pressrelease_contact",
-     "items" : [
-      {
-       "listeners" : {
-        "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
-        "cellclick" : "function (_self, ri, ci , e) {\n  \n    var di = this.colModel.getDataIndex(ci);\n    if (di != 'blacklist_pos') {\n        return;\n    }\n    \n           \n    var rec = this.ds.getAt(ri);\n    rec.set('blacklist_pos', (rec.data.blacklist_pos * 1) ? 0 : 1);\n    rec.commit();\n        \n           //_this.countrygrid.ds.load({});\n}",
-        "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-       },
-       "autoExpandColumn" : "email",
-       "xtype" : "Grid",
-       "loadMask" : true,
-       "$ xns" : "Roo.grid",
-       "* prop" : "grid",
-       "items" : [
-        {
-         "listeners" : {
-          "update" : "function (_self, record, operation)\n{\n   if (operation != Roo.data.Record.COMMIT) {\n       return;\n   }\n   var id = record.data.id;\n   var chg = record.data.blacklist_pos * 1;\n   var olds  = '' + _this.data.blacklist_ids;\n   var ar  =  _this.data.blacklist_ids.split(',');\n   var ix = ar.indexOf(new String(id));\n   if (!chg) {\n    // removed..\n        if (ix > -1) {\n            ar.splice(ix,1);\n\n        }\n        \n   } else {\n        if (ix < 0) {\n            ar.push(id);\n        }\n   \n   }\n   \n   _this.data.blacklist_ids = ar.join(',');\n   Pman.Dialog.PressReleaseEdit.form.findField('blacklist_ids').setValue(\n       _this.data.blacklist_ids\n   );\n   \n   if (olds != _this.data.blacklist_ids) {\n     // send it off..\n        new Pman.Request({\n            url : baseURL + '/Roo/Pressrelease_entry',\n            method : 'POST',\n            params : {\n                id : _this.data.id,\n                blacklist_ids : _this.data.blacklist_ids\n            }\n        });\n    \n   \n   }\n   \n   \n   \n   \n}",
-          "beforeload" : "function (_self, options)\n{\n   \n    if (typeof(_this.data) == 'undefined') {\n        return false;\n    }\n    options.params['distfilter[beats]'] = _this.data.beats;\n    options.params['distfilter[countries]'] = _this.data.countries;    \n    options.params['distfilter[blacklist]'] = _this.data.blacklist_ids;    \n    \n    options.params['query[search_name]'] = _this.searchBox.getValue();\n    \n    \n}"
-         },
-         "xtype" : "Store",
-         "remoteSort" : true,
-         "$ sortInfo" : "{ field : 'honor', direction: 'ASC' }",
-         "$ xns" : "Roo.data",
-         "* prop" : "dataSource",
-         "items" : [
-          {
-           "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-           "method" : "GET",
-           "xtype" : "HttpProxy",
-           "$ xns" : "Roo.data",
-           "* prop" : "proxy"
-          },
-          {
-           "id" : "id",
-           "root" : "data",
-           "xtype" : "JsonReader",
-           "$ xns" : "Roo.data",
-           "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'honor',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'contact_language',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'firstname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'lastname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_name',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id',\n        'type': 'int'\n    },\n    {\n        'name': 'contact_language_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'country',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_method',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_from',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_to',\n        'type': 'string'\n    },\n    {\n        'name': 'best_contact_days',\n        'type': 'string'\n    },\n    {\n        'name': 'publication_lang_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'city',\n        'type': 'string'\n    },\n    {\n        'name': 'category_type_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_type_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id_hgroup',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_media_id_hgroup',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'category_scope_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'category_scope_id_hgroup',\n        'type': 'string'\n    }\n]",
-           "* prop" : "reader",
-           "totalProperty" : "total"
-          }
-         ]
-        },
-        {
-         "pageSize" : 25,
-         "xtype" : "PagingToolbar",
-         "emptyMsg" : "No pressrelease_contact found",
-         "$ xns" : "Roo",
-         "displayInfo" : true,
-         "displayMsg" : "Displaying pressrelease_contact{0} - {1} of {2}",
-         "* prop" : "footer"
-        },
-        {
-         "xtype" : "Toolbar",
-         "$ xns" : "Roo",
-         "* prop" : "toolbar",
-         "items" : [
-          {
-           "text" : "Search for",
-           "xtype" : "TextItem",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "specialkey" : "function (_self, e)\n{\n    _this.grid.footer.onClick('first');\n}",
-            "render" : "function (_self)\n{\n_this.searchBox = _self;\n}"
-           },
-           "xtype" : "TextField",
-           "$ xns" : "Roo.form"
-          },
-          {
-           "listeners" : {
-            "|click" : "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
-           },
-           "xtype" : "Button",
-           "cls" : "x-btn-icon",
-           "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
-           "$ xns" : "Roo.Toolbar"
-          },
-          {
-           "listeners" : {
-            "|click" : "function (_self, e)\n{\n    _this.searchBox.setValue('');\n         \n\n    \n    _this.grid.footer.onClick('first');\n}"
-           },
-           "xtype" : "Button",
-           "cls" : "x-btn-icon",
-           "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-           "$ xns" : "Roo.Toolbar"
-          }
-         ]
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Publication name",
-         "width" : 100,
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "publication_name"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Role",
-         "width" : 100,
-         "$ renderer" : "function(v) { return String.format('{0}', v); }",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "role"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "To",
-         "width" : 200,
-         "$ renderer" : "function(v,x,r) { \n\n    var ar = [];\n    if (v.length) ar.push(v);\n    if (r.data.email2.length) ar.push(r.data.email2);\n    if (r.data.email3.length) ar.push(r.data.email3);    \n\n\n    if (!Pman.hasPerm('PressRelease.JournalistAll', 'S')) {\n        \n      return String.format('{0} {1} ({2} addresses)', \n                r.data.firstname, r.data.lastname, ar.length\n        );   \n    \n    }\n\n    //if (r.data.email_personal.length) ar.push(r.data.email_personal);\n    return String.format('<span qtip=\"{3}\">{0} {1}</span> ({2} addresses)',\n                r.data.firstname, r.data.lastname, ar.length,\n                 ar.join(' / ')); \n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "email"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Contact language",
-         "width" : 70,
-         "$ renderer" : "function(v,x,r) { \n    var ar = [];\n    if (v.length) ar.push(v);\n    if (r.data.contact_language_alt.length) ar.push(r.data.contact_language_alt);\n    //if (r.data.email_personal.length) ar.push(r.data.email_personal);\n    return String.format('{0}', ar.join(' / ')); \n}",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "contact_language"
-        },
-        {
-         "xtype" : "ColumnModel",
-         "header" : "Send",
-         "width" : 50,
-         "$ renderer" : "function(v) {\n     var state = v < 1 ?  '-checked' : '';\n                                            \n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                                                      \n}\n",
-         "$ xns" : "Roo.grid",
-         "* prop" : "colModel[]",
-         "dataIndex" : "blacklist_pos"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n    \n    // Roo.log(_this.data);\n    Pman.Dialog.PressReleasePreviewSend.show({ id : _this.data.id });\n    \n    \n}"
-     },
-     "text" : "Send a copy to",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n    \n    // Roo.log(_this.data);\n    \n    \n    new Pman.Request({\n        url : baseURL + '/PressRelease/View/' + _this.data.id,\n        method : 'GET',\n        params : {\n            send_test : 1\n        },\n        success : function()\n        {\n            Roo.MessageBox.alert(\"Notice\", \"Release set to \" + Pman.Login.authUser.email);\n\n        }\n    \n    \n    })\n    \n}"
-     },
-     "text" : "Send a copy to me",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n    \n    // Roo.log(_this.data);\n    \n    \n    new Pman.Request({\n        url : baseURL + '/PressRelease/View/' + _this.data.id,\n        method : 'POST',\n        success : function(res)\n        {\n\n            Roo.log(res);\n            Roo.MessageBox.alert(\"Queued\",\n                \"Release is queued for delivery to \" +\n                res.data +\n                \" Journalists - if this looks wrong - go to Circulation and remove undelivered \" +\n                \" Messages, and check with support to find out why\"\n            );\n                \n\n            _this.dialog.hide();\n            Pman.Dialog.PressReleaseEdit.dialog.hide();            \n            Pman.Dialog.PressReleaseEdit.callback();\n\n        }\n    \n    \n    })\n    \n}"
-     },
-     "text" : "Approve for distribution",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-     },
-     "text" : "Cancel",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleasePreview.js b/PressRelease/Pman.Dialog.PressReleasePreview.js
deleted file mode 100644 (file)
index 53df05f..0000000
+++ /dev/null
@@ -1,732 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Dialog');
-
-Pman.Dialog.PressReleasePreview = {
-
- _strings : {
-  'e45c559f5de4a9f38b3cc11ffd7fef1c' :"Preview Release",
-  '99f1888871e14cbf8bca1cd8db21e400' :"No pressrelease_contact found",
-  'e12167aa0a7698e6ebc92b4ce3909b53' :"To",
-  'e925915109b4a15c1f15b2c0e9739bac' :"Contact language",
-  'eea7699a7f07e294c651d3842569512c' :"Send a copy to me",
-  '4f604bfc9885126ed4a7a986d0145aff' :"Preview press release",
-  '91a105e1c679f3320b6372a2f6e00de5' :"Approve for distribution",
-  '326185f4d4dfc0ef9df05d4de4ad5b5e' :"Displaying pressrelease_contact{0} - {1} of {2}",
-  'ffebf16bea0aaac6cf0c3b15e2b3fa76' :"Send a copy to",
-  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
-  'e3d388b2c43e5ba0905702620ae2abc1' :"Search for",
-  'a47ed9d50ffef087c683dc24f9a413db' :"Distribution Summary",
-  'cb50207904226f8409d63b3f1a6b8ccb' :"Distribution to",
-  '648a529e2eddc96da88575f89353f810' :"Publication name",
-  '94966d90747b97d1f0f206c98a8b1ac3' :"Send",
-  'bbbabdbe1b262f75d99d62880b953be1' :"Role"
- },
-
- dialog : false,
- callback:  false,
-
- show : function(data, cb)
- {
-  if (!this.dialog) {
-   this.create();
-  }
-
-  this.callback = cb;
-  this.data = data;
-  this.dialog.show(this.data._el);
-  if (this.form) {
-   this.form.reset();
-   this.form.setValues(data);
-   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-  }
-
- },
-
- create : function()
- {
-   var _this = this;
-   this.dialog = Roo.factory({
-    closable : false,
-    collapsible : false,
-    height : 600,
-    modal : true,
-    resizable : false,
-    title : _this._strings['4f604bfc9885126ed4a7a986d0145aff'] /* Preview press release */,
-    width : 750,
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'LayoutDialog',
-    listeners : {
-     show : function (_self)
-      {
-          // this overlays the loaded data onto a spreadsheet layout.
-          if (!_this.data) {
-           
-              // products..
-               _this.data =  {
-                  title : "Preview Press release",
-                  id : 1,
-      
-              };
-          }
-          _this.dialog.setTitle(_this.data.title);
-          var reg = _this.dialog.layout.getRegion('center');
-          var pan = reg.getPanel(0);
-          var sz = reg.el.getSize();
-          var psz = pan.el.getSize();
-          pan.setContent(
-              '<iframe ' + 
-              'style="border: 0px;width:' + psz.width +'px;height:' + psz.height +'px" ' +
-              'src="' +  baseURL + '/PressRelease/ViewDistribution/' + _this.data.id + '.html' + 
-              '"/>'
-              );
-           pan = reg.getPanel(1);
-           sz = reg.el.getSize();
-           psz = pan.el.getSize();
-          pan.setContent(
-              '<iframe ' + 
-              'style="border: 0px;width:' + psz.width +'px;height:' + psz.height +'px" ' +
-              'src="' +  baseURL + '/PressRelease/View/' + _this.data.id + '.html' + 
-              '"/>'
-              );
-           reg.showPanel(0);
-      
-      }
-    },
-    center : {
-     tabPosition : 'top',
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    buttons : [
-     {
-      text : _this._strings['ffebf16bea0aaac6cf0c3b15e2b3fa76'] /* Send a copy to */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            // do some checks?
-            
-            // Roo.log(_this.data);
-            Pman.Dialog.PressReleasePreviewSend.show({ id : _this.data.id });
-            
-            
-        }
-      }
-     },
-     {
-      text : _this._strings['eea7699a7f07e294c651d3842569512c'] /* Send a copy to me */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            // do some checks?
-            
-            // Roo.log(_this.data);
-            
-            
-            new Pman.Request({
-                url : baseURL + '/PressRelease/View/' + _this.data.id,
-                method : 'GET',
-                params : {
-                    send_test : 1
-                },
-                success : function()
-                {
-                    Roo.MessageBox.alert("Notice", "Release set to " + Pman.Login.authUser.email);
-        
-                }
-            
-            
-            })
-            
-        }
-      }
-     },
-     {
-      text : _this._strings['91a105e1c679f3320b6372a2f6e00de5'] /* Approve for distribution */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            // do some checks?
-            
-            // Roo.log(_this.data);
-            
-            
-            new Pman.Request({
-                url : baseURL + '/PressRelease/View/' + _this.data.id,
-                method : 'POST',
-                success : function(res)
-                {
-        
-                    Roo.log(res);
-                    Roo.MessageBox.alert("Queued",
-                        "Release is queued for delivery to " +
-                        res.data +
-                        " Journalists - if this looks wrong - go to Circulation and remove undelivered " +
-                        " Messages, and check with support to find out why"
-                    );
-                        
-        
-                    _this.dialog.hide();
-                    Pman.Dialog.PressReleaseEdit.dialog.hide();            
-                    Pman.Dialog.PressReleaseEdit.callback();
-        
-                }
-            
-            
-            })
-            
-        }
-      }
-     },
-     {
-      text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            _this.dialog.hide();
-        }
-      }
-     }
-    ],
-    items  : [
-     {
-      autoScroll : false,
-      fitContainer : true,
-      fitToFrame : true,
-      region : 'center',
-      title : _this._strings['a47ed9d50ffef087c683dc24f9a413db'] /* Distribution Summary */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'ContentPanel'
-     },
-     {
-      autoScroll : false,
-      fitContainer : true,
-      fitToFrame : true,
-      region : 'center',
-      title : _this._strings['e45c559f5de4a9f38b3cc11ffd7fef1c'] /* Preview Release */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'ContentPanel'
-     },
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'pressrelease_contact',
-      title : _this._strings['cb50207904226f8409d63b3f1a6b8ccb'] /* Distribution to */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.panel = this;
-            if (_this.grid) {
-                _this.grid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'email',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        cellclick : function (_self, ri, ci , e) {
-           
-             var di = this.colModel.getDataIndex(ci);
-             if (di != 'blacklist_pos') {
-                 return;
-             }
-             
-                    
-             var rec = this.ds.getAt(ri);
-             rec.set('blacklist_pos', (rec.data.blacklist_pos * 1) ? 0 : 1);
-             rec.commit();
-                 
-                    //_this.countrygrid.ds.load({});
-         },
-        render : function() 
-         {
-             _this.grid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.panel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             if (!_this.dialog) return;
-             _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                 _this.grid.footer.onClick('first');
-             }); 
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['326185f4d4dfc0ef9df05d4de4ad5b5e'] /* Displaying pressrelease_contact{0} - {1} of {2} */,
-        emptyMsg : _this._strings['99f1888871e14cbf8bca1cd8db21e400'] /* No pressrelease_contact found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          text : _this._strings['e3d388b2c43e5ba0905702620ae2abc1'] /* Search for */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'TextItem'
-         },
-         {
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           render : function (_self)
-            {
-            _this.searchBox = _self;
-            },
-           specialkey : function (_self, e)
-            {
-                _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/search.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                _this.searchBox.setValue('');
-                     
-            
-                
-                _this.grid.footer.onClick('first');
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'honor', direction: 'ASC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, options)
-          {
-             
-              if (typeof(_this.data) == 'undefined') {
-                  return false;
-              }
-              options.params['distfilter[beats]'] = _this.data.beats;
-              options.params['distfilter[countries]'] = _this.data.countries;    
-              options.params['distfilter[blacklist]'] = _this.data.blacklist_ids;    
-              
-              options.params['query[search_name]'] = _this.searchBox.getValue();
-              
-              
-          },
-         update : function (_self, record, operation)
-          {
-             if (operation != Roo.data.Record.COMMIT) {
-                 return;
-             }
-             var id = record.data.id;
-             var chg = record.data.blacklist_pos * 1;
-             var olds  = '' + _this.data.blacklist_ids;
-             var ar  =  _this.data.blacklist_ids.split(',');
-             var ix = ar.indexOf(new String(id));
-             if (!chg) {
-              // removed..
-                  if (ix > -1) {
-                      ar.splice(ix,1);
-          
-                  }
-                  
-             } else {
-                  if (ix < 0) {
-                      ar.push(id);
-                  }
-             
-             }
-             
-             _this.data.blacklist_ids = ar.join(',');
-             Pman.Dialog.PressReleaseEdit.form.findField('blacklist_ids').setValue(
-                 _this.data.blacklist_ids
-             );
-             
-             if (olds != _this.data.blacklist_ids) {
-               // send it off..
-                  new Pman.Request({
-                      url : baseURL + '/Roo/Pressrelease_entry',
-                      method : 'POST',
-                      params : {
-                          id : _this.data.id,
-                          blacklist_ids : _this.data.blacklist_ids
-                      }
-                  });
-              
-             
-             }
-             
-             
-             
-             
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_contact.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email_personal',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_media_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'submission_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'contact_language',
-                 'type': 'string'
-             },
-             {
-                 'name': 'url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone_mobile',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone_direct',
-                 'type': 'string'
-             },
-             {
-                 'name': 'firstname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'lastname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'firstname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'lastname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'publication_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'publication_name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'publication_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_scope_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'contact_language_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'country',
-                 'type': 'string'
-             },
-             {
-                 'name': 'best_contact_method',
-                 'type': 'string'
-             },
-             {
-                 'name': 'best_contact_from',
-                 'type': 'string'
-             },
-             {
-                 'name': 'best_contact_to',
-                 'type': 'string'
-             },
-             {
-                 'name': 'best_contact_days',
-                 'type': 'string'
-             },
-             {
-                 'name': 'publication_lang_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'city',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_type_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id_parent_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_type_id_display_order',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id_visible',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id_hgroup',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_media_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_media_id_parent_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_media_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_media_id_display_order',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_media_id_visible',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_media_id_hgroup',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_scope_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_scope_id_parent_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_scope_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_scope_id_display_order',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_scope_id_visible',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_scope_id_hgroup',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'publication_name',
-         header : _this._strings['648a529e2eddc96da88575f89353f810'] /* Publication name */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'role',
-         header : _this._strings['bbbabdbe1b262f75d99d62880b953be1'] /* Role */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'email',
-         header : _this._strings['e12167aa0a7698e6ebc92b4ce3909b53'] /* To */,
-         renderer : function(v,x,r) { 
-         
-             var ar = [];
-             if (v.length) ar.push(v);
-             if (r.data.email2.length) ar.push(r.data.email2);
-             if (r.data.email3.length) ar.push(r.data.email3);    
-         
-         
-             if (!Pman.hasPerm('PressRelease.JournalistAll', 'S')) {
-                 
-               return String.format('{0} {1} ({2} addresses)', 
-                         r.data.firstname, r.data.lastname, ar.length
-                 );   
-             
-             }
-         
-             //if (r.data.email_personal.length) ar.push(r.data.email_personal);
-             return String.format('<span qtip="{3}">{0} {1}</span> ({2} addresses)',
-                         r.data.firstname, r.data.lastname, ar.length,
-                          ar.join(' / ')); 
-         },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'contact_language',
-         header : _this._strings['e925915109b4a15c1f15b2c0e9739bac'] /* Contact language */,
-         renderer : function(v,x,r) { 
-             var ar = [];
-             if (v.length) ar.push(v);
-             if (r.data.contact_language_alt.length) ar.push(r.data.contact_language_alt);
-             //if (r.data.email_personal.length) ar.push(r.data.email_personal);
-             return String.format('{0}', ar.join(' / ')); 
-         },
-         width : 70,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'blacklist_pos',
-         header : _this._strings['94966d90747b97d1f0f206c98a8b1ac3'] /* Send */,
-         renderer : function(v) {
-              var state = v < 1 ?  '-checked' : '';
-                                                     
-             return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
-                                                               
-         },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     }
-    ]
-   });
- }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleasePreviewSend.bjs b/PressRelease/Pman.Dialog.PressReleasePreviewSend.bjs
deleted file mode 100644 (file)
index 0e2342d..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "name" : "Pman.Dialog.PressReleasePreviewSend",
- "parent" : "",
- "title" : "",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleasePreviewSend.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "ea4788705e6873b424c65e91c2846b19" : "Cancel",
-  "94966d90747b97d1f0f206c98a8b1ac3" : "Send",
-  "49ee3087348e8d44e1feda1917443987" : "Name",
-  "643a860f992333b8600ea264aca7c4fc" : "Email Address",
-  "c9f8da277cc33b904b2147a6d9c29ef5" : "Send Email"
- },
- "items" : [
-  {
-   "modal" : true,
-   "collapsible" : false,
-   "title" : "Send Email",
-   "xtype" : "LayoutDialog",
-   "width" : 480,
-   "$ xns" : "Roo",
-   "closable" : true,
-   "resizable" : false,
-   "height" : 180,
-   "items" : [
-    {
-     "xtype" : "LayoutRegion",
-     "$ xns" : "Roo",
-     "* prop" : "center"
-    },
-    {
-     "region" : "center",
-     "xtype" : "ContentPanel",
-     "$ xns" : "Roo",
-     "items" : [
-      {
-       "listeners" : {
-        "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       \n        _this.form.findField('firstname').focus();\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n            \n         }\n         _this.form.reset();\n\n         return;\n    }\n}\n",
-        "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
-       },
-       "style" : "margin:10px;",
-       "method" : "POST",
-       "xtype" : "Form",
-       "labelWidth" : 100,
-       "$ xns" : "Roo.form",
-       "items" : [
-        {
-         "listeners" : {
-          "specialkey" : "function (_self, e)\n{\n    if (e.keyCode == 27) {\n        _this.dialog.hide();\n    }\n}"
-         },
-         "fieldLabel" : "Name",
-         "xtype" : "TextField",
-         "allowBlank" : false,
-         "width" : 300,
-         "$ xns" : "Roo.form",
-         "name" : "firstname"
-        },
-        {
-         "listeners" : {
-          "specialkey" : "function (_self, e)\n{\n    if (e.keyCode == 27) {\n        _this.dialog.hide();\n    }\n}"
-         },
-         "fieldLabel" : "Email Address",
-         "vtype" : "email",
-         "xtype" : "TextField",
-         "allowBlank" : false,
-         "width" : 300,
-         "$ xns" : "Roo.form",
-         "name" : "email"
-        },
-        {
-         "xtype" : "Hidden",
-         "$ xns" : "Roo.form",
-         "name" : "id"
-        }
-       ]
-      }
-     ]
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n\n    _this.dialog.hide();\n\n}"
-     },
-     "text" : "Cancel",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    },
-    {
-     "listeners" : {
-      "click" : "function (_self, e)\n{\n    if (!_this.form.isValid()) {\n        Roo.MessageBox.alert(\"Error\", \"Please fill in all the required fields\");\n        return;\n    } \n    var email = _this.form.findField('email').getValue();\n    var name = _this.form.findField('firstname').getValue();\n    if(email && name){\n        new Pman.Request({\n            url : baseURL + '/PressRelease/View/' + _this.form.findField('id').getValue(),\n            method : 'GET',\n            params : {\n                _send : 1,\n                firstname : name,\n                rcpt : email\n            },\n            success : function()\n            {\n                Roo.MessageBox.alert(\"Notice\", \"Release set to \"+name, function(){\n                    _this.dialog.hide();\n                });\n            }\n        });\n    }\n\n}"
-     },
-     "text" : "Send",
-     "xtype" : "Button",
-     "$ xns" : "Roo",
-     "* prop" : "buttons[]"
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleasePreviewSend.js b/PressRelease/Pman.Dialog.PressReleasePreviewSend.js
deleted file mode 100644 (file)
index 2d8414d..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Dialog');
-
-Pman.Dialog.PressReleasePreviewSend = {
-
- _strings : {
-  'ea4788705e6873b424c65e91c2846b19' :"Cancel",
-  '94966d90747b97d1f0f206c98a8b1ac3' :"Send",
-  '49ee3087348e8d44e1feda1917443987' :"Name",
-  '643a860f992333b8600ea264aca7c4fc' :"Email Address",
-  'c9f8da277cc33b904b2147a6d9c29ef5' :"Send Email"
- },
-
- dialog : false,
- callback:  false,
-
- show : function(data, cb)
- {
-  if (!this.dialog) {
-   this.create();
-  }
-
-  this.callback = cb;
-  this.data = data;
-  this.dialog.show(this.data._el);
-  if (this.form) {
-   this.form.reset();
-   this.form.setValues(data);
-   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-  }
-
- },
-
- create : function()
- {
-   var _this = this;
-   this.dialog = Roo.factory({
-    closable : true,
-    collapsible : false,
-    height : 180,
-    modal : true,
-    resizable : false,
-    title : _this._strings['c9f8da277cc33b904b2147a6d9c29ef5'] /* Send Email */,
-    width : 480,
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'LayoutDialog',
-    center : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    buttons : [
-     {
-      text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-        
-            _this.dialog.hide();
-        
-        }
-      }
-     },
-     {
-      text : _this._strings['94966d90747b97d1f0f206c98a8b1ac3'] /* Send */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'Button',
-      listeners : {
-       click : function (_self, e)
-        {
-            if (!_this.form.isValid()) {
-                Roo.MessageBox.alert("Error", "Please fill in all the required fields");
-                return;
-            } 
-            var email = _this.form.findField('email').getValue();
-            var name = _this.form.findField('firstname').getValue();
-            if(email && name){
-                new Pman.Request({
-                    url : baseURL + '/PressRelease/View/' + _this.form.findField('id').getValue(),
-                    method : 'GET',
-                    params : {
-                        _send : 1,
-                        firstname : name,
-                        rcpt : email
-                    },
-                    success : function()
-                    {
-                        Roo.MessageBox.alert("Notice", "Release set to "+name, function(){
-                            _this.dialog.hide();
-                        });
-                    }
-                });
-            }
-        
-        }
-      }
-     }
-    ],
-    items  : [
-     {
-      region : 'center',
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'ContentPanel',
-      items  : [
-       {
-        labelWidth : 100,
-        method : 'POST',
-        style : 'margin:10px;',
-        xns : Roo.form,
-        '|xns' : 'Roo.form',
-        xtype : 'Form',
-        listeners : {
-         actioncomplete : function(_self,action)
-          {
-              if (action.type == 'setdata') {
-                 
-                  _this.form.findField('firstname').focus();
-                 return;
-              }
-              if (action.type == 'load') {
-                  _this.dialog.el.unmask();
-                  return;
-              }
-              if (action.type =='submit') {
-              
-                  _this.dialog.el.unmask();
-                  _this.dialog.hide();
-              
-                   if (_this.callback) {
-                      _this.callback.call(_this, _this.form.getValues());
-                      
-                   }
-                   _this.form.reset();
-          
-                   return;
-              }
-          },
-         rendered : function (form)
-          {
-              _this.form= form;
-          }
-        },
-        items  : [
-         {
-          allowBlank : false,
-          fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
-          name : 'firstname',
-          width : 300,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           specialkey : function (_self, e)
-            {
-                if (e.keyCode == 27) {
-                    _this.dialog.hide();
-                }
-            }
-          }
-         },
-         {
-          allowBlank : false,
-          fieldLabel : _this._strings['643a860f992333b8600ea264aca7c4fc'] /* Email Address */,
-          name : 'email',
-          vtype : 'email',
-          width : 300,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           specialkey : function (_self, e)
-            {
-                if (e.keyCode == 27) {
-                    _this.dialog.hide();
-                }
-            }
-          }
-         },
-         {
-          name : 'id',
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'Hidden'
-         }
-        ]
-       }
-      ]
-     }
-    ]
-   });
- }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseReportNotify.bjs b/PressRelease/Pman.Dialog.PressReleaseReportNotify.bjs
deleted file mode 100644 (file)
index c36331b..0000000
+++ /dev/null
@@ -1,146 +0,0 @@
-{
-    "name" : "Pman.Dialog.PressReleaseReportNotify",
-    "parent" : "",
-    "title" : "",
-    "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseReportNotify.bjs",
-    "permname" : "",
-    "modOrder" : "001",
-    "items" : [
-        {
-            "Boolean modal" : true,
-            "collapsible" : false,
-            "title" : "Edit / Create Report Notification",
-            "xtype" : "LayoutDialog",
-            "width" : 400,
-            "$ xns" : "Roo",
-            "closable" : false,
-            "resizable" : false,
-            "height" : 180,
-            "items" : [
-                {
-                    "xtype" : "LayoutRegion",
-                    "$ xns" : "Roo",
-                    "* prop" : "center"
-                },
-                {
-                    "region" : "center",
-                    "xtype" : "ContentPanel",
-                    "$ xns" : "Roo",
-                    "items" : [
-                        {
-                            "listeners" : {
-                                "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       if (_this.data.id) { \n            this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n            return;\n        }\n       \n       this.findField('act_when_dis').setValue(\"\");\n       \n       return;\n    }\n    if (action.type == 'load') {\n        this.findField('act_when_dis').updateFromWhen();\n        return;\n    }\n    if (action.type =='submit') {\n    \n       \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
-                                "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
-                            },
-                            "$ url" : "baseURL + '/Roo/core_notify.php'",
-                            "method" : "POST",
-                            "xtype" : "Form",
-                            "style" : "margin:10px;",
-                            "String labelAlign" : "right",
-                            "$ xns" : "Roo.form",
-                            "Number labelWidth" : 150,
-                            "items" : [
-                                {
-                                    "listeners" : {
-                                        "valid" : "function (_self)\n{\n    _this.form.findField('act_when_dis').updateVal();\n}"
-                                    },
-                                    "Boolean allowBlank" : false,
-                                    "String name" : "act_when_days",
-                                    "Number width" : 50,
-                                    "xtype" : "NumberField",
-                                    "Boolean allowDecimals" : false,
-                                    "$ xns" : "Roo.form",
-                                    "String fieldLabel" : "Days after release",
-                                    "Boolean allowNegative" : false,
-                                    "Number minValue" : 1,
-                                    "Number maxValue" : 15
-                                },
-                                {
-                                    "xtype" : "Row",
-                                    "String labelSeparator" : "",
-                                    "$ xns" : "Roo.form",
-                                    "Number/String width" : 200,
-                                    "items" : [
-                                        {
-                                            "String name" : "act_when_dis",
-                                            "Number width" : 200,
-                                            "| function updateVal" : "function() {\n   var tz = _this.form.findField('act_when_tz').getValue();\n   var reltime = _this.data.release_dt;\n   var parts = tz.split('.');\n   \n   var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);\n   \n   var days = 1*  _this.form.findField('act_when_days').getValue();\n   var disptime = reltime.add(Date.DAY,days);\n   Roo.log([ hkt, hkt.add(Date.DAY,days) ]);\n   var act_when = hkt.add(Date.DAY,days).format('Y-m-d H:i:s');\n   Roo.log('set actwhen = ' + act_when);\n   _this.form.findField('act_start').setValue(act_when);\n   this.setValue(disptime.format('d/M/Y h:ia') + ' (GMT+'+tz+')');\n\n }",
-                                            "xtype" : "DisplayField",
-                                            "$ xns" : "Roo.form",
-                                            "| function updateFromWhen" : "function() {\n\n   var tz = _this.form.findField('act_when_tz').getValue();\n   var reltime = _this.data.release_dt;\n   var parts = tz.split('.');\n   \n\n   \n   var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);\n   \n   var dt = Date.parseDate (\n        _this.form.findField('act_start').getValue()\n     , \"Y-m-d H:i:s\");\n\n   var diff =  Math.round(dt.getElapsed(hkt) / (1000 * 60 * 60 * 24));\n   this.form.findField('act_when_days').setValue(diff);\n   this.updateVal();\n }\n\n\n "
-                                        }
-                                    ]
-                                },
-                                {
-                                    "String name" : "to_email",
-                                    "Number width" : 200,
-                                    "xtype" : "TextField",
-                                    "$ xns" : "Roo.form",
-                                    "String fieldLabel" : "To",
-                                    "String vtype" : "email"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "id"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "onid"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "ontable"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "evtype"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "act_start"
-                                },
-                                {
-                                    "xtype" : "Hidden",
-                                    "$ xns" : "Roo.form",
-                                    "name" : "act_when_tz"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners" : {
-                        "click" : "function (_self, e)\n{\n    \n    if (!_this.form.isValid()) {\n        Roo.MessageBox.alert(\"Error\", \"Please fill in the details\");\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/PressRelease/DistributionReport',\n        method : 'POST',\n        mask : 'Sending',\n        params : {\n            days : _this.form.findField('act_when_days').getValue(),\n            email : _this.form.findField('to_email').getValue(),\n            id : _this.form.findField('onid').getValue()\n        },\n        success : function() {\n            Roo.MessageBox.alert(\"Sent\", \"Message has been sent\");\n        }\n   \n   });\n   \n    \n    \n}"
-                    },
-                    "text" : "Send now",
-                    "xtype" : "Button",
-                    "$ xns" : "Roo",
-                    "* prop" : "buttons[]"
-                },
-                {
-                    "listeners" : {
-                        "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-                    },
-                    "text" : "Cancel",
-                    "xtype" : "Button",
-                    "$ xns" : "Roo",
-                    "* prop" : "buttons[]"
-                },
-                {
-                    "listeners" : {
-                        "click" : "function (_self, e)\n{\n    // do some checks?\n     \n    \n    \n    _this.form.doAction(\"submit\");\n\n}"
-                    },
-                    "text" : "Save",
-                    "xtype" : "Button",
-                    "$ xns" : "Roo",
-                    "* prop" : "buttons[]"
-                }
-            ]
-        }
-    ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseReportNotify.js b/PressRelease/Pman.Dialog.PressReleaseReportNotify.js
deleted file mode 100644 (file)
index 224f604..0000000
+++ /dev/null
@@ -1,290 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Dialog');
-
-Pman.Dialog.PressReleaseReportNotify = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            center : {
-                '|xns' : 'Roo',
-                xtype : 'LayoutRegion',
-                xns : Roo
-            },
-            '|xns' : 'Roo',
-            modal : true,
-            collapsible : false,
-            title : "Edit / Create Report Notification",
-            xtype : 'LayoutDialog',
-            width : 400,
-            xns : Roo,
-            closable : false,
-            resizable : false,
-            height : 180,
-            buttons : [
-                {
-                       '|xns' : 'Roo',
-                       text : "Send now",
-                       xtype : 'Button',
-                       xns : Roo,
-                       listeners : {
-                               click : function (_self, e)
-                                  {
-                                      
-                                      if (!_this.form.isValid()) {
-                                          Roo.MessageBox.alert("Error", "Please fill in the details");
-                                          return;
-                                      }
-                                      
-                                      new Pman.Request({
-                                          url : baseURL + '/PressRelease/DistributionReport',
-                                          method : 'POST',
-                                          mask : 'Sending',
-                                          params : {
-                                              days : _this.form.findField('act_when_days').getValue(),
-                                              email : _this.form.findField('to_email').getValue(),
-                                              id : _this.form.findField('onid').getValue()
-                                          },
-                                          success : function() {
-                                              Roo.MessageBox.alert("Sent", "Message has been sent");
-                                          }
-                                     
-                                     });
-                                     
-                                      
-                                      
-                                  }
-                       }
-                   },
-{
-                       '|xns' : 'Roo',
-                       text : "Cancel",
-                       xtype : 'Button',
-                       xns : Roo,
-                       listeners : {
-                               click : function (_self, e)
-                                  {
-                                      _this.dialog.hide();
-                                  }
-                       }
-                   },
-{
-                       '|xns' : 'Roo',
-                       text : "Save",
-                       xtype : 'Button',
-                       xns : Roo,
-                       listeners : {
-                               click : function (_self, e)
-                                  {
-                                      // do some checks?
-                                       
-                                      
-                                      
-                                      _this.form.doAction("submit");
-                                  
-                                  }
-                       }
-                   }
-            ],
-            items : [
-               {
-                    '|xns' : 'Roo',
-                    region : 'center',
-                    xtype : 'ContentPanel',
-                    xns : Roo,
-                    items : [
-                       {
-                            '|xns' : 'Roo.form',
-                            url : baseURL + '/Roo/core_notify.php',
-                            method : 'POST',
-                            xtype : 'Form',
-                            style : 'margin:10px;',
-                            labelAlign : 'right',
-                            xns : Roo.form,
-                            labelWidth : 150,
-                            listeners : {
-                               actioncomplete : function(_self,action)
-                                  {
-                                      if (action.type == 'setdata') {
-                                         //_this.dialog.el.mask("Loading");
-                                         if (_this.data.id) { 
-                                              this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-                                              return;
-                                          }
-                                         
-                                         this.findField('act_when_dis').setValue("");
-                                         
-                                         return;
-                                      }
-                                      if (action.type == 'load') {
-                                          this.findField('act_when_dis').updateFromWhen();
-                                          return;
-                                      }
-                                      if (action.type =='submit') {
-                                      
-                                         
-                                          _this.dialog.hide();
-                                      
-                                           if (_this.callback) {
-                                              _this.callback.call(_this, _this.form.getValues());
-                                           }
-                                           _this.form.reset();
-                                           return;
-                                      }
-                                  },
-                               rendered : function (form)
-                                  {
-                                      _this.form= form;
-                                  }
-                            },
-                            items : [
-                               {
-                                    '|xns' : 'Roo.form',
-                                    allowBlank : false,
-                                    name : 'act_when_days',
-                                    width : 50,
-                                    xtype : 'NumberField',
-                                    allowDecimals : false,
-                                    xns : Roo.form,
-                                    fieldLabel : 'Days after release',
-                                    allowNegative : false,
-                                    minValue : 1,
-                                    maxValue : 15,
-                                    listeners : {
-                                       valid : function (_self)
-                                          {
-                                              _this.form.findField('act_when_dis').updateVal();
-                                          }
-                                    }
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Row',
-                                    labelSeparator : '',
-                                    xns : Roo.form,
-                                    width : 200,
-                                    items : [
-                                       {
-                                            '|xns' : 'Roo.form',
-                                            name : 'act_when_dis',
-                                            width : 200,
-                                            updateVal : function() {
-                                               var tz = _this.form.findField('act_when_tz').getValue();
-                                               var reltime = _this.data.release_dt;
-                                               var parts = tz.split('.');
-                                               
-                                               var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);
-                                               
-                                               var days = 1*  _this.form.findField('act_when_days').getValue();
-                                               var disptime = reltime.add(Date.DAY,days);
-                                               Roo.log([ hkt, hkt.add(Date.DAY,days) ]);
-                                               var act_when = hkt.add(Date.DAY,days).format('Y-m-d H:i:s');
-                                               Roo.log('set actwhen = ' + act_when);
-                                               _this.form.findField('act_start').setValue(act_when);
-                                               this.setValue(disptime.format('d/M/Y h:ia') + ' (GMT+'+tz+')');
-                                            
-                                             },
-                                            xtype : 'DisplayField',
-                                            xns : Roo.form,
-                                            updateFromWhen : function() {
-                                            
-                                               var tz = _this.form.findField('act_when_tz').getValue();
-                                               var reltime = _this.data.release_dt;
-                                               var parts = tz.split('.');
-                                               
-                                            
-                                               
-                                               var hkt = reltime.add(Date.HOUR, -1 * parts[0]).add(Date.MINUTE, -1 * parts[1]).add(Date.HOUR, 8);
-                                               
-                                               var dt = Date.parseDate (
-                                                    _this.form.findField('act_start').getValue()
-                                                 , "Y-m-d H:i:s");
-                                            
-                                               var diff =  Math.round(dt.getElapsed(hkt) / (1000 * 60 * 60 * 24));
-                                               this.form.findField('act_when_days').setValue(diff);
-                                               this.updateVal();
-                                             }
-                                        }
-                                    ]
-
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    name : 'to_email',
-                                    width : 200,
-                                    xtype : 'TextField',
-                                    xns : Roo.form,
-                                    fieldLabel : 'To',
-                                    vtype : 'email'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'id'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'onid'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'ontable'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'evtype'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'act_start'
-                                },
-                               {
-                                    '|xns' : 'Roo.form',
-                                    xtype : 'Hidden',
-                                    xns : Roo.form,
-                                    name : 'act_when_tz'
-                                }
-                            ]
-
-                        }
-                    ]
-
-                }
-            ]
-
-        });
-    }
-};
diff --git a/PressRelease/Pman.Dialog.PressReleaseSearch.bjs b/PressRelease/Pman.Dialog.PressReleaseSearch.bjs
deleted file mode 100644 (file)
index 452274b..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-{
-    "id": "roo-file-112",
-    "name": "Pman.Dialog.PressReleaseSearch",
-    "parent": "",
-    "title": "",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Dialog.PressReleaseSearch.bjs",
-    "items": [
-        {
-            "listeners": {
-                "show": "function (_self)\n{\n   try {\n    _this.grid.footer.onClick('first');\n    } catch(e) { }\n}"
-            },
-            "closable": false,
-            "collapsible": false,
-            "height": 400,
-            "modal": true,
-            "resizable": false,
-            "title": "Select Search (Double click to use)",
-            "width": 700,
-            "xtype": "LayoutDialog",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "LayoutRegion",
-                    "*prop": "center"
-                },
-                {
-                    "listeners": {
-                        "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-                    },
-                    "fitContainer": true,
-                    "fitToframe": true,
-                    "region": "center",
-                    "tableName": "pressrelease_search",
-                    "title": "pressrelease_search",
-                    "xtype": "GridPanel",
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n    _this.callback(this.getDataSource().getAt(rowIndex).data.data); \n    _this.dialog.hide();\n}\n"
-                            },
-                            "*prop": "grid",
-                            "autoExpandColumn": "title",
-                            "loadMask": true,
-                            "xtype": "Grid",
-                            "|xns": "Roo.grid",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "beforeload": "function (_self, options)\n{\n  options.params.person_id = Pman.Login.authUser.id;\n}"
-                                    },
-                                    "*prop": "dataSource",
-                                    "remoteSort": true,
-                                    "xtype": "Store",
-                                    "|sortInfo": "{ field : 'title', direction: 'ASC' }",
-                                    "|xns": "Roo.data",
-                                    "items": [
-                                        {
-                                            "*prop": "proxy",
-                                            "xtype": "HttpProxy",
-                                            "method": "GET",
-                                            "|url": "baseURL + '/Roo/pressrelease_search.php'",
-                                            "|xns": "Roo.data"
-                                        },
-                                        {
-                                            "|xns": "Roo.data",
-                                            "xtype": "JsonReader",
-                                            "totalProperty": "total",
-                                            "root": "data",
-                                            "*prop": "reader",
-                                            "id": "id",
-                                            "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'title',\n        'type': 'string'\n    },\n    {\n        'name': 'data',\n        'type': 'string'\n    }\n]"
-                                        }
-                                    ]
-                                },
-                                {
-                                    "*prop": "footer",
-                                    "xtype": "PagingToolbar",
-                                    "pageSize": 25,
-                                    "displayInfo": true,
-                                    "displayMsg": "Displaying pressrelease_search{0} - {1} of {2}",
-                                    "emptyMsg": "No pressrelease_search found",
-                                    "|xns": "Roo"
-                                },
-                                {
-                                    "*prop": "toolbar",
-                                    "xtype": "Toolbar",
-                                    "|xns": "Roo",
-                                    "items": [
-                                        {
-                                            "|xns": "Roo.Toolbar",
-                                            "xtype": "Fill"
-                                        },
-                                        {
-                                            "text": "Delete",
-                                            "cls": "x-btn-text-icon",
-                                            "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                            "xtype": "Button",
-                                            "listeners": {
-                                                "|click": "function()\n{\n     Pman.genericDelete(_this, 'pressrelease_search'); \n}\n        "
-                                            },
-                                            "|xns": "Roo.Toolbar"
-                                        }
-                                    ]
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "title",
-                                    "header": "Search",
-                                    "width": 200,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid"
-                                }
-                            ]
-                        }
-                    ]
-                },
-                {
-                    "listeners": {
-                        "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
-                    },
-                    "*prop": "buttons[]",
-                    "text": "Cancel",
-                    "xtype": "Button",
-                    "|xns": "Roo"
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Dialog.PressReleaseSearch.js b/PressRelease/Pman.Dialog.PressReleaseSearch.js
deleted file mode 100644 (file)
index 03c75ed..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Dialog.PressReleaseSearch = {
-
-    dialog : false,
-    callback:  false,
-
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
-
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
-
-    },
-
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            listeners : {
-                show : function (_self)
-                {
-                   try {
-                    _this.grid.footer.onClick('first');
-                    } catch(e) { }
-                }
-            },
-            closable : false,
-            collapsible : false,
-            height : 400,
-            modal : true,
-            resizable : false,
-            title : "Select Search (Double click to use)",
-            width : 700,
-            items : [
-                {
-                    xtype: 'GridPanel',
-                    xns: Roo,
-                    listeners : {
-                        activate : function() {
-                            _this.panel = this;
-                            if (_this.grid) {
-                                _this.grid.footer.onClick('first');
-                            }
-                        }
-                    },
-                    fitContainer : true,
-                    fitToframe : true,
-                    region : 'center',
-                    tableName : 'pressrelease_search',
-                    title : "pressrelease_search",
-                    grid : {
-                        xtype: 'Grid',
-                        xns: Roo.grid,
-                        listeners : {
-                            render : function() 
-                            {
-                                _this.grid = this; 
-                                //_this.dialog = Pman.Dialog.FILL_IN
-                                if (_this.panel.active) {
-                                   this.footer.onClick('first');
-                                }
-                            },
-                            rowdblclick : function (_self, rowIndex, e)
-                            {
-                                _this.callback(this.getDataSource().getAt(rowIndex).data.data); 
-                                _this.dialog.hide();
-                            }
-                        },
-                        autoExpandColumn : 'title',
-                        loadMask : true,
-                        dataSource : {
-                            xtype: 'Store',
-                            xns: Roo.data,
-                            listeners : {
-                                beforeload : function (_self, options)
-                                {
-                                  options.params.person_id = Pman.Login.authUser.id;
-                                }
-                            },
-                            remoteSort : true,
-                            sortInfo : { field : 'title', direction: 'ASC' },
-                            proxy : {
-                                xtype: 'HttpProxy',
-                                xns: Roo.data,
-                                method : 'GET',
-                                url : baseURL + '/Roo/pressrelease_search.php'
-                            },
-                            reader : {
-                                xtype: 'JsonReader',
-                                xns: Roo.data,
-                                totalProperty : 'total',
-                                root : 'data',
-                                id : 'id',
-                                fields : [
-                                    {
-                                        'name': 'id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'person_id',
-                                        'type': 'int'
-                                    },
-                                    {
-                                        'name': 'title',
-                                        'type': 'string'
-                                    },
-                                    {
-                                        'name': 'data',
-                                        'type': 'string'
-                                    }
-                                ]
-                            }
-                        },
-                        footer : {
-                            xtype: 'PagingToolbar',
-                            xns: Roo,
-                            pageSize : 25,
-                            displayInfo : true,
-                            displayMsg : 'Displaying pressrelease_search{0} - {1} of {2}',
-                            emptyMsg : 'No pressrelease_search found'
-                        },
-                        toolbar : {
-                            xtype: 'Toolbar',
-                            xns: Roo,
-                            items : [
-                                {
-                                    xtype: 'Fill',
-                                    xns: Roo.Toolbar
-                                },
-                                {
-                                    xtype: 'Button',
-                                    xns: Roo.Toolbar,
-                                    text : "Delete",
-                                    cls : 'x-btn-text-icon',
-                                    icon : rootURL + '/Pman/templates/images/trash.gif',
-                                    listeners : {
-                                        click : function()
-                                        {
-                                             Pman.genericDelete(_this, 'pressrelease_search'); 
-                                        }
-                                    }
-                                }
-                            ]
-                        },
-                        colModel : [
-                            {
-                                xtype: 'ColumnModel',
-                                xns: Roo.grid,
-                                dataIndex : 'title',
-                                header : 'Search',
-                                width : 200,
-                                renderer : function(v) { return String.format('{0}', v); }
-                            }
-                        ]
-                    }
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            _this.dialog.hide();
-                        }
-                    },
-                    text : "Cancel"
-                }
-            ]
-        });
-    }
-};
diff --git a/PressRelease/Pman.Tab.PressReleaseApprovals.bjs b/PressRelease/Pman.Tab.PressReleaseApprovals.bjs
deleted file mode 100644 (file)
index 48578f2..0000000
+++ /dev/null
@@ -1,391 +0,0 @@
-{
- "name" : "Pman.Tab.PressReleaseApprovals",
- "parent" : "Pman.Tab.PressReleaseDistribution",
- "title" : "Pman.Tab.PressReleaseApprovals",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseApprovals.bjs",
- "permname" : "",
- "modOrder" : "005",
- "strings" : {
-  "0affb4fb177febfe57558d98f9cc85b0" : "Changes Requiring Approval",
-  "99f1888871e14cbf8bca1cd8db21e400" : "No pressrelease_contact found",
-  "59716c97497eb9694541f7c3d37b1a4d" : "Country",
-  "3c1df4260ce594cb5594696461087f2f" : "Select Country",
-  "53e5aa2c97fef1555d2511de8218c544" : "By",
-  "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
-  "b1b8216a01f7fec51609d6ab603a2678" : "Publication Scope",
-  "1243daf593fa297e07ab03bf06d925af" : "Searching...",
-  "326185f4d4dfc0ef9df05d4de4ad5b5e" : "Displaying pressrelease_contact{0} - {1} of {2}",
-  "76d81d87559357ebf5788e0eb1024aec" : "Edited by",
-  "3a2144c282d31ed1c7d57a7140fcf96d" : "Select Publication Language",
-  "09662a52490abccda21b4b452a7f172e" : "Approve Selected Contacts",
-  "a7f0ba4d77215ad8a7ca74781933c94f" : "Family Name",
-  "67ed6ddb7d890b23166c1bef771e9451" : "Edited",
-  "6bd6beac1da76b2d2a9c3b7914ba034c" : "Publication",
-  "1f96b7ecf6ec7e9ce1d960453af38752" : "News Beat(s)",
-  "20db0bfeecd8fe60533206a2b5e9891a" : "First name",
-  "754e1e134bc554a0af39749edbb59b9f" : "Job Title",
-  "6ab9375e8f8108c11f21ab43d913e79c" : "Tel.",
-  "37812357a4cd25b17d95104efe022401" : "Publ. Lang"
- },
- "items" : [
-  {
-   "listeners" : {
-    "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-   },
-   "fitToframe" : true,
-   "background" : true,
-   "region" : "center",
-   "title" : "Changes Requiring Approval",
-   "xtype" : "GridPanel",
-   "fitContainer" : true,
-   "$ xns" : "Roo",
-   "tableName" : "pressrelease_contact",
-   "items" : [
-    {
-     "listeners" : {
-      "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n}\n",
-      "|render" : "function() \n{\n    _this.grid = this; \n    _this.dialog = Pman.Dialog.PressReleaseContact;\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-     },
-     "autoExpandColumn" : "lastname",
-     "multiSort" : true,
-     "xtype" : "Grid",
-     "loadMask" : true,
-     "$ xns" : "Roo.grid",
-     "* prop" : "grid",
-     "items" : [
-      {
-       "listeners" : {
-        "beforeload" : "function (_self, options)\n{\n    options.params =     options.params || {};\n     \n    \n    var ar = [  'publication_lang' , 'country'  ];\n    var val = '';\n    Roo.each(ar, function(a) {\n        if (typeof( _this[a + '_combo']) == 'undefined') {\n            Roo.log('missing ' + a );\n            return;\n        }\n        val = _this[a + '_combo'].getValue();\n        if ((new String(val)).length > 0) {\n            options.params[a] = val;\n            return;\n        }\n        if (_this[a + '_combo'].el.dom.value == '??') {\n            options.params['search[' + a +']'] = '??';\n        }\n     });\n        options.params['query[_edited_by]'] = _this.person_id_combo.getValue();\n    \n    // has something been selected in the tree..\n     options.params['query[_with_beats'] = 1;\n     options.params['query[for_approval]'] = 1;\n    \n         \n}"
-       },
-       "multiSort" : true,
-       "remoteSort" : true,
-       "xtype" : "Store",
-       "$ sortInfo" : "{ field : 'lastname', direction: 'ASC' }",
-       "$ xns" : "Roo.data",
-       "* prop" : "dataSource",
-       "items" : [
-        {
-         "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-         "method" : "GET",
-         "xtype" : "HttpProxy",
-         "$ xns" : "Roo.data",
-         "* prop" : "proxy"
-        },
-        {
-         "id" : "id",
-         "root" : "data",
-         "xtype" : "JsonReader",
-         "$ xns" : "Roo.data",
-         "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'honor',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'media_language',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    }\n]",
-         "* prop" : "reader",
-         "totalProperty" : "total"
-        }
-       ]
-      },
-      {
-       "pageSize" : 25,
-       "xtype" : "PagingToolbar",
-       "emptyMsg" : "No pressrelease_contact found",
-       "$ xns" : "Roo",
-       "displayInfo" : true,
-       "displayMsg" : "Displaying pressrelease_contact{0} - {1} of {2}",
-       "* prop" : "footer"
-      },
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "listeners" : {
-          "render" : "function (_self)\n{\n  _this.person_id_combo = _self;\n}",
-          "beforeselect" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-         },
-         "alwaysQuery" : true,
-         "listWidth" : 300,
-         "triggerAction" : "all",
-         "forceSelection" : true,
-         "selectOnFocus" : true,
-         "pageSize" : 25,
-         "displayField" : "person_id_name",
-         "emptyText" : "Edited by",
-         "minChars" : 2,
-         "valueField" : "person_id",
-         "xtype" : "ComboBox",
-         "typeAhead" : true,
-         "editable" : false,
-         "width" : 120,
-         "$ xns" : "Roo.form",
-         "qtip" : "Select Publication Language",
-         "queryParam" : "search[publication_lang]",
-         "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> </div>",
-         "loadingText" : "Searching...",
-         "items" : [
-          {
-           "listeners" : {
-            "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'person_id';\n    o.params['_columns'] = 'person_id,person_id_name';\n    o.params['on_table'] = 'pressrelease_contact';\n}\n"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ direction : 'ASC', field: 'person_id_name' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "store",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/Events.php'",
-             "xtype" : "HttpProxy",
-             "method" : "GET",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "render" : "function (_self)\n{\n  _this.publication_lang_combo = _self;\n}",
-          "beforeselect" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-         },
-         "alwaysQuery" : true,
-         "listWidth" : 300,
-         "triggerAction" : "all",
-         "forceSelection" : true,
-         "selectOnFocus" : true,
-         "pageSize" : 25,
-         "displayField" : "publication_lang_name",
-         "emptyText" : "Publ. Lang",
-         "minChars" : 2,
-         "valueField" : "publication_lang",
-         "xtype" : "ComboBox",
-         "typeAhead" : true,
-         "editable" : false,
-         "width" : 120,
-         "$ xns" : "Roo.form",
-         "qtip" : "Select Publication Language",
-         "queryParam" : "search[publication_lang]",
-         "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{publication_lang_name}</b> </div>",
-         "loadingText" : "Searching...",
-         "items" : [
-          {
-           "listeners" : {
-            "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'publication_lang';\n    o.params['_columns'] = 'publication_lang,publication_lang_name';\n}\n"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ direction : 'ASC', field: 'publication_lang_name' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "store",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "render" : "function (_self)\n{\n  _this.country_combo = _self;\n}",
-          "beforeselect" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-         },
-         "alwaysQuery" : true,
-         "listWidth" : 300,
-         "triggerAction" : "all",
-         "forceSelection" : true,
-         "selectOnFocus" : true,
-         "pageSize" : 25,
-         "displayField" : "country_name",
-         "emptyText" : "Country",
-         "minChars" : 2,
-         "valueField" : "country",
-         "xtype" : "ComboBox",
-         "typeAhead" : true,
-         "editable" : true,
-         "width" : 120,
-         "$ xns" : "Roo.form",
-         "qtip" : "Select Country",
-         "queryParam" : "search[country]",
-         "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{country_name}</b> </div>",
-         "loadingText" : "Searching...",
-         "items" : [
-          {
-           "listeners" : {
-            "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'country';\n    o.params['_columns'] = 'country_name,country';\n}\n"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ direction : 'ASC', field: 'country_name'  }",
-           "$ xns" : "Roo.data",
-           "* prop" : "store",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "xtype" : "Fill",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length )  {\n        Roo.MessageBox.alert(\"Error\", \"Select at least  one Row\");\n        return;\n    }\n    var ar = [];\n    Roo.each(s, function(r) {\n        ar.push(r.id);\n    });\n      \n    new Pman.Request({\n        url : baseURL + '/Core/NotifyAction',\n        params : {\n            onid : ar.join(','),\n            ontable : 'pressrelease_contact',\n            action : 'APPROVAL'\n        },\n        success : function() {\n            _this.grid.footer.onClick('refresh');\n        }  \n    });\n      \n      \n}\n"
-         },
-         "text" : "Approve Selected Contacts",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Edited",
-       "width" : 75,
-       "$ renderer" : "function(v,x,r) { \n   if (!v.length) {\n       return '??';\n   }\n   var d = Date.parseDate(v, \"Y-m-d H:i:s\")\n   \n    return String.format('{0}', d ? d.format(\"d/M/Y\") : '??'); \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "core_notify_act_when"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "By",
-       "width" : 100,
-       "$ renderer" : "function(v,x,r) { \n   \n    return String.format('{0}', v); \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "core_notify_trigger_person_id_name"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "First name",
-       "width" : 100,
-       "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.firstname_alt.length) {\n    \n        return String.format('{0} ({1})', d.firstname, d.firstname_alt ); \n    }\n    return String.format('{0}', d.firstname); \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "firstname"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Family Name",
-       "width" : 150,
-       "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.lastname_alt.length) {\n    \n        return String.format('{0} ({1})', d.lastname, d.lastname_alt ); \n    }\n    return String.format('{0}', d.lastname); \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "lastname"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Job Title",
-       "width" : 100,
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "role"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Publication",
-       "width" : 150,
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "publication_name"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Publication Scope",
-       "width" : 100,
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "category_scope_id_name"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "News Beat(s)",
-       "width" : 200,
-       "$ renderer" : "function(v) { return String.format('{0}',v).split(',').join('<BR/>'); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "beats"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Country",
-       "width" : 100,
-       "$ renderer" : "function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "country"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 200,
-       "header" : "Email",
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "email"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Tel.",
-       "width" : 200,
-       "$ renderer" : "function(v,x,r) { \n\n    var map =  {\n        phone : 'Phone',\n        phone_mobile : 'Mobile',\n        phone_direct: 'Direct Line'\n    }\n    var ret = [];\n    for (var i in map) {\n        if (r.data[i].length) {\n            ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))\n        }\n    }\n\n    return ret.join('<BR/>');\n    \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "phone"
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseApprovals.js b/PressRelease/Pman.Tab.PressReleaseApprovals.js
deleted file mode 100644 (file)
index 5a7b2b2..0000000
+++ /dev/null
@@ -1,606 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.PressReleaseApprovals = new Roo.XComponent({
-
- _strings : {
-  '0affb4fb177febfe57558d98f9cc85b0' :"Changes Requiring Approval",
-  '99f1888871e14cbf8bca1cd8db21e400' :"No pressrelease_contact found",
-  '59716c97497eb9694541f7c3d37b1a4d' :"Country",
-  '3c1df4260ce594cb5594696461087f2f' :"Select Country",
-  '53e5aa2c97fef1555d2511de8218c544' :"By",
-  'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
-  'b1b8216a01f7fec51609d6ab603a2678' :"Publication Scope",
-  '1243daf593fa297e07ab03bf06d925af' :"Searching...",
-  '326185f4d4dfc0ef9df05d4de4ad5b5e' :"Displaying pressrelease_contact{0} - {1} of {2}",
-  '76d81d87559357ebf5788e0eb1024aec' :"Edited by",
-  '3a2144c282d31ed1c7d57a7140fcf96d' :"Select Publication Language",
-  '09662a52490abccda21b4b452a7f172e' :"Approve Selected Contacts",
-  'a7f0ba4d77215ad8a7ca74781933c94f' :"Family Name",
-  '67ed6ddb7d890b23166c1bef771e9451' :"Edited",
-  '6bd6beac1da76b2d2a9c3b7914ba034c' :"Publication",
-  '1f96b7ecf6ec7e9ce1d960453af38752' :"News Beat(s)",
-  '20db0bfeecd8fe60533206a2b5e9891a' :"First name",
-  '754e1e134bc554a0af39749edbb59b9f' :"Job Title",
-  '6ab9375e8f8108c11f21ab43d913e79c' :"Tel.",
-  '37812357a4cd25b17d95104efe022401' :"Publ. Lang"
- },
-
-  part     :  ["PressRelease", "Approvals" ],
-  order    : '005-Pman.Tab.PressReleaseApprovals',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseDistribution',
-  name     : "Pman.Tab.PressReleaseApprovals",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   fitContainer : true,
-   fitToframe : true,
-   region : 'center',
-   tableName : 'pressrelease_contact',
-   title : _this._strings['0affb4fb177febfe57558d98f9cc85b0'] /* Changes Requiring Approval */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'GridPanel',
-   listeners : {
-    activate : function() {
-         _this.panel = this;
-         if (_this.grid) {
-             _this.grid.footer.onClick('first');
-         }
-     }
-   },
-   grid : {
-    autoExpandColumn : 'lastname',
-    loadMask : true,
-    multiSort : true,
-    xns : Roo.grid,
-    '|xns' : 'Roo.grid',
-    xtype : 'Grid',
-    listeners : {
-     render : function() 
-      {
-          _this.grid = this; 
-          _this.dialog = Pman.Dialog.PressReleaseContact;
-          if (_this.panel.active) {
-             this.footer.onClick('first');
-          }
-      },
-     rowdblclick : function (_self, rowIndex, e)
-      {
-          if (!_this.dialog) return;
-          _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-              _this.grid.footer.onClick('refresh');
-          }); 
-      }
-    },
-    footer : {
-     displayInfo : true,
-     displayMsg : _this._strings['326185f4d4dfc0ef9df05d4de4ad5b5e'] /* Displaying pressrelease_contact{0} - {1} of {2} */,
-     emptyMsg : _this._strings['99f1888871e14cbf8bca1cd8db21e400'] /* No pressrelease_contact found */,
-     pageSize : 25,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'PagingToolbar'
-    },
-    toolbar : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'Toolbar',
-     items  : [
-      {
-       alwaysQuery : true,
-       displayField : 'person_id_name',
-       editable : false,
-       emptyText : _this._strings['76d81d87559357ebf5788e0eb1024aec'] /* Edited by */,
-       forceSelection : true,
-       listWidth : 300,
-       loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-       minChars : 2,
-       pageSize : 25,
-       qtip : _this._strings['3a2144c282d31ed1c7d57a7140fcf96d'] /* Select Publication Language */,
-       queryParam : 'search[publication_lang]',
-       selectOnFocus : true,
-       tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{person_id_name}</b> </div>',
-       triggerAction : 'all',
-       typeAhead : true,
-       valueField : 'person_id',
-       width : 120,
-       xns : Roo.form,
-       '|xns' : 'Roo.form',
-       xtype : 'ComboBox',
-       listeners : {
-        beforeselect : function (combo, record, index)
-         {
-           _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-         },
-        render : function (_self)
-         {
-           _this.person_id_combo = _self;
-         }
-       },
-       store : {
-        remoteSort : true,
-        sortInfo : { direction : 'ASC', field: 'person_id_name' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o){
-              o.params = o.params || {};
-              // set more here
-              o.params['_distinct'] = 'person_id';
-              o.params['_columns'] = 'person_id,person_id_name';
-              o.params['on_table'] = 'pressrelease_contact';
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/Events.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       }
-      },
-      {
-       alwaysQuery : true,
-       displayField : 'publication_lang_name',
-       editable : false,
-       emptyText : _this._strings['37812357a4cd25b17d95104efe022401'] /* Publ. Lang */,
-       forceSelection : true,
-       listWidth : 300,
-       loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-       minChars : 2,
-       pageSize : 25,
-       qtip : _this._strings['3a2144c282d31ed1c7d57a7140fcf96d'] /* Select Publication Language */,
-       queryParam : 'search[publication_lang]',
-       selectOnFocus : true,
-       tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{publication_lang_name}</b> </div>',
-       triggerAction : 'all',
-       typeAhead : true,
-       valueField : 'publication_lang',
-       width : 120,
-       xns : Roo.form,
-       '|xns' : 'Roo.form',
-       xtype : 'ComboBox',
-       listeners : {
-        beforeselect : function (combo, record, index)
-         {
-           _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-         },
-        render : function (_self)
-         {
-           _this.publication_lang_combo = _self;
-         }
-       },
-       store : {
-        remoteSort : true,
-        sortInfo : { direction : 'ASC', field: 'publication_lang_name' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o){
-              o.params = o.params || {};
-              // set more here
-              o.params['_distinct'] = 'publication_lang';
-              o.params['_columns'] = 'publication_lang,publication_lang_name';
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_contact.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       }
-      },
-      {
-       alwaysQuery : true,
-       displayField : 'country_name',
-       editable : true,
-       emptyText : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-       forceSelection : true,
-       listWidth : 300,
-       loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-       minChars : 2,
-       pageSize : 25,
-       qtip : _this._strings['3c1df4260ce594cb5594696461087f2f'] /* Select Country */,
-       queryParam : 'search[country]',
-       selectOnFocus : true,
-       tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{country_name}</b> </div>',
-       triggerAction : 'all',
-       typeAhead : true,
-       valueField : 'country',
-       width : 120,
-       xns : Roo.form,
-       '|xns' : 'Roo.form',
-       xtype : 'ComboBox',
-       listeners : {
-        beforeselect : function (combo, record, index)
-         {
-           _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-         },
-        render : function (_self)
-         {
-           _this.country_combo = _self;
-         }
-       },
-       store : {
-        remoteSort : true,
-        sortInfo : { direction : 'ASC', field: 'country_name'  },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o){
-              o.params = o.params || {};
-              // set more here
-              o.params['_distinct'] = 'country';
-              o.params['_columns'] = 'country_name,country';
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_contact.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       }
-      },
-      {
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Fill'
-      },
-      {
-       cls : 'x-btn-text-icon',
-       icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-       text : _this._strings['09662a52490abccda21b4b452a7f172e'] /* Approve Selected Contacts */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var s = _this.grid.getSelectionModel().getSelections();
-             if (!s.length )  {
-                 Roo.MessageBox.alert("Error", "Select at least  one Row");
-                 return;
-             }
-             var ar = [];
-             Roo.each(s, function(r) {
-                 ar.push(r.id);
-             });
-               
-             new Pman.Request({
-                 url : baseURL + '/Core/NotifyAction',
-                 params : {
-                     onid : ar.join(','),
-                     ontable : 'pressrelease_contact',
-                     action : 'APPROVAL'
-                 },
-                 success : function() {
-                     _this.grid.footer.onClick('refresh');
-                 }  
-             });
-               
-               
-         }
-       }
-      }
-     ]
-    },
-    dataSource : {
-     multiSort : true,
-     remoteSort : true,
-     sortInfo : { field : 'lastname', direction: 'ASC' },
-     xns : Roo.data,
-     '|xns' : 'Roo.data',
-     xtype : 'Store',
-     listeners : {
-      beforeload : function (_self, options)
-       {
-           options.params =     options.params || {};
-            
-           
-           var ar = [  'publication_lang' , 'country'  ];
-           var val = '';
-           Roo.each(ar, function(a) {
-               if (typeof( _this[a + '_combo']) == 'undefined') {
-                   Roo.log('missing ' + a );
-                   return;
-               }
-               val = _this[a + '_combo'].getValue();
-               if ((new String(val)).length > 0) {
-                   options.params[a] = val;
-                   return;
-               }
-               if (_this[a + '_combo'].el.dom.value == '??') {
-                   options.params['search[' + a +']'] = '??';
-               }
-            });
-               options.params['query[_edited_by]'] = _this.person_id_combo.getValue();
-           
-           // has something been selected in the tree..
-            options.params['query[_with_beats'] = 1;
-            options.params['query[for_approval]'] = 1;
-           
-                
-       }
-     },
-     proxy : {
-      method : 'GET',
-      url : baseURL + '/Roo/pressrelease_contact.php',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'HttpProxy'
-     },
-     reader : {
-      fields : [
-          {
-              'name': 'id',
-              'type': 'int'
-          },
-          {
-              'name': 'category_type_id',
-              'type': 'int'
-          },
-          {
-              'name': 'honor',
-              'type': 'string'
-          },
-          {
-              'name': 'name',
-              'type': 'string'
-          },
-          {
-              'name': 'name_alt',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'role',
-              'type': 'string'
-          },
-          {
-              'name': 'email',
-              'type': 'string'
-          },
-          {
-              'name': 'email_personal',
-              'type': 'string'
-          },
-          {
-              'name': 'phone',
-              'type': 'string'
-          },
-          {
-              'name': 'fax',
-              'type': 'string'
-          },
-          {
-              'name': 'address',
-              'type': 'string'
-          },
-          {
-              'name': 'category_media_id',
-              'type': 'int'
-          },
-          {
-              'name': 'submission_time',
-              'type': 'string'
-          },
-          {
-              'name': 'media_language',
-              'type': 'string'
-          },
-          {
-              'name': 'url',
-              'type': 'string'
-          },
-          {
-              'name': 'remarks',
-              'type': 'string'
-          }
-      ],
-      id : 'id',
-      root : 'data',
-      totalProperty : 'total',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'JsonReader'
-     }
-    },
-    colModel : [
-     {
-      dataIndex : 'core_notify_act_when',
-      header : _this._strings['67ed6ddb7d890b23166c1bef771e9451'] /* Edited */,
-      renderer : function(v,x,r) { 
-         if (!v.length) {
-             return '??';
-         }
-         var d = Date.parseDate(v, "Y-m-d H:i:s")
-         
-          return String.format('{0}', d ? d.format("d/M/Y") : '??'); 
-      },
-      sortable : true,
-      width : 75,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'core_notify_trigger_person_id_name',
-      header : _this._strings['53e5aa2c97fef1555d2511de8218c544'] /* By */,
-      renderer : function(v,x,r) { 
-         
-          return String.format('{0}', v); 
-      },
-      sortable : true,
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'firstname',
-      header : _this._strings['20db0bfeecd8fe60533206a2b5e9891a'] /* First name */,
-      renderer : function(v,x,r) { 
-          var d = r.data;
-          if (d.firstname_alt.length) {
-          
-              return String.format('{0} ({1})', d.firstname, d.firstname_alt ); 
-          }
-          return String.format('{0}', d.firstname); 
-      },
-      sortable : true,
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'lastname',
-      header : _this._strings['a7f0ba4d77215ad8a7ca74781933c94f'] /* Family Name */,
-      renderer : function(v,x,r) { 
-          var d = r.data;
-          if (d.lastname_alt.length) {
-          
-              return String.format('{0} ({1})', d.lastname, d.lastname_alt ); 
-          }
-          return String.format('{0}', d.lastname); 
-      },
-      sortable : true,
-      width : 150,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'role',
-      header : _this._strings['754e1e134bc554a0af39749edbb59b9f'] /* Job Title */,
-      renderer : function(v) { return String.format('{0}', v); },
-      sortable : true,
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'publication_name',
-      header : _this._strings['6bd6beac1da76b2d2a9c3b7914ba034c'] /* Publication */,
-      renderer : function(v) { return String.format('{0}', v); },
-      sortable : true,
-      width : 150,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'category_scope_id_name',
-      header : _this._strings['b1b8216a01f7fec51609d6ab603a2678'] /* Publication Scope */,
-      renderer : function(v) { return String.format('{0}', v); },
-      sortable : true,
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'beats',
-      header : _this._strings['1f96b7ecf6ec7e9ce1d960453af38752'] /* News Beat(s) */,
-      renderer : function(v) { return String.format('{0}',v).split(',').join('<BR/>'); },
-      width : 200,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'country',
-      header : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-      renderer : function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); },
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'email',
-      header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
-      renderer : function(v) { return String.format('{0}', v); },
-      width : 200,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'phone',
-      header : _this._strings['6ab9375e8f8108c11f21ab43d913e79c'] /* Tel. */,
-      renderer : function(v,x,r) { 
-      
-          var map =  {
-              phone : 'Phone',
-              phone_mobile : 'Mobile',
-              phone_direct: 'Direct Line'
-          }
-          var ret = [];
-          for (var i in map) {
-              if (r.data[i].length) {
-                  ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))
-              }
-          }
-      
-          return ret.join('<BR/>');
-          
-      },
-      width : 200,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseCompanies.bjs b/PressRelease/Pman.Tab.PressReleaseCompanies.bjs
deleted file mode 100644 (file)
index 7895f6d..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "name" : "Pman.Tab.PressReleaseCompanies",
- "parent" : "Pman.Tab.PressReleaseTab",
- "title" : "Company List",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseCompanies.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "1c76cbfe21c6f44c1d1e59d54f3e4420" : "Company",
-  "edefbda3a2bdd979e42d8944b7325b79" : "Companies",
-  "d41d8cd98f00b204e9800998ecf8427e" : "",
-  "82ce4fe96406ad6e0ea917c6e4104f60" : "Clear Selection",
-  "f2a6c498fb90ee345d997f888fce3b18" : "Delete"
- },
- "items" : [
-  {
-   "listeners" : {
-    "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-   },
-   "region" : "west",
-   "background" : true,
-   "fitToframe" : true,
-   "title" : "Companies",
-   "xtype" : "GridPanel",
-   "fitContainer" : true,
-   "$ xns" : "Roo",
-   "tableName" : "Companies",
-   "items" : [
-    {
-     "listeners" : {
-      "|render" : "function() { \n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-     },
-     "autoExpandColumn" : "code",
-     "xtype" : "Grid",
-     "loadMask" : true,
-     "$ xns" : "Roo.grid",
-     "* prop" : "grid",
-     "items" : [
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n      var sm =      _this.grid.getSelectionModel();\n     sm.clearSelections();\n     sm.fireEvent('afterselectionchange',sm);\n     \n    \n}"
-         },
-         "text" : "Clear Selection",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n \n     var sm =      _this.grid.getSelectionModel().getSelected();\n    if (!sm) { \n        Roo.MessageBox.alert(\"Error\", \"Select a Company to Delete\");\n        return;\n    }\n    new Pman.Request({\n        url : baseURL + '/Roo/Companies',\n        method : 'POST',\n        params : {\n            _delete : sm.data.id\n        },\n        success : function(e) {\n            _this.grid.footer.onClick('refresh');\n        }\n    });\n     \n}"
-         },
-         "text" : "Delete",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "|beforeload" : "function (_self, o)\n{\n  o.params['!id'] = Pman.Login.authUser.company_id;\n  o.params['comptype[0]'] = 'CLIENT';\n o.params['comptype[1]'] = 'AGENCY';\n}",
-        "load" : "function (_self, records, options)\n{\n    try {\n        var g = Pman.Tab.PressReleaseTab.layout.getRegion('center').getActivePanel().grid;\n        g.footer.onClick('first');\n    } catch(e) {\n    }\n}"
-       },
-       "xtype" : "Store",
-       "remoteSort" : true,
-       "$ reader" : "Pman.Readers.Companies",
-       "$ sortInfo" : "{ field: 'name', direction : 'ASC' }",
-       "$ xns" : "Roo.data",
-       "* prop" : "dataSource",
-       "items" : [
-        {
-         "$ url" : "baseURL + '/Roo/Companies.php'",
-         "xtype" : "HttpProxy",
-         "method" : "GET",
-         "$ xns" : "Roo.data",
-         "* prop" : "proxy"
-        },
-        {
-         "id" : "id",
-         "root" : "data",
-         "xtype" : "JsonReader",
-         "$ xns" : "Roo.data",
-         "$ fields" : "[\n    {\n        'name': 'code',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'tel',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'created_dt',\n        'type': 'string'\n    },\n    {\n        'name': 'updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_dt',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_filename',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_onid',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_mimetype',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_width',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_height',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_filesize',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_displayorder',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_language',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_parent_image_id',\n        'type': 'int'\n    },\n    {\n        'name': 'logo_id_created',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_imgtype',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_linkurl',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_descript',\n        'type': 'string'\n    },\n    {\n        'name': 'logo_id_title',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'main_office_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'main_office_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'main_office_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'main_office_id_role',\n        'type': 'string'\n    }\n]",
-         "* prop" : "reader",
-         "totalProperty" : "total"
-        }
-       ]
-      },
-      {
-       "pageSize" : 50,
-       "xtype" : "PagingToolbar",
-       "emptyMsg" : "",
-       "$ xns" : "Roo",
-       "displayMsg" : "",
-       "displayInfo" : true,
-       "* prop" : "footer"
-      },
-      {
-       "listeners" : {
-        "|afterselectionchange" : "function (_self)\n{\n    if (    Pman.Tab.PressReleaseImages.panel.active) {\n        Pman.Tab.PressReleaseImages.grid.footer.onClick('first');\n    }\n    if (    Pman.Tab.PressReleaseEntry.panel.active) {\n        Pman.Tab.PressReleaseEntry.grid.footer.onClick('first');\n    }\n    \n}"
-       },
-       "xtype" : "RowSelectionModel",
-       "$ xns" : "Roo.grid",
-       "* prop" : "selModel"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Company",
-       "width" : 100,
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "name"
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseCompanies.js b/PressRelease/Pman.Tab.PressReleaseCompanies.js
deleted file mode 100644 (file)
index af670fd..0000000
+++ /dev/null
@@ -1,432 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.PressReleaseCompanies = new Roo.XComponent({
-
- _strings : {
-  '1c76cbfe21c6f44c1d1e59d54f3e4420' :"Company",
-  'edefbda3a2bdd979e42d8944b7325b79' :"Companies",
-  'd41d8cd98f00b204e9800998ecf8427e' :"",
-  '82ce4fe96406ad6e0ea917c6e4104f60' :"Clear Selection",
-  'f2a6c498fb90ee345d997f888fce3b18' :"Delete"
- },
-
-  part     :  ["PressRelease", "Companies" ],
-  order    : '001-Pman.Tab.PressReleaseCompanies',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseTab',
-  name     : "Company List",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   fitContainer : true,
-   fitToframe : true,
-   region : 'west',
-   tableName : 'Companies',
-   title : _this._strings['edefbda3a2bdd979e42d8944b7325b79'] /* Companies */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'GridPanel',
-   listeners : {
-    activate : function() {
-         _this.panel = this;
-         if (_this.grid) {
-             _this.grid.footer.onClick('first');
-         }
-     }
-   },
-   grid : {
-    autoExpandColumn : 'code',
-    loadMask : true,
-    xns : Roo.grid,
-    '|xns' : 'Roo.grid',
-    xtype : 'Grid',
-    listeners : {
-     render : function() { 
-          _this.grid = this; 
-          //_this.dialog = Pman.Dialog.FILL_IN
-          if (_this.panel.active) {
-             this.footer.onClick('first');
-          }
-      }
-    },
-    footer : {
-     displayInfo : true,
-     displayMsg : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
-     emptyMsg : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /*  */,
-     pageSize : 50,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'PagingToolbar'
-    },
-    toolbar : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'Toolbar',
-     items  : [
-      {
-       text : _this._strings['82ce4fe96406ad6e0ea917c6e4104f60'] /* Clear Selection */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function (_self, e)
-         {
-               var sm =      _this.grid.getSelectionModel();
-              sm.clearSelections();
-              sm.fireEvent('afterselectionchange',sm);
-              
-             
-         }
-       }
-      },
-      {
-       text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function (_self, e)
-         {
-          
-              var sm =      _this.grid.getSelectionModel().getSelected();
-             if (!sm) { 
-                 Roo.MessageBox.alert("Error", "Select a Company to Delete");
-                 return;
-             }
-             new Pman.Request({
-                 url : baseURL + '/Roo/Companies',
-                 method : 'POST',
-                 params : {
-                     _delete : sm.data.id
-                 },
-                 success : function(e) {
-                     _this.grid.footer.onClick('refresh');
-                 }
-             });
-              
-         }
-       }
-      }
-     ]
-    },
-    dataSource : {
-     reader : Pman.Readers.Companies,
-     remoteSort : true,
-     sortInfo : { field: 'name', direction : 'ASC' },
-     xns : Roo.data,
-     '|xns' : 'Roo.data',
-     xtype : 'Store',
-     listeners : {
-      beforeload : function (_self, o)
-       {
-         o.params['!id'] = Pman.Login.authUser.company_id;
-         o.params['comptype[0]'] = 'CLIENT';
-        o.params['comptype[1]'] = 'AGENCY';
-       },
-      load : function (_self, records, options)
-       {
-           try {
-               var g = Pman.Tab.PressReleaseTab.layout.getRegion('center').getActivePanel().grid;
-               g.footer.onClick('first');
-           } catch(e) {
-           }
-       }
-     },
-     proxy : {
-      method : 'GET',
-      url : baseURL + '/Roo/Companies.php',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'HttpProxy'
-     },
-     reader : {
-      fields : [
-          {
-              'name': 'code',
-              'type': 'string'
-          },
-          {
-              'name': 'name',
-              'type': 'string'
-          },
-          {
-              'name': 'remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'address',
-              'type': 'string'
-          },
-          {
-              'name': 'tel',
-              'type': 'string'
-          },
-          {
-              'name': 'fax',
-              'type': 'string'
-          },
-          {
-              'name': 'email',
-              'type': 'string'
-          },
-          {
-              'name': 'id',
-              'type': 'int'
-          },
-          {
-              'name': 'isOwner',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id',
-              'type': 'int'
-          },
-          {
-              'name': 'background_color',
-              'type': 'string'
-          },
-          {
-              'name': 'comptype',
-              'type': 'string'
-          },
-          {
-              'name': 'url',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id',
-              'type': 'int'
-          },
-          {
-              'name': 'created_by',
-              'type': 'int'
-          },
-          {
-              'name': 'created_dt',
-              'type': 'string'
-          },
-          {
-              'name': 'updated_by',
-              'type': 'int'
-          },
-          {
-              'name': 'updated_dt',
-              'type': 'string'
-          },
-          {
-              'name': 'passwd',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_filename',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_ontable',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_onid',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_mimetype',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_width',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_height',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_filesize',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_displayorder',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_language',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_parent_image_id',
-              'type': 'int'
-          },
-          {
-              'name': 'logo_id_created',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_imgtype',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_linkurl',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_descript',
-              'type': 'string'
-          },
-          {
-              'name': 'logo_id_title',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_office_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_phone',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_fax',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_email',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_company_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_role',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_active',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_passwd',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_lang',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_no_reset_sent',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_action_type',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_project_id',
-              'type': 'int'
-          },
-          {
-              'name': 'main_office_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'main_office_id_company_id',
-              'type': 'int'
-          },
-          {
-              'name': 'main_office_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id_address',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id_phone',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id_fax',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id_email',
-              'type': 'string'
-          },
-          {
-              'name': 'main_office_id_role',
-              'type': 'string'
-          }
-      ],
-      id : 'id',
-      root : 'data',
-      totalProperty : 'total',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'JsonReader'
-     }
-    },
-    selModel : {
-     xns : Roo.grid,
-     '|xns' : 'Roo.grid',
-     xtype : 'RowSelectionModel',
-     listeners : {
-      afterselectionchange : function (_self)
-       {
-           if (    Pman.Tab.PressReleaseImages.panel.active) {
-               Pman.Tab.PressReleaseImages.grid.footer.onClick('first');
-           }
-           if (    Pman.Tab.PressReleaseEntry.panel.active) {
-               Pman.Tab.PressReleaseEntry.grid.footer.onClick('first');
-           }
-           
-       }
-     }
-    },
-    colModel : [
-     {
-      dataIndex : 'name',
-      header : _this._strings['1c76cbfe21c6f44c1d1e59d54f3e4420'] /* Company */,
-      renderer : function(v) { return String.format('{0}', v); },
-      width : 100,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseContactRejects.bjs b/PressRelease/Pman.Tab.PressReleaseContactRejects.bjs
deleted file mode 100644 (file)
index c4f0bdf..0000000
+++ /dev/null
@@ -1,420 +0,0 @@
-{
- "name" : "Pman.Tab.PressReleaseContactRejects",
- "parent" : "Pman.Tab.PressReleaseDistribution",
- "title" : "Pman.Tab.PressReleaseContactRejects",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseContactRejects.bjs",
- "permname" : "",
- "modOrder" : "100",
- "strings" : {
-  "59716c97497eb9694541f7c3d37b1a4d" : "Country",
-  "3c1df4260ce594cb5594696461087f2f" : "Select Country",
-  "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
-  "acbb73117879b0729ee3bac61edb023a" : "Last Failed details",
-  "ec53a8c4f07baed5d8825072c89799be" : "Status",
-  "5a6c05f48afd958dcb5989bd66ed4783" : "Add / Edit Contacts",
-  "7dce122004969d56ae2e0245cb754d35" : "Edit",
-  "7f8c0283f16925caed8e632086b81b9c" : "Sent",
-  "1243daf593fa297e07ab03bf06d925af" : "Searching...",
-  "a7f0ba4d77215ad8a7ca74781933c94f" : "Family Name",
-  "f8b970440931adb9af295d634b56110d" : "No Items found",
-  "6bd6beac1da76b2d2a9c3b7914ba034c" : "Publication",
-  "dd9fcc57e835b07ecc7ed7a750ad53b1" : "No failed records found",
-  "aad2b85747ca5dc40b4b12efd3042c84" : "Bad Addresses",
-  "1ede593e47b69d92e0cd20cfd12260c3" : "Displaying failed records {0} - {1} of {2}",
-  "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
-  "20db0bfeecd8fe60533206a2b5e9891a" : "First name",
-  "9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
-  "f45381a54504218e39aca33492d29306" : "Circulation",
-  "a58c1bdecbdb3600f836a9a3510250e6" : "Displaying history 0} - {1} of {2}",
-  "122a26ef126e03089bb959c949d12b0a" : "Due out (Local time)",
-  "7800aee89e121611c7edfcf2ca662e09" : "Failed Address"
- },
- "items" : [
-  {
-   "listeners" : {
-    "activate" : "function (_self)\n{\n    (function() { \n       if (_this.grid) {\n\n            _this.grid.footer.onClick('first');\n        }\n    }).defer(100, this);\n\n\n}"
-   },
-   "background" : true,
-   "region" : "center",
-   "title" : "Bad Addresses",
-   "xtype" : "NestedLayoutPanel",
-   "$ xns" : "Roo",
-   "items" : [
-    {
-     "xtype" : "BorderLayout",
-     "$ xns" : "Roo",
-     "* prop" : "layout",
-     "items" : [
-      {
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "* prop" : "center"
-      },
-      {
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "split" : true,
-       "* prop" : "south",
-       "height" : 150
-      },
-      {
-       "listeners" : {
-        "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-       },
-       "fitToframe" : true,
-       "background" : false,
-       "region" : "center",
-       "title" : "Add / Edit Contacts",
-       "xtype" : "GridPanel",
-       "fitContainer" : true,
-       "$ xns" : "Roo",
-       "tableName" : "pressrelease_contact",
-       "items" : [
-        {
-         "listeners" : {
-          "rowdblclick" : "function (_self, rowIndex, e)\n{\n    Roo.log(\"dblckck\");\n    \n    var rec = this.ds.getAt(rowIndex);\n    var g= this;\n    Pman.Dialog.PressReleaseContact.show({ id : rec.data.id }, function()\n    {\n        g.footer.onClick('refresh');\n    });\n}",
-          "|render" : "function() \n{\n    _this.grid = this; \n\n}",
-          "rowclick" : "function (_self, rowIndex, e)\n{\n   (function() { _this.circgrid.footer.onClick('first'); }).defer(500);\n}"
-         },
-         "autoExpandColumn" : "failed",
-         "multiSort" : true,
-         "xtype" : "Grid",
-         "loadMask" : true,
-         "$ xns" : "Roo.grid",
-         "* prop" : "grid",
-         "items" : [
-          {
-           "listeners" : {
-            "beforeload" : "function (_self, options)\n{\n   options.params =     options.params || {};\n    options.params['query[search_name]'] = _this.searchBox.getValue();\n   \n    options.params['query[failed]'] = 1;\n     options.params['query[unreviewed]'] = 1;\n    options.params['search[country_ar]'] =  _this.country_ar_combo.getValue(); \n    \n         \n}"
-           },
-           "multiSort" : true,
-           "remoteSort" : true,
-           "xtype" : "Store",
-           "$ sortInfo" : "{ field : 'lastname', direction: 'ASC' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "dataSource",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'honor',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'media_language',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    }\n]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          },
-          {
-           "pageSize" : 25,
-           "xtype" : "PagingToolbar",
-           "emptyMsg" : "No failed records found",
-           "$ xns" : "Roo",
-           "displayMsg" : "Displaying failed records {0} - {1} of {2}",
-           "displayInfo" : true,
-           "* prop" : "footer"
-          },
-          {
-           "xtype" : "Toolbar",
-           "$ xns" : "Roo",
-           "* prop" : "toolbar",
-           "items" : [
-            {
-             "listeners" : {
-              "specialkey" : "function (_self, e)\n{\n\n    if (e.getCharCode() == 13) {\n        _this.grid.footer.onClick('first');\n    }\n}",
-              "render" : "function (_self)\n{\n  _this.searchBox = _self;\n}"
-             },
-             "xtype" : "TextField",
-             "$ xns" : "Roo.form"
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n  _this.country_ar_combo = _self;\n}",
-              "change" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 300,
-             "triggerAction" : "all",
-             "forceSelection" : false,
-             "selectOnFocus" : true,
-             "pageSize" : 999,
-             "displayField" : "country_name",
-             "emptyText" : "Country",
-             "hiddenName" : "country",
-             "minChars" : 2,
-             "valueField" : "country",
-             "xtype" : "ComboCheck",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 200,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Country",
-             "queryParam" : "search[country_name]",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'country';\n    o.params['_with_country_name'] =1;\n    o.params['_columns'] = 'country_name,country';\n\n    \n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'country_name'  }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n    _this.searchBox.setValue('');\n    \n    \n    _this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "xtype" : "Fill",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}\n"
-             },
-             "text" : "Edit",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n     Pman.genericDelete(_this, 'pressrelease_contact'); \n}\n        "
-             },
-             "text" : "Delete",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "First name",
-           "width" : 100,
-           "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.firstname_alt.length) {\n    \n        return String.format('{0} ({1})', d.firstname, d.firstname_alt ); \n    }\n    return String.format('{0}', d.firstname); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "firstname"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Family Name",
-           "width" : 150,
-           "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.lastname_alt.length) {\n    \n        return String.format('{0} ({1})', d.lastname, d.lastname_alt ); \n    }\n    return String.format('{0}', d.lastname); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "lastname"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Publication",
-           "width" : 150,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "publication_name"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Country",
-           "width" : 100,
-           "$ renderer" : "function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "country"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Email",
-           "width" : 150,
-           "$ renderer" : "function(v,x,r) { \n \n    var f = (\n            r.data.email_fails > 0 ? '<span style=\"color:red\">{0}</span>' : '{0}'\n        ) + (\n        r.data.email2.length > 0 ? \n            (r.data.email2_fails > 0 ? '<br/><span style=\"color:red\">{1}</span>' : '<br/>{1}')    : ''\n        ) + (\n        r.data.email3.length > 0 ? \n            (r.data.email3_fails > 0 ? '<br/><span style=\"color:red\">{2}</span>' : '<br/>{2}')    : ''\n        );\n        \n        \n    \n    return String.format(f, v, r.data.email2, r.data.email3); \n    \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "email"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Last Failed details",
-           "width" : 200,
-           "$ renderer" : "function(v,x,r) { \n\n    var map =  {\n        phone : 'Phone',\n        phone_mobile : 'Mobile',\n        phone_direct: 'Direct Line'\n    }\n    var ret = [];\n    for (var i in map) {\n        if (r.data[i].length) {\n            ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))\n        }\n    }\n\n    return ret.join('<BR/>');\n    \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "failure"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "|activate" : "function() {\n    _this.circpanel = this;\n     \n}"
-       },
-       "fitToframe" : true,
-       "background" : true,
-       "region" : "south",
-       "title" : "Circulation",
-       "xtype" : "GridPanel",
-       "fitContainer" : true,
-       "$ xns" : "Roo",
-       "tableName" : "pressrelease_notify",
-       "items" : [
-        {
-         "listeners" : {
-          "rowdblclick" : "function (_self, rowIndex, e)\n{\n    var rec = this.ds.getAt(rowIndex);\n    var g= this;\n    Pman.Dialog.PressReleaseContact.show({ id : rec.data.person_id }, function()\n    {\n        g.footer.onClick('first');\n    });\n}",
-          "|render" : "function() \n{\n    _this.circgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.circpanel.active) {\n       this.footer.onClick('first');\n    }\n}"
-         },
-         "autoExpandColumn" : "event_id_remarks",
-         "xtype" : "Grid",
-         "loadMask" : true,
-         "$ xns" : "Roo.grid",
-         "* prop" : "grid",
-         "items" : [
-          {
-           "xtype" : "RowSelectionModel",
-           "singleSelect" : true,
-           "$ xns" : "Roo.grid",
-           "* prop" : "sm"
-          },
-          {
-           "listeners" : {
-            "beforeload" : "function (_self, o)\n{\n  o.params = o.params || {};\n  o.params.ontable = 'pressrelease_entry';\n  //\n  \n  //o.params.onid = _this.form.findField('id').getValue();\n  o.params.vtype = \"FAILED\";\n  if (!_this.grid || !_this.grid.getSelectionModel) {\n  // not loaded yet.\n    return false;\n    }\n  var s = _this.grid.getSelectionModel().getSelected();\n  if (!s) {\n     _this.circgrid.ds.removeAll();\n    return false;\n  }\n  o.params.fail_reviewed = 0;\n  \n  o.params.person_id = s.data.id;\n\n}",
-            "load" : "function (_self, records, options)\n{\n    Roo.log(records);\n    if (!records.length) {\n        _this.grid.footer.onClick('refresh');\n    }\n}"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ field : 'sent', direction: 'DESC' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "dataSource",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/pressrelease_notify.php'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'act_when',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'onid',\n        'type': 'int'\n    },\n    {\n        'name': 'ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'msgid',\n        'type': 'string'\n    },\n    {\n        'name': 'sent',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'bounced',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_honor',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_firstname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_publication_name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_category_scope_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_contact_language',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_contact_language_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_country',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_method',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_from',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_to',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_best_contact_days',\n        'type': 'string'\n    }\n]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          },
-          {
-           "pageSize" : 25,
-           "xtype" : "PagingToolbar",
-           "emptyMsg" : "No Items found",
-           "$ xns" : "Roo",
-           "displayMsg" : "Displaying history 0} - {1} of {2}",
-           "displayInfo" : true,
-           "* prop" : "footer"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Ref#",
-           "width" : 50,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "id"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Due out (Local time)",
-           "width" : 120,
-           "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "act_when"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Sent",
-           "width" : 120,
-           "$ renderer" : "function(v,x,r) { \n   if (!r.data.event_id) {\n        return 'not sent yet';\n   }\n   \n    return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "sent"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Failed Address",
-           "width" : 150,
-           "$ renderer" : "function(v,x,r) { \n\n    \n        return String.format('<B>{0}</B>', v);\n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "to_email"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Status",
-           "width" : 150,
-           "$ renderer" : "function(v) { \n     \n    return String.format('<span qtip=\"{1}\">{0}</span>', v,String.format('{0}', v)); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "event_id_remarks"
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseContactRejects.js b/PressRelease/Pman.Tab.PressReleaseContactRejects.js
deleted file mode 100644 (file)
index 2de8297..0000000
+++ /dev/null
@@ -1,856 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.PressReleaseContactRejects = new Roo.XComponent({
-
- _strings : {
-  '59716c97497eb9694541f7c3d37b1a4d' :"Country",
-  '3c1df4260ce594cb5594696461087f2f' :"Select Country",
-  'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
-  'acbb73117879b0729ee3bac61edb023a' :"Last Failed details",
-  'ec53a8c4f07baed5d8825072c89799be' :"Status",
-  '5a6c05f48afd958dcb5989bd66ed4783' :"Add / Edit Contacts",
-  '7dce122004969d56ae2e0245cb754d35' :"Edit",
-  '7f8c0283f16925caed8e632086b81b9c' :"Sent",
-  '1243daf593fa297e07ab03bf06d925af' :"Searching...",
-  'a7f0ba4d77215ad8a7ca74781933c94f' :"Family Name",
-  'f8b970440931adb9af295d634b56110d' :"No Items found",
-  '6bd6beac1da76b2d2a9c3b7914ba034c' :"Publication",
-  'dd9fcc57e835b07ecc7ed7a750ad53b1' :"No failed records found",
-  'aad2b85747ca5dc40b4b12efd3042c84' :"Bad Addresses",
-  '1ede593e47b69d92e0cd20cfd12260c3' :"Displaying failed records {0} - {1} of {2}",
-  'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
-  '20db0bfeecd8fe60533206a2b5e9891a' :"First name",
-  '9c9745a343efeacc9efe9b7222b27afb' :"Ref#",
-  'f45381a54504218e39aca33492d29306' :"Circulation",
-  'a58c1bdecbdb3600f836a9a3510250e6' :"Displaying history 0} - {1} of {2}",
-  '122a26ef126e03089bb959c949d12b0a' :"Due out (Local time)",
-  '7800aee89e121611c7edfcf2ca662e09' :"Failed Address"
- },
-
-  part     :  ["PressRelease", "ContactRejects" ],
-  order    : '100-Pman.Tab.PressReleaseContactRejects',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseDistribution',
-  name     : "Pman.Tab.PressReleaseContactRejects",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   region : 'center',
-   title : _this._strings['aad2b85747ca5dc40b4b12efd3042c84'] /* Bad Addresses */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'NestedLayoutPanel',
-   listeners : {
-    activate : function (_self)
-     {
-         (function() { 
-            if (_this.grid) {
-     
-                 _this.grid.footer.onClick('first');
-             }
-         }).defer(100, this);
-     
-     
-     }
-   },
-   layout : {
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'BorderLayout',
-    center : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    south : {
-     height : 150,
-     split : true,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    items  : [
-     {
-      background : false,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'pressrelease_contact',
-      title : _this._strings['5a6c05f48afd958dcb5989bd66ed4783'] /* Add / Edit Contacts */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.panel = this;
-            if (_this.grid) {
-                _this.grid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'failed',
-       loadMask : true,
-       multiSort : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.grid = this; 
-         
-         },
-        rowclick : function (_self, rowIndex, e)
-         {
-            (function() { _this.circgrid.footer.onClick('first'); }).defer(500);
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             Roo.log("dblckck");
-             
-             var rec = this.ds.getAt(rowIndex);
-             var g= this;
-             Pman.Dialog.PressReleaseContact.show({ id : rec.data.id }, function()
-             {
-                 g.footer.onClick('refresh');
-             });
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['1ede593e47b69d92e0cd20cfd12260c3'] /* Displaying failed records {0} - {1} of {2} */,
-        emptyMsg : _this._strings['dd9fcc57e835b07ecc7ed7a750ad53b1'] /* No failed records found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           render : function (_self)
-            {
-              _this.searchBox = _self;
-            },
-           specialkey : function (_self, e)
-            {
-            
-                if (e.getCharCode() == 13) {
-                    _this.grid.footer.onClick('first');
-                }
-            }
-          }
-         },
-         {
-          alwaysQuery : true,
-          displayField : 'country_name',
-          editable : false,
-          emptyText : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-          forceSelection : false,
-          hiddenName : 'country',
-          listWidth : 300,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 999,
-          qtip : _this._strings['3c1df4260ce594cb5594696461087f2f'] /* Select Country */,
-          queryParam : 'search[country_name]',
-          selectOnFocus : true,
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'country',
-          width : 200,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboCheck',
-          listeners : {
-           change : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-              _this.country_ar_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'country_name'  },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'country';
-                 o.params['_with_country_name'] =1;
-                 o.params['_columns'] = 'country_name,country';
-             
-                 
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/search.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                _this.searchBox.setValue('');
-                
-                
-                _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-          text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var s = _this.grid.getSelectionModel().getSelections();
-                if (!s.length || (s.length > 1))  {
-                    Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                    return;
-                }
-                if (!_this.dialog) return;
-                _this.dialog.show(s[0].data, function() {
-                    _this.grid.footer.onClick('refresh');
-                }); 
-                
-            }
-          }
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : rootURL + '/Pman/templates/images/trash.gif',
-          text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                 Pman.genericDelete(_this, 'pressrelease_contact'); 
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        multiSort : true,
-        remoteSort : true,
-        sortInfo : { field : 'lastname', direction: 'ASC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, options)
-          {
-             options.params =     options.params || {};
-              options.params['query[search_name]'] = _this.searchBox.getValue();
-             
-              options.params['query[failed]'] = 1;
-               options.params['query[unreviewed]'] = 1;
-              options.params['search[country_ar]'] =  _this.country_ar_combo.getValue(); 
-              
-                   
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_contact.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email_personal',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_media_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'submission_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'media_language',
-                 'type': 'string'
-             },
-             {
-                 'name': 'url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'firstname',
-         header : _this._strings['20db0bfeecd8fe60533206a2b5e9891a'] /* First name */,
-         renderer : function(v,x,r) { 
-             var d = r.data;
-             if (d.firstname_alt.length) {
-             
-                 return String.format('{0} ({1})', d.firstname, d.firstname_alt ); 
-             }
-             return String.format('{0}', d.firstname); 
-         },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'lastname',
-         header : _this._strings['a7f0ba4d77215ad8a7ca74781933c94f'] /* Family Name */,
-         renderer : function(v,x,r) { 
-             var d = r.data;
-             if (d.lastname_alt.length) {
-             
-                 return String.format('{0} ({1})', d.lastname, d.lastname_alt ); 
-             }
-             return String.format('{0}', d.lastname); 
-         },
-         sortable : true,
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'publication_name',
-         header : _this._strings['6bd6beac1da76b2d2a9c3b7914ba034c'] /* Publication */,
-         renderer : function(v) { return String.format('{0}', v); },
-         sortable : true,
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'country',
-         header : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-         renderer : function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'email',
-         header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
-         renderer : function(v,x,r) { 
-          
-             var f = (
-                     r.data.email_fails > 0 ? '<span style="color:red">{0}</span>' : '{0}'
-                 ) + (
-                 r.data.email2.length > 0 ? 
-                     (r.data.email2_fails > 0 ? '<br/><span style="color:red">{1}</span>' : '<br/>{1}')    : ''
-                 ) + (
-                 r.data.email3.length > 0 ? 
-                     (r.data.email3_fails > 0 ? '<br/><span style="color:red">{2}</span>' : '<br/>{2}')    : ''
-                 );
-                 
-                 
-             
-             return String.format(f, v, r.data.email2, r.data.email3); 
-             
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'failure',
-         header : _this._strings['acbb73117879b0729ee3bac61edb023a'] /* Last Failed details */,
-         renderer : function(v,x,r) { 
-         
-             var map =  {
-                 phone : 'Phone',
-                 phone_mobile : 'Mobile',
-                 phone_direct: 'Direct Line'
-             }
-             var ret = [];
-             for (var i in map) {
-                 if (r.data[i].length) {
-                     ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))
-                 }
-             }
-         
-             return ret.join('<BR/>');
-             
-         },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     },
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'south',
-      tableName : 'pressrelease_notify',
-      title : _this._strings['f45381a54504218e39aca33492d29306'] /* Circulation */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.circpanel = this;
-             
-        }
-      },
-      grid : {
-       autoExpandColumn : 'event_id_remarks',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.circgrid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.circpanel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             var rec = this.ds.getAt(rowIndex);
-             var g= this;
-             Pman.Dialog.PressReleaseContact.show({ id : rec.data.person_id }, function()
-             {
-                 g.footer.onClick('first');
-             });
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['a58c1bdecbdb3600f836a9a3510250e6'] /* Displaying history 0} - {1} of {2} */,
-        emptyMsg : _this._strings['f8b970440931adb9af295d634b56110d'] /* No Items found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'sent', direction: 'DESC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-            o.params = o.params || {};
-            o.params.ontable = 'pressrelease_entry';
-            //
-            
-            //o.params.onid = _this.form.findField('id').getValue();
-            o.params.vtype = "FAILED";
-            if (!_this.grid || !_this.grid.getSelectionModel) {
-            // not loaded yet.
-              return false;
-              }
-            var s = _this.grid.getSelectionModel().getSelected();
-            if (!s) {
-               _this.circgrid.ds.removeAll();
-              return false;
-            }
-            o.params.fail_reviewed = 0;
-            
-            o.params.person_id = s.data.id;
-          
-          },
-         load : function (_self, records, options)
-          {
-              Roo.log(records);
-              if (!records.length) {
-                  _this.grid.footer.onClick('refresh');
-              }
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_notify.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'act_when',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'onid',
-                 'type': 'int'
-             },
-             {
-                 'name': 'ontable',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'msgid',
-                 'type': 'string'
-             },
-             {
-                 'name': 'sent',
-                 'type': 'date',
-                 'dateFormat': 'Y-m-d'
-             },
-             {
-                 'name': 'bounced',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_category_type_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email_personal',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_category_media_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_submission_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_mobile',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_direct',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_firstname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_lastname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_firstname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_lastname_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_publication_name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_category_scope_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_contact_language',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_contact_language_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_country',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_method',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_from',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_to',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_best_contact_days',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       sm : {
-        singleSelect : true,
-        xns : Roo.grid,
-        '|xns' : 'Roo.grid',
-        xtype : 'RowSelectionModel'
-       },
-       colModel : [
-        {
-         dataIndex : 'id',
-         header : _this._strings['9c9745a343efeacc9efe9b7222b27afb'] /* Ref# */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'act_when',
-         header : _this._strings['122a26ef126e03089bb959c949d12b0a'] /* Due out (Local time) */,
-         renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i') : ''); },
-         width : 120,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'sent',
-         header : _this._strings['7f8c0283f16925caed8e632086b81b9c'] /* Sent */,
-         renderer : function(v,x,r) { 
-            if (!r.data.event_id) {
-                 return 'not sent yet';
-            }
-            
-             return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); 
-         },
-         width : 120,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'to_email',
-         header : _this._strings['7800aee89e121611c7edfcf2ca662e09'] /* Failed Address */,
-         renderer : function(v,x,r) { 
-         
-             
-                 return String.format('<B>{0}</B>', v);
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'event_id_remarks',
-         header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
-         renderer : function(v) { 
-              
-             return String.format('<span qtip="{1}">{0}</span>', v,String.format('{0}', v)); 
-         },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseDistribution.bjs b/PressRelease/Pman.Tab.PressReleaseDistribution.bjs
deleted file mode 100644 (file)
index 9e57fd7..0000000
+++ /dev/null
@@ -1,801 +0,0 @@
-{
- "name" : "Pman.Tab.PressReleaseDistribution",
- "parent" : "Pman.Tab.ReleaseJournalistTab",
- "title" : "Pman.Tab.PressReleaseDistribution",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseDistribution.bjs",
- "permname" : "",
- "modOrder" : "800",
- "strings" : {
-  "6bd6beac1da76b2d2a9c3b7914ba034c" : "Publication",
-  "f77f8c0e4a05a384a886554d76cbd6b1" : "Import XLS",
-  "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
-  "326185f4d4dfc0ef9df05d4de4ad5b5e" : "Displaying pressrelease_contact{0} - {1} of {2}",
-  "754e1e134bc554a0af39749edbb59b9f" : "Job Title",
-  "8cd0d0c99b062b3d22e8c7188ba33ab2" : "Show All",
-  "99f1888871e14cbf8bca1cd8db21e400" : "No pressrelease_contact found",
-  "b1b8216a01f7fec51609d6ab603a2678" : "Publication Scope",
-  "7dce122004969d56ae2e0245cb754d35" : "Edit",
-  "8e00ca0fe378bbb01e656c1e7b4c4cff" : "Select Job Type",
-  "9d9547134d119ba7ea10eb67db6da7c6" : "Job Type",
-  "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
-  "ed75712b0eb1913c28a3872731ffd48d" : "Duplicate",
-  "12e28060a861b508cec510804b77a5ef" : "Journalist Contacts",
-  "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
-  "080041a74a22e43b60dd8592afc6ee22" : "Select Media Type",
-  "1243daf593fa297e07ab03bf06d925af" : "Searching...",
-  "3c1df4260ce594cb5594696461087f2f" : "Select Country",
-  "6ab9375e8f8108c11f21ab43d913e79c" : "Tel.",
-  "20db0bfeecd8fe60533206a2b5e9891a" : "First name",
-  "0f3826dedd3d37a53eaa3aaffbc0dc65" : "Publ. Name",
-  "bea37067b23b94efbe261d48afe12c39" : "Media List Download",
-  "904062c33353866aa5234f35ed29e114" : "Download Results",
-  "2750dfebe7e01be17a0aaadf6b5effcc" : "Category Tree",
-  "2b2edc156a7f3e035b3d234fee57daf2" : "All Contacts",
-  "9475887273d313badb0bd602d137d055" : "Restore Saved Search",
-  "21dfb254ef22912f7e12236f245751fe" : "Manage Categories",
-  "cee41f552b98c04de1623e556fcf14f0" : "Select Publication Name",
-  "59716c97497eb9694541f7c3d37b1a4d" : "Country",
-  "5ca219b54399500b176823f866ee1383" : "Media Type",
-  "b4e1a66c9679eccc7fa6a5dd36f4bbb8" : "Reload Tree",
-  "1f96b7ecf6ec7e9ce1d960453af38752" : "News Beat(s)",
-  "a7f0ba4d77215ad8a7ca74781933c94f" : "Family Name",
-  "e55458ac9b2afe0910d1ed25115ec02c" : "Right Click on Item to add/edit ",
-  "fd8fd9dc60679287f17bb085a8f3752b" : "Show Bad Addresses",
-  "55842c6c0d769b6008f3d957b4d0b5cd" : "Save Search",
-  "37812357a4cd25b17d95104efe022401" : "Publ. Lang",
-  "3a2144c282d31ed1c7d57a7140fcf96d" : "Select Publication Language",
-  "5a6c05f48afd958dcb5989bd66ed4783" : "Add / Edit Contacts"
- },
- "items" : [
-  {
-   "background" : true,
-   "region" : "center",
-   "title" : "Journalist Contacts",
-   "xtype" : "NestedLayoutPanel",
-   "$ xns" : "Roo",
-   "items" : [
-    {
-     "xtype" : "BorderLayout",
-     "$ xns" : "Roo",
-     "* prop" : "layout",
-     "items" : [
-      {
-       "xtype" : "LayoutRegion",
-       "width" : 200,
-       "$ xns" : "Roo",
-       "split" : true,
-       "* prop" : "west"
-      },
-      {
-       "xtype" : "LayoutRegion",
-       "tabPosition" : "top",
-       "$ xns" : "Roo",
-       "* prop" : "center"
-      },
-      {
-       "listeners" : {
-        "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-       },
-       "fitToframe" : true,
-       "background" : true,
-       "region" : "center",
-       "title" : "Add / Edit Contacts",
-       "xtype" : "GridPanel",
-       "fitContainer" : true,
-       "$ xns" : "Roo",
-       "tableName" : "pressrelease_contact",
-       "items" : [
-        {
-         "listeners" : {
-          "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n}\n",
-          "|render" : "function() \n{\n    _this.grid = this; \n    _this.dialog = Pman.Dialog.PressReleaseContact;\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-         },
-         "autoExpandColumn" : "lastname",
-         "multiSort" : true,
-         "xtype" : "Grid",
-         "loadMask" : true,
-         "$ xns" : "Roo.grid",
-         "* prop" : "grid",
-         "items" : [
-          {
-           "listeners" : {
-            "beforeload" : "function (_self, options)\n{\n    this.buildQuery(options);\n     \n    options.params['query[with_failed_flag]'] = 1;\n         \n}"
-           },
-           "multiSort" : true,
-           "remoteSort" : true,
-           "xtype" : "Store",
-           "$ buildQuery" : "function(options) {\n    options.params =     options.params || {};\n    options.params['query[search_name]'] = _this.searchBox.getValue();\n    \n    \n    var ar = [ 'publication_name', 'publication_lang'  ];\n    var val = '';\n    Roo.each(ar, function(a) {\n        if (typeof( _this[a + '_combo']) == 'undefined') {\n            Roo.log('missing ' + a );\n            return;\n        }\n        val = _this[a + '_combo'].getValue();\n        if ((new String(val)).length > 0) {\n            options.params[a] = val;\n            return;\n        }\n        if (_this[a + '_combo'].el.dom.value == '??') {\n            options.params['search[' + a +']'] = '??';\n        }\n     });\n     options.params['search[role]'] =  _this.role_combo.getValue();  \n     options.params['search[category_media_id]'] =  _this.category_media_id_combo.getValue();  \n     options.params['search[country_ar]'] =  _this.country_ar_combo.getValue();  \n\n     if (_this.show_bad_addr) {\n         options.params['query[bad_only]'] = 1;\n     }\n         \n    \n\n    \n    // has something been selected in the tree..\n    // build members..\n\n\n    try {\n        var mem = {};\n        Roo.each(_this.treepanel.tree.getChecked(), function(n) {\n            var pn = n.parentNode.attributes.id;\n            mem[pn] = mem[pn] || [];\n            mem[pn].push(n.attributes.id);\n        \n        });\n        for (var m in mem) {\n            options.params['query[members]['+ m +']'] = mem[m].join(',');\n        }\n        \n    } catch (e) {\n        Roo.log('error building beat categories..');\n        Roo.log(e);\n    }\n    \n    options.params['query[_with_beats]'] = 1;\n     \n}\n",
-           "$ sortInfo" : "{ field : 'lastname', direction: 'ASC' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "dataSource",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'category_type_id',\n        'type': 'int'\n    },\n    {\n        'name': 'honor',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'name_alt',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'email_personal',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'address',\n        'type': 'string'\n    },\n    {\n        'name': 'category_media_id',\n        'type': 'int'\n    },\n    {\n        'name': 'submission_time',\n        'type': 'string'\n    },\n    {\n        'name': 'media_language',\n        'type': 'string'\n    },\n    {\n        'name': 'url',\n        'type': 'string'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    }\n]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          },
-          {
-           "pageSize" : 25,
-           "xtype" : "PagingToolbar",
-           "emptyMsg" : "No pressrelease_contact found",
-           "$ xns" : "Roo",
-           "displayInfo" : true,
-           "displayMsg" : "Displaying pressrelease_contact{0} - {1} of {2}",
-           "* prop" : "footer",
-           "items" : [
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n        Pman.Dialog.PressReleaseSearch.show({}, function(data) {\n            \n        // code from beforeload\n            var o = Roo.decode(data);\n           // Roo.log(data);\n\n            _this.searchBox.setValue(typeof(o['query[search_name]']) =='undefined'  ? '' : o['query[search_name]']);\n            \n            \n            \n            var ar = [ 'publication_name', 'publication_lang' , 'country', 'category_media_id', 'role' ];\n            var val = '';\n            Roo.each(ar, function(a) {\n                if (typeof( _this[a + '_combo']) == 'undefined') {\n                    Roo.log('missing ' + a );\n                    return;\n                }\n                var el = _this[a + '_combo'];\n                // needs more thought...\n                if (typeof(o[a]) == 'undefined') {\n                    el.setValue('');\n                }\n                if (['publication_lang' , 'country', 'category_media_id'].indexOf(a) < 0) {\n                    el.setValue(o[a]);\n                    return;\n                }\n                var d = {};\n                d[a] = o[a];\n                d[a+'_name'] = o[a+'_name'];\n                \n                el.setFromData( d);                // do clever crap...\n\n             });\n            // reset tree???\n            \n            var cid = typeof(o['query[category_id]']) == 'undefined' ? 0 : o['query[category_id]']*1;\n            _this.treepanel.tree.getSelectionModel().clearSelections();\n            if (!cid) {\n                _this.grid.footer.onClick('first');\n                return;\n            }\n            \n            // at this point we have to expand the tree to find the element we need..\n            var ar = o.category_id_parents;\n            ar.push(cid*1);\n            var t =  _this.treepanel.tree;\n            \n            function nodeHasChild(n, id) {\n                var match = false;\n                n.eachChild(function(cn) {\n                   // Roo.log(\"Checking: \" + cn.attributes.id + \" for \" + id);\n                    if ((cn.attributes.id*1) == (id*1)) {\n                        match = cn;\n                        return false;\n                    }\n                });\n              //  Roo.log(\"nodeHasChild \" + id  + \"=\" + (match ? 'Y' : 'N'));\n                return match;\n            }\n            //Roo.log(ar);\n            var runv = 0;\n            function expand_or_select()\n            {\n                \n                runv++;\n                if (runv > 10) {\n                   // Roo.log('oops');\n                    return;\n                }\n                var n = t.root;\n                var expand = false;\n                \n                Roo.each(ar, function(id) {\n                    var cn = nodeHasChild(n,id);\n                    id = id *1;\n                    if (!cn) {\n                        expand = n;\n                        return false;\n                    }\n                    if (id == cid) {\n                        n = cn;\n                        return false;\n                    }\n                    if (!n.isExpanded()) {\n                        expand = n;\n                        return false;\n                    }\n\n                    n = cn;\n                });\n                \n                \n                if (expand) {\n                    //Roo.log('expand');\n                    expand.expand(false, true, function() {\n                        expand_or_select();\n                    });\n                    return;\n                }\n                // n should now contain 'node that we want...'\n                \n                t.getSelectionModel().select(n);\n            \n               _this.grid.footer.onClick('first');  \n            }\n            \n            expand_or_select();\n            // = _this.treepanel.tree.getSelectionModel().\n            // has something been selected in the tree..\n\n        \n        });\n    }"
-             },
-             "text" : "Restore Saved Search",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n\n    options = {};\n    \n    \n        // code from beforeload\n    options.params =     options.params || {};\n    \n    options.params['query[search_name]'] = _this.searchBox.getValue();\n    \n    var ar = [ 'publication_name', 'publication_lang' , 'country', 'category_media_id', 'role' ];\n    var val = '';\n    Roo.each(ar, function(a) {\n        if (typeof( _this[a + '_combo']) == 'undefined') {\n            Roo.log('missing ' + a );\n            return;\n        }\n        val = _this[a + '_combo'].getValue();\n        if ((new String(val)).length > 0) {\n            options.params[a] = val;\n            return;\n        }\n        if (_this[a + '_combo'].el.dom.value == '??') {\n            options.params['search[' + a +']'] = '??';\n        }\n     });\n    \n    \n    // has something been selected in the tree..\n    var id = 0;\n    try {\n        id = _this.treepanel.tree.getSelectionModel().getSelectedNode().attributes.id;\n    } catch (e) {}\n    \n    if (!isNaN(id) && id) {\n        options.params['query[category_id]'] = id;\n    }\n    options.params['query[_with_beats]'] = 1;\n    \n    // END from beforeload..\n    \n    Roo.MessageBox.confirm(\"Save Search\", \"Do you want to save this search?\", function(r) {\n        if (r != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Pressrelease_search',\n            method : 'POST',\n            params : {\n                data : Roo.encode(options.params),\n                person_id : Pman.Login.authUser.id,\n            }\n        });\n        \n        \n    });\n    \n    \n    \n}"
-             },
-             "text" : "Save Search",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n        Pman.Dialog.Image.show({\n            _url : baseURL + '/PressRelease/Import/Journalist'\n        \n        }, function (d) {\n            //Roo.log(d);\n            \n            Pman.Dialog.PressReleaseJournalistImport.show({\n                data:d\n             });\n    \n        });\n}"
-             },
-             "text" : "Import XLS",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n          /* csvCols[0] csvCols[1]....    = .... column titles for CSV output\n         * \n         * csvTitles[0], csvTitles[1] ....  = columns to use for CSV output\n         *\n         * sort        = sort column (',' comma delimited)\n         * dir         = sort direction ?? in future comma delimited...\n         * limit       = limit number \n         */\n         if (!Pman.Login.inGroup('Administrators')) {\n            Roo.MesssageBox.alert(\"Sorry\", \"This is only available for adminstrators\");\n            return;\n            \n         }\n        var o = {};\n        _this.grid.ds.buildQuery(o);\n         \n         \n        var params = o.params;\n    \n        var ar = []\n        var i = 0;\n        Roo.each(_this.grid.cm.config, function (o,l) {\n          switch (o.dataIndex) {\n                case 'phone' : \n                    params['csvTitles[' + i +']'] = \"Phone\";\n                    params['csvCols[' + i +']'] = o.dataIndex;\n                    break;\n\n                case 'country' : \n                    params['csvTitles[' + i +']'] = \"Country\";\n                    params['csvCols[' + i +']'] = 'country_name';\n                    break;\n                    \n                default: \n                    params['csvCols[' + i +']'] = o.dataIndex;\n                    params['csvTitles[' + i +']'] = o.header;\n                    break;\n          }\n\n          \n          i++;\n          \n        });\n\n    \n\n        params['csvCols[' + i +']'] = 'phone_mobile';\n        params['csvTitles[' +i  +']'] = \"Mobile\";\n        i++;\n        \n        params['csvCols[' + i +']'] = 'phone_direct';\n        params['csvTitles[' +i  +']'] = \"Direct Line\";\n        i++;\n         \n        params.limit = 9999;\n        params['sort'] = _this.grid.ds.sortOrder[0];\n        params.dir = 'ASC';\n        \n        \n        new Pman.Download({\n            url : baseURL + '/Roo/pressrelease_contact.php',\n            method : 'GET',\n            params : params\n            \n        \n        });\n        Roo.MessageBox.alert(\"Downloading\", \"Your report is downloading\");\n}"
-             },
-             "text" : "Download Results",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "click" : "function (_self, e)\n{\n         Pman.Dialog.PressReleaseMediaList.show({});\n}"
-             },
-             "text" : "Media List Download",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "xtype" : "Toolbar",
-           "$ xns" : "Roo",
-           "* prop" : "toolbar",
-           "items" : [
-            {
-             "listeners" : {
-              "specialkey" : "function (_self, e)\n{\n\n    if (e.getCharCode() == 13) {\n        _this.grid.footer.onClick('first');\n    }\n}",
-              "render" : "function (_self)\n{\n  _this.searchBox = _self;\n}"
-             },
-             "xtype" : "TextField",
-             "$ xns" : "Roo.form",
-             "width" : 100
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
-             "$ xns" : "Roo.Toolbar",
-             "items" : [
-              {
-               "xtype" : "Menu",
-               "$ xns" : "Roo.menu",
-               "* prop" : "menu",
-               "items" : [
-                {
-                 "listeners" : {
-                  "activate" : "function (_self)\n{\n    _this.show_bad_addr = false;\n    _this.grid.footer.onClick('first');\n}"
-                 },
-                 "text" : "Show All",
-                 "xtype" : "Item",
-                 "$ xns" : "Roo.menu"
-                },
-                {
-                 "listeners" : {
-                  "activate" : "function (_self)\n{\n    _this.show_bad_addr = true;\n    _this.grid.footer.onClick('first');\n}"
-                 },
-                 "text" : "Show Bad Addresses",
-                 "xtype" : "Item",
-                 "$ xns" : "Roo.menu"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n    _this.searchBox.setValue('');\n    _this.publication_name_combo.setValue('');\n    _this.publication_lang_combo.setValue('');\n    \n    _this.country_ar_combo.reset();\n    \n    _this.category_media_id_combo.reset();\n    _this.role_combo.reset();      \n\n    // clear the tree..\n    \n     Roo.each(_this.treepanel.tree.getChecked(), function(n) {\n            n.ui.checkbox.checked = false;\n            n.attributes.checked = false;\n      });\n      \n    _this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n    _this.publication_name_combo = _self;\n}",
-              "beforeselect" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : false,
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 25,
-             "displayField" : "publication_name",
-             "emptyText" : "Publ. Name",
-             "minChars" : 2,
-             "valueField" : "publication_name",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : true,
-             "width" : 120,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Publication Name",
-             "queryParam" : "search[publication_name]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{publication_name}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'publication_name';\n    o.params['_columns'] = 'publication_name';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'publication_name' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n  _this.publication_lang_combo = _self;\n}",
-              "beforeselect" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 200,
-             "triggerAction" : "all",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 25,
-             "displayField" : "publication_lang_name",
-             "emptyText" : "Publ. Lang",
-             "minChars" : 2,
-             "valueField" : "publication_lang",
-             "xtype" : "ComboBox",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 120,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Publication Language",
-             "queryParam" : "search[publication_lang]",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{publication_lang_name}</b> </div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'publication_lang';\n    o.params['_columns'] = 'publication_lang,publication_lang_name';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'publication_lang_name' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n  _this.country_ar_combo = _self;\n}",
-              "change" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 300,
-             "triggerAction" : "all",
-             "forceSelection" : false,
-             "selectOnFocus" : true,
-             "pageSize" : 999,
-             "displayField" : "country_name",
-             "emptyText" : "Country",
-             "hiddenName" : "country",
-             "minChars" : 2,
-             "valueField" : "country",
-             "xtype" : "ComboCheck",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 120,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Country",
-             "queryParam" : "search[country_name]",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'country';\n    o.params['_with_country_name'] =1;\n    o.params['_columns'] = 'country_name,country';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'country_name'  }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n  _this.category_media_id_combo = _self;\n}",
-              "change" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 300,
-             "triggerAction" : "all",
-             "forceSelection" : false,
-             "selectOnFocus" : true,
-             "pageSize" : 999,
-             "displayField" : "category_media_id_name",
-             "emptyText" : "Media Type",
-             "hiddenName" : "category_media_id_name",
-             "minChars" : 2,
-             "valueField" : "category_media_id",
-             "xtype" : "ComboCheck",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 120,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Media Type",
-             "queryParam" : "search[category_media_id_name]",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'category_media_id';\n    o.params['_columns'] = 'category_media_id_name,category_media_id';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'category_media_id_name' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n  _this.role_combo = _self;\n}",
-              "change" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);\n}"
-             },
-             "alwaysQuery" : true,
-             "listWidth" : 300,
-             "triggerAction" : "all",
-             "forceSelection" : false,
-             "selectOnFocus" : true,
-             "pageSize" : 999,
-             "displayField" : "role",
-             "emptyText" : "Job Type",
-             "hiddenName" : "role",
-             "minChars" : 2,
-             "valueField" : "role",
-             "xtype" : "ComboCheck",
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 120,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Job Type",
-             "queryParam" : "search[role]",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['_distinct'] = 'role';\n    o.params['_columns'] = 'role';\n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'ASC', field: 'role' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/pressrelease_contact.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"honor\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "xtype" : "Fill",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
-             },
-             "text" : "Add",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    \n    var data = {};\n    Roo.apply(data,s[0].data);\n    data.id = 0;\n    data.firstname = '';\n    data.lastname = '';\n    data.firstname_alt = '';\n    data.lastname_alt = '';\n    data.email = '';\n    \n    _this.dialog.show(data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}"
-             },
-             "text" : "Duplicate",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n    \n}\n"
-             },
-             "text" : "Edit",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n     Pman.genericDelete(_this, 'pressrelease_contact'); \n}\n        "
-             },
-             "text" : "Delete",
-             "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "First name",
-           "width" : 100,
-           "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.firstname_alt.length) {\n    \n        return String.format('{0} ({1})', d.firstname, d.firstname_alt ); \n    }\n    return String.format('{0}', d.firstname); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "firstname"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Family Name",
-           "width" : 150,
-           "$ renderer" : "function(v,x,r) { \n    var d = r.data;\n    if (d.lastname_alt.length) {\n    \n        return String.format('{0} ({1})', d.lastname, d.lastname_alt ); \n    }\n    return String.format('{0}', d.lastname); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "lastname"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Job Title",
-           "width" : 100,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "role"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Publication",
-           "width" : 150,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "publication_name"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Publication Scope",
-           "width" : 100,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "category_scope_id_name"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "News Beat(s)",
-           "width" : 200,
-           "$ renderer" : "function(v) { return String.format('{0}',v).split(',').join('<BR/>'); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "beats"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Country",
-           "width" : 100,
-           "$ renderer" : "function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "country"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Email",
-           "width" : 200,
-           "$ renderer" : "function(v,x,r) {\n\n      \n    var f = (\n            r.data.email_fails > 0 ? '<span style=\"color:red\">{0}</span>' : '{0}'\n        ) + (\n        r.data.email2.length > 0 ? \n            (r.data.email2_fails > 0 ? '<br/><span style=\"color:red\">{1}</span>' : '<br/>{1}')    : ''\n        ) + (\n        r.data.email3.length > 0 ? \n            (r.data.email3_fails > 0 ? '<br/><span style=\"color:red\">{2}</span>' : '<br/>{2}')    : ''\n        );\n        \n        \n    \n    return String.format(f, v, r.data.email2, r.data.email3); \n    \n}\n ",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "email"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Tel.",
-           "width" : 200,
-           "$ renderer" : "function(v,x,r) { \n\n    var map =  {\n        phone : 'Phone',\n        phone_mobile : 'Mobile',\n        phone_direct: 'Direct Line'\n    }\n    var ret = [];\n    for (var i in map) {\n        if (r.data[i].length) {\n            ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))\n        }\n    }\n\n    return ret.join('<BR/>');\n    \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "phone"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "activate" : "function (_self)\n{\n    \n    _this.treepanel = _self;\n}"
-       },
-       "autoScroll" : true,
-       "region" : "west",
-       "fitToFrame" : true,
-       "title" : "Category Tree",
-       "xtype" : "TreePanel",
-       "$ xns" : "Roo",
-       "items" : [
-        {
-         "xtype" : "Toolbar",
-         "$ xns" : "Roo",
-         "* prop" : "toolbar",
-         "items" : [
-          {
-           "text" : "Manage Categories",
-           "xtype" : "Button",
-           "$ xns" : "Roo.Toolbar",
-           "items" : [
-            {
-             "xtype" : "Menu",
-             "$ xns" : "Roo.menu",
-             "* prop" : "menu",
-             "items" : [
-              {
-               "text" : "Right Click on Item to add/edit ",
-               "xtype" : "Item",
-               "$ icon" : "Roo.rootURL + 'images/default/tree/drop-add.gif'",
-               "$ xns" : "Roo.menu"
-              },
-              {
-               "xtype" : "Separator",
-               "$ xns" : "Roo.menu"
-              },
-              {
-               "listeners" : {
-                "click" : "function (_self, e)\n{\n   _this.treepanel.tree.root.reload();\n}"
-               },
-               "text" : "Reload Tree",
-               "xtype" : "Item",
-               "$ xns" : "Roo.menu"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "beforenodedrop" : "function (dropEvent)\n{\n    //Roo.log('beforenodedrop');\n    Roo.log(dropEvent);\n    // comming from grid..\n    if (dropEvent.data.grid) {\n        // comming from grid..\n         if (!dropEvent.data.selections.length) {\n             return false;\n         }\n        // prevents dropping onto top level\n         if (isNaN(parseInt(dropEvent.target.id))) {\n             return false;\n         }\n\n         if (dropEvent.point !='append') {\n            return false; \n         }\n         var ids = [];\n         Roo.each(dropEvent.data.selections, function(d) {\n            ids.push(d.data.id)\n         });\n         /*\n         Roo.Ajax.request({\n            method : 'POST',\n            params : {\n                _ids : ids.join(','),\n                category_id : dropEvent.target.id\n            },\n            url : baseURL + '/Roo/Product.php',\n            success : function(r, o) { \n                dropEvent.data.grid.footer.onClick('refresh');\n            },\n            failure : function () {\n                Roo.messageBox.alert('Error', 'Error updating categories');\n            }\n        });\n         */\n         \n         \n         return true;\n    }\n    \n \n    \n    \n    \n    \n    return true;\n}",
-          "contextmenu" : "function (node, e)\n{\n    \n    _this.treepanel.tree.selModel.select(node);\n    var menu = Roo.factory(_this.treepanel.menu);\n    _this.cxnode = node;\n    menu.showAt(e.getXY());\n}",
-          "checkchange" : "function (node, checked)\n{\n    \n    //Roo.log(this.getChecked('id'));\n    \n     (function() {\n       _this.grid.footer.onClick('first');\n    }).defer(200);\n    \n}",
-          "nodedragover" : "function (dragOverEvent)\n{\n     Roo.log('nodedragover');\n     Roo.log(dragOverEvent);     \n     \n     if (dragOverEvent.data.grid) {\n        // comming from grid..\n         if (!dragOverEvent.data.selections.length) {\n             return false;\n         }\n       \n         if (isNaN(parseInt(dragOverEvent.target.id))) {\n            return false;\n         }\n\n         if (dragOverEvent.point !='append') {\n            return false; \n         }\n         return true;\n    }\n    // only allow append..\n     if (dragOverEvent.point !='append') {\n         return false; \n     }\n     // drop onto top level.\n     if (dragOverEvent.target.attributes &&\n         isNaN(parseInt(dragOverEvent.target.attributes.id))) {\n         return false;\n      }\n      // dragging top level node....\n      if (dragOverEvent.dropNode && dragOverEvent.dropNode.attributes.parent_id * 1 < 1) {\n            return false;\n     }\n    \n}",
-          "nodedrop" : "function (dropEvent)\n{\n   // now handle node drop..\n    // if it fails, we just reload the tree..  a bit messy, but acceptable..\n    var _t = this;\n    \n    Roo.Ajax.request({\n        method : 'POST',\n        params : {\n            id : dropEvent.dropNode.id,\n            parent_id : dropEvent.target.id\n        },\n        url : baseURL + '/Roo/Pressrelease_category.php',\n        success : function(r, o) { \n            \n            // do nothing..\n        },\n        failure : function () {\n            Roo.messageBox.alert('Error', 'Error updating categories');\n            _this.root.reload()\n        }\n    });\n     \n}",
-          "click" : "function (node, e)\n{\n   if (node.ui.checkbox) {\n       node.ui.checkbox.checked = !node.ui.checkbox.checked;\n       node.ui.onCheckChange();\n   }\n   \n    // (function() {\n    //   _this.grid.footer.onClick('first');\n   // }).defer(200);\n}"
-         },
-         "enableDrop" : true,
-         "xtype" : "TreePanel",
-         "enableDrag" : false,
-         "ddGroup" : "contactsDD",
-         "$ xns" : "Roo.tree",
-         "* prop" : "tree",
-         "items" : [
-          {
-           "text" : "All Contacts",
-           "xtype" : "AsyncTreeNode",
-           "$ xns" : "Roo.tree",
-           "* prop" : "root"
-          },
-          {
-           "listeners" : {
-            "create" : "function (self, attr)\n{\n    //Roo.log(attr);\n    attr.text = (attr.hgroup ?  attr.hgroup +' : ' : '' ) + attr.name;\n\n    attr.allowChildren = attr.parent_id * 1 ? false : true;\n    \n    attr.leaf   = attr.parent_id * 1 ? true : false;\n    \n    \n    attr.checked = attr.leaf ? false : undefined;\n    \n    if (attr.name == 'Regional') {\n        attr.allowChildren = true;\n        attr.leaf = false;\n         attr.checked  = undefined;\n    }\n    \n}"
-           },
-           "$ baseParams" : "{ _tree: 1, limit: 9999, sort: 'hgroup,name', dir : 'ASC'  }",
-           "root" : "data",
-           "xtype" : "TreeLoader",
-           "requestMethod" : "GET",
-           "$ xns" : "Roo.tree",
-           "* prop" : "loader",
-           "queryParam" : "parent_id",
-           "$ dataUrl" : "baseURL + '/Roo/Pressrelease_category.php'"
-          },
-          {
-           "listeners" : {
-            "beforeselect" : "function (_self, node, node)\n{\n    Roo.log(\"before select\");\n      return false;\n}"
-           },
-           "xtype" : "DefaultSelectionModel",
-           "$ xns" : "Roo.tree",
-           "* prop" : "selModel"
-          }
-         ]
-        },
-        {
-         "xtype" : "Menu",
-         "$ xns" : "Roo.menu",
-         "* prop" : "menu",
-         "items" : [
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n\n    var sel = _this.cxnode;\n    var id =  (!sel || isNaN(parseInt(sel.id))) ? 0 : sel.id;\n    if (!id) {\n        Roo.MessageBox.alert(\"Error\", \"Select a category to add a item to\");\n        return;\n        var sel = _this.treepanel.tree.root;\n    }\n\n \n    Pman.Dialog.PressReleaseCategory.show(\n         { id : 0 , parent_id : id }, \n         function(r)\n        {\n           \n           //Roo.log(r);\n            if (r && r.name) {\n                if(sel.reload) {\n                    sel.reload();\n                    return;\n                }\n                // otherwise it's a treenode, and needs replacing...\n                var attr = sel.attributes;\n                attr.leaf = false;\n                var repnode = new Roo.tree.AsyncTreeNode(attr);\n                sel.parentNode.replaceChild(repnode, sel);\n                repnode.expand();\n           }\n    });\n}"
-           },
-           "text" : "Add",
-           "xtype" : "Item",
-           "$ icon" : "Roo.rootURL + 'images/default/tree/drop-add.gif'",
-           "$ xns" : "Roo.menu"
-          },
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n\n   \n    var sel = _this.cxnode;\n    if (!sel || isNaN(parseInt(sel.id))) {\n        Roo.MessageBox.alert(\"Error\", \"select a category to edit\");\n        return;\n    }\n  \n   Pman.Dialog.PressReleaseCategory.show( sel.attributes  , function(attr)\n    {\n       if (attr && attr.name) {\n             \n            sel.setText((attr.hgroup ? attr.hgroup + ' : ' : '' ) + attr.name);\n       }\n    });\n}"
-           },
-           "text" : "Edit",
-           "xtype" : "Item",
-           "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-           "$ xns" : "Roo.menu"
-          },
-          {
-           "xtype" : "Separator",
-           "$ xns" : "Roo.menu"
-          },
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n    var sel = _this.cxnode;\n    if (!sel || isNaN(parseInt(sel.id))) {\n        Roo.MessageBox.alert(\"Error\", \"you can not delete that category\");\n        return;\n    }\n    var par = sel.parentNode;\n    Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete that?\", function(b)\n    {\n       // console.log(b);\n        if (b!='yes') {\n            return;\n        }\n\n          new Pman.request({\n            method : 'POST',\n            params : {\n                _delete : sel.id\n            },\n            url : baseURL + '/Roo/Pressrelease_category.php',\n            success : function(r, o) { \n                par.removeChild(sel);\n                // do nothing..\n            } \n        });\n        \n    });\n         \n    \n}"
-           },
-           "text" : "Delete",
-           "xtype" : "Item",
-           "$ xns" : "Roo.menu"
-          },
-          {
-           "xtype" : "Separator",
-           "$ xns" : "Roo.menu"
-          },
-          {
-           "listeners" : {
-            "click" : "function (_self, e)\n{\n   _this.treepanel.tree.root.reload();\n}"
-           },
-           "text" : "Reload Tree",
-           "xtype" : "Item",
-           "$ xns" : "Roo.menu"
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseDistribution.js b/PressRelease/Pman.Tab.PressReleaseDistribution.js
deleted file mode 100644 (file)
index b73a8e0..0000000
+++ /dev/null
@@ -1,1646 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.PressReleaseDistribution = new Roo.XComponent({
-
- _strings : {
-  '6bd6beac1da76b2d2a9c3b7914ba034c' :"Publication",
-  'f77f8c0e4a05a384a886554d76cbd6b1' :"Import XLS",
-  'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
-  '326185f4d4dfc0ef9df05d4de4ad5b5e' :"Displaying pressrelease_contact{0} - {1} of {2}",
-  '754e1e134bc554a0af39749edbb59b9f' :"Job Title",
-  '8cd0d0c99b062b3d22e8c7188ba33ab2' :"Show All",
-  '99f1888871e14cbf8bca1cd8db21e400' :"No pressrelease_contact found",
-  'b1b8216a01f7fec51609d6ab603a2678' :"Publication Scope",
-  '7dce122004969d56ae2e0245cb754d35' :"Edit",
-  '8e00ca0fe378bbb01e656c1e7b4c4cff' :"Select Job Type",
-  '9d9547134d119ba7ea10eb67db6da7c6' :"Job Type",
-  'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
-  'ed75712b0eb1913c28a3872731ffd48d' :"Duplicate",
-  '12e28060a861b508cec510804b77a5ef' :"Journalist Contacts",
-  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
-  '080041a74a22e43b60dd8592afc6ee22' :"Select Media Type",
-  '1243daf593fa297e07ab03bf06d925af' :"Searching...",
-  '3c1df4260ce594cb5594696461087f2f' :"Select Country",
-  '6ab9375e8f8108c11f21ab43d913e79c' :"Tel.",
-  '20db0bfeecd8fe60533206a2b5e9891a' :"First name",
-  '0f3826dedd3d37a53eaa3aaffbc0dc65' :"Publ. Name",
-  'bea37067b23b94efbe261d48afe12c39' :"Media List Download",
-  '904062c33353866aa5234f35ed29e114' :"Download Results",
-  '2750dfebe7e01be17a0aaadf6b5effcc' :"Category Tree",
-  '2b2edc156a7f3e035b3d234fee57daf2' :"All Contacts",
-  '9475887273d313badb0bd602d137d055' :"Restore Saved Search",
-  '21dfb254ef22912f7e12236f245751fe' :"Manage Categories",
-  'cee41f552b98c04de1623e556fcf14f0' :"Select Publication Name",
-  '59716c97497eb9694541f7c3d37b1a4d' :"Country",
-  '5ca219b54399500b176823f866ee1383' :"Media Type",
-  'b4e1a66c9679eccc7fa6a5dd36f4bbb8' :"Reload Tree",
-  '1f96b7ecf6ec7e9ce1d960453af38752' :"News Beat(s)",
-  'a7f0ba4d77215ad8a7ca74781933c94f' :"Family Name",
-  'e55458ac9b2afe0910d1ed25115ec02c' :"Right Click on Item to add/edit ",
-  'fd8fd9dc60679287f17bb085a8f3752b' :"Show Bad Addresses",
-  '55842c6c0d769b6008f3d957b4d0b5cd' :"Save Search",
-  '37812357a4cd25b17d95104efe022401' :"Publ. Lang",
-  '3a2144c282d31ed1c7d57a7140fcf96d' :"Select Publication Language",
-  '5a6c05f48afd958dcb5989bd66ed4783' :"Add / Edit Contacts"
- },
-
-  part     :  ["PressRelease", "Distribution" ],
-  order    : '800-Pman.Tab.PressReleaseDistribution',
-  region   : 'center',
-  parent   : 'Pman.Tab.ReleaseJournalistTab',
-  name     : "Pman.Tab.PressReleaseDistribution",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   region : 'center',
-   title : _this._strings['12e28060a861b508cec510804b77a5ef'] /* Journalist Contacts */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'NestedLayoutPanel',
-   layout : {
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'BorderLayout',
-    center : {
-     tabPosition : 'top',
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    west : {
-     split : true,
-     width : 200,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    items  : [
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'pressrelease_contact',
-      title : _this._strings['5a6c05f48afd958dcb5989bd66ed4783'] /* Add / Edit Contacts */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.panel = this;
-            if (_this.grid) {
-                _this.grid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'lastname',
-       loadMask : true,
-       multiSort : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.grid = this; 
-             _this.dialog = Pman.Dialog.PressReleaseContact;
-             if (_this.panel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             if (!_this.dialog) return;
-             _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                 _this.grid.footer.onClick('refresh');
-             }); 
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['326185f4d4dfc0ef9df05d4de4ad5b5e'] /* Displaying pressrelease_contact{0} - {1} of {2} */,
-        emptyMsg : _this._strings['99f1888871e14cbf8bca1cd8db21e400'] /* No pressrelease_contact found */,
-        pageSize : 25,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar',
-        items  : [
-         {
-          text : _this._strings['9475887273d313badb0bd602d137d055'] /* Restore Saved Search */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                    Pman.Dialog.PressReleaseSearch.show({}, function(data) {
-                        
-                    // code from beforeload
-                        var o = Roo.decode(data);
-                       // Roo.log(data);
-            
-                        _this.searchBox.setValue(typeof(o['query[search_name]']) =='undefined'  ? '' : o['query[search_name]']);
-                        
-                        
-                        
-                        var ar = [ 'publication_name', 'publication_lang' , 'country', 'category_media_id', 'role' ];
-                        var val = '';
-                        Roo.each(ar, function(a) {
-                            if (typeof( _this[a + '_combo']) == 'undefined') {
-                                Roo.log('missing ' + a );
-                                return;
-                            }
-                            var el = _this[a + '_combo'];
-                            // needs more thought...
-                            if (typeof(o[a]) == 'undefined') {
-                                el.setValue('');
-                            }
-                            if (['publication_lang' , 'country', 'category_media_id'].indexOf(a) < 0) {
-                                el.setValue(o[a]);
-                                return;
-                            }
-                            var d = {};
-                            d[a] = o[a];
-                            d[a+'_name'] = o[a+'_name'];
-                            
-                            el.setFromData( d);                // do clever crap...
-            
-                         });
-                        // reset tree???
-                        
-                        var cid = typeof(o['query[category_id]']) == 'undefined' ? 0 : o['query[category_id]']*1;
-                        _this.treepanel.tree.getSelectionModel().clearSelections();
-                        if (!cid) {
-                            _this.grid.footer.onClick('first');
-                            return;
-                        }
-                        
-                        // at this point we have to expand the tree to find the element we need..
-                        var ar = o.category_id_parents;
-                        ar.push(cid*1);
-                        var t =  _this.treepanel.tree;
-                        
-                        function nodeHasChild(n, id) {
-                            var match = false;
-                            n.eachChild(function(cn) {
-                               // Roo.log("Checking: " + cn.attributes.id + " for " + id);
-                                if ((cn.attributes.id*1) == (id*1)) {
-                                    match = cn;
-                                    return false;
-                                }
-                            });
-                          //  Roo.log("nodeHasChild " + id  + "=" + (match ? 'Y' : 'N'));
-                            return match;
-                        }
-                        //Roo.log(ar);
-                        var runv = 0;
-                        function expand_or_select()
-                        {
-                            
-                            runv++;
-                            if (runv > 10) {
-                               // Roo.log('oops');
-                                return;
-                            }
-                            var n = t.root;
-                            var expand = false;
-                            
-                            Roo.each(ar, function(id) {
-                                var cn = nodeHasChild(n,id);
-                                id = id *1;
-                                if (!cn) {
-                                    expand = n;
-                                    return false;
-                                }
-                                if (id == cid) {
-                                    n = cn;
-                                    return false;
-                                }
-                                if (!n.isExpanded()) {
-                                    expand = n;
-                                    return false;
-                                }
-            
-                                n = cn;
-                            });
-                            
-                            
-                            if (expand) {
-                                //Roo.log('expand');
-                                expand.expand(false, true, function() {
-                                    expand_or_select();
-                                });
-                                return;
-                            }
-                            // n should now contain 'node that we want...'
-                            
-                            t.getSelectionModel().select(n);
-                        
-                           _this.grid.footer.onClick('first');  
-                        }
-                        
-                        expand_or_select();
-                        // = _this.treepanel.tree.getSelectionModel().
-                        // has something been selected in the tree..
-            
-                    
-                    });
-                }
-          }
-         },
-         {
-          text : _this._strings['55842c6c0d769b6008f3d957b4d0b5cd'] /* Save Search */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            
-                options = {};
-                
-                
-                    // code from beforeload
-                options.params =     options.params || {};
-                
-                options.params['query[search_name]'] = _this.searchBox.getValue();
-                
-                var ar = [ 'publication_name', 'publication_lang' , 'country', 'category_media_id', 'role' ];
-                var val = '';
-                Roo.each(ar, function(a) {
-                    if (typeof( _this[a + '_combo']) == 'undefined') {
-                        Roo.log('missing ' + a );
-                        return;
-                    }
-                    val = _this[a + '_combo'].getValue();
-                    if ((new String(val)).length > 0) {
-                        options.params[a] = val;
-                        return;
-                    }
-                    if (_this[a + '_combo'].el.dom.value == '??') {
-                        options.params['search[' + a +']'] = '??';
-                    }
-                 });
-                
-                
-                // has something been selected in the tree..
-                var id = 0;
-                try {
-                    id = _this.treepanel.tree.getSelectionModel().getSelectedNode().attributes.id;
-                } catch (e) {}
-                
-                if (!isNaN(id) && id) {
-                    options.params['query[category_id]'] = id;
-                }
-                options.params['query[_with_beats]'] = 1;
-                
-                // END from beforeload..
-                
-                Roo.MessageBox.confirm("Save Search", "Do you want to save this search?", function(r) {
-                    if (r != 'yes') {
-                        return;
-                    }
-                    
-                    new Pman.Request({
-                        url : baseURL + '/Roo/Pressrelease_search',
-                        method : 'POST',
-                        params : {
-                            data : Roo.encode(options.params),
-                            person_id : Pman.Login.authUser.id,
-                        }
-                    });
-                    
-                    
-                });
-                
-                
-                
-            }
-          }
-         },
-         {
-          text : _this._strings['f77f8c0e4a05a384a886554d76cbd6b1'] /* Import XLS */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                    Pman.Dialog.Image.show({
-                        _url : baseURL + '/PressRelease/Import/Journalist'
-                    
-                    }, function (d) {
-                        //Roo.log(d);
-                        
-                        Pman.Dialog.PressReleaseJournalistImport.show({
-                            data:d
-                         });
-                
-                    });
-            }
-          }
-         },
-         {
-          text : _this._strings['904062c33353866aa5234f35ed29e114'] /* Download Results */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                      /* csvCols[0] csvCols[1]....    = .... column titles for CSV output
-                     * 
-                     * csvTitles[0], csvTitles[1] ....  = columns to use for CSV output
-                     *
-                     * sort        = sort column (',' comma delimited)
-                     * dir         = sort direction ?? in future comma delimited...
-                     * limit       = limit number 
-                     */
-                     if (!Pman.Login.inGroup('Administrators')) {
-                        Roo.MesssageBox.alert("Sorry", "This is only available for adminstrators");
-                        return;
-                        
-                     }
-                    var o = {};
-                    _this.grid.ds.buildQuery(o);
-                     
-                     
-                    var params = o.params;
-                
-                    var ar = []
-                    var i = 0;
-                    Roo.each(_this.grid.cm.config, function (o,l) {
-                      switch (o.dataIndex) {
-                            case 'phone' : 
-                                params['csvTitles[' + i +']'] = "Phone";
-                                params['csvCols[' + i +']'] = o.dataIndex;
-                                break;
-            
-                            case 'country' : 
-                                params['csvTitles[' + i +']'] = "Country";
-                                params['csvCols[' + i +']'] = 'country_name';
-                                break;
-                                
-                            default: 
-                                params['csvCols[' + i +']'] = o.dataIndex;
-                                params['csvTitles[' + i +']'] = o.header;
-                                break;
-                      }
-            
-                      
-                      i++;
-                      
-                    });
-            
-                
-            
-                    params['csvCols[' + i +']'] = 'phone_mobile';
-                    params['csvTitles[' +i  +']'] = "Mobile";
-                    i++;
-                    
-                    params['csvCols[' + i +']'] = 'phone_direct';
-                    params['csvTitles[' +i  +']'] = "Direct Line";
-                    i++;
-                     
-                    params.limit = 9999;
-                    params['sort'] = _this.grid.ds.sortOrder[0];
-                    params.dir = 'ASC';
-                    
-                    
-                    new Pman.Download({
-                        url : baseURL + '/Roo/pressrelease_contact.php',
-                        method : 'GET',
-                        params : params
-                        
-                    
-                    });
-                    Roo.MessageBox.alert("Downloading", "Your report is downloading");
-            }
-          }
-         },
-         {
-          text : _this._strings['bea37067b23b94efbe261d48afe12c39'] /* Media List Download */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                     Pman.Dialog.PressReleaseMediaList.show({});
-            }
-          }
-         }
-        ]
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          width : 100,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           render : function (_self)
-            {
-              _this.searchBox = _self;
-            },
-           specialkey : function (_self, e)
-            {
-            
-                if (e.getCharCode() == 13) {
-                    _this.grid.footer.onClick('first');
-                }
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/search.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.grid.footer.onClick('first');
-            }
-          },
-          menu : {
-           xns : Roo.menu,
-           '|xns' : 'Roo.menu',
-           xtype : 'Menu',
-           items  : [
-            {
-             text : _this._strings['8cd0d0c99b062b3d22e8c7188ba33ab2'] /* Show All */,
-             xns : Roo.menu,
-             '|xns' : 'Roo.menu',
-             xtype : 'Item',
-             listeners : {
-              activate : function (_self)
-               {
-                   _this.show_bad_addr = false;
-                   _this.grid.footer.onClick('first');
-               }
-             }
-            },
-            {
-             text : _this._strings['fd8fd9dc60679287f17bb085a8f3752b'] /* Show Bad Addresses */,
-             xns : Roo.menu,
-             '|xns' : 'Roo.menu',
-             xtype : 'Item',
-             listeners : {
-              activate : function (_self)
-               {
-                   _this.show_bad_addr = true;
-                   _this.grid.footer.onClick('first');
-               }
-             }
-            }
-           ]
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-                _this.searchBox.setValue('');
-                _this.publication_name_combo.setValue('');
-                _this.publication_lang_combo.setValue('');
-                
-                _this.country_ar_combo.reset();
-                
-                _this.category_media_id_combo.reset();
-                _this.role_combo.reset();      
-            
-                // clear the tree..
-                
-                 Roo.each(_this.treepanel.tree.getChecked(), function(n) {
-                        n.ui.checkbox.checked = false;
-                        n.attributes.checked = false;
-                  });
-                  
-                _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          alwaysQuery : false,
-          displayField : 'publication_name',
-          editable : true,
-          emptyText : _this._strings['0f3826dedd3d37a53eaa3aaffbc0dc65'] /* Publ. Name */,
-          forceSelection : true,
-          listWidth : 200,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 25,
-          qtip : _this._strings['cee41f552b98c04de1623e556fcf14f0'] /* Select Publication Name */,
-          queryParam : 'search[publication_name]',
-          selectOnFocus : true,
-          tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{publication_name}</b> </div>',
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'publication_name',
-          width : 120,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboBox',
-          listeners : {
-           beforeselect : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-                _this.publication_name_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'publication_name' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'publication_name';
-                 o.params['_columns'] = 'publication_name';
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          alwaysQuery : true,
-          displayField : 'publication_lang_name',
-          editable : false,
-          emptyText : _this._strings['37812357a4cd25b17d95104efe022401'] /* Publ. Lang */,
-          forceSelection : true,
-          listWidth : 200,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 25,
-          qtip : _this._strings['3a2144c282d31ed1c7d57a7140fcf96d'] /* Select Publication Language */,
-          queryParam : 'search[publication_lang]',
-          selectOnFocus : true,
-          tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{publication_lang_name}</b> </div>',
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'publication_lang',
-          width : 120,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboBox',
-          listeners : {
-           beforeselect : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-              _this.publication_lang_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'publication_lang_name' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'publication_lang';
-                 o.params['_columns'] = 'publication_lang,publication_lang_name';
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          alwaysQuery : true,
-          displayField : 'country_name',
-          editable : false,
-          emptyText : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-          forceSelection : false,
-          hiddenName : 'country',
-          listWidth : 300,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 999,
-          qtip : _this._strings['3c1df4260ce594cb5594696461087f2f'] /* Select Country */,
-          queryParam : 'search[country_name]',
-          selectOnFocus : true,
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'country',
-          width : 120,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboCheck',
-          listeners : {
-           change : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-              _this.country_ar_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'country_name'  },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'country';
-                 o.params['_with_country_name'] =1;
-                 o.params['_columns'] = 'country_name,country';
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          alwaysQuery : true,
-          displayField : 'category_media_id_name',
-          editable : false,
-          emptyText : _this._strings['5ca219b54399500b176823f866ee1383'] /* Media Type */,
-          forceSelection : false,
-          hiddenName : 'category_media_id_name',
-          listWidth : 300,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 999,
-          qtip : _this._strings['080041a74a22e43b60dd8592afc6ee22'] /* Select Media Type */,
-          queryParam : 'search[category_media_id_name]',
-          selectOnFocus : true,
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'category_media_id',
-          width : 120,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboCheck',
-          listeners : {
-           change : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-              _this.category_media_id_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'category_media_id_name' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'category_media_id';
-                 o.params['_columns'] = 'category_media_id_name,category_media_id';
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          alwaysQuery : true,
-          displayField : 'role',
-          editable : false,
-          emptyText : _this._strings['9d9547134d119ba7ea10eb67db6da7c6'] /* Job Type */,
-          forceSelection : false,
-          hiddenName : 'role',
-          listWidth : 300,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 999,
-          qtip : _this._strings['8e00ca0fe378bbb01e656c1e7b4c4cff'] /* Select Job Type */,
-          queryParam : 'search[role]',
-          selectOnFocus : true,
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'role',
-          width : 120,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboCheck',
-          listeners : {
-           change : function (combo, record, index)
-            {
-              _this.grid.footer.onClick.defer(100, _this.grid.footer,[ 'first' ]);
-            },
-           render : function (_self)
-            {
-              _this.role_combo = _self;
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'role' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['_distinct'] = 'role';
-                 o.params['_columns'] = 'role';
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/pressrelease_contact.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"honor","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-          text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                if (!_this.dialog) return;
-                _this.dialog.show( { id : 0 } , function() {
-                    _this.grid.footer.onClick('first');
-               }); 
-            }
-          }
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-          text : _this._strings['ed75712b0eb1913c28a3872731ffd48d'] /* Duplicate */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var s = _this.grid.getSelectionModel().getSelections();
-                if (!s.length || (s.length > 1))  {
-                    Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                    return;
-                }
-                if (!_this.dialog) return;
-                
-                var data = {};
-                Roo.apply(data,s[0].data);
-                data.id = 0;
-                data.firstname = '';
-                data.lastname = '';
-                data.firstname_alt = '';
-                data.lastname_alt = '';
-                data.email = '';
-                
-                _this.dialog.show(data, function() {
-                    _this.grid.footer.onClick('refresh');
-                }); 
-                
-            }
-          }
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-          text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var s = _this.grid.getSelectionModel().getSelections();
-                if (!s.length || (s.length > 1))  {
-                    Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                    return;
-                }
-                if (!_this.dialog) return;
-                _this.dialog.show(s[0].data, function() {
-                    _this.grid.footer.onClick('refresh');
-                }); 
-                
-            }
-          }
-         },
-         {
-          cls : 'x-btn-text-icon',
-          icon : rootURL + '/Pman/templates/images/trash.gif',
-          text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                 Pman.genericDelete(_this, 'pressrelease_contact'); 
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        buildQuery : function(options) {
-            options.params =     options.params || {};
-            options.params['query[search_name]'] = _this.searchBox.getValue();
-            
-            
-            var ar = [ 'publication_name', 'publication_lang'  ];
-            var val = '';
-            Roo.each(ar, function(a) {
-                if (typeof( _this[a + '_combo']) == 'undefined') {
-                    Roo.log('missing ' + a );
-                    return;
-                }
-                val = _this[a + '_combo'].getValue();
-                if ((new String(val)).length > 0) {
-                    options.params[a] = val;
-                    return;
-                }
-                if (_this[a + '_combo'].el.dom.value == '??') {
-                    options.params['search[' + a +']'] = '??';
-                }
-             });
-             options.params['search[role]'] =  _this.role_combo.getValue();  
-             options.params['search[category_media_id]'] =  _this.category_media_id_combo.getValue();  
-             options.params['search[country_ar]'] =  _this.country_ar_combo.getValue();  
-        
-             if (_this.show_bad_addr) {
-                 options.params['query[bad_only]'] = 1;
-             }
-                 
-            
-        
-            
-            // has something been selected in the tree..
-            // build members..
-        
-        
-            try {
-                var mem = {};
-                Roo.each(_this.treepanel.tree.getChecked(), function(n) {
-                    var pn = n.parentNode.attributes.id;
-                    mem[pn] = mem[pn] || [];
-                    mem[pn].push(n.attributes.id);
-                
-                });
-                for (var m in mem) {
-                    options.params['query[members]['+ m +']'] = mem[m].join(',');
-                }
-                
-            } catch (e) {
-                Roo.log('error building beat categories..');
-                Roo.log(e);
-            }
-            
-            options.params['query[_with_beats]'] = 1;
-             
-        },
-        multiSort : true,
-        remoteSort : true,
-        sortInfo : { field : 'lastname', direction: 'ASC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, options)
-          {
-              this.buildQuery(options);
-               
-              options.params['query[with_failed_flag]'] = 1;
-                   
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/pressrelease_contact.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'category_type_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'name_alt',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email_personal',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'category_media_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'submission_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'media_language',
-                 'type': 'string'
-             },
-             {
-                 'name': 'url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'firstname',
-         header : _this._strings['20db0bfeecd8fe60533206a2b5e9891a'] /* First name */,
-         renderer : function(v,x,r) { 
-             var d = r.data;
-             if (d.firstname_alt.length) {
-             
-                 return String.format('{0} ({1})', d.firstname, d.firstname_alt ); 
-             }
-             return String.format('{0}', d.firstname); 
-         },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'lastname',
-         header : _this._strings['a7f0ba4d77215ad8a7ca74781933c94f'] /* Family Name */,
-         renderer : function(v,x,r) { 
-             var d = r.data;
-             if (d.lastname_alt.length) {
-             
-                 return String.format('{0} ({1})', d.lastname, d.lastname_alt ); 
-             }
-             return String.format('{0}', d.lastname); 
-         },
-         sortable : true,
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'role',
-         header : _this._strings['754e1e134bc554a0af39749edbb59b9f'] /* Job Title */,
-         renderer : function(v) { return String.format('{0}', v); },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'publication_name',
-         header : _this._strings['6bd6beac1da76b2d2a9c3b7914ba034c'] /* Publication */,
-         renderer : function(v) { return String.format('{0}', v); },
-         sortable : true,
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'category_scope_id_name',
-         header : _this._strings['b1b8216a01f7fec51609d6ab603a2678'] /* Publication Scope */,
-         renderer : function(v) { return String.format('{0}', v); },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'beats',
-         header : _this._strings['1f96b7ecf6ec7e9ce1d960453af38752'] /* News Beat(s) */,
-         renderer : function(v) { return String.format('{0}',v).split(',').join('<BR/>'); },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'country',
-         header : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-         renderer : function(v) { return String.format('{0}', v ? Pman.I18n.toName('c', v) : ''); },
-         sortable : true,
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'email',
-         header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
-         renderer : function(v,x,r) {
-         
-               
-             var f = (
-                     r.data.email_fails > 0 ? '<span style="color:red">{0}</span>' : '{0}'
-                 ) + (
-                 r.data.email2.length > 0 ? 
-                     (r.data.email2_fails > 0 ? '<br/><span style="color:red">{1}</span>' : '<br/>{1}')    : ''
-                 ) + (
-                 r.data.email3.length > 0 ? 
-                     (r.data.email3_fails > 0 ? '<br/><span style="color:red">{2}</span>' : '<br/>{2}')    : ''
-                 );
-                 
-                 
-             
-             return String.format(f, v, r.data.email2, r.data.email3); 
-             
-         },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'phone',
-         header : _this._strings['6ab9375e8f8108c11f21ab43d913e79c'] /* Tel. */,
-         renderer : function(v,x,r) { 
-         
-             var map =  {
-                 phone : 'Phone',
-                 phone_mobile : 'Mobile',
-                 phone_direct: 'Direct Line'
-             }
-             var ret = [];
-             for (var i in map) {
-                 if (r.data[i].length) {
-                     ret.push( map[i]+': ' +  String.format('{0}' , r.data[i]))
-                 }
-             }
-         
-             return ret.join('<BR/>');
-             
-         },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     },
-     {
-      autoScroll : true,
-      fitToFrame : true,
-      region : 'west',
-      title : _this._strings['2750dfebe7e01be17a0aaadf6b5effcc'] /* Category Tree */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'TreePanel',
-      listeners : {
-       activate : function (_self)
-        {
-            
-            _this.treepanel = _self;
-        }
-      },
-      menu : {
-       xns : Roo.menu,
-       '|xns' : 'Roo.menu',
-       xtype : 'Menu',
-       items  : [
-        {
-         icon : Roo.rootURL + 'images/default/tree/drop-add.gif',
-         text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Item',
-         listeners : {
-          click : function (_self, e)
-           {
-           
-               var sel = _this.cxnode;
-               var id =  (!sel || isNaN(parseInt(sel.id))) ? 0 : sel.id;
-               if (!id) {
-                   Roo.MessageBox.alert("Error", "Select a category to add a item to");
-                   return;
-                   var sel = _this.treepanel.tree.root;
-               }
-           
-            
-               Pman.Dialog.PressReleaseCategory.show(
-                    { id : 0 , parent_id : id }, 
-                    function(r)
-                   {
-                      
-                      //Roo.log(r);
-                       if (r && r.name) {
-                           if(sel.reload) {
-                               sel.reload();
-                               return;
-                           }
-                           // otherwise it's a treenode, and needs replacing...
-                           var attr = sel.attributes;
-                           attr.leaf = false;
-                           var repnode = new Roo.tree.AsyncTreeNode(attr);
-                           sel.parentNode.replaceChild(repnode, sel);
-                           repnode.expand();
-                      }
-               });
-           }
-         }
-        },
-        {
-         icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-         text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Item',
-         listeners : {
-          click : function (_self, e)
-           {
-           
-              
-               var sel = _this.cxnode;
-               if (!sel || isNaN(parseInt(sel.id))) {
-                   Roo.MessageBox.alert("Error", "select a category to edit");
-                   return;
-               }
-             
-              Pman.Dialog.PressReleaseCategory.show( sel.attributes  , function(attr)
-               {
-                  if (attr && attr.name) {
-                        
-                       sel.setText((attr.hgroup ? attr.hgroup + ' : ' : '' ) + attr.name);
-                  }
-               });
-           }
-         }
-        },
-        {
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Separator'
-        },
-        {
-         text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Item',
-         listeners : {
-          click : function (_self, e)
-           {
-               var sel = _this.cxnode;
-               if (!sel || isNaN(parseInt(sel.id))) {
-                   Roo.MessageBox.alert("Error", "you can not delete that category");
-                   return;
-               }
-               var par = sel.parentNode;
-               Roo.MessageBox.confirm("Confirm", "Are you sure you want to delete that?", function(b)
-               {
-                  // console.log(b);
-                   if (b!='yes') {
-                       return;
-                   }
-           
-                     new Pman.request({
-                       method : 'POST',
-                       params : {
-                           _delete : sel.id
-                       },
-                       url : baseURL + '/Roo/Pressrelease_category.php',
-                       success : function(r, o) { 
-                           par.removeChild(sel);
-                           // do nothing..
-                       } 
-                   });
-                   
-               });
-                    
-               
-           }
-         }
-        },
-        {
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Separator'
-        },
-        {
-         text : _this._strings['b4e1a66c9679eccc7fa6a5dd36f4bbb8'] /* Reload Tree */,
-         xns : Roo.menu,
-         '|xns' : 'Roo.menu',
-         xtype : 'Item',
-         listeners : {
-          click : function (_self, e)
-           {
-              _this.treepanel.tree.root.reload();
-           }
-         }
-        }
-       ]
-      },
-      toolbar : {
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'Toolbar',
-       items  : [
-        {
-         text : _this._strings['21dfb254ef22912f7e12236f245751fe'] /* Manage Categories */,
-         xns : Roo.Toolbar,
-         '|xns' : 'Roo.Toolbar',
-         xtype : 'Button',
-         menu : {
-          xns : Roo.menu,
-          '|xns' : 'Roo.menu',
-          xtype : 'Menu',
-          items  : [
-           {
-            icon : Roo.rootURL + 'images/default/tree/drop-add.gif',
-            text : _this._strings['e55458ac9b2afe0910d1ed25115ec02c'] /* Right Click on Item to add/edit  */,
-            xns : Roo.menu,
-            '|xns' : 'Roo.menu',
-            xtype : 'Item'
-           },
-           {
-            xns : Roo.menu,
-            '|xns' : 'Roo.menu',
-            xtype : 'Separator'
-           },
-           {
-            text : _this._strings['b4e1a66c9679eccc7fa6a5dd36f4bbb8'] /* Reload Tree */,
-            xns : Roo.menu,
-            '|xns' : 'Roo.menu',
-            xtype : 'Item',
-            listeners : {
-             click : function (_self, e)
-              {
-                 _this.treepanel.tree.root.reload();
-              }
-            }
-           }
-          ]
-         }
-        }
-       ]
-      },
-      tree : {
-       ddGroup : 'contactsDD',
-       enableDrag : false,
-       enableDrop : true,
-       xns : Roo.tree,
-       '|xns' : 'Roo.tree',
-       xtype : 'TreePanel',
-       listeners : {
-        beforenodedrop : function (dropEvent)
-         {
-             //Roo.log('beforenodedrop');
-             Roo.log(dropEvent);
-             // comming from grid..
-             if (dropEvent.data.grid) {
-                 // comming from grid..
-                  if (!dropEvent.data.selections.length) {
-                      return false;
-                  }
-                 // prevents dropping onto top level
-                  if (isNaN(parseInt(dropEvent.target.id))) {
-                      return false;
-                  }
-         
-                  if (dropEvent.point !='append') {
-                     return false; 
-                  }
-                  var ids = [];
-                  Roo.each(dropEvent.data.selections, function(d) {
-                     ids.push(d.data.id)
-                  });
-                  /*
-                  Roo.Ajax.request({
-                     method : 'POST',
-                     params : {
-                         _ids : ids.join(','),
-                         category_id : dropEvent.target.id
-                     },
-                     url : baseURL + '/Roo/Product.php',
-                     success : function(r, o) { 
-                         dropEvent.data.grid.footer.onClick('refresh');
-                     },
-                     failure : function () {
-                         Roo.messageBox.alert('Error', 'Error updating categories');
-                     }
-                 });
-                  */
-                  
-                  
-                  return true;
-             }
-             
-          
-             
-             
-             
-             
-             return true;
-         },
-        checkchange : function (node, checked)
-         {
-             
-             //Roo.log(this.getChecked('id'));
-             
-              (function() {
-                _this.grid.footer.onClick('first');
-             }).defer(200);
-             
-         },
-        click : function (node, e)
-         {
-            if (node.ui.checkbox) {
-                node.ui.checkbox.checked = !node.ui.checkbox.checked;
-                node.ui.onCheckChange();
-            }
-            
-             // (function() {
-             //   _this.grid.footer.onClick('first');
-            // }).defer(200);
-         },
-        contextmenu : function (node, e)
-         {
-             
-             _this.treepanel.tree.selModel.select(node);
-             var menu = Roo.factory(_this.treepanel.menu);
-             _this.cxnode = node;
-             menu.showAt(e.getXY());
-         },
-        nodedragover : function (dragOverEvent)
-         {
-              Roo.log('nodedragover');
-              Roo.log(dragOverEvent);     
-              
-              if (dragOverEvent.data.grid) {
-                 // comming from grid..
-                  if (!dragOverEvent.data.selections.length) {
-                      return false;
-                  }
-                
-                  if (isNaN(parseInt(dragOverEvent.target.id))) {
-                     return false;
-                  }
-         
-                  if (dragOverEvent.point !='append') {
-                     return false; 
-                  }
-                  return true;
-             }
-             // only allow append..
-              if (dragOverEvent.point !='append') {
-                  return false; 
-              }
-              // drop onto top level.
-              if (dragOverEvent.target.attributes &&
-                  isNaN(parseInt(dragOverEvent.target.attributes.id))) {
-                  return false;
-               }
-               // dragging top level node....
-               if (dragOverEvent.dropNode && dragOverEvent.dropNode.attributes.parent_id * 1 < 1) {
-                     return false;
-              }
-             
-         },
-        nodedrop : function (dropEvent)
-         {
-            // now handle node drop..
-             // if it fails, we just reload the tree..  a bit messy, but acceptable..
-             var _t = this;
-             
-             Roo.Ajax.request({
-                 method : 'POST',
-                 params : {
-                     id : dropEvent.dropNode.id,
-                     parent_id : dropEvent.target.id
-                 },
-                 url : baseURL + '/Roo/Pressrelease_category.php',
-                 success : function(r, o) { 
-                     
-                     // do nothing..
-                 },
-                 failure : function () {
-                     Roo.messageBox.alert('Error', 'Error updating categories');
-                     _this.root.reload()
-                 }
-             });
-              
-         }
-       },
-       root : {
-        text : _this._strings['2b2edc156a7f3e035b3d234fee57daf2'] /* All Contacts */,
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'AsyncTreeNode'
-       },
-       selModel : {
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'DefaultSelectionModel',
-        listeners : {
-         beforeselect : function (_self, node, node)
-          {
-              Roo.log("before select");
-                return false;
-          }
-        }
-       },
-       loader : {
-        baseParams : { _tree: 1, limit: 9999, sort: 'hgroup,name', dir : 'ASC'  },
-        dataUrl : baseURL + '/Roo/Pressrelease_category.php',
-        queryParam : 'parent_id',
-        requestMethod : 'GET',
-        root : 'data',
-        xns : Roo.tree,
-        '|xns' : 'Roo.tree',
-        xtype : 'TreeLoader',
-        listeners : {
-         create : function (self, attr)
-          {
-              //Roo.log(attr);
-              attr.text = (attr.hgroup ?  attr.hgroup +' : ' : '' ) + attr.name;
-          
-              attr.allowChildren = attr.parent_id * 1 ? false : true;
-              
-              attr.leaf   = attr.parent_id * 1 ? true : false;
-              
-              
-              attr.checked = attr.leaf ? false : undefined;
-              
-              if (attr.name == 'Regional') {
-                  attr.allowChildren = true;
-                  attr.leaf = false;
-                   attr.checked  = undefined;
-              }
-              
-          }
-        }
-       }
-      }
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseEntry.bjs b/PressRelease/Pman.Tab.PressReleaseEntry.bjs
deleted file mode 100644 (file)
index 7e1f3f0..0000000
+++ /dev/null
@@ -1,244 +0,0 @@
-{
- "name" : "Pman.Tab.PressReleaseEntry",
- "parent" : "Pman.Tab.PressReleaseTab",
- "title" : "Press Releases",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseEntry.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "cf665d20108543d49fca410b912cd2c3" : "(#Translation of)  - Headline",
-  "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
-  "5a0f039d44c57a9b47cbd2505ec963a7" : "Add Translated release",
-  "e3a17139bb26678a324baa72b69b96d4" : "Displaying pressrelease_entry{0} - {1} of {2}",
-  "7dce122004969d56ae2e0245cb754d35" : "Edit",
-  "ee466bd68fda0fe24a68d2ae95c3cccf" : "no#",
-  "577d7068826de925ea2aec01dbadf5e4" : "Client",
-  "2a73d657b6d37f556ee68e5231575b51" : "Publish Time",
-  "9e5495bdd37ebf032f8174b7358352a8" : "Download Press releases",
-  "236df51bb0e6416236e255b528346fca" : "Timezone",
-  "f90c37083078653276bc49058e710233" : "Lang.",
-  "01d78b8fc9c5d0667b1773f647c79463" : "Press Releases",
-  "d12f84918a626e02bfb2a2cc8c8c3daa" : "No pressrelease_entry found",
-  "6f15b8d4b7287d60a8ea3d1c5cbadc84" : "Words",
-  "8c16cbebef45d87fd2b36ce69f46c526" : "Distributed",
-  "4adaa93dd0e538c157d1bb9f44fe53cb" : "Rebuild Articles",
-  "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
-  "b741fd0f757a1a9eae95a38169b9b8e3" : "Publish?"
- },
- "items" : [
-  {
-   "listeners" : {
-    "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n     //   _this.grid.footer.onClick('first');\n    }\n}"
-   },
-   "region" : "center",
-   "fitToframe" : true,
-   "background" : true,
-   "title" : "Press Releases",
-   "xtype" : "GridPanel",
-   "fitContainer" : true,
-   "$ xns" : "Roo",
-   "tableName" : "pressrelease_entry",
-   "items" : [
-    {
-     "listeners" : {
-      "rowdblclick" : "function (_self, rowIndex, e)\n{\n     var s = _this.grid.getDataSource().getAt(rowIndex);\n      \n    Pman.Dialog.PressReleaseEdit.show(s.data, function() {\n        _this.grid.footer.onClick('refresh');\n      }); \n     \n}",
-      "|render" : "function() \n{\n   _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n   //    this.footer.onClick('first');\n    }\n}"
-     },
-     "autoExpandColumn" : "headline",
-     "xtype" : "Grid",
-     "loadMask" : true,
-     "$ xns" : "Roo.grid",
-     "* prop" : "grid",
-     "items" : [
-      {
-       "listeners" : {
-        "beforeload" : "function (_self, options)\n{\n   var sel = Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected();\n   if (sel) {\n        options.params.client_id = sel.data.id;\n    }\n    options.params['query[collapse_translation]'] = 1;\n    options.params['query[with_distr_summary]'] = 1;\n}",
-        "load" : "function (_self, records, options)\n{\n   _this.grid.view.el.select('.press-release-edit-link', true).on('click', function() {\n        // if you click on the translation.. you can edit it...\n        var id = this.child('span').dom.textContent;\n        \n        //Roo.log(this);\n        Pman.Dialog.PressReleaseEdit.show( { id : id}, function() {\n            _this.grid.footer.onClick('first');\n          });\n   \n   });\n}"
-       },
-       "xtype" : "Store",
-       "remoteSort" : true,
-       "$ sortInfo" : "{ field: 'id', direction: 'DESC' }",
-       "$ xns" : "Roo.data",
-       "* prop" : "dataSource",
-       "items" : [
-        {
-         "$ url" : "baseURL + '/Roo/pressrelease_entry.php'",
-         "method" : "GET",
-         "xtype" : "HttpProxy",
-         "$ xns" : "Roo.data",
-         "* prop" : "proxy"
-        },
-        {
-         "id" : "id",
-         "root" : "data",
-         "xtype" : "JsonReader",
-         "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'client_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'language',\n        'type': 'string'\n    },\n    {\n        'name': 'publish_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d H:i:s'\n    },\n    {\n        'name': 'publish_dt_hour',\n        'type': 'float'\n    },\n    {\n        'name': 'publish_dt_tz',\n        'type': 'float'\n    },\n    {\n        'name': 'headline',\n        'type': 'string'\n    },\n    {\n        'name': 'content',\n        'type': 'string'\n    },\n    {\n        'name': 'content_data',\n        'type': 'string'\n    },\n    {\n        'name': 'content_links',\n        'type': 'string'\n    },\n    {\n        'name': 'updated',\n        'type': 'string'\n    },\n    {\n        'name': 'created',\n        'type': 'string'\n    },\n    {\n        'name': 'created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'publish_status',\n        'type': 'int'\n    }\n]",
-         "$ xns" : "Roo.data",
-         "* prop" : "reader",
-         "totalProperty" : "total"
-        }
-       ]
-      },
-      {
-       "pageSize" : 25,
-       "xtype" : "PagingToolbar",
-       "emptyMsg" : "No pressrelease_entry found",
-       "$ xns" : "Roo",
-       "displayInfo" : true,
-       "displayMsg" : "Displaying pressrelease_entry{0} - {1} of {2}",
-       "* prop" : "footer",
-       "items" : [
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n  params = {\n       'csvCols[0]' : 'id',\n      'csvCols[1]' : 'client_id_name',\n      'csvCols[2]' : 'language',\n       'csvCols[3]' : 'publish_dt',\n      'csvCols[4]' : 'publish_dt_tz',  \n      'csvCols[5]' : 'headline',     \n\n       'csvTitles[0]' : 'ID#',\n      'csvTitles[1]' : 'Client',\n      'csvTitles[2]' : 'language',\n       'csvTitles[3]' : 'Publish',\n      'csvTitles[4]' : 'Timezone',  \n      'csvTitles[5]' : 'Headline',     \n      \n      'sort' : 'id',\n      'dir' : 'DESC',\n      'start' : 0,\n      'limit' : 200\n      \n      \n      \n  };\n   var sel = Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected();\n   if (sel) {\n        params.client_id = sel.data.id;\n    }\n \n new Pman.Download({\n    url: baseURL + '/Roo/pressrelease_entry.php',\n    newWindow : false,\n    params: params,\n    success : function() {\n        Roo.MessageBox.alert(\"Complete\", \"File has downloaded\");\n    }\n});\n         Roo.MessageBox.alert(\"Downloading\", \"File should be downloading now - there is a maximum of 200 can be downloaded\");\n\n}"
-         },
-         "text" : "Download Press releases",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n   Pman.Dialog.PressReleaseEdit.show( { id : 0 } , function() {\n      _this.grid.footer.onClick('first');\n   }); \n}\n"
-         },
-         "text" : "Add",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    \n    Pman.Dialog.PressReleaseEdit.show( {id :  s[0].data.id, _translation_of : 1 } , function() {\n        _this.grid.footer.onClick('first');\n    });  \n}\n"
-         },
-         "text" : "Add Translated release",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    \n    Pman.Dialog.PressReleaseEdit.show( _this.grid.getDataSource().getById(s[0].data.id), function() {\n        _this.grid.footer.onClick('first');\n      }); \n    \n}\n"
-         },
-         "text" : "Edit",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
-         "$ xns" : "Roo"
-        },
-        {
-         "xtype" : "Fill",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/PressRelease/View',\n        method : 'POST',\n        params : {\n            pid: s[0].data.id,\n            _rebuild: 1\n        },\n        success : function() {\n            // do nothing\n            Roo.MessageBox.alert('Rebuilded', 'Rebuild Search Complete.', function(){\n                _this.grid.footer.onClick('first');\n            });\n        },\n        failure : function() \n        {\n            Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n                _this.grid.footer.onClick('first');\n            });\n        }\n    });\n    \n}"
-         },
-         "text" : "Rebuild Articles",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "click" : "function (_self, e)\n{\n    Pman.genericDelete(_this, 'pressrelease_entry');\n}"
-         },
-         "text" : "Delete",
-         "xtype" : "Button",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 35,
-       "header" : "no#",
-       "$ renderer" : "function(v) { return String.format('#{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "id"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 75,
-       "header" : "Client",
-       "$ renderer" : "function(v) { return String.format('{0}', v); }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "client_id_name"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 50,
-       "header" : "Lang.",
-       "$ renderer" : "function(v,x,r) { \n\n\n   var ret =  [ String.format('{0}', v) ] ;\n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( \n          String.format('{0}', ch.language) \n        );\n        \n        \n    });\n    return ret.join('<br/>');\n     \n    \n\n\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "language"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 50,
-       "header" : "Words",
-       "$ renderer" : "function(v,x,r) { \n\n   var ret =  [ v ] ;\n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( ch.word_count )\n        \n        \n    });\n    return ret.join('<br/>');\n     \n    \n\n\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "word_count"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 150,
-       "header" : "Publish Time",
-       "$ renderer" : "function(v,x,r) { \n    \n    \n   var ret =  [ String.format('{0}', v ? v.format('d/M/Y H:i') : '') ] ;\n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( \n           String.format('{0}', ch.publish_dt ? Date.parseDate(ch.publish_dt, 'Y-m-d H:i:s').format('d/M/Y H:i') : '') \n        );\n        \n        \n    });\n    return ret.join('<br/>');\n     \n    \n    \n \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "publish_dt"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 75,
-       "header" : "Timezone",
-       "$ renderer" : "function(v,x,r) { \n    var vv = 'GMT';\n    if (v) {\n        vv = 'GMT' + ((v > 0) ? '+' + v : v);\n    } \n        \n  \n    var ret =  [vv] \n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( \n            ch.publish_dt_tz ? 'GMT' + (( ch.publish_dt_tz > 0) ? '+' +  ch.publish_dt_tz :  ch.publish_dt_tz) : 'GMT'\n        );\n        \n        \n    });\n    return ret.join('<br/>');\n     \n  \n  \n  }",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "publish_dt_tz"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 200,
-       "header" : "(#Translation of)  - Headline",
-       "$ renderer" : "function(v,x,r) { \n    //if (r.data.parent_id) {\n    //        return String.format('... #{1} - {0}', v, r.data.parent_id); \n    //}\n    if (!r.json.children.length) {\n        return String.format('{0}', v); \n    }\n    var ret =  [String.format('{0}', v) ] \n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( String.format('<span class=\"press-release-edit-link\">' +\n             '#<span class=\"press-release-link-id\">{0}</span> in {2} - {1}</span>',\n                ch.id, ch.headline,\n                Pman.I18n.toName('l', ch.language)\n        ));\n    });\n    return ret.join('<br/>');\n     \n    \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "headline"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 75,
-       "header" : "Publish?",
-       "$ renderer" : "function(v,x,r) {\n   \n    function toName(v) {\n        switch (v*1) {\n            case 0: return \"publish\";\n            case 1: return \"EMBARGOED\";\n            case -1: return \"DRAFT\";\n            default : return '??' +v ;\n        }\n    }\n   var ret =  [  toName(v)] ;\n    \n    Roo.each(r.json.children, function(ch) {\n        ret.push( toName( ch.publish_status)); \n        \n        \n    });\n    return ret.join('<br/>');\n     \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "publish_status"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "width" : 75,
-       "header" : "Distributed",
-       "$ renderer" : "function(v,x,r) {\n    function row(d) {\n        // \"123,<red>/total\n        var fn = '';\n        var on = '';\n        if (d.dist_summary_fail * 1 > 0) {\n            fn = ',<span style=\"color:red;font-face:bold\">' + d.dist_summary_fail + '</span>';\n        }\n        if (d.dist_open_summary * 1 > 0) {\n            on = ',<span style=\"color:green;font-face:bold\">' + d.dist_open_summary + '</span>';\n        }\n        return d.dist_summary_complete + fn + '/' + d.dist_summary_all + on;\n    }\n    var    ret = [ row(r.data) ] ;\n     Roo.each(r.json.children, function(ch) {\n        ret.push(   row(ch) );\n        \n    });\n    return ret.join('<br/>');\n    \n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "dist_summary_all"
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseEntry.js b/PressRelease/Pman.Tab.PressReleaseEntry.js
deleted file mode 100644 (file)
index 70f9571..0000000
+++ /dev/null
@@ -1,595 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.PressReleaseEntry = new Roo.XComponent({
-
- _strings : {
-  'cf665d20108543d49fca410b912cd2c3' :"(#Translation of)  - Headline",
-  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
-  '5a0f039d44c57a9b47cbd2505ec963a7' :"Add Translated release",
-  'e3a17139bb26678a324baa72b69b96d4' :"Displaying pressrelease_entry{0} - {1} of {2}",
-  '7dce122004969d56ae2e0245cb754d35' :"Edit",
-  'ee466bd68fda0fe24a68d2ae95c3cccf' :"no#",
-  '577d7068826de925ea2aec01dbadf5e4' :"Client",
-  '2a73d657b6d37f556ee68e5231575b51' :"Publish Time",
-  '9e5495bdd37ebf032f8174b7358352a8' :"Download Press releases",
-  '236df51bb0e6416236e255b528346fca' :"Timezone",
-  'f90c37083078653276bc49058e710233' :"Lang.",
-  '01d78b8fc9c5d0667b1773f647c79463' :"Press Releases",
-  'd12f84918a626e02bfb2a2cc8c8c3daa' :"No pressrelease_entry found",
-  '6f15b8d4b7287d60a8ea3d1c5cbadc84' :"Words",
-  '8c16cbebef45d87fd2b36ce69f46c526' :"Distributed",
-  '4adaa93dd0e538c157d1bb9f44fe53cb' :"Rebuild Articles",
-  'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
-  'b741fd0f757a1a9eae95a38169b9b8e3' :"Publish?"
- },
-
-  part     :  ["PressRelease", "Entry" ],
-  order    : '001-Pman.Tab.PressReleaseEntry',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseTab',
-  name     : "Press Releases",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   fitContainer : true,
-   fitToframe : true,
-   region : 'center',
-   tableName : 'pressrelease_entry',
-   title : _this._strings['01d78b8fc9c5d0667b1773f647c79463'] /* Press Releases */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'GridPanel',
-   listeners : {
-    activate : function() {
-         _this.panel = this;
-         if (_this.grid) {
-          //   _this.grid.footer.onClick('first');
-         }
-     }
-   },
-   grid : {
-    autoExpandColumn : 'headline',
-    loadMask : true,
-    xns : Roo.grid,
-    '|xns' : 'Roo.grid',
-    xtype : 'Grid',
-    listeners : {
-     render : function() 
-      {
-         _this.grid = this; 
-          //_this.dialog = Pman.Dialog.FILL_IN
-          if (_this.panel.active) {
-         //    this.footer.onClick('first');
-          }
-      },
-     rowdblclick : function (_self, rowIndex, e)
-      {
-           var s = _this.grid.getDataSource().getAt(rowIndex);
-            
-          Pman.Dialog.PressReleaseEdit.show(s.data, function() {
-              _this.grid.footer.onClick('refresh');
-            }); 
-           
-      }
-    },
-    footer : {
-     displayInfo : true,
-     displayMsg : _this._strings['e3a17139bb26678a324baa72b69b96d4'] /* Displaying pressrelease_entry{0} - {1} of {2} */,
-     emptyMsg : _this._strings['d12f84918a626e02bfb2a2cc8c8c3daa'] /* No pressrelease_entry found */,
-     pageSize : 25,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'PagingToolbar',
-     items  : [
-      {
-       text : _this._strings['9e5495bdd37ebf032f8174b7358352a8'] /* Download Press releases */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function (_self, e)
-         {
-           params = {
-                'csvCols[0]' : 'id',
-               'csvCols[1]' : 'client_id_name',
-               'csvCols[2]' : 'language',
-                'csvCols[3]' : 'publish_dt',
-               'csvCols[4]' : 'publish_dt_tz',  
-               'csvCols[5]' : 'headline',     
-         
-                'csvTitles[0]' : 'ID#',
-               'csvTitles[1]' : 'Client',
-               'csvTitles[2]' : 'language',
-                'csvTitles[3]' : 'Publish',
-               'csvTitles[4]' : 'Timezone',  
-               'csvTitles[5]' : 'Headline',     
-               
-               'sort' : 'id',
-               'dir' : 'DESC',
-               'start' : 0,
-               'limit' : 200
-               
-               
-               
-           };
-            var sel = Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected();
-            if (sel) {
-                 params.client_id = sel.data.id;
-             }
-          
-          new Pman.Download({
-             url: baseURL + '/Roo/pressrelease_entry.php',
-             newWindow : false,
-             params: params,
-             success : function() {
-                 Roo.MessageBox.alert("Complete", "File has downloaded");
-             }
-         });
-                  Roo.MessageBox.alert("Downloading", "File should be downloading now - there is a maximum of 200 can be downloaded");
-         
-         }
-       }
-      }
-     ]
-    },
-    toolbar : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'Toolbar',
-     items  : [
-      {
-       cls : 'x-btn-text-icon',
-       icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-       text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-            Pman.Dialog.PressReleaseEdit.show( { id : 0 } , function() {
-               _this.grid.footer.onClick('first');
-            }); 
-         }
-       }
-      },
-      {
-       cls : 'x-btn-text-icon',
-       icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-       text : _this._strings['5a0f039d44c57a9b47cbd2505ec963a7'] /* Add Translated release */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var s = _this.grid.getSelectionModel().getSelections();
-             if (!s.length || (s.length > 1))  {
-                 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                 return;
-             }
-             
-             Pman.Dialog.PressReleaseEdit.show( {id :  s[0].data.id, _translation_of : 1 } , function() {
-                 _this.grid.footer.onClick('first');
-             });  
-         }
-       }
-      },
-      {
-       cls : 'x-btn-text-icon',
-       icon : Roo.rootURL + 'images/default/tree/leaf.gif',
-       text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
-       xns : Roo,
-       '|xns' : 'Roo',
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var s = _this.grid.getSelectionModel().getSelections();
-             if (!s.length || (s.length > 1))  {
-                 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                 return;
-             }
-             
-             Pman.Dialog.PressReleaseEdit.show( _this.grid.getDataSource().getById(s[0].data.id), function() {
-                 _this.grid.footer.onClick('first');
-               }); 
-             
-         }
-       }
-      },
-      {
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Fill'
-      },
-      {
-       text : _this._strings['4adaa93dd0e538c157d1bb9f44fe53cb'] /* Rebuild Articles */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function (_self, e)
-         {
-             var s = _this.grid.getSelectionModel().getSelections();
-             if (!s.length || (s.length > 1))  {
-                 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                 return;
-             }
-             
-             new Pman.Request({
-                 url : baseURL + '/PressRelease/View',
-                 method : 'POST',
-                 params : {
-                     pid: s[0].data.id,
-                     _rebuild: 1
-                 },
-                 success : function() {
-                     // do nothing
-                     Roo.MessageBox.alert('Rebuilded', 'Rebuild Search Complete.', function(){
-                         _this.grid.footer.onClick('first');
-                     });
-                 },
-                 failure : function() 
-                 {
-                     Roo.MessageBox.alert("Error", "saving failed", function() {
-                         _this.grid.footer.onClick('first');
-                     });
-                 }
-             });
-             
-         }
-       }
-      },
-      {
-       text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
-       xns : Roo.Toolbar,
-       '|xns' : 'Roo.Toolbar',
-       xtype : 'Button',
-       listeners : {
-        click : function (_self, e)
-         {
-             Pman.genericDelete(_this, 'pressrelease_entry');
-         }
-       }
-      }
-     ]
-    },
-    dataSource : {
-     remoteSort : true,
-     sortInfo : { field: 'id', direction: 'DESC' },
-     xns : Roo.data,
-     '|xns' : 'Roo.data',
-     xtype : 'Store',
-     listeners : {
-      beforeload : function (_self, options)
-       {
-          var sel = Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected();
-          if (sel) {
-               options.params.client_id = sel.data.id;
-           }
-           options.params['query[collapse_translation]'] = 1;
-           options.params['query[with_distr_summary]'] = 1;
-       },
-      load : function (_self, records, options)
-       {
-          _this.grid.view.el.select('.press-release-edit-link', true).on('click', function() {
-               // if you click on the translation.. you can edit it...
-               var id = this.child('span').dom.textContent;
-               
-               //Roo.log(this);
-               Pman.Dialog.PressReleaseEdit.show( { id : id}, function() {
-                   _this.grid.footer.onClick('first');
-                 });
-          
-          });
-       }
-     },
-     proxy : {
-      method : 'GET',
-      url : baseURL + '/Roo/pressrelease_entry.php',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'HttpProxy'
-     },
-     reader : {
-      fields : [
-          {
-              'name': 'id',
-              'type': 'int'
-          },
-          {
-              'name': 'client_id',
-              'type': 'int'
-          },
-          {
-              'name': 'client_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'language',
-              'type': 'string'
-          },
-          {
-              'name': 'publish_dt',
-              'type': 'date',
-              'dateFormat': 'Y-m-d H:i:s'
-          },
-          {
-              'name': 'publish_dt_hour',
-              'type': 'float'
-          },
-          {
-              'name': 'publish_dt_tz',
-              'type': 'float'
-          },
-          {
-              'name': 'headline',
-              'type': 'string'
-          },
-          {
-              'name': 'content',
-              'type': 'string'
-          },
-          {
-              'name': 'content_data',
-              'type': 'string'
-          },
-          {
-              'name': 'content_links',
-              'type': 'string'
-          },
-          {
-              'name': 'updated',
-              'type': 'string'
-          },
-          {
-              'name': 'created',
-              'type': 'string'
-          },
-          {
-              'name': 'created_by',
-              'type': 'int'
-          },
-          {
-              'name': 'updated_by',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'publish_status',
-              'type': 'int'
-          }
-      ],
-      id : 'id',
-      root : 'data',
-      totalProperty : 'total',
-      xns : Roo.data,
-      '|xns' : 'Roo.data',
-      xtype : 'JsonReader'
-     }
-    },
-    colModel : [
-     {
-      dataIndex : 'id',
-      header : _this._strings['ee466bd68fda0fe24a68d2ae95c3cccf'] /* no# */,
-      renderer : function(v) { return String.format('#{0}', v); },
-      width : 35,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'client_id_name',
-      header : _this._strings['577d7068826de925ea2aec01dbadf5e4'] /* Client */,
-      renderer : function(v) { return String.format('{0}', v); },
-      width : 75,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'language',
-      header : _this._strings['f90c37083078653276bc49058e710233'] /* Lang. */,
-      renderer : function(v,x,r) { 
-      
-      
-         var ret =  [ String.format('{0}', v) ] ;
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( 
-                String.format('{0}', ch.language) 
-              );
-              
-              
-          });
-          return ret.join('<br/>');
-           
-          
-      
-      
-      },
-      width : 50,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'word_count',
-      header : _this._strings['6f15b8d4b7287d60a8ea3d1c5cbadc84'] /* Words */,
-      renderer : function(v,x,r) { 
-      
-         var ret =  [ v ] ;
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( ch.word_count )
-              
-              
-          });
-          return ret.join('<br/>');
-           
-          
-      
-      
-      },
-      width : 50,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'publish_dt',
-      header : _this._strings['2a73d657b6d37f556ee68e5231575b51'] /* Publish Time */,
-      renderer : function(v,x,r) { 
-          
-          
-         var ret =  [ String.format('{0}', v ? v.format('d/M/Y H:i') : '') ] ;
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( 
-                 String.format('{0}', ch.publish_dt ? Date.parseDate(ch.publish_dt, 'Y-m-d H:i:s').format('d/M/Y H:i') : '') 
-              );
-              
-              
-          });
-          return ret.join('<br/>');
-           
-          
-          
-       
-      },
-      width : 150,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'publish_dt_tz',
-      header : _this._strings['236df51bb0e6416236e255b528346fca'] /* Timezone */,
-      renderer : function(v,x,r) { 
-          var vv = 'GMT';
-          if (v) {
-              vv = 'GMT' + ((v > 0) ? '+' + v : v);
-          } 
-              
-        
-          var ret =  [vv] 
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( 
-                  ch.publish_dt_tz ? 'GMT' + (( ch.publish_dt_tz > 0) ? '+' +  ch.publish_dt_tz :  ch.publish_dt_tz) : 'GMT'
-              );
-              
-              
-          });
-          return ret.join('<br/>');
-           
-        
-        
-        },
-      width : 75,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'headline',
-      header : _this._strings['cf665d20108543d49fca410b912cd2c3'] /* (#Translation of)  - Headline */,
-      renderer : function(v,x,r) { 
-          //if (r.data.parent_id) {
-          //        return String.format('... #{1} - {0}', v, r.data.parent_id); 
-          //}
-          if (!r.json.children.length) {
-              return String.format('{0}', v); 
-          }
-          var ret =  [String.format('{0}', v) ] 
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( String.format('<span class="press-release-edit-link">' +
-                   '#<span class="press-release-link-id">{0}</span> in {2} - {1}</span>',
-                      ch.id, ch.headline,
-                      Pman.I18n.toName('l', ch.language)
-              ));
-          });
-          return ret.join('<br/>');
-           
-          
-      },
-      width : 200,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'publish_status',
-      header : _this._strings['b741fd0f757a1a9eae95a38169b9b8e3'] /* Publish? */,
-      renderer : function(v,x,r) {
-         
-          function toName(v) {
-              switch (v*1) {
-                  case 0: return "publish";
-                  case 1: return "EMBARGOED";
-                  case -1: return "DRAFT";
-                  default : return '??' +v ;
-              }
-          }
-         var ret =  [  toName(v)] ;
-          
-          Roo.each(r.json.children, function(ch) {
-              ret.push( toName( ch.publish_status)); 
-              
-              
-          });
-          return ret.join('<br/>');
-           
-      },
-      width : 75,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     },
-     {
-      dataIndex : 'dist_summary_all',
-      header : _this._strings['8c16cbebef45d87fd2b36ce69f46c526'] /* Distributed */,
-      renderer : function(v,x,r) {
-          function row(d) {
-              // "123,<red>/total
-              var fn = '';
-              var on = '';
-              if (d.dist_summary_fail * 1 > 0) {
-                  fn = ',<span style="color:red;font-face:bold">' + d.dist_summary_fail + '</span>';
-              }
-              if (d.dist_open_summary * 1 > 0) {
-                  on = ',<span style="color:green;font-face:bold">' + d.dist_open_summary + '</span>';
-              }
-              return d.dist_summary_complete + fn + '/' + d.dist_summary_all + on;
-          }
-          var    ret = [ row(r.data) ] ;
-           Roo.each(r.json.children, function(ch) {
-              ret.push(   row(ch) );
-              
-          });
-          return ret.join('<br/>');
-          
-      },
-      width : 75,
-      xns : Roo.grid,
-      '|xns' : 'Roo.grid',
-      xtype : 'ColumnModel'
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseImages.bjs b/PressRelease/Pman.Tab.PressReleaseImages.bjs
deleted file mode 100644 (file)
index 1260b64..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-{
-    "id": "roo-file-78",
-    "name": "Pman.Tab.PressReleaseImages",
-    "parent": "Pman.Tab.PressReleaseTab",
-    "title": "Image List",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseImages.bjs",
-    "items": [
-        {
-            "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-            },
-            "region": "center",
-            "background": true,
-            "fitContainer": true,
-            "fitToframe": true,
-            "tableName": "Images",
-            "title": "Images",
-            "xtype": "GridPanel",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "*prop": "grid",
-                    "xtype": "Grid",
-                    "autoExpandColumn": "title",
-                    "loadMask": true,
-                    "listeners": {
-                        "|render": "function() { \n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n  \n   var s =  _self.getDataSource().getAt(rowIndex);\n     Pman.Dialog.PressReleaseImage.show(s.data, function() {\n                _this.grid.footer.onClick('first');\n               }); \n}"
-                    },
-                    "|xns": "Roo.grid",
-                    "items": [
-                        {
-                            "listeners": {
-                                "|beforeload": "function (_self, o)\n{\n    o.params.ontable = 'Companies';\n    o.params['query[imagesize]'] = '150x150';\n    o.params['query[imageBaseURL]'] = rootURL + '/release.php';\n      \n    var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false\n  //   o.params.imgtype = 'PressRelease';\n    o.params.onid = sel ? sel.data.id : 0;\n    if (!o.params.onid) {\n         if (!_this.isBuilder) {\n           _this.panel.el.mask('select company');\n        }\n         return false;\n    }\n    \n    \n}",
-                                "|load": "function (_self, records, options)\n{\n _this.panel.el.unmask();\n}"
-                            },
-                            "*prop": "dataSource",
-                            "remoteSort": true,
-                            "xtype": "Store",
-                            "|sortInfo": "{ field: 'created' , direction: 'DESC' }",
-                            "|xns": "Roo.data",
-                            "items": [
-                                {
-                                    "*prop": "reader",
-                                    "id": "id",
-                                    "root": "data",
-                                    "totalProperty": "total",
-                                    "xtype": "JsonReader",
-                                    "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'filename',\n        'type': 'string'\n    },\n    {\n        'name': 'ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'onid',\n        'type': 'int'\n    },\n    {\n        'name': 'mimetype',\n        'type': 'string'\n    },\n    {\n        'name': 'width',\n        'type': 'int'\n    },\n    {\n        'name': 'height',\n        'type': 'int'\n    },\n    {\n        'name': 'filesize',\n        'type': 'int'\n    },\n    {\n        'name': 'displayorder',\n        'type': 'int'\n    },\n    {\n        'name': 'language',\n        'type': 'string'\n    },\n    {\n        'name': 'parent_image_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created',\n        'type': 'date',\n        'dateFormat' : 'Y-m-d H:i:s'\n    },\n    {\n        'name': 'imgtype',\n        'type': 'string'\n    },\n    {\n        'name': 'linkurl',\n        'type': 'string'\n    },\n    {\n        'name': 'descript',\n        'type': 'string'\n    },\n    {\n        'name': 'title',\n        'type': 'string'\n    }\n]",
-                                    "|xns": "Roo.data"
-                                },
-                                {
-                                    "*prop": "proxy",
-                                    "xtype": "HttpProxy",
-                                    "method": "GET",
-                                    "|url": "baseURL + '/Roo/Images.php'",
-                                    "|xns": "Roo.data"
-                                }
-                            ]
-                        },
-                        {
-                            "*prop": "footer",
-                            "xtype": "PagingToolbar",
-                            "pageSize": 25,
-                            "displayInfo": true,
-                            "displayMsg": "Displaying Images  {0} - {1} of {2}",
-                            "emptyMsg": "No Images found",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "toolbar",
-                            "xtype": "Toolbar",
-                            "|xns": "Roo",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "|click": "function()\n        {\n            \n      var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false\n     \n    Pman.Dialog.Image.show( {\n       id : 0, \n        ontable: 'Companies', \n         onid: sel.data.id,\n    imgtype : 'PressRelease'\n     }, \n    function(data) {\n                if (!data) { return; } \n     Pman.Dialog.PressReleaseImage.show( data, function() {\n                  _this.grid.footer.onClick('first');\n\n            }); \n                }); \n\n        }\n        "
-                                    },
-                                    "cls": "x-btn-text-icon",
-                                    "text": "Add",
-                                    "xtype": "Button",
-                                    "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-                                    "|xns": "Roo.Toolbar"
-                                },
-                                {
-                                    "listeners": {
-                                        "|click": "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s || s.length != 1) {\n        Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n       return;\n     }\n     var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n    \n             Pman.Dialog.PressReleaseImage.show(data, function() {\n                _this.grid.footer.onClick('first');\n               }); \n            \n        }\n        "
-                                    },
-                                    "cls": "x-btn-text-icon",
-                                    "text": "Edit",
-                                    "xtype": "Button",
-                                    "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
-                                    "|xns": "Roo"
-                                },
-                                {
-                                    "listeners": {
-                                        "|click": "function()\n        {\n        Pman.genericDelete(_this, 'Images'); \n        }\n        "
-                                    },
-                                    "cls": "x-btn-text-icon",
-                                    "text": "Delete",
-                                    "xtype": "Button",
-                                    "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                    "|xns": "Roo.Toolbar"
-                                }
-                            ]
-                        },
-                        {
-                            "xtype": "ColumnModel",
-                            "header": "Created",
-                            "width": 100,
-                            "dataIndex": "created",
-                            "|renderer": "function(v,x,r) {\n       return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',\n            v.format('d/M/Y'), r.data.mimetype, r.data.filename,\n    r.data.width, r.data.height\n    ); \n}\n     ",
-                            "listeners": {},
-                            "sortable": true,
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
-                        },
-                        {
-                            "*prop": "colModel[]",
-                            "dataIndex": "id",
-                            "header": "Image",
-                            "width": 100,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r) { return String.format('<img src=\"{0}/Images/Thumb/100/{1}/{2}\" width=\"100\">', baseURL, v, r.data.filename); }",
-                            "|xns": "Roo.grid"
-                        },
-                        {
-                            "*prop": "colModel[]",
-                            "dataIndex": "title",
-                            "header": "Details",
-                            "width": 100,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r) {\n     var surl = r.json.url.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n     var svurl = r.json.url_view.replace(/\\/release.php\\/Images\\//, '/i/').replace(/\\/([0-9]+)\\/.*$/, '/$1');;\n      return String.format(\n          'Download Url : <a href=\"http://{0}{1}\" target=\"_new\">http://{0}{1}</a>' + \n          '<br/>View Url : <a href=\"http://{0}{2}\" target=\"_new\">http://{0}{2}</a>' + \n          '<br/><b>{3}</b><br/>{4}</i>', \n          window.location.host, surl, svurl,\n           v, r.json.descript); \n     \n    }",
-                            "|xns": "Roo.grid"
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseImages.js b/PressRelease/Pman.Tab.PressReleaseImages.js
deleted file mode 100644 (file)
index ad2e7b8..0000000
+++ /dev/null
@@ -1,308 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '001-Pman.Tab.PressReleaseImages',
-        module : Pman.Tab.PressReleaseImages,
-        region : 'center',
-        parent : Pman.Tab.PressReleaseTab,
-        name : "Image List",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.PressReleaseImages = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
-    {
-
-        var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
-            xtype: 'GridPanel',
-            xns: Roo,
-            listeners : {
-                activate : function() {
-                    _this.panel = this;
-                    if (_this.grid) {
-                        _this.grid.footer.onClick('first');
-                    }
-                }
-            },
-            region : 'center',
-            background : true,
-            fitContainer : true,
-            fitToframe : true,
-            tableName : 'Images',
-            title : "Images",
-            grid : {
-                xtype: 'Grid',
-                xns: Roo.grid,
-                autoExpandColumn : 'title',
-                loadMask : true,
-                listeners : {
-                    render : function() { 
-                        _this.grid = this; 
-                        //_this.dialog = Pman.Dialog.FILL_IN
-                        if (_this.panel.active) {
-                           this.footer.onClick('first');
-                        }
-                    },
-                    rowdblclick : function (_self, rowIndex, e)
-                    {
-                      
-                       var s =  _self.getDataSource().getAt(rowIndex);
-                         Pman.Dialog.PressReleaseImage.show(s.data, function() {
-                                    _this.grid.footer.onClick('first');
-                                   }); 
-                    }
-                },
-                dataSource : {
-                    xtype: 'Store',
-                    xns: Roo.data,
-                    listeners : {
-                        beforeload : function (_self, o)
-                        {
-                            o.params.ontable = 'Companies';
-                            o.params['query[imagesize]'] = '150x150';
-                            o.params['query[imageBaseURL]'] = rootURL + '/release.php';
-                              
-                            var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false
-                          //   o.params.imgtype = 'PressRelease';
-                            o.params.onid = sel ? sel.data.id : 0;
-                            if (!o.params.onid) {
-                                 if (!_this.isBuilder) {
-                                   _this.panel.el.mask('select company');
-                                }
-                                 return false;
-                            }
-                            
-                            
-                        },
-                        load : function (_self, records, options)
-                        {
-                         _this.panel.el.unmask();
-                        }
-                    },
-                    remoteSort : true,
-                    sortInfo : { field: 'created' , direction: 'DESC' },
-                    reader : {
-                        xtype: 'JsonReader',
-                        xns: Roo.data,
-                        id : 'id',
-                        root : 'data',
-                        totalProperty : 'total',
-                        fields : [
-                            {
-                                'name': 'id',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'filename',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'ontable',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'onid',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'mimetype',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'width',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'height',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'filesize',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'displayorder',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'language',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'parent_image_id',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'created',
-                                'type': 'date',
-                                'dateFormat' : 'Y-m-d H:i:s'
-                            },
-                            {
-                                'name': 'imgtype',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'linkurl',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'descript',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'title',
-                                'type': 'string'
-                            }
-                        ]
-                    },
-                    proxy : {
-                        xtype: 'HttpProxy',
-                        xns: Roo.data,
-                        method : 'GET',
-                        url : baseURL + '/Roo/Images.php'
-                    }
-                },
-                footer : {
-                    xtype: 'PagingToolbar',
-                    xns: Roo,
-                    pageSize : 25,
-                    displayInfo : true,
-                    displayMsg : 'Displaying Images  {0} - {1} of {2}',
-                    emptyMsg : 'No Images found'
-                },
-                toolbar : {
-                    xtype: 'Toolbar',
-                    xns: Roo,
-                    items : [
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            listeners : {
-                                click : function()
-                                        {
-                                            
-                                      var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false
-                                     
-                                    Pman.Dialog.Image.show( {
-                                       id : 0, 
-                                        ontable: 'Companies', 
-                                         onid: sel.data.id,
-                                    imgtype : 'PressRelease'
-                                     }, 
-                                    function(data) {
-                                                if (!data) { return; } 
-                                     Pman.Dialog.PressReleaseImage.show( data, function() {
-                                                  _this.grid.footer.onClick('first');
-                                
-                                            }); 
-                                                }); 
-                                
-                                        }
-                            },
-                            cls : 'x-btn-text-icon',
-                            text : "Add",
-                            icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo,
-                            listeners : {
-                                click : function()
-                                {
-                                    var s = _this.grid.getSelectionModel().getSelections();
-                                    if (!s || s.length != 1) {
-                                        Roo.MessageBox.alert("Error", "Select a single image to edit");
-                                       return;
-                                     }
-                                     var data = _this.grid.getDataSource().getById(s[0].data.id).data;
-                                    
-                                             Pman.Dialog.PressReleaseImage.show(data, function() {
-                                                _this.grid.footer.onClick('first');
-                                               }); 
-                                            
-                                        }
-                            },
-                            cls : 'x-btn-text-icon',
-                            text : "Edit",
-                            icon : Roo.rootURL + 'images/default/tree/leaf.gif'
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            listeners : {
-                                click : function()
-                                        {
-                                        Pman.genericDelete(_this, 'Images'); 
-                                        }
-                            },
-                            cls : 'x-btn-text-icon',
-                            text : "Delete",
-                            icon : rootURL + '/Pman/templates/images/trash.gif'
-                        }
-                    ]
-                },
-                colModel : [
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        header : 'Created',
-                        width : 100,
-                        dataIndex : 'created',
-                        renderer : function(v,x,r) {
-                               return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',
-                                    v.format('d/M/Y'), r.data.mimetype, r.data.filename,
-                            r.data.width, r.data.height
-                            ); 
-                        },
-                        sortable : true
-                    },
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        dataIndex : 'id',
-                        header : 'Image',
-                        width : 100,
-                        renderer : function(v,x,r) { return String.format('<img src="{0}/Images/Thumb/100/{1}/{2}" width="100">', baseURL, v, r.data.filename); }
-                    },
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        dataIndex : 'title',
-                        header : 'Details',
-                        width : 100,
-                        renderer : function(v,x,r) {
-                             var surl = r.json.url.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
-                             var svurl = r.json.url_view.replace(/\/release.php\/Images\//, '/i/').replace(/\/([0-9]+)\/.*$/, '/$1');;
-                              return String.format(
-                                  'Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>' + 
-                                  '<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>' + 
-                                  '<br/><b>{3}</b><br/>{4}</i>', 
-                                  window.location.host, surl, svurl,
-                                   v, r.json.descript); 
-                             
-                            }
-                    }
-                ]
-            }
-        });
-        this.layout = this.panel.layout;
-
-    }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseSaved.bjs b/PressRelease/Pman.Tab.PressReleaseSaved.bjs
deleted file mode 100644 (file)
index f144426..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-{
-    "id": "roo-file-152",
-    "name": "Pman.Tab.PressReleaseSaved",
-    "parent": "Pman.Tab.Admin",
-    "title": "Pman.Tab.PressReleaseSaved",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseSaved.bjs",
-    "items": [
-        {
-            "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-            },
-            "background": true,
-            "fitContainer": true,
-            "fitToframe": true,
-            "region": "center",
-            "tableName": "pressrelease_saved",
-            "title": "Saved Distributions",
-            "xtype": "GridPanel",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "listeners": {
-                        "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                    },
-                    "*prop": "grid",
-                    "autoExpandColumn": "json",
-                    "loadMask": true,
-                    "xtype": "Grid",
-                    "|xns": "Roo.grid",
-                    "items": [
-                        {
-                            "*prop": "dataSource",
-                            "xtype": "Store",
-                            "remoteSort": true,
-                            "|sortInfo": "{ field : 'name', direction: 'ASC' }",
-                            "|xns": "Roo.data",
-                            "items": [
-                                {
-                                    "*prop": "proxy",
-                                    "xtype": "HttpProxy",
-                                    "method": "GET",
-                                    "|url": "baseURL + '/Roo/pressrelease_saved.php'",
-                                    "|xns": "Roo.data"
-                                },
-                                {
-                                    "|xns": "Roo.data",
-                                    "xtype": "JsonReader",
-                                    "totalProperty": "total",
-                                    "root": "data",
-                                    "*prop": "reader",
-                                    "id": "id",
-                                    "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'json',\n        'type': 'string'\n    }\n]"
-                                }
-                            ]
-                        },
-                        {
-                            "*prop": "footer",
-                            "xtype": "PagingToolbar",
-                            "pageSize": 25,
-                            "displayInfo": true,
-                            "displayMsg": "Displaying pressrelease_saved{0} - {1} of {2}",
-                            "emptyMsg": "No pressrelease_saved found",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "toolbar",
-                            "xtype": "Toolbar",
-                            "|xns": "Roo",
-                            "items": [
-                                {
-                                    "text": "Delete",
-                                    "cls": "x-btn-text-icon",
-                                    "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                    "xtype": "Button",
-                                    "listeners": {
-                                        "|click": "function()\n{\n     Pman.genericDelete(_this, 'pressrelease_saved'); \n}\n        "
-                                    },
-                                    "|xns": "Roo.Toolbar"
-                                }
-                            ]
-                        },
-                        {
-                            "xtype": "ColumnModel",
-                            "header": "Name",
-                            "width": 200,
-                            "dataIndex": "name",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
-                        },
-                        {
-                            "xtype": "ColumnModel",
-                            "header": "Json",
-                            "width": 200,
-                            "dataIndex": "json",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "980"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseSaved.js b/PressRelease/Pman.Tab.PressReleaseSaved.js
deleted file mode 100644 (file)
index 0ae7f3d..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '980-Pman.Tab.PressReleaseSaved',
-        module : Pman.Tab.PressReleaseSaved,
-        region : 'center',
-        parent : Pman.Tab.Admin,
-        name : "Pman.Tab.PressReleaseSaved",
-        disabled : false, 
-        permname: '' 
-    });
-});
-
-Pman.Tab.PressReleaseSaved = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
-    {
-
-        var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
-            xtype: 'GridPanel',
-            xns: Roo,
-            listeners : {
-                activate : function() {
-                    _this.panel = this;
-                    if (_this.grid) {
-                        _this.grid.footer.onClick('first');
-                    }
-                }
-            },
-            background : true,
-            fitContainer : true,
-            fitToframe : true,
-            region : 'center',
-            tableName : 'pressrelease_saved',
-            title : "Saved Distributions",
-            grid : {
-                xtype: 'Grid',
-                xns: Roo.grid,
-                listeners : {
-                    render : function() 
-                    {
-                        _this.grid = this; 
-                        //_this.dialog = Pman.Dialog.FILL_IN
-                        if (_this.panel.active) {
-                           this.footer.onClick('first');
-                        }
-                    },
-                    rowdblclick : function (_self, rowIndex, e)
-                    {
-                        if (!_this.dialog) return;
-                        _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                            _this.grid.footer.onClick('first');
-                        }); 
-                    }
-                },
-                autoExpandColumn : 'json',
-                loadMask : true,
-                dataSource : {
-                    xtype: 'Store',
-                    xns: Roo.data,
-                    remoteSort : true,
-                    sortInfo : { field : 'name', direction: 'ASC' },
-                    proxy : {
-                        xtype: 'HttpProxy',
-                        xns: Roo.data,
-                        method : 'GET',
-                        url : baseURL + '/Roo/pressrelease_saved.php'
-                    },
-                    reader : {
-                        xtype: 'JsonReader',
-                        xns: Roo.data,
-                        totalProperty : 'total',
-                        root : 'data',
-                        id : 'id',
-                        fields : [
-                            {
-                                'name': 'id',
-                                'type': 'int'
-                            },
-                            {
-                                'name': 'name',
-                                'type': 'string'
-                            },
-                            {
-                                'name': 'json',
-                                'type': 'string'
-                            }
-                        ]
-                    }
-                },
-                footer : {
-                    xtype: 'PagingToolbar',
-                    xns: Roo,
-                    pageSize : 25,
-                    displayInfo : true,
-                    displayMsg : "Displaying pressrelease_saved{0} - {1} of {2}",
-                    emptyMsg : "No pressrelease_saved found"
-                },
-                toolbar : {
-                    xtype: 'Toolbar',
-                    xns: Roo,
-                    items : [
-                        {
-                            xtype: 'Button',
-                            xns: Roo.Toolbar,
-                            text : "Delete",
-                            cls : 'x-btn-text-icon',
-                            icon : rootURL + '/Pman/templates/images/trash.gif',
-                            listeners : {
-                                click : function()
-                                {
-                                     Pman.genericDelete(_this, 'pressrelease_saved'); 
-                                }
-                            }
-                        }
-                    ]
-                },
-                colModel : [
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        header : 'Name',
-                        width : 200,
-                        dataIndex : 'name',
-                        renderer : function(v) { return String.format('{0}', v); }
-                    },
-                    {
-                        xtype: 'ColumnModel',
-                        xns: Roo.grid,
-                        header : 'Json',
-                        width : 200,
-                        dataIndex : 'json',
-                        renderer : function(v) { return String.format('{0}', v); }
-                    }
-                ]
-            }
-        });
-        this.layout = this.panel.layout;
-
-    }
-});
diff --git a/PressRelease/Pman.Tab.PressReleaseTab.bjs b/PressRelease/Pman.Tab.PressReleaseTab.bjs
deleted file mode 100644 (file)
index ff630ad..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-{
-    "id": "roo-file-45",
-    "name": "Pman.Tab.PressReleaseTab",
-    "parent": "Pman",
-    "title": "Press Release Tab",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.PressReleaseTab.bjs",
-    "items": [
-        {
-            "xtype": "NestedLayoutPanel",
-            "background": true,
-            "fitToFrame": true,
-            "region": "center",
-            "listeners": {},
-            "title": "Press Releases",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "*prop": "layout",
-                    "xtype": "BorderLayout",
-                    "listeners": {},
-                    "|xns": "Roo",
-                    "items": [
-                        {
-                            "xtype": "LayoutRegion",
-                            "*prop": "west",
-                            "titlebar": false,
-                            "listeners": {},
-                            "split": true,
-                            "width": "200",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "*prop": "center",
-                            "alwaysShowTabs": true,
-                            "tabPosition": "top",
-                            "titlebar": false,
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "PressRelease.MainTab",
-    "modOrder": "001"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.PressReleaseTab.js b/PressRelease/Pman.Tab.PressReleaseTab.js
deleted file mode 100644 (file)
index 281c396..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-
-
-// register the module first
-Pman.on('beforeload', function()
-{
-    Pman.register({
-        modKey : '001-Pman.Tab.PressReleaseTab',
-        module : Pman.Tab.PressReleaseTab,
-        region : 'center',
-        parent : Pman,
-        name : "Press Release Tab",
-        disabled : false, 
-        permname: 'PressRelease.MainTab' 
-    });
-});
-
-Pman.Tab.PressReleaseTab = new Roo.util.Observable({
-
-    panel : false,
-    disabled : false,
-    parentLayout:  false,
-
-    add : function(parentLayout, region)
-    {
-
-        var _this = this;
-        this.parentLayout = parentLayout;
-
-        this.panel = parentLayout.addxtype({
-            xtype: 'NestedLayoutPanel',
-            xns: Roo,
-            background : true,
-            fitToFrame : true,
-            region : 'center',
-            title : "Press Releases",
-            layout : {
-                xtype: 'BorderLayout',
-                xns: Roo,
-                west : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    titlebar : false,
-                    split : true,
-                    width : '200'
-                },
-                center : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    alwaysShowTabs : true,
-                    tabPosition : 'top',
-                    titlebar : false
-                }
-            }
-        });
-        this.layout = this.panel.layout;
-
-    }
-});
diff --git a/PressRelease/Pman.Tab.ReaderArticle.bjs b/PressRelease/Pman.Tab.ReaderArticle.bjs
deleted file mode 100644 (file)
index 06ba895..0000000
+++ /dev/null
@@ -1,466 +0,0 @@
-{
- "name" : "Pman.Tab.ReaderArticle",
- "parent" : "Pman.Tab.PressReleaseTab",
- "title" : "",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.ReaderArticle.bjs",
- "permname" : "",
- "modOrder" : "999",
- "strings" : {
-  "59716c97497eb9694541f7c3d37b1a4d" : "Country",
-  "490aa6e856ccf208a054389e47ce0d06" : "Id",
-  "4994a8ffeba4ac3140beb89e8d41f174" : "Language",
-  "8444e81d652b084d70c71cd7d19ac0cf" : "Displaying Person{0} - {1} of {2}",
-  "13348442cc6a27032d2b4aa28b75a5d3" : "Search",
-  "b841c326ce2658d34b4430a9dc46c0e4" : "Rebuild & Download",
-  "479e527f94b9416c7c642519be65f1f2" : "Reader Article",
-  "b718adec73e04ce3ec720dd11a06a308" : "ID",
-  "f00a1d99f6f47917006e88a803ecde1f" : "Campaign",
-  "1243daf593fa297e07ab03bf06d925af" : "Searching...",
-  "07f366f8c885267f837f79170f05a990" : "Build feeds",
-  "a2ceb7c17a391cb351d6f4b084fc9c3d" : "reader_sub",
-  "5a7b0bf7386b00815019c1381be4f425" : "Last Fetch",
-  "30232180c3389e421452954d1790036e" : "Reader Articles",
-  "5da618e8e4b89c66fe86e32cdafde142" : "From",
-  "24f27bda5dd2c488aa9bc7700ba98c34" : "Select Projects",
-  "ac101b32dda4448cf13a93fe283dddd8" : "Body",
-  "a80425472d94ae02c836da5b6f205b7b" : "Feed",
-  "0553dc409f5f786ede7dc1dd1f94c2d8" : "Diff Article",
-  "689252537fba5b4613c47664625652b0" : "Fetched",
-  "ac78da22726179c0aca7474021f77977" : "Link Check",
-  "175b08878b33de0ba64fb8072292c69d" : "Download Article",
-  "c6568e77f61109390e82d035aaacaef0" : "Headline",
-  "e6b391a8d2c4d45902a23a8b6585703d" : "URL"
- },
- "items" : [
-  {
-   "background" : true,
-   "region" : "center",
-   "title" : "Reader Articles",
-   "xtype" : "NestedLayoutPanel",
-   "$ xns" : "Roo",
-   "items" : [
-    {
-     "xtype" : "BorderLayout",
-     "$ xns" : "Roo",
-     "* prop" : "layout",
-     "items" : [
-      {
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "* prop" : "center"
-      },
-      {
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "split" : true,
-       "* prop" : "south",
-       "height" : 300
-      },
-      {
-       "listeners" : {
-        "|activate" : "function() {\n    _this.feedpanel = this;\n    if (_this.feedgrid) {\n        _this.feedgrid.ds.load({});\n    }\n}"
-       },
-       "fitToframe" : true,
-       "background" : true,
-       "region" : "center",
-       "title" : "reader_sub",
-       "xtype" : "GridPanel",
-       "fitContainer" : true,
-       "$ xns" : "Roo",
-       "tableName" : "reader_sub",
-       "items" : [
-        {
-         "listeners" : {
-          "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
-          "|render" : "function() \n{\n    _this.feedgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.feedpanel.active) {\n    \n        this.ds.load({});\n\n    }\n}"
-         },
-         "autoExpandColumn" : "supplier_id_code",
-         "xtype" : "Grid",
-         "loadMask" : true,
-         "$ xns" : "Roo.grid",
-         "* prop" : "grid",
-         "items" : [
-          {
-           "listeners" : {
-            "afterselectionchange" : "function (_self)\n{\n    _this.grid.footer.onClick('first');\n}"
-           },
-           "xtype" : "RowSelectionModel",
-           "singleSelect" : true,
-           "$ xns" : "Roo.grid",
-           "* prop" : "sm"
-          },
-          {
-           "listeners" : {
-            "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params.limit = 100;\n    o.params.project_id = _this.projectCombo.getValue();\n    if (!    o.params.project_id ) {\n        return false;\n    }\n    \n    \n}"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ field : '', direction: 'ASC' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "dataSource",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/CampaignAssign.php'",
-             "xtype" : "HttpProxy",
-             "method" : "GET",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'feed_id',\n        'type': 'int'\n    },\n    {\n        'name': 'campaign_assign_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_alt_email',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'person_id_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_name_facebook',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_blog',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_twitter',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_linkedin',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_mobile',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_phone_direct',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_honor',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_addr_state',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_country_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_city_id',\n        'type': 'int'\n    },\n    {\n        'name': 'person_id_chosen_title',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_google_plus',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_blog2',\n        'type': 'string'\n    },\n    {\n        'name': 'person_id_url_blog3',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'feed_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_lastfetch_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'feed_id_description',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_parser',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_params',\n        'type': 'string'\n    },\n    {\n        'name': 'feed_id_country',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'campaign_assign_id_supplier_id',\n        'type': 'int'\n    },\n    {\n        'name': 'campaign_assign_id_assigntype',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_description',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'campaign_assign_id_sourcelanguages',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_assignimage_id',\n        'type': 'int'\n    },\n    {\n        'name': 'campaign_assign_id_remote_username',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_remote_password',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_delivery_time',\n        'type': 'string'\n    },\n    {\n        'name': 'campaign_assign_id_search_terms',\n        'type': 'string'\n    }\n]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          },
-          {
-           "xtype" : "Toolbar",
-           "$ xns" : "Roo",
-           "* prop" : "toolbar",
-           "items" : [
-            {
-             "listeners" : {
-              "render" : "function (_self)\n{\n    _this.projectCombo = _self;\n}",
-              "select" : "function (combo, record, index)\n{\n   _this.feedgrid.ds.load({});\n}"
-             },
-             "listWidth" : 400,
-             "triggerAction" : "all",
-             "forceSelection" : true,
-             "selectOnFocus" : true,
-             "pageSize" : 20,
-             "displayField" : "name",
-             "emptyText" : "Select Projects",
-             "minChars" : 2,
-             "valueField" : "id",
-             "xtype" : "ComboBox",
-             "allowBlank" : true,
-             "typeAhead" : true,
-             "editable" : false,
-             "width" : 300,
-             "$ xns" : "Roo.form",
-             "qtip" : "Select Projects",
-             "queryParam" : "",
-             "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>#{pressrelease_id} {name}</b></div>",
-             "loadingText" : "Searching...",
-             "items" : [
-              {
-               "listeners" : {
-                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['query[project_indaterange]'] = 'C';\n    \n}\n"
-               },
-               "xtype" : "Store",
-               "remoteSort" : true,
-               "$ sortInfo" : "{ direction : 'DESC', field: 'pressrelease_id' }",
-               "$ xns" : "Roo.data",
-               "* prop" : "store",
-               "items" : [
-                {
-                 "$ url" : "baseURL + '/Roo/Projects.php'",
-                 "method" : "GET",
-                 "xtype" : "HttpProxy",
-                 "$ xns" : "Roo.data",
-                 "* prop" : "proxy"
-                },
-                {
-                 "id" : "id",
-                 "root" : "data",
-                 "xtype" : "JsonReader",
-                 "$ xns" : "Roo.data",
-                 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
-                 "* prop" : "reader",
-                 "totalProperty" : "total"
-                }
-               ]
-              }
-             ]
-            },
-            {
-             "xtype" : "Fill",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n \n    \n    new Pman.Request({\n\n        url : baseURL + '/Roo/Pressrelease_entry',\n        method  : 'GET',\n        params : {\n            _build_feed :     _this.projectCombo.getValue()\n        },\n        success : function () {\n             _this.feedgrid.ds.load({});\n        }\n        \n\n    });\n    \n}\n"
-             },
-             "text" : "Build feeds",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Id",
-           "width" : 50,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "id"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Last Fetch",
-           "width" : 130,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "lastfetched"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Feed",
-           "width" : 200,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "supplier_id_code"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Country",
-           "width" : 50,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "countries"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Language",
-           "width" : 150,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "languages"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
-       },
-       "autoScroll" : true,
-       "background" : false,
-       "fitToframe" : true,
-       "region" : "south",
-       "title" : "Reader Article",
-       "xtype" : "GridPanel",
-       "fitContainer" : true,
-       "$ xns" : "Roo",
-       "tableName" : "reader_article",
-       "items" : [
-        {
-         "listeners" : {
-          "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    return;\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
-          "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n    return;\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'active') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}",
-          "|render" : "function() \n{\n    _this.grid = this; \n    if (!_this.dialog) {\n        _this.dialog = Pman.Dialog.PersonEdit;\n        \n    }\n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
-         },
-         "autoExpandColumn" : "headline",
-         "xtype" : "Grid",
-         "loadMask" : true,
-         "$ xns" : "Roo.grid",
-         "* prop" : "grid",
-         "items" : [
-          {
-           "listeners" : {
-            "update" : "function (_self, record, operation)\n{\n    if (operation != 'commit') {\n        return;\n    }\n    // only used to change active status.\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Person.php',\n        method :'POST',\n        params : {\n            id : record.data.id,\n            active: record.data.active\n            \n        },\n        success : function() {\n            // do nothing\n            \n            _this.grid.ds.remove(record);\n            \n        },\n        failure : function() \n        {\n            Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n                _this.grid.footer.onClick('first');\n            });\n        }\n    });\n}",
-            "beforeload" : "function (_self, o)\n{\n    if (!_this.feedgrid) {\n        return false;\n    }\n    \n    o.params = o.params || {};\n    \n    var pr = _this.projectCombo.getValue();\n    if (pr *1 > 0 ) {\n        o.params.campaign_id = pr;\n    }\n    \n    o.params._search = _this.searchBox.getValue();\n\n    var fg = _this.feedgrid.selModel.getSelected();\n    if (fg) {\n        o.params.src_id = fg.data.id;\n    }\n    \n}"
-           },
-           "xtype" : "Store",
-           "remoteSort" : true,
-           "$ sortInfo" : "{ field : 'id', direction: 'DESC' }",
-           "$ xns" : "Roo.data",
-           "* prop" : "dataSource",
-           "items" : [
-            {
-             "$ url" : "baseURL + '/Roo/Reader_article.php'",
-             "xtype" : "HttpProxy",
-             "method" : "GET",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'lang',\n        'type': 'string'\n    },\n    {\n        'name': 'no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_tel',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_updated_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    }\n]",
-             "* prop" : "reader",
-             "totalProperty" : "total"
-            }
-           ]
-          },
-          {
-           "pageSize" : 100,
-           "xtype" : "PagingToolbar",
-           "$ xns" : "Roo",
-           "displayMsg" : "Displaying Person{0} - {1} of {2}",
-           "displayInfo" : true,
-           "* prop" : "footer"
-          },
-          {
-           "xtype" : "Toolbar",
-           "$ xns" : "Roo",
-           "* prop" : "toolbar",
-           "items" : [
-            {
-             "text" : "Search",
-             "xtype" : "TextItem",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "specialkey" : "function (_self, e)\n{\n  if (e.getKey() == 13) {\n    _this.grid.footer.onClick('first');\n  }\n}",
-              "show" : "function (_self,e)\n{\n    if (e.getCharCode() != 13) {\n        return;\n    }\n    _this.grid.footer.onClick('first');\n}",
-              "render" : "function (_self)\n{\n    _this.searchBox = _self;\n}"
-             },
-             "xtype" : "TextField",
-             "$ xns" : "Roo.form"
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function (_self, e)\n{\n_this.searchBox.setValue('');\n    _this.grid.footer.onClick('first');\n}"
-             },
-             "xtype" : "Button",
-             "cls" : "x-btn-icon",
-             "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "xtype" : "Fill",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var sels= _this.grid.selModel.getSelections();\n    \n    if (!sels || !sels.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select some documents\");\n        return;\n    }\n    \n    if(sels.length > 1){\n        Roo.MessageBox.alert('Error', 'you can only select one document');\n        return;\n    }\n    var d = sels[0].data;\n    \n    //Roo.MessageBox.prompt('Debugging Diff', 'Fill in the release id', function(e, v){\n    \n        new Pman.Request({\n            url : baseURL + '/PressRelease/Import/Debug.php',\n            method :'GET',\n            params : {\n                action: '_linkcheck',\n                reader_id : d.id,\n                project_id: _this.projectCombo.getValue()\n            },\n            success : function(res) {\n                // do nothing\n                Roo.MessageBox.alert('Done', res.data+'% Matched');\n            },\n            failure : function() \n            {\n                Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n                    _this.grid.footer.onClick('first');\n                });\n            }\n        });\n        \n       // });\n    \n    \n    \n    \n    \n}\n        "
-             },
-             "text" : "Link Check",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var sels= _this.grid.selModel.getSelections();\n    \n    if (!sels || !sels.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select some documents\");\n        return;\n    }\n    \n    if(sels.length > 1){\n        Roo.MessageBox.alert('Error', 'you can only select one document');\n        return;\n    }\n    var d = sels[0].data;\n    \n    //Roo.MessageBox.prompt('Debugging Diff', 'Fill in the release id', function(e, v){\n    \n        new Pman.Request({\n            url : baseURL + '/PressRelease/Import/Debug.php',\n            method :'GET',\n            params : {\n                action: '_diff',\n                reader_id : d.id,\n                project_id: _this.projectCombo.getValue()\n            },\n            success : function(res) {\n                // do nothing\n                Roo.MessageBox.alert('Done', res.data+'% Matched');\n            },\n            failure : function() \n            {\n                Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n                    _this.grid.footer.onClick('first');\n                });\n            }\n        });\n        \n       // });\n    \n    \n    \n    \n    \n}\n        "
-             },
-             "text" : "Diff Article",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var sels= _this.grid.selModel.getSelections();\n    \n    if (!sels || !sels.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select some documents\");\n        return;\n    }\n    \n    if(sels.length > 1){\n        Roo.MessageBox.alert('Error', 'you can only select one document');\n        return;\n    }\n    var d = sels[0].data;\n    \n    \n    new Pman.Download({\n        newWindow: true,\n        url : baseURL + '/PressRelease/Import/Debug.php',\n        params : {\n            action: '_download',\n            reader_id : d.id\n        }\n    });\n    \n}\n"
-             },
-             "text" : "Download Article",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            },
-            {
-             "listeners" : {
-              "|click" : "function()\n{\n    var sels= _this.grid.selModel.getSelections();\n    \n    if (!sels || !sels.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select some documents\");\n        return;\n    }\n    \n    if(sels.length > 1){\n        Roo.MessageBox.alert('Error', 'you can only select one document');\n        return;\n    }\n    var d = sels[0].data;\n    \n    \n    new Pman.Download({\n        newWindow: true,\n        url : baseURL + '/PressRelease/Import/Debug.php',\n        params : {\n            action: '_rebuild',\n            reader_id : d.id\n        }\n    });\n    \n}\n"
-             },
-             "text" : "Rebuild & Download",
-             "xtype" : "Button",
-             "$ xns" : "Roo.Toolbar"
-            }
-           ]
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "ID",
-           "width" : 50,
-           "$ renderer" : "function(v,x,r) {\n    return String.format('{0}', v); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "id"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Fetched",
-           "width" : 50,
-           "$ renderer" : "function(v,x,r) { \n    return String.format('{0}', r.data.fetched * 1 ? v.format('h:i d/M') : '-'); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "fetched_dt"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Campaign",
-           "width" : 50,
-           "$ renderer" : "function(v,x,r) {\n    return String.format('{0}', v); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "campaign_id_name"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Headline",
-           "width" : 150,
-           "$ renderer" : "function(v,x,r) {\n    \n    return String.format('{0}', v); \n}",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "headline"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "sortable" : true,
-           "header" : "Body",
-           "width" : 200,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "body"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "From",
-           "width" : 100,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "src_id_description"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "URL",
-           "width" : 200,
-           "$ renderer" : "function(v,x,r) { return String.format('<a href=\"{0}\" target=\"_new\">{0}</a>', v.length ? v : r.data.url ); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "real_url"
-          },
-          {
-           "xtype" : "ColumnModel",
-           "header" : "Language",
-           "width" : 50,
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
-           "$ xns" : "Roo.grid",
-           "* prop" : "colModel[]",
-           "dataIndex" : "language"
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.ReaderArticle.js b/PressRelease/Pman.Tab.ReaderArticle.js
deleted file mode 100644 (file)
index f21930c..0000000
+++ /dev/null
@@ -1,1341 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.ReaderArticle = new Roo.XComponent({
-
- _strings : {
-  '59716c97497eb9694541f7c3d37b1a4d' :"Country",
-  '490aa6e856ccf208a054389e47ce0d06' :"Id",
-  '4994a8ffeba4ac3140beb89e8d41f174' :"Language",
-  '8444e81d652b084d70c71cd7d19ac0cf' :"Displaying Person{0} - {1} of {2}",
-  '13348442cc6a27032d2b4aa28b75a5d3' :"Search",
-  'b841c326ce2658d34b4430a9dc46c0e4' :"Rebuild & Download",
-  '479e527f94b9416c7c642519be65f1f2' :"Reader Article",
-  'b718adec73e04ce3ec720dd11a06a308' :"ID",
-  'f00a1d99f6f47917006e88a803ecde1f' :"Campaign",
-  '1243daf593fa297e07ab03bf06d925af' :"Searching...",
-  '07f366f8c885267f837f79170f05a990' :"Build feeds",
-  'a2ceb7c17a391cb351d6f4b084fc9c3d' :"reader_sub",
-  '5a7b0bf7386b00815019c1381be4f425' :"Last Fetch",
-  '30232180c3389e421452954d1790036e' :"Reader Articles",
-  '5da618e8e4b89c66fe86e32cdafde142' :"From",
-  '24f27bda5dd2c488aa9bc7700ba98c34' :"Select Projects",
-  'ac101b32dda4448cf13a93fe283dddd8' :"Body",
-  'a80425472d94ae02c836da5b6f205b7b' :"Feed",
-  '0553dc409f5f786ede7dc1dd1f94c2d8' :"Diff Article",
-  '689252537fba5b4613c47664625652b0' :"Fetched",
-  'ac78da22726179c0aca7474021f77977' :"Link Check",
-  '175b08878b33de0ba64fb8072292c69d' :"Download Article",
-  'c6568e77f61109390e82d035aaacaef0' :"Headline",
-  'e6b391a8d2c4d45902a23a8b6585703d' :"URL"
- },
-
-  part     :  ["PressRelease", "ReaderArticle" ],
-  order    : '999-Pman.Tab.ReaderArticle',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseTab',
-  name     : "unnamed module",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   background : true,
-   region : 'center',
-   title : _this._strings['30232180c3389e421452954d1790036e'] /* Reader Articles */,
-   xns : Roo,
-   '|xns' : 'Roo',
-   xtype : 'NestedLayoutPanel',
-   layout : {
-    xns : Roo,
-    '|xns' : 'Roo',
-    xtype : 'BorderLayout',
-    center : {
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    south : {
-     height : 300,
-     split : true,
-     xns : Roo,
-     '|xns' : 'Roo',
-     xtype : 'LayoutRegion'
-    },
-    items  : [
-     {
-      background : true,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'center',
-      tableName : 'reader_sub',
-      title : _this._strings['a2ceb7c17a391cb351d6f4b084fc9c3d'] /* reader_sub */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.feedpanel = this;
-            if (_this.feedgrid) {
-                _this.feedgrid.ds.load({});
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'supplier_id_code',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        render : function() 
-         {
-             _this.feedgrid = this; 
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.feedpanel.active) {
-             
-                 this.ds.load({});
-         
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             if (!_this.dialog) return;
-             _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
-                 _this.grid.footer.onClick('first');
-             }); 
-         }
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          allowBlank : true,
-          displayField : 'name',
-          editable : false,
-          emptyText : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
-          forceSelection : true,
-          listWidth : 400,
-          loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
-          minChars : 2,
-          pageSize : 20,
-          qtip : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
-          queryParam : '',
-          selectOnFocus : true,
-          tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>#{pressrelease_id} {name}</b></div>',
-          triggerAction : 'all',
-          typeAhead : true,
-          valueField : 'id',
-          width : 300,
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'ComboBox',
-          listeners : {
-           render : function (_self)
-            {
-                _this.projectCombo = _self;
-            },
-           select : function (combo, record, index)
-            {
-               _this.feedgrid.ds.load({});
-            }
-          },
-          store : {
-           remoteSort : true,
-           sortInfo : { direction : 'DESC', field: 'pressrelease_id' },
-           xns : Roo.data,
-           '|xns' : 'Roo.data',
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 // set more here
-                 o.params['query[project_indaterange]'] = 'C';
-                 
-             }
-           },
-           proxy : {
-            method : 'GET',
-            url : baseURL + '/Roo/Projects.php',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            '|xns' : 'Roo.data',
-            xtype : 'JsonReader'
-           }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          text : _this._strings['07f366f8c885267f837f79170f05a990'] /* Build feeds */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-             
-                
-                new Pman.Request({
-            
-                    url : baseURL + '/Roo/Pressrelease_entry',
-                    method  : 'GET',
-                    params : {
-                        _build_feed :     _this.projectCombo.getValue()
-                    },
-                    success : function () {
-                         _this.feedgrid.ds.load({});
-                    }
-                    
-            
-                });
-                
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : '', direction: 'ASC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-              o.params = o.params || {};
-              o.params.limit = 100;
-              o.params.project_id = _this.projectCombo.getValue();
-              if (!    o.params.project_id ) {
-                  return false;
-              }
-              
-              
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/CampaignAssign.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'feed_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'campaign_assign_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_alt_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_no_reset_sent',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_action_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_project_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_deleted_dt',
-                 'type': 'date'
-             },
-             {
-                 'name': 'person_id_firstname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_lastname',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_name_facebook',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_blog',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_twitter',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_linkedin',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_mobile',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_phone_direct',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_honor',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_countries',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_addr_state',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_country_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_city_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'person_id_chosen_title',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_google_plus',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_blog2',
-                 'type': 'string'
-             },
-             {
-                 'name': 'person_id_url_blog3',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'feed_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_lastfetch_dt',
-                 'type': 'date'
-             },
-             {
-                 'name': 'feed_id_description',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_parser',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_params',
-                 'type': 'string'
-             },
-             {
-                 'name': 'feed_id_country',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'campaign_assign_id_supplier_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'campaign_assign_id_assigntype',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_languages',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_countries',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_description',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_project_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'campaign_assign_id_sourcelanguages',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_assignimage_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'campaign_assign_id_remote_username',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_remote_password',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_delivery_time',
-                 'type': 'string'
-             },
-             {
-                 'name': 'campaign_assign_id_search_terms',
-                 'type': 'string'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       sm : {
-        singleSelect : true,
-        xns : Roo.grid,
-        '|xns' : 'Roo.grid',
-        xtype : 'RowSelectionModel',
-        listeners : {
-         afterselectionchange : function (_self)
-          {
-              _this.grid.footer.onClick('first');
-          }
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'id',
-         header : _this._strings['490aa6e856ccf208a054389e47ce0d06'] /* Id */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'lastfetched',
-         header : _this._strings['5a7b0bf7386b00815019c1381be4f425'] /* Last Fetch */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 130,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'supplier_id_code',
-         header : _this._strings['a80425472d94ae02c836da5b6f205b7b'] /* Feed */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'countries',
-         header : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'languages',
-         header : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'] /* Language */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     },
-     {
-      autoScroll : true,
-      background : false,
-      fitContainer : true,
-      fitToframe : true,
-      region : 'south',
-      tableName : 'reader_article',
-      title : _this._strings['479e527f94b9416c7c642519be65f1f2'] /* Reader Article */,
-      xns : Roo,
-      '|xns' : 'Roo',
-      xtype : 'GridPanel',
-      listeners : {
-       activate : function() {
-            _this.panel = this;
-            if (_this.grid) {
-                _this.grid.footer.onClick('first');
-            }
-        }
-      },
-      grid : {
-       autoExpandColumn : 'headline',
-       loadMask : true,
-       xns : Roo.grid,
-       '|xns' : 'Roo.grid',
-       xtype : 'Grid',
-       listeners : {
-        cellclick : function (_self, rowIndex, columnIndex, e)
-         {
-             return;
-                 var di = this.colModel.getDataIndex(columnIndex);
-                 if (di != 'active') {
-                     return;
-                 }
-                  
-                 var rec = _this.grid.ds.getAt(rowIndex);
-                 
-                 rec.set('active', rec.data.active ? 0 : 1);
-                 rec.commit();
-                  
-                 
-         },
-        render : function() 
-         {
-             _this.grid = this; 
-             if (!_this.dialog) {
-                 _this.dialog = Pman.Dialog.PersonEdit;
-                 
-             }
-             //_this.dialog = Pman.Dialog.FILL_IN
-             if (_this.panel.active) {
-                this.footer.onClick('first');
-             }
-         },
-        rowdblclick : function (_self, rowIndex, e)
-         {
-             return;
-             if (!_this.dialog) return;
-             _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                 _this.grid.footer.onClick('first');
-             }); 
-         }
-       },
-       footer : {
-        displayInfo : true,
-        displayMsg : _this._strings['8444e81d652b084d70c71cd7d19ac0cf'] /* Displaying Person{0} - {1} of {2} */,
-        pageSize : 100,
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'PagingToolbar'
-       },
-       toolbar : {
-        xns : Roo,
-        '|xns' : 'Roo',
-        xtype : 'Toolbar',
-        items  : [
-         {
-          text : _this._strings['13348442cc6a27032d2b4aa28b75a5d3'] /* Search */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'TextItem'
-         },
-         {
-          xns : Roo.form,
-          '|xns' : 'Roo.form',
-          xtype : 'TextField',
-          listeners : {
-           render : function (_self)
-            {
-                _this.searchBox = _self;
-            },
-           show : function (_self,e)
-            {
-                if (e.getCharCode() != 13) {
-                    return;
-                }
-                _this.grid.footer.onClick('first');
-            },
-           specialkey : function (_self, e)
-            {
-              if (e.getKey() == 13) {
-                _this.grid.footer.onClick('first');
-              }
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/search.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          cls : 'x-btn-icon',
-          icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function (_self, e)
-            {
-            _this.searchBox.setValue('');
-                _this.grid.footer.onClick('first');
-            }
-          }
-         },
-         {
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Fill'
-         },
-         {
-          text : _this._strings['ac78da22726179c0aca7474021f77977'] /* Link Check */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var sels= _this.grid.selModel.getSelections();
-                
-                if (!sels || !sels.length) {
-                    Roo.MessageBox.alert("Error", "Select some documents");
-                    return;
-                }
-                
-                if(sels.length > 1){
-                    Roo.MessageBox.alert('Error', 'you can only select one document');
-                    return;
-                }
-                var d = sels[0].data;
-                
-                //Roo.MessageBox.prompt('Debugging Diff', 'Fill in the release id', function(e, v){
-                
-                    new Pman.Request({
-                        url : baseURL + '/PressRelease/Import/Debug.php',
-                        method :'GET',
-                        params : {
-                            action: '_linkcheck',
-                            reader_id : d.id,
-                            project_id: _this.projectCombo.getValue()
-                        },
-                        success : function(res) {
-                            // do nothing
-                            Roo.MessageBox.alert('Done', res.data+'% Matched');
-                        },
-                        failure : function() 
-                        {
-                            Roo.MessageBox.alert("Error", "saving failed", function() {
-                                _this.grid.footer.onClick('first');
-                            });
-                        }
-                    });
-                    
-                   // });
-                
-                
-                
-                
-                
-            }
-          }
-         },
-         {
-          text : _this._strings['0553dc409f5f786ede7dc1dd1f94c2d8'] /* Diff Article */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var sels= _this.grid.selModel.getSelections();
-                
-                if (!sels || !sels.length) {
-                    Roo.MessageBox.alert("Error", "Select some documents");
-                    return;
-                }
-                
-                if(sels.length > 1){
-                    Roo.MessageBox.alert('Error', 'you can only select one document');
-                    return;
-                }
-                var d = sels[0].data;
-                
-                //Roo.MessageBox.prompt('Debugging Diff', 'Fill in the release id', function(e, v){
-                
-                    new Pman.Request({
-                        url : baseURL + '/PressRelease/Import/Debug.php',
-                        method :'GET',
-                        params : {
-                            action: '_diff',
-                            reader_id : d.id,
-                            project_id: _this.projectCombo.getValue()
-                        },
-                        success : function(res) {
-                            // do nothing
-                            Roo.MessageBox.alert('Done', res.data+'% Matched');
-                        },
-                        failure : function() 
-                        {
-                            Roo.MessageBox.alert("Error", "saving failed", function() {
-                                _this.grid.footer.onClick('first');
-                            });
-                        }
-                    });
-                    
-                   // });
-                
-                
-                
-                
-                
-            }
-          }
-         },
-         {
-          text : _this._strings['175b08878b33de0ba64fb8072292c69d'] /* Download Article */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var sels= _this.grid.selModel.getSelections();
-                
-                if (!sels || !sels.length) {
-                    Roo.MessageBox.alert("Error", "Select some documents");
-                    return;
-                }
-                
-                if(sels.length > 1){
-                    Roo.MessageBox.alert('Error', 'you can only select one document');
-                    return;
-                }
-                var d = sels[0].data;
-                
-                
-                new Pman.Download({
-                    newWindow: true,
-                    url : baseURL + '/PressRelease/Import/Debug.php',
-                    params : {
-                        action: '_download',
-                        reader_id : d.id
-                    }
-                });
-                
-            }
-          }
-         },
-         {
-          text : _this._strings['b841c326ce2658d34b4430a9dc46c0e4'] /* Rebuild & Download */,
-          xns : Roo.Toolbar,
-          '|xns' : 'Roo.Toolbar',
-          xtype : 'Button',
-          listeners : {
-           click : function()
-            {
-                var sels= _this.grid.selModel.getSelections();
-                
-                if (!sels || !sels.length) {
-                    Roo.MessageBox.alert("Error", "Select some documents");
-                    return;
-                }
-                
-                if(sels.length > 1){
-                    Roo.MessageBox.alert('Error', 'you can only select one document');
-                    return;
-                }
-                var d = sels[0].data;
-                
-                
-                new Pman.Download({
-                    newWindow: true,
-                    url : baseURL + '/PressRelease/Import/Debug.php',
-                    params : {
-                        action: '_rebuild',
-                        reader_id : d.id
-                    }
-                });
-                
-            }
-          }
-         }
-        ]
-       },
-       dataSource : {
-        remoteSort : true,
-        sortInfo : { field : 'id', direction: 'DESC' },
-        xns : Roo.data,
-        '|xns' : 'Roo.data',
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, o)
-          {
-              if (!_this.feedgrid) {
-                  return false;
-              }
-              
-              o.params = o.params || {};
-              
-              var pr = _this.projectCombo.getValue();
-              if (pr *1 > 0 ) {
-                  o.params.campaign_id = pr;
-              }
-              
-              o.params._search = _this.searchBox.getValue();
-          
-              var fg = _this.feedgrid.selModel.getSelected();
-              if (fg) {
-                  o.params.src_id = fg.data.id;
-              }
-              
-          },
-         update : function (_self, record, operation)
-          {
-              if (operation != 'commit') {
-                  return;
-              }
-              // only used to change active status.
-              
-              new Pman.Request({
-                  url : baseURL + '/Roo/Person.php',
-                  method :'POST',
-                  params : {
-                      id : record.data.id,
-                      active: record.data.active
-                      
-                  },
-                  success : function() {
-                      // do nothing
-                      
-                      _this.grid.ds.remove(record);
-                      
-                  },
-                  failure : function() 
-                  {
-                      Roo.MessageBox.alert("Error", "saving failed", function() {
-                          _this.grid.footer.onClick('first');
-                      });
-                  }
-              });
-          }
-        },
-        proxy : {
-         method : 'GET',
-         url : baseURL + '/Roo/Reader_article.php',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         fields : [
-             {
-                 'name': 'id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'no_reset_sent',
-                 'type': 'int'
-             },
-             {
-                 'name': 'action_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'office_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'office_id_company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'office_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'office_id_address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'office_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'office_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'office_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'office_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_code',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_address',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_tel',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_isOwner',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_logo_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_background_color',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_comptype',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_url',
-                 'type': 'string'
-             },
-             {
-                 'name': 'company_id_main_office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_created_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_created_dt',
-                 'type': 'date'
-             },
-             {
-                 'name': 'company_id_updated_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'company_id_updated_dt',
-                 'type': 'date'
-             },
-             {
-                 'name': 'company_id_passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_code',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_client_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_team_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_file_location',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_open_date',
-                 'type': 'date'
-             },
-             {
-                 'name': 'project_id_open_by',
-                 'type': 'int'
-             },
-             {
-                 'name': 'project_id_close_date',
-                 'type': 'date'
-             },
-             {
-                 'name': 'project_id_countries',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_languages',
-                 'type': 'string'
-             },
-             {
-                 'name': 'project_id_agency_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_office_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_name',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_phone',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_fax',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_email',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_company_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_role',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_active',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_remarks',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_passwd',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_owner_id',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_lang',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_no_reset_sent',
-                 'type': 'int'
-             },
-             {
-                 'name': 'owner_id_action_type',
-                 'type': 'string'
-             },
-             {
-                 'name': 'owner_id_project_id',
-                 'type': 'int'
-             }
-         ],
-         id : 'id',
-         root : 'data',
-         totalProperty : 'total',
-         xns : Roo.data,
-         '|xns' : 'Roo.data',
-         xtype : 'JsonReader'
-        }
-       },
-       colModel : [
-        {
-         dataIndex : 'id',
-         header : _this._strings['b718adec73e04ce3ec720dd11a06a308'] /* ID */,
-         renderer : function(v,x,r) {
-             return String.format('{0}', v); 
-         },
-         sortable : true,
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'fetched_dt',
-         header : _this._strings['689252537fba5b4613c47664625652b0'] /* Fetched */,
-         renderer : function(v,x,r) { 
-             return String.format('{0}', r.data.fetched * 1 ? v.format('h:i d/M') : '-'); 
-         },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'campaign_id_name',
-         header : _this._strings['f00a1d99f6f47917006e88a803ecde1f'] /* Campaign */,
-         renderer : function(v,x,r) {
-             return String.format('{0}', v); 
-         },
-         sortable : true,
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'headline',
-         header : _this._strings['c6568e77f61109390e82d035aaacaef0'] /* Headline */,
-         renderer : function(v,x,r) {
-             
-             return String.format('{0}', v); 
-         },
-         sortable : true,
-         width : 150,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'body',
-         header : _this._strings['ac101b32dda4448cf13a93fe283dddd8'] /* Body */,
-         renderer : function(v) { return String.format('{0}', v); },
-         sortable : true,
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'src_id_description',
-         header : _this._strings['5da618e8e4b89c66fe86e32cdafde142'] /* From */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 100,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'real_url',
-         header : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'] /* URL */,
-         renderer : function(v,x,r) { return String.format('<a href="{0}" target="_new">{0}</a>', v.length ? v : r.data.url ); },
-         width : 200,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        },
-        {
-         dataIndex : 'language',
-         header : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'] /* Language */,
-         renderer : function(v) { return String.format('{0}', v); },
-         width : 50,
-         xns : Roo.grid,
-         '|xns' : 'Roo.grid',
-         xtype : 'ColumnModel'
-        }
-       ]
-      }
-     }
-    ]
-   }
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.ReleaseAutoImport.bjs b/PressRelease/Pman.Tab.ReleaseAutoImport.bjs
deleted file mode 100644 (file)
index 631febe..0000000
+++ /dev/null
@@ -1,294 +0,0 @@
-{
- "name" : "Pman.Tab.ReleaseAutoImport",
- "parent" : "Pman.Tab.PressReleaseTab",
- "title" : "",
- "path" : "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.ReleaseAutoImport.bjs",
- "permname" : "",
- "modOrder" : "888",
- "strings" : {
-  "8444e81d652b084d70c71cd7d19ac0cf" : "Displaying Person{0} - {1} of {2}",
-  "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
-  "4994a8ffeba4ac3140beb89e8d41f174" : "Language",
-  "ae739a236065a45c64ad51aacb19498c" : "Active?",
-  "b718adec73e04ce3ec720dd11a06a308" : "ID",
-  "4d5132198405b8a7040014093eaf2a97" : "Local Search URL",
-  "bd4ee57b129ed3d30775c19232ba1c15" : "Local Search Allow param",
-  "2d6ac83e6e4f45464be94fff0a4078c7" : "Local Search?",
-  "4947239eaadfb5281602e095efb71236" : "Run Fetch",
-  "f9b8e4200f58dc66e0d9a7be17e06e46" : "Delete   ",
-  "a8abd77bc82b1b3ba04122af34016fcc" : "Auto Import After Release",
-  "f1174ecbbc232f948717979daf04cf08" : "No Person found",
-  "e6b391a8d2c4d45902a23a8b6585703d" : "URL"
- },
- "items" : [
-  {
-   "listeners" : {
-    "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        //_this.grid.footer.onClick('first');\n    }\n}"
-   },
-   "autoScroll" : true,
-   "background" : true,
-   "fitToframe" : true,
-   "region" : "center",
-   "title" : "Auto Import After Release",
-   "xtype" : "GridPanel",
-   "fitContainer" : true,
-   "$ xns" : "Roo",
-   "tableName" : "Person",
-   "items" : [
-    {
-     "listeners" : {
-      "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n    var di = this.colModel.getDataIndex(columnIndex);\n    if (di != 'use_local_search' && di != 'is_active') {\n        return;\n    }\n    \n    var rec = _this.grid.ds.getAt(rowIndex);\n\n    rec.set(di, rec.data[di] ? 0 : 1);\n    rec.commit();\n}",
-      "|render" : "function() \n{\n    _this.grid = this; \n    \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active){\n        if(typeof(Pman.Tab.PressReleaseTab) != 'undefined'){\n            this.footer.onClick('first');\n        }\n    }\n}",
-      "afteredit" : "function (e)\n{\n    if(e.record.data.url){\n        e.record.commit();\n    }\n}"
-     },
-     "autoExpandColumn" : "url",
-     "xtype" : "EditorGrid",
-     "loadMask" : true,
-     "clicksToEdit" : 1,
-     "$ xns" : "Roo.grid",
-     "* prop" : "grid",
-     "items" : [
-      {
-       "listeners" : {
-        "update" : "function (_self, record, operation)\n{\n    if (operation != 'commit') {\n        return;\n    }\n    \n    // only used to change active status.\n    if(!Roo.form.VTypes.url(record.data.url)){\n        Roo.MessageBox.alert('Error', Roo.form.VTypes.urlText);\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Pressrelease_auto_import.php',\n        method :'POST',\n        params : {\n            id : record.data.id,\n            url: record.data.url,\n            is_active: record.data.is_active,\n            language: record.data.language,\n            use_local_search: record.data.use_local_search,\n            local_search_url: record.data.local_search_url,\n            local_search_allow: record.data.local_search_allow,\n        },\n        success : function(res) {\n            // do nothing\n            Roo.log(res);\n            if (!record.data.id) {\n                record.set('id', res.data.id);\n            }\n            \n            \n        },\n        failure : function(res) \n        {\n            Roo.MessageBox.alert(\"Error\", res.errorMsg, function() {\n                _this.grid.footer.onClick('first');\n            });\n        }\n    });\n}",
-        "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    \n}"
-       },
-       "xtype" : "Store",
-       "remoteSort" : true,
-       "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
-       "$ xns" : "Roo.data",
-       "* prop" : "dataSource",
-       "items" : [
-        {
-         "$ url" : "baseURL + '/Roo/Pressrelease_auto_import.php'",
-         "xtype" : "HttpProxy",
-         "method" : "GET",
-         "$ xns" : "Roo.data",
-         "* prop" : "proxy"
-        },
-        {
-         "id" : "id",
-         "root" : "data",
-         "xtype" : "JsonReader",
-         "$ xns" : "Roo.data",
-         "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'phone',\n        'type': 'string'\n    },\n    {\n        'name': 'fax',\n        'type': 'string'\n    },\n    {\n        'name': 'email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'role',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'lang',\n        'type': 'string'\n    },\n    {\n        'name': 'no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'office_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'office_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_address',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_tel',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_isOwner',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_logo_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_background_color',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_comptype',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_url',\n        'type': 'string'\n    },\n    {\n        'name': 'company_id_main_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_created_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_updated_by',\n        'type': 'int'\n    },\n    {\n        'name': 'company_id_updated_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'company_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    }\n]",
-         "* prop" : "reader",
-         "totalProperty" : "total"
-        }
-       ]
-      },
-      {
-       "pageSize" : 100,
-       "xtype" : "PagingToolbar",
-       "emptyMsg" : "No Person found",
-       "$ xns" : "Roo",
-       "displayMsg" : "Displaying Person{0} - {1} of {2}",
-       "displayInfo" : true,
-       "* prop" : "footer"
-      },
-      {
-       "xtype" : "Toolbar",
-       "$ xns" : "Roo",
-       "* prop" : "toolbar",
-       "items" : [
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var ds = _this.grid.ds;\n     \n    var add = ds.reader.newRow({    \n             id: 0, \n             url: ''\n    });\n    var r = ds.data.length;\n    ds.insert(r, add);\n    _this.grid.startEditing(r, 0); // name... \n}\n"
-         },
-         "text" : "Add",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "xtype" : "Fill",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var s = Pman.Tab.ReleaseAutoImport.grid.selModel.selection;\n    if (!s){\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    if(s.record.data.use_local_search < 1){\n        Roo.MessageBox.alert('Error', 'Please enable the Local Search');\n        return;\n    }\n    \n    new Pman.Download({\n        newWindow : true,\n        url : baseURL + '/PressRelease/Import/LocalSearch/Fetch/'+ s.record.id,\n        params : {\n            \n        }\n    });\n    \n}\n"
-         },
-         "text" : "Run Fetch",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
-         "$ xns" : "Roo.Toolbar"
-        },
-        {
-         "listeners" : {
-          "|click" : "function()\n{\n    var s = Pman.Tab.ReleaseAutoImport.grid.selModel.selection;\n    if (!s){\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Pressrelease_auto_import.php',\n        method :'POST',\n        params : {\n            _delete : s.record.data.id\n        },\n        success : function() {\n            // do nothing\n            \n            _this.grid.footer.onClick('first');\n            \n        },\n        failure : function() \n        {\n            Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n                _this.grid.footer.onClick('first');\n            });\n        }\n    });\n}\n"
-         },
-         "text" : "Delete   ",
-         "xtype" : "Button",
-         "cls" : "x-btn-text-icon",
-         "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
-         "$ xns" : "Roo.Toolbar"
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "ID",
-       "width" : 75,
-       "$ renderer" : "function(v,x,r)\n{\n    return String.format('{0}', v);\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "id"
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "URL",
-       "width" : 75,
-       "$ renderer" : "function(v,x,r)\n{\n    return String.format('{0}', v);\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "url",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor",
-         "items" : [
-          {
-           "xtype" : "TextField",
-           "$ xns" : "Roo.form",
-           "* prop" : "field"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "sortable" : true,
-       "header" : "Language",
-       "width" : 200,
-       "$ renderer" : "function(v,x,r)\n{\n    return String.format('{0}', r.data.language_name);\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "language",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor",
-         "items" : [
-          {
-           "listeners" : {
-            "select" : "function (combo, record, index)\n{\n    Roo.log(record);\n}"
-           },
-           "listWidth" : 200,
-           "triggerAction" : "all",
-           "displayField" : "title",
-           "hiddenName" : "language",
-           "valueField" : "code",
-           "xtype" : "ComboBox",
-           "allowBlank" : true,
-           "editable" : false,
-           "width" : 200,
-           "$ xns" : "Roo.form",
-           "* prop" : "field",
-           "mode" : "local",
-           "name" : "language_name",
-           "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
-           "items" : [
-            {
-             "| data" : "(function() {\n    return Pman.I18n.simpleStoreData('l');\n})()",
-             "xtype" : "SimpleStore",
-             "$ fields" : "[  'code', 'title' ]",
-             "$ xns" : "Roo.data",
-             "* prop" : "store"
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Local Search URL",
-       "width" : 300,
-       "$ renderer" : "function(v,x,r)\n{\n    return String.format('{0}', v);\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "local_search_url",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor",
-         "items" : [
-          {
-           "xtype" : "TextField",
-           "$ xns" : "Roo.form",
-           "* prop" : "field"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Local Search Allow param",
-       "width" : 300,
-       "$ renderer" : "function(v,x,r)\n{\n    return String.format('{0}', v);\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "local_search_allow",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor",
-         "items" : [
-          {
-           "xtype" : "TextField",
-           "$ xns" : "Roo.form",
-           "* prop" : "field"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Local Search?",
-       "width" : 80,
-       "$ renderer" : "function(v)\n{\n    var state = v> 0 ?  '-checked' : '';\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "use_local_search",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor"
-        }
-       ]
-      },
-      {
-       "xtype" : "ColumnModel",
-       "header" : "Active?",
-       "width" : 80,
-       "$ renderer" : "function(v)\n{\n    var state = v> 0 ?  '-checked' : '';\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n}",
-       "$ xns" : "Roo.grid",
-       "* prop" : "colModel[]",
-       "dataIndex" : "is_active",
-       "items" : [
-        {
-         "xtype" : "GridEditor",
-         "$ xns" : "Roo.grid",
-         "* prop" : "editor"
-        }
-       ]
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.ReleaseAutoImport.js b/PressRelease/Pman.Tab.ReleaseAutoImport.js
deleted file mode 100644 (file)
index 2ae8d2a..0000000
+++ /dev/null
@@ -1,808 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.ReleaseAutoImport = new Roo.XComponent({
-
- _strings : {
-  '8444e81d652b084d70c71cd7d19ac0cf' :"Displaying Person{0} - {1} of {2}",
-  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
-  '4994a8ffeba4ac3140beb89e8d41f174' :"Language",
-  'ae739a236065a45c64ad51aacb19498c' :"Active?",
-  'b718adec73e04ce3ec720dd11a06a308' :"ID",
-  '4d5132198405b8a7040014093eaf2a97' :"Local Search URL",
-  'bd4ee57b129ed3d30775c19232ba1c15' :"Local Search Allow param",
-  '2d6ac83e6e4f45464be94fff0a4078c7' :"Local Search?",
-  '4947239eaadfb5281602e095efb71236' :"Run Fetch",
-  'f9b8e4200f58dc66e0d9a7be17e06e46' :"Delete   ",
-  'a8abd77bc82b1b3ba04122af34016fcc' :"Auto Import After Release",
-  'f1174ecbbc232f948717979daf04cf08' :"No Person found",
-  'e6b391a8d2c4d45902a23a8b6585703d' :"URL"
- },
-
-  part     :  ["PressRelease", "ReleaseAutoImport" ],
-  order    : '888-Pman.Tab.ReleaseAutoImport',
-  region   : 'center',
-  parent   : 'Pman.Tab.PressReleaseTab',
-  name     : "unnamed module",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   grid : {
-    dataSource : {
-     proxy : {
-      '|xns' : 'Roo.data',
-      method : 'GET',
-      url : baseURL + '/Roo/Pressrelease_auto_import.php',
-      xns : Roo.data,
-      xtype : 'HttpProxy'
-     },
-     reader : {
-      '|xns' : 'Roo.data',
-      fields : [
-          {
-              'name': 'id',
-              'type': 'int'
-          },
-          {
-              'name': 'office_id',
-              'type': 'int'
-          },
-          {
-              'name': 'name',
-              'type': 'string'
-          },
-          {
-              'name': 'phone',
-              'type': 'string'
-          },
-          {
-              'name': 'fax',
-              'type': 'string'
-          },
-          {
-              'name': 'email',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id',
-              'type': 'int'
-          },
-          {
-              'name': 'role',
-              'type': 'string'
-          },
-          {
-              'name': 'active',
-              'type': 'int'
-          },
-          {
-              'name': 'remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'passwd',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'lang',
-              'type': 'string'
-          },
-          {
-              'name': 'no_reset_sent',
-              'type': 'int'
-          },
-          {
-              'name': 'action_type',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id',
-              'type': 'int'
-          },
-          {
-              'name': 'office_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'office_id_company_id',
-              'type': 'int'
-          },
-          {
-              'name': 'office_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'office_id_address',
-              'type': 'string'
-          },
-          {
-              'name': 'office_id_phone',
-              'type': 'string'
-          },
-          {
-              'name': 'office_id_fax',
-              'type': 'string'
-          },
-          {
-              'name': 'office_id_email',
-              'type': 'string'
-          },
-          {
-              'name': 'office_id_role',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_code',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_address',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_tel',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_fax',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_email',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_isOwner',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_logo_id',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_background_color',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_comptype',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_url',
-              'type': 'string'
-          },
-          {
-              'name': 'company_id_main_office_id',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_created_by',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_created_dt',
-              'type': 'date'
-          },
-          {
-              'name': 'company_id_updated_by',
-              'type': 'int'
-          },
-          {
-              'name': 'company_id_updated_dt',
-              'type': 'date'
-          },
-          {
-              'name': 'company_id_passwd',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_code',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_active',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_type',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_client_id',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_team_id',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_file_location',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_open_date',
-              'type': 'date'
-          },
-          {
-              'name': 'project_id_open_by',
-              'type': 'int'
-          },
-          {
-              'name': 'project_id_close_date',
-              'type': 'date'
-          },
-          {
-              'name': 'project_id_countries',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_languages',
-              'type': 'string'
-          },
-          {
-              'name': 'project_id_agency_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_office_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_name',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_phone',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_fax',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_email',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_company_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_role',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_active',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_remarks',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_passwd',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_owner_id',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_lang',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_no_reset_sent',
-              'type': 'int'
-          },
-          {
-              'name': 'owner_id_action_type',
-              'type': 'string'
-          },
-          {
-              'name': 'owner_id_project_id',
-              'type': 'int'
-          }
-      ],
-      id : 'id',
-      root : 'data',
-      totalProperty : 'total',
-      xns : Roo.data,
-      xtype : 'JsonReader'
-     },
-     '|xns' : 'Roo.data',
-     remoteSort : true,
-     sortInfo : { field : 'name', direction: 'ASC' },
-     xns : Roo.data,
-     xtype : 'Store',
-     listeners : {
-      beforeload : function (_self, o)
-       {
-           o.params = o.params || {};
-           
-       },
-      update : function (_self, record, operation)
-       {
-           if (operation != 'commit') {
-               return;
-           }
-           
-           // only used to change active status.
-           if(!Roo.form.VTypes.url(record.data.url)){
-               Roo.MessageBox.alert('Error', Roo.form.VTypes.urlText);
-               return;
-           }
-           
-           new Pman.Request({
-               url : baseURL + '/Roo/Pressrelease_auto_import.php',
-               method :'POST',
-               params : {
-                   id : record.data.id,
-                   url: record.data.url,
-                   is_active: record.data.is_active,
-                   language: record.data.language,
-                   use_local_search: record.data.use_local_search,
-                   local_search_url: record.data.local_search_url,
-                   local_search_allow: record.data.local_search_allow,
-               },
-               success : function(res) {
-                   // do nothing
-                   Roo.log(res);
-                   if (!record.data.id) {
-                       record.set('id', res.data.id);
-                   }
-                   
-                   
-               },
-               failure : function(res) 
-               {
-                   Roo.MessageBox.alert("Error", res.errorMsg, function() {
-                       _this.grid.footer.onClick('first');
-                   });
-               }
-           });
-       }
-     },
-     items : [
-
-     ]
-
-    },
-    footer : {
-     '|xns' : 'Roo',
-     displayInfo : true,
-     displayMsg : _this._strings['8444e81d652b084d70c71cd7d19ac0cf'],
-     emptyMsg : _this._strings['f1174ecbbc232f948717979daf04cf08'],
-     pageSize : 100,
-     xns : Roo,
-     xtype : 'PagingToolbar'
-    },
-    toolbar : {
-     '|xns' : 'Roo',
-     xns : Roo,
-     xtype : 'Toolbar',
-     items : [
-      {
-       '|xns' : 'Roo.Toolbar',
-       cls : 'x-btn-text-icon',
-       icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
-       text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'],
-       xns : Roo.Toolbar,
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var ds = _this.grid.ds;
-              
-             var add = ds.reader.newRow({    
-                      id: 0, 
-                      url: ''
-             });
-             var r = ds.data.length;
-             ds.insert(r, add);
-             _this.grid.startEditing(r, 0); // name... 
-         }
-       }
-      },
-      {
-       '|xns' : 'Roo.Toolbar',
-       xns : Roo.Toolbar,
-       xtype : 'Fill'
-      },
-      {
-       '|xns' : 'Roo.Toolbar',
-       cls : 'x-btn-text-icon',
-       icon : rootURL + '/Pman/templates/images/trash.gif',
-       text : _this._strings['4947239eaadfb5281602e095efb71236'],
-       xns : Roo.Toolbar,
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var s = Pman.Tab.ReleaseAutoImport.grid.selModel.selection;
-             if (!s){
-                 Roo.MessageBox.alert("Error", "Select a Row");
-                 return;
-             }
-             
-             if(s.record.data.use_local_search < 1){
-                 Roo.MessageBox.alert('Error', 'Please enable the Local Search');
-                 return;
-             }
-             
-             new Pman.Download({
-                 newWindow : true,
-                 url : baseURL + '/PressRelease/Import/LocalSearch/Fetch/'+ s.record.id,
-                 params : {
-                     
-                 }
-             });
-             
-         }
-       }
-      },
-      {
-       '|xns' : 'Roo.Toolbar',
-       cls : 'x-btn-text-icon',
-       icon : rootURL + '/Pman/templates/images/trash.gif',
-       text : _this._strings['f9b8e4200f58dc66e0d9a7be17e06e46'],
-       xns : Roo.Toolbar,
-       xtype : 'Button',
-       listeners : {
-        click : function()
-         {
-             var s = Pman.Tab.ReleaseAutoImport.grid.selModel.selection;
-             if (!s){
-                 Roo.MessageBox.alert("Error", "Select a Row");
-                 return;
-             }
-             
-             new Pman.Request({
-                 url : baseURL + '/Roo/Pressrelease_auto_import.php',
-                 method :'POST',
-                 params : {
-                     _delete : s.record.data.id
-                 },
-                 success : function() {
-                     // do nothing
-                     
-                     _this.grid.footer.onClick('first');
-                     
-                 },
-                 failure : function() 
-                 {
-                     Roo.MessageBox.alert("Error", "saving failed", function() {
-                         _this.grid.footer.onClick('first');
-                     });
-                 }
-             });
-         }
-       }
-      }
-     ]
-
-    },
-    '|xns' : 'Roo.grid',
-    autoExpandColumn : 'url',
-    clicksToEdit : 1,
-    loadMask : true,
-    xns : Roo.grid,
-    xtype : 'EditorGrid',
-    colModel : [
-      {
-       '|xns' : 'Roo.grid',
-       dataIndex : 'id',
-       header : _this._strings['b718adec73e04ce3ec720dd11a06a308'],
-       renderer : function(v,x,r)
-       {
-           return String.format('{0}', v);
-       },
-       sortable : true,
-       width : 75,
-       xns : Roo.grid,
-       xtype : 'ColumnModel'
-      },
-{
-       editor : {
-        field : {
-         '|xns' : 'Roo.form',
-         xns : Roo.form,
-         xtype : 'TextField'
-        },
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor',
-        items : [
-
-        ]
-
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'url',
-       header : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'],
-       renderer : function(v,x,r)
-       {
-           return String.format('{0}', v);
-       },
-       sortable : true,
-       width : 75,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      },
-{
-       editor : {
-        field : {
-         store : {
-          '|xns' : 'Roo.data',
-          data : (function() {
-              return Pman.I18n.simpleStoreData('l');
-          })(),
-          fields : [  'code', 'title' ],
-          xns : Roo.data,
-          xtype : 'SimpleStore'
-         },
-         '|xns' : 'Roo.form',
-         allowBlank : true,
-         displayField : 'title',
-         editable : false,
-         hiddenName : 'language',
-         listWidth : 200,
-         mode : 'local',
-         name : 'language_name',
-         tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>',
-         triggerAction : 'all',
-         valueField : 'code',
-         width : 200,
-         xns : Roo.form,
-         xtype : 'ComboBox',
-         listeners : {
-          select : function (combo, record, index)
-           {
-               Roo.log(record);
-           }
-         },
-         items : [
-
-         ]
-
-        },
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor',
-        items : [
-
-        ]
-
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'language',
-       header : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'],
-       renderer : function(v,x,r)
-       {
-           return String.format('{0}', r.data.language_name);
-       },
-       sortable : true,
-       width : 200,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      },
-{
-       editor : {
-        field : {
-         '|xns' : 'Roo.form',
-         xns : Roo.form,
-         xtype : 'TextField'
-        },
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor',
-        items : [
-
-        ]
-
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'local_search_url',
-       header : _this._strings['4d5132198405b8a7040014093eaf2a97'],
-       renderer : function(v,x,r)
-       {
-           return String.format('{0}', v);
-       },
-       width : 300,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      },
-{
-       editor : {
-        field : {
-         '|xns' : 'Roo.form',
-         xns : Roo.form,
-         xtype : 'TextField'
-        },
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor',
-        items : [
-
-        ]
-
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'local_search_allow',
-       header : _this._strings['bd4ee57b129ed3d30775c19232ba1c15'],
-       renderer : function(v,x,r)
-       {
-           return String.format('{0}', v);
-       },
-       width : 300,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      },
-{
-       editor : {
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor'
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'use_local_search',
-       header : _this._strings['2d6ac83e6e4f45464be94fff0a4078c7'],
-       renderer : function(v)
-       {
-           var state = v> 0 ?  '-checked' : '';
-           return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
-       },
-       width : 80,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      },
-{
-       editor : {
-        '|xns' : 'Roo.grid',
-        xns : Roo.grid,
-        xtype : 'GridEditor'
-       },
-       '|xns' : 'Roo.grid',
-       dataIndex : 'is_active',
-       header : _this._strings['ae739a236065a45c64ad51aacb19498c'],
-       renderer : function(v)
-       {
-           var state = v> 0 ?  '-checked' : '';
-           return '<img class="x-grid-check-icon' + state + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
-       },
-       width : 80,
-       xns : Roo.grid,
-       xtype : 'ColumnModel',
-       items : [
-
-       ]
-
-      }
-    ],
-    listeners : {
-     afteredit : function (e)
-      {
-          if(e.record.data.url){
-              e.record.commit();
-          }
-      },
-     cellclick : function (_self, rowIndex, columnIndex, e)
-      {
-          var di = this.colModel.getDataIndex(columnIndex);
-          if (di != 'use_local_search' && di != 'is_active') {
-              return;
-          }
-          
-          var rec = _this.grid.ds.getAt(rowIndex);
-      
-          rec.set(di, rec.data[di] ? 0 : 1);
-          rec.commit();
-      },
-     render : function() 
-      {
-          _this.grid = this; 
-          
-          //_this.dialog = Pman.Dialog.FILL_IN
-          if (_this.panel.active){
-              if(typeof(Pman.Tab.PressReleaseTab) != 'undefined'){
-                  this.footer.onClick('first');
-              }
-          }
-      }
-    },
-    items : [
-
-    ]
-
-   },
-   '|xns' : 'Roo',
-   autoScroll : true,
-   background : true,
-   fitContainer : true,
-   fitToframe : true,
-   region : 'center',
-   tableName : 'Person',
-   title : _this._strings['a8abd77bc82b1b3ba04122af34016fcc'],
-   xns : Roo,
-   xtype : 'GridPanel',
-   listeners : {
-    activate : function() {
-         _this.panel = this;
-         if (_this.grid) {
-             //_this.grid.footer.onClick('first');
-         }
-     }
-   },
-   items : [
-
-   ]
-
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.ReleaseClippingReview.bjs b/PressRelease/Pman.Tab.ReleaseClippingReview.bjs
deleted file mode 100644 (file)
index 7cadd13..0000000
+++ /dev/null
@@ -1,311 +0,0 @@
-{
- "name" : "Pman.Tab.ReleaseClippingReview",
- "parent" : "Pman.Tab.ClippingTab",
- "title" : "Pman.Tab.ReleaseClippingReview",
- "path" : "/home/edward/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.ReleaseClippingReview.bjs",
- "permname" : "",
- "modOrder" : "400",
- "strings" : {
-  "10ac3d04253ef7e1ddc73e6091c0cd55" : "Next",
-  "c4408d335012a56ff58937d78050efad" : "Accept",
-  "d98ac12774fca5c3cbaffe276840c55f" : "Reject",
-  "1ac5c7b6833c0609701f35f222b2978b" : "press release preview",
-  "0557fa923dcee4d0f86b1409f5c2167f" : "Back",
-  "99fa11bca0f5b0d2fb4ba8160784557a" : "press content",
-  "457dd55184faedb7885afd4009d70163" : "Review",
-  "0e3f13e85602295241eed316d31068fb" : "URL : "
- },
- "items" : [
-  {
-   "xtype" : "NestedLayoutPanel",
-   "String region" : "center",
-   "$ xns" : "Roo",
-   "String title" : "Review",
-   "items" : [
-    {
-     "xtype" : "BorderLayout",
-     "$ xns" : "Roo",
-     "* prop" : "layout",
-     "items" : [
-      {
-       "Number width" : 600,
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "* prop" : "west",
-       "Boolean split" : true
-      },
-      {
-       "xtype" : "LayoutRegion",
-       "$ xns" : "Roo",
-       "* prop" : "center"
-      },
-      {
-       "listeners" : {
-        "render" : "function (_self)\n{\n     _this.pressreleasePreview = this;\n}"
-       },
-       "xtype" : "ContentPanel",
-       "Boolean fitToFrame" : true,
-       "String region" : "west",
-       "$ xns" : "Roo",
-       "String title" : "press release preview",
-       "Boolean autoScroll" : true,
-       "items" : [
-        {
-         "xtype" : "Toolbar",
-         "$ xns" : "Roo",
-         "* prop" : "toolbar",
-         "items" : [
-          {
-           "listeners" : {
-            "render" : "function (_self)\n{\n    _this.pressreleaseSel = this;\n    \n    _this.project_id = 0;\n}",
-            "select" : "function (combo, record, index)\n{\n    if(record.data.id * 1 < 1 || record.data.pressrelease_id * 1 < 1){\n        return;\n    }\n    \n    _this.release_id = record.data.pressrelease_id;\n    \n    _this.release_lang = (record.data.languages.length) ? record.data.languages : 'en';\n    \n    _this.pressreleasePreview.view.store.load({});\n    \n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Clipping.php',\n        method : 'GET',\n        mask : 'Processing',\n        params : {\n            project_id : record.data.id,\n            rejected : 1,\n            release_review : 0,\n            _columns : 'id,language,remote_url',\n            sort : 'created',\n            dir : 'DESC'\n        }, \n        success : function(res) {\n            \n            _this.url.reset();\n            \n            _this.clippingContent.el.dom.src =  'about:blank';\n            \n            _this.clipping_data = res.data;\n           \n            _this.clipping_current = 0;\n           \n            _this.backBtn.disable();\n            _this.nextBtn.disable();\n            _this.acceptBtn.disable();\n            _this.rejectBtn.disable();\n           \n            if(!res.data.length){\n                 return;\n            }\n            \n            _this.acceptBtn.enable();\n            _this.rejectBtn.enable();\n           \n            if(_this.clipping_current > 0){\n                _this.backBtn.enable();\n            }\n           \n\n            if(_this.clipping_current < (_this.clipping_data.length - 1)){\n                 _this.nextBtn.enable();\n            }\n           \n            _this.clippingContent.load();\n        }\n    });\n   \n}"
-           },
-           "Number pageSize" : 20,
-           "Number minChars" : 2,
-           "String valueField" : "id",
-           "String queryParam" : "query[name]",
-           "Boolean typeAhead" : true,
-           "Number width" : 300,
-           "Boolean editable" : true,
-           "xtype" : "ComboBox",
-           "String triggerAction" : "all",
-           "Boolean alwaysQuery" : true,
-           "Number listWidth" : 400,
-           "$ xns" : "Roo.form",
-           "String fieldLabel" : "press releases",
-           "String/Roo.Template tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>#{pressrelease_id} - {name}</b> </div>",
-           "String hiddenName" : "project_id",
-           "Boolean forceSelection" : true,
-           "String displayField" : "name",
-           "items" : [
-            {
-             "listeners" : {
-              "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params.joinAddPressRelease = 1;\n}"
-             },
-             "xtype" : "Store",
-             "boolean remoteSort" : true,
-             "$ xns" : "Roo.data",
-             "$ sortInfo" : "{field:'pressrelease_id',direction:'DESC'}",
-             "* prop" : "store",
-             "items" : [
-              {
-               "$ url" : "baseURL+'/Roo/Projects.php'",
-               "xtype" : "HttpProxy",
-               "$ xns" : "Roo.data",
-               "String method" : "GET",
-               "* prop" : "proxy"
-              },
-              {
-               "xtype" : "JsonReader",
-               "String root" : "data",
-               "$ xns" : "Roo.data",
-               "$ fields" : "[\n    {\n        'name':'id',\n        'type':'int'\n    },\n    {\n        'name':'pressrelease_id',\n        'type':'int'\n    },\n    {\n        'name':'name',\n        'type':'string'\n    }\n\n]",
-               "String id" : "id",
-               "String totalProperty" : "total",
-               "* prop" : "reader"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        },
-        {
-         "listeners" : {
-          "preparedata" : "function (_self, data, i, rec)\n{  \n    Roo.apply(data, rec.json);\n}"
-         },
-         "$ tpl" : "new Roo.DomTemplate({url : rootURL+'/Pman/PressRelease/domtemplates/pressrelease_entry.html'})",
-         "xtype" : "View",
-         "$ xns" : "Roo",
-         "* prop" : "view",
-         "items" : [
-          {
-           "listeners" : {
-            "beforeload" : "function (_self, options)\n{\n    \n    options.params = options.params || {};\n    var pid = _this.release_id * 1;\n    \n    if (isNaN(pid) || pid < 1) {\n        this.removeAll();\n        return false;\n    }\n    \n    options.params._pressrelease_clipping_review = 1;\n    options.params.id = pid;\n    \n}",
-            "load" : "function (_self, records, options)\n{\n    Roo.each(_this.pressreleasePreview.el.select('a.language', true).elements, function(v){\n        v.on('click',function(e){\n            var pid = v.attr('data-id') * 1;\n            \n            if(isNaN(pid) || pid < 1){\n                return;\n            }\n            \n            _this.release_id = pid;\n            \n            var lang = v.attr('data-langauge');\n            \n            _this.release_lang = (lang.length) ? lang : 'en';\n    \n            _this.pressreleasePreview.view.store.load({});    \n        });\n    \n    });\n\n}"
-           },
-           "xtype" : "Store",
-           "$ xns" : "Roo.data",
-           "* prop" : "store",
-           "items" : [
-            {
-             "$ url" : "baseURL+'/Roo/Pressrelease_entry'",
-             "method" : "GET",
-             "xtype" : "HttpProxy",
-             "$ xns" : "Roo.data",
-             "* prop" : "proxy"
-            },
-            {
-             "id" : "id",
-             "root" : "data",
-             "xtype" : "JsonReader",
-             "$ xns" : "Roo.data",
-             "* prop" : "reader"
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "xtype" : "NestedLayoutPanel",
-       "$ xns" : "Roo",
-       "String region" : "center",
-       "items" : [
-        {
-         "xtype" : "BorderLayout",
-         "$ xns" : "Roo",
-         "* prop" : "layout",
-         "items" : [
-          {
-           "xtype" : "LayoutRegion",
-           "$ xns" : "Roo",
-           "* prop" : "center",
-           "Boolean split" : true
-          },
-          {
-           "xtype" : "LayoutRegion",
-           "Number height" : 28,
-           "$ xns" : "Roo",
-           "* prop" : "south"
-          },
-          {
-           "listeners" : {
-            "activate" : "function (_self)\n{\n    this.el.addListener('load', function(){\n        if(typeof(_this.layout.getRegion('center').el._mask) == 'undefined'){\n            return;\n        }\n        \n        _this.layout.getRegion('center').el.unmask();\n        \n    });\n}",
-            "render" : "function (_self)\n{\n    _this.clippingContent = this;\n    \n    \n}"
-           },
-           "$ autoCreate" : "{ tag: 'iframe', src : 'about:blank' }",
-           "| function load" : "function() \n{\n    _this.layout.getRegion('center').el.mask('loading...');\n    \n    _this.layout.getRegion('center').el._mask.on('click', function(){\n        _this.layout.getRegion('center').el.unmask();\n    });\n    \n    _this.backBtn.disable();\n    _this.nextBtn.disable();\n    _this.acceptBtn.disable();\n    _this.rejectBtn.disable();\n            \n    if(\n        _this.clipping_current < 0 || \n        _this.clipping_current > (_this.clipping_data.length - 1) ||\n        typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||\n        typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined'    \n    ){\n        return;\n    }\n    \n    _this.footerMsg.el.innerHTML = String.format('{0} of {1}', _this.clipping_current + 1, _this.clipping_data.length);\n    \n    _this.acceptBtn.enable();\n    _this.rejectBtn.enable();\n   \n    if(_this.clipping_current > 0){\n        _this.backBtn.enable();\n    }\n   \n\n    if(_this.clipping_current < (_this.clipping_data.length - 1)){\n         _this.nextBtn.enable();\n    }\n    \n    var color = '#d9534f';\n    \n    if(\n        typeof(_this.clipping_data[_this.clipping_current].accepted) != 'undefined' && \n        _this.clipping_data[_this.clipping_current].accepted\n    ){\n        color = '#5cb85c';\n    }\n    \n    _this.url.el.setStyle('background', color);\n    \n    _this.url.setValue(decodeURIComponent(_this.clipping_data[_this.clipping_current].remote_url));\n    \n    _this.clippingContent.el.dom.src =  _this.clipping_data[_this.clipping_current].remote_url;\n    \n    var clipping_lang = _this.clipping_data[_this.clipping_current].language.length ? _this.clipping_data[_this.clipping_current].language : 'en';\n    \n    if(clipping_lang == _this.release_lang){\n        return;\n    }\n    \n    var refesh_release = function(){\n    \n        if(!_this.pressreleasePreview.el.select('a.language', true).elements.length){\n            return;\n        }\n        \n        Roo.each(_this.pressreleasePreview.el.select('a.language', true).elements, function(v){\n        \n            var lang = v.attr('data-langauge');\n            \n            lang = (lang.length) ? lang : 'en';\n            \n            if(lang != clipping_lang){\n                return;\n            }\n            \n            var pid = v.attr('data-id') * 1;\n        \n            if(isNaN(pid) || pid < 1){\n                return;\n            }\n            \n            _this.release_lang = lang;\n            \n            _this.release_id = pid;\n            \n            _this.pressreleasePreview.view.store.load({});\n            \n            return false;\n            \n        });\n    }\n    \n    if(!_this.pressreleasePreview.el.select('a.language', true).elements.length){\n        refesh_release.defer(500);\n        return;\n    }\n     \n    refesh_release();\n}",
-           "xtype" : "ContentPanel",
-           "Boolean fitToFrame" : true,
-           "$ xns" : "Roo",
-           "String region" : "center",
-           "String title" : "press content",
-           "Boolean autoScroll" : true,
-           "Boolean background" : false,
-           "items" : [
-            {
-             "xtype" : "Toolbar",
-             "$ xns" : "Roo",
-             "* prop" : "toolbar",
-             "items" : [
-              {
-               "string text" : "URL : ",
-               "xtype" : "TextItem",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "xtype" : "Spacer",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.url = this;\n}"
-               },
-               "Number width" : 400,
-               "Boolean readOnly" : true,
-               "xtype" : "TextField",
-               "String fieldLabel" : "URL",
-               "$ xns" : "Roo.form"
-              }
-             ]
-            }
-           ]
-          },
-          {
-           "xtype" : "ContentPanel",
-           "$ xns" : "Roo",
-           "String region" : "south",
-           "items" : [
-            {
-             "xtype" : "Toolbar",
-             "$ xns" : "Roo",
-             "* prop" : "toolbar",
-             "items" : [
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.backBtn = this;\n    \n    this.disable();\n}",
-                "click" : "function (_self, e)\n{\n    if(_this.clipping_current < 1){\n        return;\n    }    \n    \n    _this.clipping_current = _this.clipping_current - 1;\n    \n    _this.clippingContent.load();\n}"
-               },
-               "Number minWidth" : 50,
-               "xtype" : "Button",
-               "String text" : "Back",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    Roo.get(this.el).setStyle('width', '20px');\n} "
-               },
-               "xtype" : "Spacer",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.nextBtn = this;\n    \n    this.disable();\n}",
-                "click" : "function (_self, e)\n{\n    if(_this.clipping_current >= (_this.clipping_data.length - 1)){\n        return;\n    }    \n    \n    _this.clipping_current = _this.clipping_current + 1;\n    \n    _this.clippingContent.load();\n}"
-               },
-               "Number minWidth" : 50,
-               "xtype" : "Button",
-               "String text" : "Next",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    Roo.get(this.el).setStyle('width', '20px');\n} "
-               },
-               "xtype" : "Spacer",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.footerMsg = this;\n    \n}"
-               },
-               "xtype" : "TextItem",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "xtype" : "Fill",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.acceptBtn = this;\n    \n    this.disable();\n    \n    this.el.setStyle('background', '#5cb85c');\n    this.el.select('.x-btn-left', true).first().setStyle('background', '#5cb85c');\n    this.el.select('.x-btn-center', true).first().setStyle('background', '#5cb85c');\n    this.el.select('.x-btn-right', true).first().setStyle('background', '#5cb85c');\n    \n    this.on('mouseover', function(){\n        _self.el.setStyle('background', '#449d44');\n        _self.el.select('.x-btn-left', true).first().setStyle('background', '#449d44');\n        _self.el.select('.x-btn-center', true).first().setStyle('background', '#449d44');\n        _self.el.select('.x-btn-right', true).first().setStyle('background', '#449d44');\n    });\n    \n    this.on('mouseout', function(){\n        _self.el.setStyle('background', '#5cb85c');\n        _self.el.select('.x-btn-left', true).first().setStyle('background', '#5cb85c');\n        _self.el.select('.x-btn-center', true).first().setStyle('background', '#5cb85c');\n        _self.el.select('.x-btn-right', true).first().setStyle('background', '#5cb85c');\n    });\n}",
-                "click" : "function (_self, e)\n{\n    if(\n        _this.clipping_current < 0 || \n        _this.clipping_current > (_this.clipping_data.length - 1) ||\n        typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||\n        typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined' ||\n        typeof(_this.clipping_data[_this.clipping_current].id) == 'undefined' ||\n        isNaN(_this.clipping_data[_this.clipping_current].id * 1) ||\n        _this.clipping_data[_this.clipping_current].id * 1 < 0\n    ){\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Clipping.php',\n        method : 'POST',\n        mask : 'Processing',\n        params : {\n            id : _this.clipping_data[_this.clipping_current].id * 1,\n            rejected : 0,\n            release_review : 1\n        }, \n        success : function(res) {\n            _this.url.el.setStyle('background', '#5cb85c');\n            \n            _this.clipping_data[_this.clipping_current].accepted = true;\n            \n            return;\n        }\n    });\n    \n}"
-               },
-               "Number minWidth" : 50,
-               "xtype" : "Button",
-               "String text" : "Accept",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    Roo.get(this.el).setStyle('width', '20px');\n} "
-               },
-               "xtype" : "Spacer",
-               "$ xns" : "Roo.Toolbar"
-              },
-              {
-               "listeners" : {
-                "render" : "function (_self)\n{\n    _this.rejectBtn = this;\n    \n    this.disable();\n    \n    this.el.setStyle('background', '#d9534f');\n    this.el.select('.x-btn-left', true).first().setStyle('background', '#d9534f');\n    this.el.select('.x-btn-center', true).first().setStyle('background', '#d9534f');\n    this.el.select('.x-btn-right', true).first().setStyle('background', '#d9534f');\n    \n    this.on('mouseover', function(){\n        _self.el.setStyle('background', '#c9302c');\n        _self.el.select('.x-btn-left', true).first().setStyle('background', '#c9302c');\n        _self.el.select('.x-btn-center', true).first().setStyle('background', '#c9302c');\n        _self.el.select('.x-btn-right', true).first().setStyle('background', '#c9302c');\n    });\n    \n    this.on('mouseout', function(){\n        _self.el.setStyle('background', '#d9534f');\n        _self.el.select('.x-btn-left', true).first().setStyle('background', '#d9534f');\n        _self.el.select('.x-btn-center', true).first().setStyle('background', '#d9534f');\n        _self.el.select('.x-btn-right', true).first().setStyle('background', '#d9534f');\n    });\n}",
-                "click" : "function (_self, e)\n{\n    if(\n        _this.clipping_current < 0 || \n        _this.clipping_current > (_this.clipping_data.length - 1) ||\n        typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||\n        typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined' ||\n        typeof(_this.clipping_data[_this.clipping_current].id) == 'undefined' ||\n        isNaN(_this.clipping_data[_this.clipping_current].id * 1) ||\n        _this.clipping_data[_this.clipping_current].id * 1 < 0\n    ){\n        return;\n    }\n    \n    new Pman.Request({\n        url : baseURL + '/Roo/Clipping.php',\n        method : 'POST',\n        mask : 'Processing',\n        params : {\n            id : _this.clipping_data[_this.clipping_current].id * 1,\n            rejected : 1,\n            release_review : 1\n        }, \n        success : function(res) {\n            _this.url.el.setStyle('background', '#d9534f');\n            _this.clipping_data[_this.clipping_current].accepted = false;\n            return;\n        }\n    });\n    \n}"
-               },
-               "Number minWidth" : 50,
-               "xtype" : "Button",
-               "String text" : "Reject",
-               "$ xns" : "Roo.Toolbar"
-              }
-             ]
-            }
-           ]
-          }
-         ]
-        }
-       ]
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.ReleaseClippingReview.js b/PressRelease/Pman.Tab.ReleaseClippingReview.js
deleted file mode 100644 (file)
index fa4a917..0000000
+++ /dev/null
@@ -1,752 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.ReleaseClippingReview = new Roo.XComponent({
-
- _strings : {
-  '10ac3d04253ef7e1ddc73e6091c0cd55' :"Next",
-  'c4408d335012a56ff58937d78050efad' :"Accept",
-  'd98ac12774fca5c3cbaffe276840c55f' :"Reject",
-  '1ac5c7b6833c0609701f35f222b2978b' :"press release preview",
-  '0557fa923dcee4d0f86b1409f5c2167f' :"Back",
-  '99fa11bca0f5b0d2fb4ba8160784557a' :"press content",
-  '457dd55184faedb7885afd4009d70163' :"Review",
-  '0e3f13e85602295241eed316d31068fb' :"URL : "
- },
-
-  part     :  ["PressRelease", "ReleaseClippingReview" ],
-  order    : '400-Pman.Tab.ReleaseClippingReview',
-  region   : 'center',
-  parent   : 'Pman.Tab.ClippingTab',
-  name     : "Pman.Tab.ReleaseClippingReview",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   layout : {
-    west : {
-     '|xns' : 'Roo',
-     split : true,
-     width : 600,
-     xns : Roo,
-     xtype : 'LayoutRegion'
-    },
-    center : {
-     '|xns' : 'Roo',
-     xns : Roo,
-     xtype : 'LayoutRegion'
-    },
-    '|xns' : 'Roo',
-    xns : Roo,
-    xtype : 'BorderLayout',
-    items : [
-     {
-      toolbar : {
-       '|xns' : 'Roo',
-       xns : Roo,
-       xtype : 'Toolbar',
-       items : [
-        {
-         store : {
-          proxy : {
-           '|xns' : 'Roo.data',
-           method : 'GET',
-           url : baseURL+'/Roo/Projects.php',
-           xns : Roo.data,
-           xtype : 'HttpProxy'
-          },
-          reader : {
-           '|xns' : 'Roo.data',
-           fields : [
-               {
-                   'name':'id',
-                   'type':'int'
-               },
-               {
-                   'name':'pressrelease_id',
-                   'type':'int'
-               },
-               {
-                   'name':'name',
-                   'type':'string'
-               }
-           
-           ],
-           id : 'id',
-           root : 'data',
-           totalProperty : 'total',
-           xns : Roo.data,
-           xtype : 'JsonReader'
-          },
-          '|xns' : 'Roo.data',
-          remoteSort : true,
-          sortInfo : {field:'pressrelease_id',direction:'DESC'},
-          xns : Roo.data,
-          xtype : 'Store',
-          listeners : {
-           beforeload : function (_self, o)
-            {
-                o.params = o.params || {};
-                o.params.joinAddPressRelease = 1;
-            }
-          },
-          items : [
-
-          ]
-
-         },
-         '|xns' : 'Roo.form',
-         alwaysQuery : true,
-         displayField : 'name',
-         editable : true,
-         fieldLabel : 'press releases',
-         forceSelection : true,
-         hiddenName : 'project_id',
-         listWidth : 400,
-         minChars : 2,
-         pageSize : 20,
-         queryParam : 'query[name]',
-         tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>#{pressrelease_id} - {name}</b> </div>',
-         triggerAction : 'all',
-         typeAhead : true,
-         valueField : 'id',
-         width : 300,
-         xns : Roo.form,
-         xtype : 'ComboBox',
-         listeners : {
-          render : function (_self)
-           {
-               _this.pressreleaseSel = this;
-               
-               _this.project_id = 0;
-           },
-          select : function (combo, record, index)
-           {
-               if(record.data.id * 1 < 1 || record.data.pressrelease_id * 1 < 1){
-                   return;
-               }
-               
-               _this.release_id = record.data.pressrelease_id;
-               
-               _this.release_lang = (record.data.languages.length) ? record.data.languages : 'en';
-               
-               _this.pressreleasePreview.view.store.load({});
-               
-               
-               new Pman.Request({
-                   url : baseURL + '/Roo/Clipping.php',
-                   method : 'GET',
-                   mask : 'Processing',
-                   params : {
-                       project_id : record.data.id,
-                       rejected : 1,
-                       release_review : 0,
-                       _columns : 'id,language,remote_url',
-                       sort : 'created',
-                       dir : 'DESC'
-                   }, 
-                   success : function(res) {
-                       
-                       _this.url.reset();
-                       
-                       _this.clippingContent.el.dom.src =  'about:blank';
-                       
-                       _this.clipping_data = res.data;
-                      
-                       _this.clipping_current = 0;
-                      
-                       _this.backBtn.disable();
-                       _this.nextBtn.disable();
-                       _this.acceptBtn.disable();
-                       _this.rejectBtn.disable();
-                      
-                       if(!res.data.length){
-                            return;
-                       }
-                       
-                       _this.acceptBtn.enable();
-                       _this.rejectBtn.enable();
-                      
-                       if(_this.clipping_current > 0){
-                           _this.backBtn.enable();
-                       }
-                      
-           
-                       if(_this.clipping_current < (_this.clipping_data.length - 1)){
-                            _this.nextBtn.enable();
-                       }
-                      
-                       _this.clippingContent.load();
-                   }
-               });
-              
-           }
-         },
-         items : [
-
-         ]
-
-        }
-       ]
-
-      },
-      view : {
-       store : {
-        proxy : {
-         '|xns' : 'Roo.data',
-         method : 'GET',
-         url : baseURL+'/Roo/Pressrelease_entry',
-         xns : Roo.data,
-         xtype : 'HttpProxy'
-        },
-        reader : {
-         '|xns' : 'Roo.data',
-         id : 'id',
-         root : 'data',
-         xns : Roo.data,
-         xtype : 'JsonReader'
-        },
-        '|xns' : 'Roo.data',
-        xns : Roo.data,
-        xtype : 'Store',
-        listeners : {
-         beforeload : function (_self, options)
-          {
-              
-              options.params = options.params || {};
-              var pid = _this.release_id * 1;
-              
-              if (isNaN(pid) || pid < 1) {
-                  this.removeAll();
-                  return false;
-              }
-              
-              options.params._pressrelease_clipping_review = 1;
-              options.params.id = pid;
-              
-          },
-         load : function (_self, records, options)
-          {
-              Roo.each(_this.pressreleasePreview.el.select('a.language', true).elements, function(v){
-                  v.on('click',function(e){
-                      var pid = v.attr('data-id') * 1;
-                      
-                      if(isNaN(pid) || pid < 1){
-                          return;
-                      }
-                      
-                      _this.release_id = pid;
-                      
-                      var lang = v.attr('data-langauge');
-                      
-                      _this.release_lang = (lang.length) ? lang : 'en';
-              
-                      _this.pressreleasePreview.view.store.load({});    
-                  });
-              
-              });
-          
-          }
-        },
-        items : [
-
-        ]
-
-       },
-       '|xns' : 'Roo',
-       tpl : new Roo.DomTemplate({url : rootURL+'/Pman/PressRelease/domtemplates/pressrelease_entry.html'}),
-       xns : Roo,
-       xtype : 'View',
-       listeners : {
-        preparedata : function (_self, data, i, rec)
-         {  
-             Roo.apply(data, rec.json);
-         }
-       },
-       items : [
-
-       ]
-
-      },
-      '|xns' : 'Roo',
-      autoScroll : true,
-      fitToFrame : true,
-      region : 'west',
-      title : _this._strings['1ac5c7b6833c0609701f35f222b2978b'],
-      xns : Roo,
-      xtype : 'ContentPanel',
-      listeners : {
-       render : function (_self)
-        {
-             _this.pressreleasePreview = this;
-        }
-      },
-      items : [
-
-      ]
-
-     },
-     {
-      layout : {
-       center : {
-        '|xns' : 'Roo',
-        split : true,
-        xns : Roo,
-        xtype : 'LayoutRegion'
-       },
-       south : {
-        '|xns' : 'Roo',
-        height : 28,
-        xns : Roo,
-        xtype : 'LayoutRegion'
-       },
-       '|xns' : 'Roo',
-       xns : Roo,
-       xtype : 'BorderLayout',
-       items : [
-        {
-         toolbar : {
-          '|xns' : 'Roo',
-          xns : Roo,
-          xtype : 'Toolbar',
-          items : [
-           {
-            '|xns' : 'Roo.Toolbar',
-            text : _this._strings['0e3f13e85602295241eed316d31068fb'],
-            xns : Roo.Toolbar,
-            xtype : 'TextItem'
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'Spacer'
-           },
-           {
-            '|xns' : 'Roo.form',
-            fieldLabel : 'URL',
-            readOnly : true,
-            width : 400,
-            xns : Roo.form,
-            xtype : 'TextField',
-            listeners : {
-             render : function (_self)
-              {
-                  _this.url = this;
-              }
-            }
-           }
-          ]
-
-         },
-         '|xns' : 'Roo',
-         autoCreate : { tag: 'iframe', src : 'about:blank' },
-         autoScroll : true,
-         background : false,
-         fitToFrame : true,
-         load : function() 
-         {
-             _this.layout.getRegion('center').el.mask('loading...');
-             
-             _this.layout.getRegion('center').el._mask.on('click', function(){
-                 _this.layout.getRegion('center').el.unmask();
-             });
-             
-             _this.backBtn.disable();
-             _this.nextBtn.disable();
-             _this.acceptBtn.disable();
-             _this.rejectBtn.disable();
-                     
-             if(
-                 _this.clipping_current < 0 || 
-                 _this.clipping_current > (_this.clipping_data.length - 1) ||
-                 typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||
-                 typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined'    
-             ){
-                 return;
-             }
-             
-             _this.footerMsg.el.innerHTML = String.format('{0} of {1}', _this.clipping_current + 1, _this.clipping_data.length);
-             
-             _this.acceptBtn.enable();
-             _this.rejectBtn.enable();
-            
-             if(_this.clipping_current > 0){
-                 _this.backBtn.enable();
-             }
-            
-         
-             if(_this.clipping_current < (_this.clipping_data.length - 1)){
-                  _this.nextBtn.enable();
-             }
-             
-             var color = '#d9534f';
-             
-             if(
-                 typeof(_this.clipping_data[_this.clipping_current].accepted) != 'undefined' && 
-                 _this.clipping_data[_this.clipping_current].accepted
-             ){
-                 color = '#5cb85c';
-             }
-             
-             _this.url.el.setStyle('background', color);
-             
-             _this.url.setValue(decodeURIComponent(_this.clipping_data[_this.clipping_current].remote_url));
-             
-             _this.clippingContent.el.dom.src =  _this.clipping_data[_this.clipping_current].remote_url;
-             
-             var clipping_lang = _this.clipping_data[_this.clipping_current].language.length ? _this.clipping_data[_this.clipping_current].language : 'en';
-             
-             if(clipping_lang == _this.release_lang){
-                 return;
-             }
-             
-             var refesh_release = function(){
-             
-                 if(!_this.pressreleasePreview.el.select('a.language', true).elements.length){
-                     return;
-                 }
-                 
-                 Roo.each(_this.pressreleasePreview.el.select('a.language', true).elements, function(v){
-                 
-                     var lang = v.attr('data-langauge');
-                     
-                     lang = (lang.length) ? lang : 'en';
-                     
-                     if(lang != clipping_lang){
-                         return;
-                     }
-                     
-                     var pid = v.attr('data-id') * 1;
-                 
-                     if(isNaN(pid) || pid < 1){
-                         return;
-                     }
-                     
-                     _this.release_lang = lang;
-                     
-                     _this.release_id = pid;
-                     
-                     _this.pressreleasePreview.view.store.load({});
-                     
-                     return false;
-                     
-                 });
-             }
-             
-             if(!_this.pressreleasePreview.el.select('a.language', true).elements.length){
-                 refesh_release.defer(500);
-                 return;
-             }
-              
-             refesh_release();
-         },
-         region : 'center',
-         title : _this._strings['99fa11bca0f5b0d2fb4ba8160784557a'],
-         xns : Roo,
-         xtype : 'ContentPanel',
-         listeners : {
-          activate : function (_self)
-           {
-               this.el.addListener('load', function(){
-                   if(typeof(_this.layout.getRegion('center').el._mask) == 'undefined'){
-                       return;
-                   }
-                   
-                   _this.layout.getRegion('center').el.unmask();
-                   
-               });
-           },
-          render : function (_self)
-           {
-               _this.clippingContent = this;
-               
-               
-           }
-         },
-         items : [
-
-         ]
-
-        },
-        {
-         toolbar : {
-          '|xns' : 'Roo',
-          xns : Roo,
-          xtype : 'Toolbar',
-          items : [
-           {
-            '|xns' : 'Roo.Toolbar',
-            minWidth : 50,
-            text : _this._strings['0557fa923dcee4d0f86b1409f5c2167f'],
-            xns : Roo.Toolbar,
-            xtype : 'Button',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if(_this.clipping_current < 1){
-                      return;
-                  }    
-                  
-                  _this.clipping_current = _this.clipping_current - 1;
-                  
-                  _this.clippingContent.load();
-              },
-             render : function (_self)
-              {
-                  _this.backBtn = this;
-                  
-                  this.disable();
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'Spacer',
-            listeners : {
-             render : function (_self)
-              {
-                  Roo.get(this.el).setStyle('width', '20px');
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            minWidth : 50,
-            text : _this._strings['10ac3d04253ef7e1ddc73e6091c0cd55'],
-            xns : Roo.Toolbar,
-            xtype : 'Button',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if(_this.clipping_current >= (_this.clipping_data.length - 1)){
-                      return;
-                  }    
-                  
-                  _this.clipping_current = _this.clipping_current + 1;
-                  
-                  _this.clippingContent.load();
-              },
-             render : function (_self)
-              {
-                  _this.nextBtn = this;
-                  
-                  this.disable();
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'Spacer',
-            listeners : {
-             render : function (_self)
-              {
-                  Roo.get(this.el).setStyle('width', '20px');
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'TextItem',
-            listeners : {
-             render : function (_self)
-              {
-                  _this.footerMsg = this;
-                  
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'Fill'
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            minWidth : 50,
-            text : _this._strings['c4408d335012a56ff58937d78050efad'],
-            xns : Roo.Toolbar,
-            xtype : 'Button',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if(
-                      _this.clipping_current < 0 || 
-                      _this.clipping_current > (_this.clipping_data.length - 1) ||
-                      typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||
-                      typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined' ||
-                      typeof(_this.clipping_data[_this.clipping_current].id) == 'undefined' ||
-                      isNaN(_this.clipping_data[_this.clipping_current].id * 1) ||
-                      _this.clipping_data[_this.clipping_current].id * 1 < 0
-                  ){
-                      return;
-                  }
-                  
-                  new Pman.Request({
-                      url : baseURL + '/Roo/Clipping.php',
-                      method : 'POST',
-                      mask : 'Processing',
-                      params : {
-                          id : _this.clipping_data[_this.clipping_current].id * 1,
-                          rejected : 0,
-                          release_review : 1
-                      }, 
-                      success : function(res) {
-                          _this.url.el.setStyle('background', '#5cb85c');
-                          
-                          _this.clipping_data[_this.clipping_current].accepted = true;
-                          
-                          return;
-                      }
-                  });
-                  
-              },
-             render : function (_self)
-              {
-                  _this.acceptBtn = this;
-                  
-                  this.disable();
-                  
-                  this.el.setStyle('background', '#5cb85c');
-                  this.el.select('.x-btn-left', true).first().setStyle('background', '#5cb85c');
-                  this.el.select('.x-btn-center', true).first().setStyle('background', '#5cb85c');
-                  this.el.select('.x-btn-right', true).first().setStyle('background', '#5cb85c');
-                  
-                  this.on('mouseover', function(){
-                      _self.el.setStyle('background', '#449d44');
-                      _self.el.select('.x-btn-left', true).first().setStyle('background', '#449d44');
-                      _self.el.select('.x-btn-center', true).first().setStyle('background', '#449d44');
-                      _self.el.select('.x-btn-right', true).first().setStyle('background', '#449d44');
-                  });
-                  
-                  this.on('mouseout', function(){
-                      _self.el.setStyle('background', '#5cb85c');
-                      _self.el.select('.x-btn-left', true).first().setStyle('background', '#5cb85c');
-                      _self.el.select('.x-btn-center', true).first().setStyle('background', '#5cb85c');
-                      _self.el.select('.x-btn-right', true).first().setStyle('background', '#5cb85c');
-                  });
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            xns : Roo.Toolbar,
-            xtype : 'Spacer',
-            listeners : {
-             render : function (_self)
-              {
-                  Roo.get(this.el).setStyle('width', '20px');
-              }
-            }
-           },
-           {
-            '|xns' : 'Roo.Toolbar',
-            minWidth : 50,
-            text : _this._strings['d98ac12774fca5c3cbaffe276840c55f'],
-            xns : Roo.Toolbar,
-            xtype : 'Button',
-            listeners : {
-             click : function (_self, e)
-              {
-                  if(
-                      _this.clipping_current < 0 || 
-                      _this.clipping_current > (_this.clipping_data.length - 1) ||
-                      typeof(_this.clipping_data[_this.clipping_current]) == 'undefined' ||
-                      typeof(_this.clipping_data[_this.clipping_current].remote_url) == 'undefined' ||
-                      typeof(_this.clipping_data[_this.clipping_current].id) == 'undefined' ||
-                      isNaN(_this.clipping_data[_this.clipping_current].id * 1) ||
-                      _this.clipping_data[_this.clipping_current].id * 1 < 0
-                  ){
-                      return;
-                  }
-                  
-                  new Pman.Request({
-                      url : baseURL + '/Roo/Clipping.php',
-                      method : 'POST',
-                      mask : 'Processing',
-                      params : {
-                          id : _this.clipping_data[_this.clipping_current].id * 1,
-                          rejected : 1,
-                          release_review : 1
-                      }, 
-                      success : function(res) {
-                          _this.url.el.setStyle('background', '#d9534f');
-                          _this.clipping_data[_this.clipping_current].accepted = false;
-                          return;
-                      }
-                  });
-                  
-              },
-             render : function (_self)
-              {
-                  _this.rejectBtn = this;
-                  
-                  this.disable();
-                  
-                  this.el.setStyle('background', '#d9534f');
-                  this.el.select('.x-btn-left', true).first().setStyle('background', '#d9534f');
-                  this.el.select('.x-btn-center', true).first().setStyle('background', '#d9534f');
-                  this.el.select('.x-btn-right', true).first().setStyle('background', '#d9534f');
-                  
-                  this.on('mouseover', function(){
-                      _self.el.setStyle('background', '#c9302c');
-                      _self.el.select('.x-btn-left', true).first().setStyle('background', '#c9302c');
-                      _self.el.select('.x-btn-center', true).first().setStyle('background', '#c9302c');
-                      _self.el.select('.x-btn-right', true).first().setStyle('background', '#c9302c');
-                  });
-                  
-                  this.on('mouseout', function(){
-                      _self.el.setStyle('background', '#d9534f');
-                      _self.el.select('.x-btn-left', true).first().setStyle('background', '#d9534f');
-                      _self.el.select('.x-btn-center', true).first().setStyle('background', '#d9534f');
-                      _self.el.select('.x-btn-right', true).first().setStyle('background', '#d9534f');
-                  });
-              }
-            }
-           }
-          ]
-
-         },
-         '|xns' : 'Roo',
-         region : 'south',
-         xns : Roo,
-         xtype : 'ContentPanel',
-         items : [
-
-         ]
-
-        }
-       ]
-
-      },
-      '|xns' : 'Roo',
-      region : 'center',
-      xns : Roo,
-      xtype : 'NestedLayoutPanel',
-      items : [
-
-      ]
-
-     }
-    ]
-
-   },
-   '|xns' : 'Roo',
-   region : 'center',
-   title : _this._strings['457dd55184faedb7885afd4009d70163'],
-   xns : Roo,
-   xtype : 'NestedLayoutPanel',
-   items : [
-
-   ]
-
-  };  }
-});
diff --git a/PressRelease/Pman.Tab.ReleaseJournalistTab.bjs b/PressRelease/Pman.Tab.ReleaseJournalistTab.bjs
deleted file mode 100644 (file)
index 71caaab..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-    "id": "roo-file-55",
-    "name": "Pman.Tab.ReleaseJournalistTab",
-    "parent": "Pman",
-    "title": "Pman.Tab.ReleaseJournalistTab",
-    "path": "/home/chris/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.ReleaseJournalistTab.bjs",
-    "items": [
-        {
-            "region": "center",
-            "title": "Journalist Database",
-            "xtype": "NestedLayoutPanel",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "BorderLayout",
-                    "*prop": "layout",
-                    "items": [
-                        {
-                            "*prop": "center",
-                            "tabPosition": "top",
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "100"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.ReleaseJournalistTab.js b/PressRelease/Pman.Tab.ReleaseJournalistTab.js
deleted file mode 100644 (file)
index fcf03f3..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Tab.ReleaseJournalistTab = new Roo.XComponent({
-    part     :  ["PressRelease","ReleaseJournalistTab"],
-    order    : '100-Pman.Tab.ReleaseJournalistTab',
-    region   : 'center',
-    parent   : 'Pman',
-    name     : "Pman.Tab.ReleaseJournalistTab",
-    disabled : false, 
-    permname : '', 
-    _tree : function()
-    {
-        var _this = this;
-        var MODULE = this;
-        return {
-            xtype: 'NestedLayoutPanel',
-            xns: Roo,
-            region : 'center',
-            title : "Journalist Database",
-            layout : {
-                xtype: 'BorderLayout',
-                xns: Roo,
-                center : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    tabPosition : 'top'
-                }
-            }
-        };
-    }
-});
diff --git a/PressRelease/Pman.Tab.ReleaseRegionMgr.bjs b/PressRelease/Pman.Tab.ReleaseRegionMgr.bjs
deleted file mode 100644 (file)
index 79eb164..0000000
+++ /dev/null
@@ -1,261 +0,0 @@
-{
-    "id": "roo-file-184",
-    "name": "Pman.Tab.ReleaseRegionMgr",
-    "parent": "Pman.Tab.ReleaseJournalistTab",
-    "title": "Pman.Tab.ReleaseRegionMgr",
-    "path": "/home/alan/gitlive/web.MediaOutreach/Pman/PressRelease/Pman.Tab.ReleaseRegionMgr.bjs",
-    "items": [
-        {
-            "background": true,
-            "region": "center",
-            "title": "Manage Regions",
-            "xtype": "NestedLayoutPanel",
-            "|xns": "Roo",
-            "items": [
-                {
-                    "|xns": "Roo",
-                    "xtype": "BorderLayout",
-                    "*prop": "layout",
-                    "items": [
-                        {
-                            "|xns": "Roo",
-                            "xtype": "LayoutRegion",
-                            "*prop": "center"
-                        },
-                        {
-                            "*prop": "west",
-                            "split": true,
-                            "width": 150,
-                            "xtype": "LayoutRegion",
-                            "|xns": "Roo"
-                        },
-                        {
-                            "listeners": {
-                                "|activate": "function() {\n    _this.rpanel = this;\n    if (_this.rgrid) {\n        _this.rgrid.ds.load({});\n    }\n}"
-                            },
-                            "background": false,
-                            "fitContainer": true,
-                            "fitToframe": true,
-                            "region": "west",
-                            "tableName": "pressrelease_category",
-                            "title": "pressrelease_category",
-                            "xtype": "GridPanel",
-                            "|xns": "Roo",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "|render": "function() \n{\n    _this.rgrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.rpanel.active) {\n       this.ds.load({});\n    }\n}",
-                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                                    },
-                                    "*prop": "grid",
-                                    "autoExpandColumn": "name",
-                                    "ddGroup": "regionDD",
-                                    "enableDrop": true,
-                                    "loadMask": true,
-                                    "xtype": "Grid",
-                                    "|xns": "Roo.grid",
-                                    "items": [
-                                        {
-                                            "|xns": "Roo.grid",
-                                            "xtype": "RowSelectionModel",
-                                            "*prop": "sm"
-                                        },
-                                        {
-                                            "listeners": {
-                                                "beforeload": "function (_self, options)\n{\n    options.params = options.params || {};\n    options.params.parent_id_name = 'Regional';\n}",
-                                                "load": "function (_self, records, options)\n{\n \n  \n  (function() { \n    if (_this.grid) {\n        _this.grid.ds.load({});\n    }\n    }).defer(100);\n}"
-                                            },
-                                            "*prop": "dataSource",
-                                            "remoteSort": true,
-                                            "xtype": "Store",
-                                            "|sortInfo": "{ field : 'name', direction: 'ASC' }",
-                                            "|xns": "Roo.data",
-                                            "items": [
-                                                {
-                                                    "*prop": "proxy",
-                                                    "method": "GET",
-                                                    "xtype": "HttpProxy",
-                                                    "|url": "baseURL + '/Roo/pressrelease_category.php'",
-                                                    "|xns": "Roo.data"
-                                                },
-                                                {
-                                                    "|xns": "Roo.data",
-                                                    "xtype": "JsonReader",
-                                                    "totalProperty": "total",
-                                                    "root": "data",
-                                                    "*prop": "reader",
-                                                    "id": "id",
-                                                    "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'visible',\n        'type': 'int'\n    },\n    {\n        'name': 'hgroup',\n        'type': 'string'\n    },\n    {\n        'name': 'parent_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id_parent_id',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'parent_id_display_order',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id_visible',\n        'type': 'int'\n    },\n    {\n        'name': 'parent_id_hgroup',\n        'type': 'string'\n    }\n]"
-                                                }
-                                            ]
-                                        },
-                                        {
-                                            "*prop": "toolbar",
-                                            "xtype": "Toolbar",
-                                            "|xns": "Roo",
-                                            "items": [
-                                                {
-                                                    "text": "Manage Regions",
-                                                    "xtype": "Button",
-                                                    "|xns": "Roo.Toolbar",
-                                                    "items": [
-                                                        {
-                                                            "|xns": "Roo.menu",
-                                                            "xtype": "Menu",
-                                                            "*prop": "menu",
-                                                            "items": [
-                                                                {
-                                                                    "listeners": {
-                                                                        "|click": "function()\n{\n    new Pman.Request({\n        url : baseURL + '/Roo/pressrelease_category.php',\n        method :  'GET',\n        params : {\n            name : 'Regional'\n        },\n        success : function(res)\n        {\n\n            Pman.Dialog.PressReleaseCategory.show( \n                { \n                    parent_id : res.data[0].id,\n                    _nohead : 1\n                 } , \n                 function() {\n                    _this.rgrid.ds.load({});\n               }\n           ); \n        }\n    });\n        \n    \n    \n}\n"
-                                                                    },
-                                                                    "cls": "x-btn-text-icon",
-                                                                    "text": "Add",
-                                                                    "xtype": "Item",
-                                                                    "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
-                                                                    "|xns": "Roo.menu"
-                                                                },
-                                                                {
-                                                                    "listeners": {
-                                                                        "|click": "function()\n{\n    var s = _this.rgrid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    var data = Roo.apply({}, s[0].data);\n    data._nohead = 1;\n    Pman.Dialog.PressReleaseCategory.show( data,\n         function() {\n            _this.rgrid.ds.load({});\n       }\n   ); \n      \n \n    \n    \n}\n"
-                                                                    },
-                                                                    "cls": "x-btn-text-icon",
-                                                                    "text": "Edit",
-                                                                    "xtype": "Item",
-                                                                    "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
-                                                                    "|xns": "Roo.menu"
-                                                                },
-                                                                {
-                                                                    "listeners": {
-                                                                        "|click": "function()\n{\n     Pman.genericDelete( {  grid : _this.rgrid }, 'pressrelease_category'); \n}\n        "
-                                                                    },
-                                                                    "cls": "x-btn-text-icon",
-                                                                    "text": "Delete",
-                                                                    "xtype": "Item",
-                                                                    "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
-                                                                    "|xns": "Roo.menu"
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                }
-                                            ]
-                                        },
-                                        {
-                                            "xtype": "ColumnModel",
-                                            "header": "Name",
-                                            "width": 200,
-                                            "dataIndex": "name",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                                            "|xns": "Roo.grid",
-                                            "*prop": "colModel[]"
-                                        },
-                                        {
-                                            "listeners": {
-                                                "over": "function (source, e, data)\n{\n    //Roo.log('over');\n    this.valid = 'ok-add';\n}",
-                                                "drop": "function (source, e, data)\n{\n     Roo.log('drop');\n     \n        var t = Roo.lib.Event.getTarget(e); \n        var ri = _this.rgrid.view.findRowIndex(t);\n        var rid  = false;\n        if (ri !== false) {\n            rid = _this.rgrid.ds.getAt(ri).data;\n        } else {\n           Roo.MessageBox.alert(\"Sorry\", \"Could not find dropped Region\");\n           return;\n       }\n\n          \n \n        var clist = [];\n        Roo.each(data.selections, function(r) {        \n            clist.push(r.data.country);\n        })\n       //Roo.log(sels.join(', '));\n       \n\n       \n       \n       // at this point we add the new country the specified region,\n       // and optionally remove it from another one.\n       \n       // build a removal list..\n       new Pman.Request({\n            url : baseURL + '/Roo/pressrelease_category',\n            method : 'POST',\n            params : {\n                id : rid.id,\n                _update_regionmap : clist.join(',')\n            },\n            success : function() {\n                Roo.each(data.selections, function(r) {        \n                    r.set('category_id_name', rid.name);\n                    r.set('category_id', rid.id);                        \n                })\n        \n        \n            }\n        });\n       \n       \n       \n     \n}"
-                                            },
-                                            "*prop": "dropTarget",
-                                            "ddGroup": "regionDD",
-                                            "xtype": "DropTarget",
-                                            "|xns": "Roo.dd"
-                                        }
-                                    ]
-                                }
-                            ]
-                        },
-                        {
-                            "listeners": {
-                                "|activate": "function() {\n    _this.panel = this;\n    \n}"
-                            },
-                            "background": true,
-                            "fitContainer": true,
-                            "fitToframe": true,
-                            "region": "center",
-                            "tableName": "i18n",
-                            "title": "i18n",
-                            "xtype": "GridPanel",
-                            "|xns": "Roo",
-                            "items": [
-                                {
-                                    "listeners": {
-                                        "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n}",
-                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                                    },
-                                    "*prop": "grid",
-                                    "autoExpandColumn": "country_name",
-                                    "ddGroup": "regionDD",
-                                    "enableDrag": true,
-                                    "loadMask": true,
-                                    "xtype": "Grid",
-                                    "|xns": "Roo.grid",
-                                    "items": [
-                                        {
-                                            "|xns": "Roo",
-                                            "xtype": "Toolbar",
-                                            "*prop": "toolbar",
-                                            "items": [
-                                                {
-                                                    "text": "Select Country or Countries the drag them ontop of the region",
-                                                    "xtype": "TextItem",
-                                                    "|xns": "Roo.Toolbar"
-                                                }
-                                            ]
-                                        },
-                                        {
-                                            "listeners": {
-                                                "beforeload": "function (_self, options)\n{\n   \n  \n    options.params = options.params || {};\n    \n    options.params.limit = 999;\n \n}"
-                                            },
-                                            "*prop": "dataSource",
-                                            "remoteSort": true,
-                                            "xtype": "Store",
-                                            "|sortInfo": "{ field : 'country_name', direction: 'ASC' }",
-                                            "|xns": "Roo.data",
-                                            "items": [
-                                                {
-                                                    "*prop": "proxy",
-                                                    "method": "GET",
-                                                    "xtype": "HttpProxy",
-                                                    "|url": "baseURL + '/Roo/pressrelease_regionmap.php'",
-                                                    "|xns": "Roo.data"
-                                                },
-                                                {
-                                                    "*prop": "reader",
-                                                    "id": "id",
-                                                    "root": "data",
-                                                    "totalProperty": "total",
-                                                    "xtype": "JsonReader",
-                                                    "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'ltype',\n        'type': 'string'\n    },\n    {\n        'name': 'lkey',\n        'type': 'string'\n    },\n    {\n        'name': 'inlang',\n        'type': 'string'\n    },\n    {\n        'name': 'lval',\n        'type': 'string'\n    }\n]",
-                                                    "|xns": "Roo.data"
-                                                }
-                                            ]
-                                        },
-                                        {
-                                            "*prop": "colModel[]",
-                                            "dataIndex": "category_id_name",
-                                            "header": "Region",
-                                            "width": 200,
-                                            "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                                            "|xns": "Roo.grid"
-                                        },
-                                        {
-                                            "*prop": "colModel[]",
-                                            "dataIndex": "country_name",
-                                            "header": "Country",
-                                            "width": 200,
-                                            "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                                            "|xns": "Roo.grid"
-                                        }
-                                    ]
-                                }
-                            ]
-                        }
-                    ]
-                }
-            ]
-        }
-    ],
-    "permname": "",
-    "modOrder": "800"
-}
\ No newline at end of file
diff --git a/PressRelease/Pman.Tab.ReleaseRegionMgr.js b/PressRelease/Pman.Tab.ReleaseRegionMgr.js
deleted file mode 100644 (file)
index 37a7d93..0000000
+++ /dev/null
@@ -1,458 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Pman.Tab.ReleaseRegionMgr = new Roo.XComponent({
-    part     :  ["PressRelease","ReleaseRegionMgr"],
-    order    : '800-Pman.Tab.ReleaseRegionMgr',
-    region   : 'center',
-    parent   : 'Pman.Tab.ReleaseJournalistTab',
-    name     : "Pman.Tab.ReleaseRegionMgr",
-    disabled : false, 
-    permname : '', 
-    _tree : function()
-    {
-        var _this = this;
-        var MODULE = this;
-        return {
-            xtype: 'NestedLayoutPanel',
-            xns: Roo,
-            background : true,
-            region : 'center',
-            title : "Manage Regions",
-            layout : {
-                xtype: 'BorderLayout',
-                xns: Roo,
-                items : [
-                    {
-                        xtype: 'GridPanel',
-                        xns: Roo,
-                        listeners : {
-                            activate : function() {
-                                _this.rpanel = this;
-                                if (_this.rgrid) {
-                                    _this.rgrid.ds.load({});
-                                }
-                            }
-                        },
-                        background : false,
-                        fitContainer : true,
-                        fitToframe : true,
-                        region : 'west',
-                        tableName : 'pressrelease_category',
-                        title : "pressrelease_category",
-                        grid : {
-                            xtype: 'Grid',
-                            xns: Roo.grid,
-                            listeners : {
-                                render : function() 
-                                {
-                                    _this.rgrid = this; 
-                                    //_this.dialog = Pman.Dialog.FILL_IN
-                                    if (_this.rpanel.active) {
-                                       this.ds.load({});
-                                    }
-                                },
-                                rowdblclick : function (_self, rowIndex, e)
-                                {
-                                    if (!_this.dialog) return;
-                                    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                                        _this.grid.footer.onClick('first');
-                                    }); 
-                                }
-                            },
-                            autoExpandColumn : 'name',
-                            ddGroup : 'regionDD',
-                            enableDrop : true,
-                            loadMask : true,
-                            sm : {
-                                xtype: 'RowSelectionModel',
-                                xns: Roo.grid
-                            },
-                            dataSource : {
-                                xtype: 'Store',
-                                xns: Roo.data,
-                                listeners : {
-                                    beforeload : function (_self, options)
-                                    {
-                                        options.params = options.params || {};
-                                        options.params.parent_id_name = 'Regional';
-                                    },
-                                    load : function (_self, records, options)
-                                    {
-                                     
-                                      
-                                      (function() { 
-                                        if (_this.grid) {
-                                            _this.grid.ds.load({});
-                                        }
-                                        }).defer(100);
-                                    }
-                                },
-                                remoteSort : true,
-                                sortInfo : { field : 'name', direction: 'ASC' },
-                                proxy : {
-                                    xtype: 'HttpProxy',
-                                    xns: Roo.data,
-                                    method : 'GET',
-                                    url : baseURL + '/Roo/pressrelease_category.php'
-                                },
-                                reader : {
-                                    xtype: 'JsonReader',
-                                    xns: Roo.data,
-                                    totalProperty : 'total',
-                                    root : 'data',
-                                    id : 'id',
-                                    fields : [
-                                        {
-                                            'name': 'id',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'parent_id',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'name',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'display_order',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'visible',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'hgroup',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'parent_id_id',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'parent_id_parent_id',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'parent_id_name',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'parent_id_display_order',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'parent_id_visible',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'parent_id_hgroup',
-                                            'type': 'string'
-                                        }
-                                    ]
-                                }
-                            },
-                            toolbar : {
-                                xtype: 'Toolbar',
-                                xns: Roo,
-                                items : [
-                                    {
-                                        xtype: 'Button',
-                                        xns: Roo.Toolbar,
-                                        text : "Manage Regions",
-                                        menu : {
-                                            xtype: 'Menu',
-                                            xns: Roo.menu,
-                                            items : [
-                                                {
-                                                    xtype: 'Item',
-                                                    xns: Roo.menu,
-                                                    listeners : {
-                                                        click : function()
-                                                        {
-                                                            new Pman.Request({
-                                                                url : baseURL + '/Roo/pressrelease_category.php',
-                                                                method :  'GET',
-                                                                params : {
-                                                                    name : 'Regional'
-                                                                },
-                                                                success : function(res)
-                                                                {
-                                                        
-                                                                    Pman.Dialog.PressReleaseCategory.show( 
-                                                                        { 
-                                                                            parent_id : res.data[0].id,
-                                                                            _nohead : 1
-                                                                         } , 
-                                                                         function() {
-                                                                            _this.rgrid.ds.load({});
-                                                                       }
-                                                                   ); 
-                                                                }
-                                                            });
-                                                                
-                                                            
-                                                            
-                                                        }
-                                                    },
-                                                    cls : 'x-btn-text-icon',
-                                                    text : "Add",
-                                                    icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
-                                                },
-                                                {
-                                                    xtype: 'Item',
-                                                    xns: Roo.menu,
-                                                    listeners : {
-                                                        click : function()
-                                                        {
-                                                            var s = _this.rgrid.getSelectionModel().getSelections();
-                                                            if (!s.length || (s.length > 1))  {
-                                                                Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
-                                                                return;
-                                                            }
-                                                            var data = Roo.apply({}, s[0].data);
-                                                            data._nohead = 1;
-                                                            Pman.Dialog.PressReleaseCategory.show( data,
-                                                                 function() {
-                                                                    _this.rgrid.ds.load({});
-                                                               }
-                                                           ); 
-                                                              
-                                                         
-                                                            
-                                                            
-                                                        }
-                                                    },
-                                                    cls : 'x-btn-text-icon',
-                                                    text : "Edit",
-                                                    icon : Roo.rootURL + 'images/default/tree/leaf.gif'
-                                                },
-                                                {
-                                                    xtype: 'Item',
-                                                    xns: Roo.menu,
-                                                    listeners : {
-                                                        click : function()
-                                                        {
-                                                             Pman.genericDelete( {  grid : _this.rgrid }, 'pressrelease_category'); 
-                                                        }
-                                                    },
-                                                    cls : 'x-btn-text-icon',
-                                                    text : "Delete",
-                                                    icon : rootURL + '/Pman/templates/images/trash.gif'
-                                                }
-                                            ]
-                                        }
-                                    }
-                                ]
-                            },
-                            colModel : [
-                                {
-                                    xtype: 'ColumnModel',
-                                    xns: Roo.grid,
-                                    header : 'Name',
-                                    width : 200,
-                                    dataIndex : 'name',
-                                    renderer : function(v) { return String.format('{0}', v); }
-                                }
-                            ],
-                            dropTarget : {
-                                xtype: 'DropTarget',
-                                xns: Roo.dd,
-                                listeners : {
-                                    over : function (source, e, data)
-                                    {
-                                        //Roo.log('over');
-                                        this.valid = 'ok-add';
-                                    },
-                                    drop : function (source, e, data)
-                                    {
-                                         Roo.log('drop');
-                                         
-                                            var t = Roo.lib.Event.getTarget(e); 
-                                            var ri = _this.rgrid.view.findRowIndex(t);
-                                            var rid  = false;
-                                            if (ri !== false) {
-                                                rid = _this.rgrid.ds.getAt(ri).data;
-                                            } else {
-                                               Roo.MessageBox.alert("Sorry", "Could not find dropped Region");
-                                               return;
-                                           }
-                                    
-                                              
-                                     
-                                            var clist = [];
-                                            Roo.each(data.selections, function(r) {        
-                                                clist.push(r.data.country);
-                                            })
-                                           //Roo.log(sels.join(', '));
-                                           
-                                    
-                                           
-                                           
-                                           // at this point we add the new country the specified region,
-                                           // and optionally remove it from another one.
-                                           
-                                           // build a removal list..
-                                           new Pman.Request({
-                                                url : baseURL + '/Roo/pressrelease_category',
-                                                method : 'POST',
-                                                params : {
-                                                    id : rid.id,
-                                                    _update_regionmap : clist.join(',')
-                                                },
-                                                success : function() {
-                                                    Roo.each(data.selections, function(r) {        
-                                                        r.set('category_id_name', rid.name);
-                                                        r.set('category_id', rid.id);                        
-                                                    })
-                                            
-                                            
-                                                }
-                                            });
-                                           
-                                           
-                                           
-                                         
-                                    }
-                                },
-                                ddGroup : 'regionDD'
-                            }
-                        }
-                    },
-                    {
-                        xtype: 'GridPanel',
-                        xns: Roo,
-                        listeners : {
-                            activate : function() {
-                                _this.panel = this;
-                                
-                            }
-                        },
-                        background : true,
-                        fitContainer : true,
-                        fitToframe : true,
-                        region : 'center',
-                        tableName : 'i18n',
-                        title : "i18n",
-                        grid : {
-                            xtype: 'Grid',
-                            xns: Roo.grid,
-                            listeners : {
-                                render : function() 
-                                {
-                                    _this.grid = this; 
-                                    //_this.dialog = Pman.Dialog.FILL_IN
-                                },
-                                rowdblclick : function (_self, rowIndex, e)
-                                {
-                                    if (!_this.dialog) return;
-                                    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
-                                        _this.grid.footer.onClick('first');
-                                    }); 
-                                }
-                            },
-                            autoExpandColumn : 'country_name',
-                            ddGroup : 'regionDD',
-                            enableDrag : true,
-                            loadMask : true,
-                            toolbar : {
-                                xtype: 'Toolbar',
-                                xns: Roo,
-                                items : [
-                                    {
-                                        xtype: 'TextItem',
-                                        xns: Roo.Toolbar,
-                                        text : "Select Country or Countries the drag them ontop of the region"
-                                    }
-                                ]
-                            },
-                            dataSource : {
-                                xtype: 'Store',
-                                xns: Roo.data,
-                                listeners : {
-                                    beforeload : function (_self, options)
-                                    {
-                                       
-                                      
-                                        options.params = options.params || {};
-                                        
-                                        options.params.limit = 999;
-                                     
-                                    }
-                                },
-                                remoteSort : true,
-                                sortInfo : { field : 'country_name', direction: 'ASC' },
-                                proxy : {
-                                    xtype: 'HttpProxy',
-                                    xns: Roo.data,
-                                    method : 'GET',
-                                    url : baseURL + '/Roo/pressrelease_regionmap.php'
-                                },
-                                reader : {
-                                    xtype: 'JsonReader',
-                                    xns: Roo.data,
-                                    id : 'id',
-                                    root : 'data',
-                                    totalProperty : 'total',
-                                    fields : [
-                                        {
-                                            'name': 'id',
-                                            'type': 'int'
-                                        },
-                                        {
-                                            'name': 'ltype',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'lkey',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'inlang',
-                                            'type': 'string'
-                                        },
-                                        {
-                                            'name': 'lval',
-                                            'type': 'string'
-                                        }
-                                    ]
-                                }
-                            },
-                            colModel : [
-                                {
-                                    xtype: 'ColumnModel',
-                                    xns: Roo.grid,
-                                    dataIndex : 'category_id_name',
-                                    header : 'Region',
-                                    width : 200,
-                                    renderer : function(v) { return String.format('{0}', v); }
-                                },
-                                {
-                                    xtype: 'ColumnModel',
-                                    xns: Roo.grid,
-                                    dataIndex : 'country_name',
-                                    header : 'Country',
-                                    width : 200,
-                                    renderer : function(v) { return String.format('{0}', v); }
-                                }
-                            ]
-                        }
-                    }
-                ],
-                center : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo
-                },
-                west : {
-                    xtype: 'LayoutRegion',
-                    xns: Roo,
-                    split : true,
-                    width : 150
-                }
-            }
-        };
-    }
-});
diff --git a/PressRelease/PressRelease.perms.json b/PressRelease/PressRelease.perms.json
deleted file mode 100644 (file)
index b4bac6e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-{  
-       "MainTab"          :  ["S",   "", "Press Release Management "],
-     "JournalistAll"          :  ["S",   "", "View Journalist not created by Self"],
-    "Approvals"          :  ["S",   "", "View Journalist approval tab"],
-    "ReleaseJournalistTab"          :  ["S",   "", "View Journalist tab"],
-    "Pressrelease_entry"          :  ["ADES",   "", "View / Manage Press releases"]
-    
-    
-}
diff --git a/PressRelease/PressRelease.readers.js b/PressRelease/PressRelease.readers.js
deleted file mode 100644 (file)
index ce390df..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-//<script type="text/javascript">
-
-Pman.Readers.Pressrelease_entry = {
-       root : 'data',
-       totalProperty : 'total',
-       id : 'id',
-       xtype : 'JsonReader',
-       fields : [
-               {name : 'id',type : 'int'},
-               {name : 'client_id',type : 'int'},
-               'language',
-               {name : 'publish_dt',type : 'date',dateFormat : 'Y-m-d'},
-               {name : 'publish_dt_tz',type : 'int'},
-               'headline',
-               'content',
-               'content_data',
-               'content_links',
-               {name : 'updated',type : 'date',dateFormat : 'Y-m-d H:i:s'},
-               {name : 'created',type : 'date',dateFormat : 'Y-m-d H:i:s'},
-               {name : 'created_by',type : 'int'},
-               {name : 'updated_by',type : 'int'},
-               {name : 'owner_id',type : 'int'},
-               {name : 'publish_status',type : 'int'},
-               {name : 'client_id_id',type : 'int'},
-               {name : 'client_id_office_id',type : 'int'},
-               'client_id_name',
-               'client_id_phone',
-               'client_id_fax',
-               'client_id_email',
-               {name : 'client_id_company_id',type : 'int'},
-               'client_id_role',
-               {name : 'client_id_active',type : 'int'},
-               'client_id_remarks',
-               'client_id_passwd',
-               {name : 'client_id_owner_id',type : 'int'},
-               'client_id_lang',
-               {name : 'client_id_no_reset_sent',type : 'int'},
-               'client_id_action_type',
-               {name : 'client_id_project_id',type : 'int'},
-               {name : 'created_by_id',type : 'int'},
-               {name : 'created_by_office_id',type : 'int'},
-               'created_by_name',
-               'created_by_phone',
-               'created_by_fax',
-               'created_by_email',
-               {name : 'created_by_company_id',type : 'int'},
-               'created_by_role',
-               {name : 'created_by_active',type : 'int'},
-               'created_by_remarks',
-               'created_by_passwd',
-               {name : 'created_by_owner_id',type : 'int'},
-               'created_by_lang',
-               {name : 'created_by_no_reset_sent',type : 'int'},
-               'created_by_action_type',
-               {name : 'created_by_project_id',type : 'int'},
-               {name : 'updated_by_id',type : 'int'},
-               {name : 'updated_by_office_id',type : 'int'},
-               'updated_by_name',
-               'updated_by_phone',
-               'updated_by_fax',
-               'updated_by_email',
-               {name : 'updated_by_company_id',type : 'int'},
-               'updated_by_role',
-               {name : 'updated_by_active',type : 'int'},
-               'updated_by_remarks',
-               'updated_by_passwd',
-               {name : 'updated_by_owner_id',type : 'int'},
-               'updated_by_lang',
-               {name : 'updated_by_no_reset_sent',type : 'int'},
-               'updated_by_action_type',
-               {name : 'updated_by_project_id',type : 'int'},
-               {name : 'owner_id_id',type : 'int'},
-               {name : 'owner_id_office_id',type : 'int'},
-               'owner_id_name',
-               'owner_id_phone',
-               'owner_id_fax',
-               'owner_id_email',
-               {name : 'owner_id_company_id',type : 'int'},
-               'owner_id_role',
-               {name : 'owner_id_active',type : 'int'},
-               'owner_id_remarks',
-               'owner_id_passwd',
-               {name : 'owner_id_owner_id',type : 'int'},
-               'owner_id_lang',
-               {name : 'owner_id_no_reset_sent',type : 'int'},
-               'owner_id_action_type',
-               {name : 'owner_id_project_id',type : 'int'}
-       ]
-};
-
-Pman.Readers.Pressrelease_entry_related = {
-       root : 'data',
-       totalProperty : 'total',
-       id : 'id',
-       xtype : 'JsonReader',
-       fields : [
-               {name : 'id',type : 'int'},
-               {name : 'entry_id',type : 'int'},
-               'relationship',
-               'table_name',
-               {name : 'table_id',type : 'int'},
-               {name : 'entry_id_id',type : 'int'},
-               {name : 'entry_id_client_id',type : 'int'},
-               'entry_id_language',
-               {name : 'entry_id_publish_dt',type : 'date',dateFormat : 'Y-m-d'},
-               {name : 'entry_id_publish_dt_tz',type : 'int'},
-               'entry_id_headline',
-               'entry_id_content',
-               'entry_id_content_data',
-               'entry_id_content_links',
-               {name : 'entry_id_updated',type : 'date',dateFormat : 'Y-m-d H:i:s'},
-               {name : 'entry_id_created',type : 'date',dateFormat : 'Y-m-d H:i:s'},
-               {name : 'entry_id_created_by',type : 'int'},
-               {name : 'entry_id_updated_by',type : 'int'},
-               {name : 'entry_id_owner_id',type : 'int'},
-               {name : 'entry_id_publish_status',type : 'int'}
-       ]
-};
diff --git a/PressRelease/Reports/EmailDelivery.php b/PressRelease/Reports/EmailDelivery.php
deleted file mode 100644 (file)
index 3aa68da..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-
-require_once 'Pman.php';
-
-class Pman_PressRelease_Reports_EmailDelivery extends Pman
-{
-    static $cli_desc = "Send out summary of email delivery issues for the day.";
-    
-    static $cli_opts = array(
-    
-    );
-    
-    function getAuth()
-    {
-         
-        if (!$this->bootLoader->cli) {
-            return false;
-        }
-        // got cli.
-        return true;
-    
-    }
-    
-    function get()
-    {
-    
-         DB_DataObject::debugLevel(1);
-        $n = DB_DataObject::factory('pressrelease_notify');
-        $n->autoJoin();
-        $n->whereAdd("
-            join_event_id_id.id > 0
-            AND
-            join_event_id_id.action = 'NOTIFY'
-            AND
-            pressrelease_notify.msgid = ''
-            AND
-            pressrelease_notify.sent IS NOT NULL
-            AND
-            join_event_id_id.event_when > DATE_FORMAT(NOW()- INTERVAL 1 DAY, '%Y-%m-%d 00:00:00')
-            AND
-            join_event_id_id.event_when < DATE_FORMAT(NOW() , '%Y-%m-%d 00:00:00')
-        ");
-        $badu = clone($n);
-        // bad users = 550 or 505 (suspended??)
-        $badu->whereAdd("
-                join_event_id_id.remarks like 'FAILED - 550:%'
-                OR
-                join_event_id_id.remarks like 'FAILED - 505:%'
-                OR
-                join_event_id_id.remarks like 'INVALID ADDRESS%'
-                OR
-                join_event_id_id.remarks like 'BAD ADDRESS%'
-                ");
-        
-        // 552 - mailbox full - ignore totally...
-        $n->whereAdd("
-                join_event_id_id.remarks not like 'FAILED - 550:%'
-                and
-                join_event_id_id.remarks not like 'FAILED - 505:%'
-                AND
-                join_event_id_id.remarks not like 'FAILED - 552:%'
-                AND
-                join_event_id_id.remarks not like 'INVALID ADDRESS%'
-                AND
-                join_event_id_id.remarks not like 'BAD ADDRESS%'
-        ");
-        
-        $n->selectAdd();
-        $n->selectAdd("
-            
-                REPLACE(join_event_id_id.remarks,
-                    IF (pressrelease_notify.to_email = '', join_person_id_id.email , pressrelease_notify.to_email),
-                '')
-                as remark, count(*) as nrem");
-        $n->groupBy('remark');
-        $n->orderBy('nrem DESC');
-        $n->limit(50);
-        $this->blacklists = $n->fetchAll('remark','nrem');
-        //exit;
-        $this->blacktotal = $n;
-        
-        foreach($this->blacklists as $rem=>$n) {
-            $this->blacktotal += $n;
-        }
-        
-        
-        // for the others, we just list the email address and the message.
-        $badu->selectAdd();
-        $badu->selectAdd("
-                    IF (pressrelease_notify.to_email = '', join_person_id_id.email , pressrelease_notify.to_email) as email,
-                    join_event_id_id.remarks  as remark
-            " );
-        
-        $this->bademails = $badu->fetchAll('email','remark');
-        $this->badtotal = count($this->bademails);
-        
-        //print_R($ar);exit;
-        
-        //$n->find(); $n->fetch();print_R($n); exit;
-        require_once 'Pman/Core/Mailer.php';
-        
-        $x= new Pman_Core_Mailer(array(
-            'page' => $this,
-                     // if bcc is property of this, then it will be used (BAD DESIGN)
-            'rcpts' => array('mailinglist@roojs.com', 'jenny.chu@media-outreach.com'),   // override recipients..
-            'template' => 'email_delivery',
-             
-        ));
-        //print_r($x->toData());exit;
-        
-        $x->send();
-        
-        exit;
-        //
-    
-    }
-    
-    function formatDesc($desc) {
-        
-        $desc = preg_replace('/^FAILED - /', '', $desc);
-        $ar = explode(':', $desc, 2);
-        return '<B>'.htmlspecialchars($ar[1]).'</B> <i>'.htmlspecialchars($ar[0]). '</i> ';
-        
-        
-    }
-        
-    function emails($desc) {
-        return '';
-    }
-    
-    
-    
-}
diff --git a/PressRelease/View.php b/PressRelease/View.php
deleted file mode 100644 (file)
index 24f9a5b..0000000
+++ /dev/null
@@ -1,468 +0,0 @@
-<?php 
-require_once 'Pman.php';
-
-class Pman_PressRelease_View extends Pman
-{
-    var $masterTemplate = 'view.plain.html';
-    var $template = 'view.html';
-    var $cls = 'Embed';
-    var $isEmbed = 1;
-    
-    var $imageURL =  '/Images/Thumb';
-    function getAuth() 
-    {
-        $ff = HTML_Flexyframework::get();
-        if ($ff->cli) {
-            return true;
-        }
-        $au = $this->getAuthUser();
-        if (!$au) {
-             $this->jerr("Not authenticated", array('authFailure' => true));
-        }
-        $this->authUser = $au;
-        // check that it's a supplier!!!! 
-        
-        return true; 
-    } 
-     
-    
-    function get($id)
-    {
-        //removed to Pman_PressRelease_Import_LocalSearch_Run
-//        $this->pruneReaders();
-        
-        // most of this is a dupe of what is in Pressreleas_Entry::toEmail 
-        if (!empty($_GET['_send'])) {
-            $this->sendEmail($id);
-            $this->jok("SENT");
-        }
-        if (!empty($_GET['send_test'])) {
-            $this->sendEmail($id);
-            $this->jok("SENT");
-        }
-        
-        if (!empty($_REQUEST['_debug'])) {
-            DB_DataObject::debuglevel(1);
-        }
-        $this->HOST = $_SERVER['HTTP_HOST'];
-        //$this->rootURL = 'http://'. $this->HOST ;
-        $this->baseURL = $this->rootURL . '/release.php';
-        
-        $id = (int) array_shift(explode('/', $id));
-         //echo $id; exit;
-        // DB_DataObject::debuglevel(1);
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $p->autoJoin();
-        if (empty($id) || !$p->get($id)) {
-            die("invalid url");
-            return HTML_FlexyFramework::run('');
-        }
-        
-        // use the language template
-        $lt = "view.{$p->language}.html";
-        if ($p->language != 'en' &&
-                file_exists(dirname(__FILE__) . "/templates/{$lt}")) {
-            $this->template = $lt;
-        }
-        
-        
-        $img = DB_DataObject::factory('Images');
-        //$img->whereAdd("imgtype != 'LOGO'");
-        $p->images = $img->gather($p); //, 'image/%');
-        $p->children = $p->children();
-        $this->release = $p;
-        
-        
-        // logo..
-        $c = DB_DataObject::Factory('Companies');
-        $c->get($p->client_id);
-        $img = DB_DataObject::factory('Images');
-        $img->imgtype = 'LOGO';
-        $logos = $img->gather($c, 'image/%');
-        if ($logos) {
-            $p->logo = $logos[0];
-        }
-        
-        $img = DB_DataObject::factory('Images');
-        $img->imgtype = 'LOGO';
-        $logos = $img->gather($p, 'image/%');
-        if ($logos && empty($p->logo)) {
-            $p->logo = $logos[0];
-        }
-        
-        
-        $this->release = clone($p);
-        
-        // related..
-        //DB_DataObject::debugLevel(1);
-        
-        
-        
-        // related releases..
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $p->language = $this->release->language;
-        $p->client_id = $this->release->client_id;
-        $p->whereAdd('id != '. $id);
-        $p->whereAdd('publish_status > -1');
-        $p->whereAdd('publish_dt < NOW()'); // timezone!
-        $p->orderBy('id DESC');
-        $p->limit(10);
-        $related = $p->fetchAll();
-        $this->related = array();
-        foreach($related as $r) {
-            $y = $r->publish_dt("Y");
-            if (empty($this->related[$y])) {
-                $this->related[$y] = array();
-            }
-            $this->related[$y][] = clone($r);
-        }
-        
-         
-        // different versions..
-        
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $pid = $this->release->parent_id ? $this->release->parent_id : $this->release->id;
-        $p->whereAdd("id = $pid OR  parent_id = $pid");
-        $p->whereAdd('id != '. $id);
-        $p->whereAdd('publish_status > -1');
-        $p->whereAdd('publish_dt < NOW()'); // timezone!
-        $p->orderBy('id DESC');
-        $p->selectAdd();
-        $p->selectAdd('id,language,headline');
-        $this->langs = $p->fetchAll();
-        
-        
-        // work out what the distribution is..
-        //var_dump($this->release->distribution_config);
-        
-        if (!empty($this->release->parent_id)) {
-            // do not work out distribution.
-            return;
-        }
-        
-       
-        //print_r($ar);
-        $this->distlist = $this->release->distributionList();
-        $this->distlistN = count($this->distlist);
-         
-         
-        
-         
-
-        $this->general = false;
-        $this->international = false;
-        $regions = array();
-        
-        //DB_DataObject::DebugLevel(1);
-            // this is more complex now..
-        $cn = array();
-        
-        foreach(explode(',',  $this->release->distribution_countries ) as $k)
-        {
-            
-            switch (true) {
-                case ($k == '_international'):
-                    $this->international = true;
-                    break;
-                
-                case ($k == '_generalnews'):
-                     $this->general  = true;
-                    break;
-                
-                case (strlen($k) > 2 && $k[1] == '-'): // regional.
-                    $regions[] = array_pop(explode('-', $k));
-                    break;
-                
-                default:
-                    $cn[] = $k;
-                
-            }
-         
-        }
-        // this part is to summarize the selections. 
-        
-        //print_r($this->distlist);
-        
-        
-        $d = DB_DataObject::factory('pressrelease_category');
-        $d->whereAddIn('id', explode(',',  $this->release->distribution_config), 'int');
-        $d->selectAdd();
-        $d->selectAdd("IF(LENGTH(hgroup), CONCAT(hgroup , ': ', name), name ) as name");
-        $d->orderBy('name');
-        $this->beats = implode(", ", $d->fetchAll('name' ));
-        
-        // convert distlist into description.
-        //echo '<PRE>';print_R($this->release);
-        
-         
-         $dcl = array();
-        require_once 'Pman/Core/I18n.php';
-        $x = new Pman_Core_I18n();
-        foreach($cn as $d) {
-               $dcl[] = $x->translate('en', 'c', $d);
-        }
-         
-        $this->countries = implode(', ' , $dcl);
-        $this->regions = array(); 
-        // regions.
-        if ($regions) { 
-            $d = DB_DataObject::factory('pressrelease_category');
-            $d->whereAddIn('id', $regions, 'int');
-            $this->regions = implode(", ", $d->fetchAll('name' ));
-        }
-         
-    }
-    
-    function sendEmail($id)
-    {
-        
-        // we should use the pressrelease_notify send the press release...
-        
-        
-        $n = DB_DAtaObject::factory('pressrelease_notify');
-    
-        $n->setFrom(array(
-            'person_id' => -1,
-            'ontable' => 'pressrelease_entry',
-            'onid' => $id,
-            'event_id' => 0,
-            'evtype' => 'MAIL',
-            'msgid' => '',
-            'field' => '',
-            'bounced' => 0,
-            'to_email' => $this->authUser->email,
-            'firstname'=> $this->authUser->firstname
-        ));
-    
-        if (!empty($_GET['rcpt'])) {
-            $n->to_email = $_GET['rcpt'];
-        }
-        if (!empty($_REQUEST['firstname'])) {
-            $n->firstname = $_REQUEST['firstname'];
-        }
-        if (!empty($_REQUEST['contact_language'])) {
-            $n->contact_language = $_REQUEST['contact_language'];   
-        }
-        $n->act_start(date("Y-m-d H:i:s"),true);
-    
-        $n->insert();
-          
-        return true;  
-          
-/*        
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        $p->autoJoin();
-        if (empty($id) || !$p->get($id)) {
-            $this->jerr("invalid press release");
-        }
-        if (!empty($this->authUser->lang)) {
-            $this->authUser->contact_language = $this->authUser->lang;
-        }
-        
-        if (!empty($_REQUEST['contact_language'])) {
-            $this->authUser->contact_language = $_REQUEST['contact_language'];   
-        }
-        
-        $this->authUser->firstname = isset($_REQUEST['firstname']) ? $_REQUEST['firstname'] : $this->authUser->firstname;
-        
-        $ar = $p->toEmail($this->authUser, 0, false, true);
-        
-        $ff = HTML_FlexyFramework::get();
-        require_once 'Mail.php';
-        
-        $mail = Mail::factory("SMTP", isset($ff->Mail) ? $ff->Mail : array());
-        ///print_R($mail);exit;
-        if (is_a($mail, 'PEAR_Error')) {
-            $this->jerr("CTOR:". $mail->toString());
-        } 
-        $oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
-        $rcpt =$ar['recipients'] ;
-        if (!empty($_GET['rcpt'])) {
-            $rcpt = $_GET['rcpt'];
-        }
-        
-        
-        $ret = $mail->send( $rcpt , $ar['headers'],$ar['body']);
-        error_reporting($oe);
-        if (is_a($ret, 'PEAR_Error')) {
-            $this->jerr($ret->toString());
-        }
-        return true;
-        */
-    } 
-    
-    var $transObj = false;
-    
-    function post($id)
-    {
-        $this->transObj = DB_DataObject::Factory('core_enum');
-        
-        $this->transObj->query('BEGIN');
-        
-        PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
-        
-        if(!empty($_REQUEST['_rebuild'])){
-            $p = DB_DataObject::factory('Pressrelease_entry');
-            if(!$p->get($_REQUEST['pid'])){
-                $this->jerr('get releaes error.');
-            }
-            
-            $c = DB_DataObject::factory('Projects');
-            if(!$c->get('pressrelease_id', $p->id)){
-                $this->jerr('Error', 'This release is not publish yet, please publish it first.');
-            }
-            
-            if(strtotime($c->close_date) < strtotime("now")){
-                $this->jerr('Error', 'This Campaign is already expired.');
-            }
-            
-            $this->buildSearch($p, $c);
-            return;
-        }
-        
-        // the distribution action...
-        $id = (int) array_shift(explode('/', $id));
-         //echo $id; exit;
-        // DB_DataObject::debuglevel(1);
-        $p = DB_DataObject::factory('Pressrelease_entry');
-        if (empty($id) || !$p->get($id)) {
-            
-            $this->jerr("invalid id");
-        }
-        
-        if (!empty($_REQUEST['reset'])) {
-            $ar = $p->notifications();
-            // see how many we can remove..
-            
-            foreach($ar as $o) {
-                if ($o->delivered()) {
-                    continue;
-                }
-                $o->delete();
-                
-            }
-            
-            
-            // remove undelivered...
-            $this->jok("OK");
-            
-            
-            
-        }
-        
-        if (!empty($_REQUEST['redeliver'])) {
-            $p = DB_DataObject::Factory('pressrelease_notify');
-            $p->on_id = $id;
-            if (!$p->get($_REQUEST['redeliver'])) {
-                $this->jerr("invalid id");
-            }
-            
-            $pp = clone($p);
-            $p->event_id = 0;
-            $p->msgid = '';
-            $p->sent = '1970-01-01 01:00:00';
-            $p->insert();
-            $this->jok("OK"); 
-            
-            
-        }
-        
-        if ($p->parent_id) {
-            $this->jerr("You must approve the english lanugage version, not this one");
-        }
-        
-        // for test word diff
-        /*
-        $f = '/home/press/rss/2014/03/31/752_en.html';
-        $f2 = '/home/press/rss/2014/03/31/3850.html';
-        
-        $init = array(
-            'lang' => 'en',
-            'file' => $f
-        );
-        require_once 'HTML/WordDiff.php';
-        $wd = new HTML_WordDiff($init);
-        $percent = $wd->compare($f2);
-        
-        print_r($percent);
-        exit;
-        */
-        $res = $p->buildNotification();
-        
-//        $psub = DB_DataObject::factory('Pressrelease_entry');
-//        $psub->parent_id = $p->id;
-//        
-//        print_r($p->children());exit;
-//        print_r($res);exit;
-        if (!$res){// when finish approved
-            $this->jerr("Problem occured building notifcation list (It may have already been generated)");
-        }
-        
-        $p->buildDistributionStartNotification();
-        
-        
-        $p->buildDistributionEndNotification();
-            
-        $old = clone($p);
-        $p->publish_status = 0;
-        $p->update($old);
-
-        $isUpdate = true;
-        
-        // if this
-        if ($p->same_as_id > 0) {
-            $this->jok($res);
-        }
-        
-        $c = DB_DataObject::factory('Projects');
-        $c->pressrelease_id = $p->id;
-
-        if(!$c->find(true)){
-            $isUpdate = false;
-        }
-
-        $c->client_id = $p->client_id;
-        $c->name = $p->headline;
-        $c->open_date = date('Y-m-d', strtotime($p->publish_dt));
-        $c->close_date = date('Y-m-d', strtotime($p->publish_dt. '+ 1 MONTH'));
-        $c->updated_dt = date('Y-m-d H:i:s');
-        $c->languages = $p->language;       
-        $c->countries = $p->country;
-        $c->open_by = $this->authUser->id;
-
-        if($isUpdate){
-            $c->update();
-        }else{
-            $c->insert();
-        }
-        
-        $p->buildFeeds();
-        
-        if(strtotime($c->close_date) < strtotime("now")){
-            $this->jok(  $res );
-        }
-//            $this->buildSearch($p, $c);
-        
-        $this->jok(  $res );
-         
-
-        
-        
-        
-    }
-    
-   
-     function jok($str)
-    {
-        // note that commit will only work if an insert/update was done,
-        // so some stored proc calls may not have flagged this.
-        
-        if ($this->transObj ) {
-            $this->transObj->query( connection_aborted() ? 'ROLLBACK' :  'COMMIT');
-        }
-        return parent::jok($str);
-    }
-
-    
- }
\ No newline at end of file
diff --git a/PressRelease/ViewDistribution.php b/PressRelease/ViewDistribution.php
deleted file mode 100644 (file)
index 98f8a01..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php 
-require_once 'Pman/PressRelease/View.php';
-
-class Pman_PressRelease_ViewDistribution extends Pman_PressRelease_View
-{
-    var $masterTemplate = "distribution.html";
-    
-    
-    // get - same as parent.
-    
-    
-    function post($id)
-    {
-        
-        die("BAD URL")   ;
-        
-        
-        
-    }
-    function get($id) {
-        
-        $ret = parent::get($id);
-        
-        if (!empty($this->release->parent_id)) {
-            die("This is is a translation of #{$this->release->parent_id},
-                refer to that release to see where it will get distributed to");
-                
-            
-            
-        }
-        
-        return $ret;
-    }
-    
- }
\ No newline at end of file
diff --git a/PressRelease/compiled/PressRelease-202103_115403.js b/PressRelease/compiled/PressRelease-202103_115403.js
deleted file mode 100644 (file)
index 8e55083..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-if (typeof(_T) == 'undefined') { _T={};}
-_T["94f8f6e16cd2b597dd86bc97eb494947"]="Edit Press Release";
-_T["a9566bada1b13383b04743e2afb17729"]="Contents";
-_T["3fbbd723e360d75b3cadb243ede5fd6c"]="Error";
-_T["913c44e8f01618cc9d6ea2e85459002a"]="Please correct the errors in red";
-_T["7921d6e9293a3c2f642b898d34f342c2"]="Release Details";
-_T["7a9199b40ac31f6f2b3737b62f3a159a"]="Draft";
-_T["57e6adadd31335be6face97336006e91"]="Ready to Distribute";
-_T["d355066e511a5e7aed4ab12e6f6e92c3"]="Distributed";
-_T["04dfd45a9f3c81ce058c9acb90085060"]="Select Client";
-_T["e615dca2da5c70bfd247783b5595925f"]="Searching...";
-_T["ec9a9bc99ffe5d81f040177472335842"]="Company Details";
-_T["d2a41fa7754b64b9e8f172c79760f74d"]="Select the client first";
-_T["35270abee43385e64e6d323e6263260d"]="Select Person";
-_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]="name";
-_T["e9f6e35e89802a5abd3edc4f6bda8eda"]="id";
-_T["a9a1897bacfd84601d1544d3db31136d"]="type";
-_T["0f5fb59163f9d8976c2be5634f57b326"]="int";
-_T["4adda56db534f9b74a924003808812a3"]="string";
-_T["de5564d58d1b86112580b5d623206fde"]="Name and Email";
-_T["e1ec66453f09e4536ea51e720f9a9e24"]="Name (email is link on our site)";
-_T["0d19a0095546423b9cf64aa7bd124f4c"]="Name Only";
-_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]="Sending";
-_T["5dce890ec8a5d8b38b5a562cf37abd24"]="Financial Data";
-_T["ad472f752938345d00b2d3e0a1dcfb13"]="Upload Failed";
-_T["e011724ff5d9246a1c4d47b5e795b878"]="Save Press Release First";
-_T["4a192a6c3e83c0074ceb1dcc90040959"]="Images / PDF";
-_T["e16fd5cb9f059764f1c6fc25278674cb"]="Add From Image Store";
-_T["d29dfaa2afb866c3cd10de844a8dac93"]="Select Image";
-_T["c69f794304daa24af7d4f56a7b2a96a2"]="Select Images";
-_T["060cfc60d63f1f333d4242787f442d99"]="Select a company first";
-_T["daf74af5b9f6345d8bdb57c9988b2289"]="Save press release first";
-_T["861bd0bd5a0665f84a3efacb87a9e4c9"]="filename";
-_T["105aaa39cf6d0d73b6e6efd1201002f0"]="Select an Image";
-_T["42ebce0c2ee76d20878ce7b7f35d59b3"]="Error deleting image";
-_T["8462cfa01d6a20b5596db43b5a1c8911"]="Delete Selected File or  Image";
-_T["2ba3fba33421853e25813b236644a9b7"]="pressrelease_entry";
-_T["24387c7b2865c89e6950da30bd41aca7"]="Correct All the errors in Red";
-_T["623ba736d9f334f43f05e32a287cdcc6"]="Problem sending to server";
-_T["d4ddf25bdf42d24705e5da2d1aced69e"]="Saving";
-_T["f3f0675937db6122a7bab05a282c4e54"]="Update Image Details";
-_T["146e39adf5733982b394c16f71d96a48"]="Cancel";
-_T["fe718e1ebf8adc7d016d7ff733296320"]="submit";
-_T["5c1d5518211974c8447a38503db18739"]="Save";
-
-_T["e3f73516a11b5fd15f18d4bd74b23a30"]="Edit Image Details";
-_T["b72b8d653936bd294f1c112df2ba657c"]="Cancel";
-_T["022f847bcb8d9f05c33afa850bb96efd"]="OK";
-_T["6c71e00c1e6226f31d6add04316e1942"]="Saving";
-_T["22446320a9f49f202ec567ee6c3abc55"]="submit";
-
-_T["2fad5624b2c220076adfc0d7621fc87d"]="Company List";
-_T["4888e81fff0e8fec50e695b385433130"]="Companies";
-
-_T["882d3af136207fdcc9c3828c28d43d61"]="Press Releases";
-_T["97b0d3f09fec9e59a34c5f83f69a72c2"]="Add";
-_T["6836a1c0c8926e420d5055d535093141"]="Error";
-_T["b584d87a9686827e406637319e3ba5b0"]="Select only one Row";
-_T["07d72f1deeff78a4581d7c618b01033b"]="Select a Row";
-_T["1387df571211c89a915018ac3e733177"]="Edit";
-
-_T["5a937fa4cdb12621d75fbfd9c1f98cd9"]="Image List";
-_T["6123ad9dc9a4a83978f40e369098fe93"]="Images";
-_T["50dea3784491bf900415dc0cb48cfa56"]="Add";
-_T["26ad1f9420df99d50abfccd20bde4523"]="Error";
-_T["c1ebc05528786477caa746b8969ac7b7"]="Select a single image to edit";
-_T["e50f23f4c186e2883a1793dc4ac1aa7b"]="Edit";
-_T["f98ca9b05bf7c48a32dbdc3b631db8e0"]="Delete";
-
-_T["0171f490ee4f0845462c2ef7fe7d282d"]="Press Release Tab";
-_T["518c51a07de566914661f27461de9bc7"]="Press Releases";
-
-Pman.Dialog.PressReleaseEdit={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,closable:false,collapsible:false,height:550,modal:true,resizable:false,title:_T["94f8f6e16cd2b597dd86bc97eb494947"],width:800,items:[{xtype:'ContentPanel',xns:Roo,region:'center',title:_T["a9566bada1b13383b04743e2afb17729"],items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}if(C.type=='setdata'){A.loaded=false;A.dialog.getLayout().showPanel(0);A.form.addForm(A.form2);A.form.addForm(A.form3);if(A.data.id){this.load({method:'GET',params:{'_id':A.data.id}});}else {A.loaded=true;A.form.findField('publish_status').setValue(-1);}return;}if(C.type=='load'){A.loaded=true;A.dialog.el.unmask();return;}if(C.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;},actionfailed:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}}},method:'POST',style:'margin: 10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'FieldSet',xns:Roo.form,labelWidth:75,legend:_T["7921d6e9293a3c2f642b898d34f342c2"],items:[{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Status',hiddenName:'publish_status',listWidth:200,mode:'local',name:'publish_status_name',triggerAction:'all',valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[-1,_T["7a9199b40ac31f6f2b3737b62f3a159a"]],[0,_T["57e6adadd31335be6face97336006e91"]],[1,_T["d355066e511a5e7aed4ab12e6f6e92c3"]]],fields:['ftype','fname']}},{xtype:'ComboBox',xns:Roo.form,displayField:'name',editable:'false',emptyText:_T["04dfd45a9f3c81ce058c9acb90085060"],fieldLabel:'Client',forceSelection:true,hiddenName:'client_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'client_id_name',pageSize:20,qtip:_T["04dfd45a9f3c81ce058c9acb90085060"],selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,allowBlank:true,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'ava_craft','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'}]}}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Language',hiddenName:'language',listWidth:200,mode:'local',name:'language_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('l'):[]})(),fields:['code','title']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Country',hiddenName:'country',listWidth:200,mode:'local',name:'country_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('c'):[]})(),fields:['code','title']}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,width:730,items:[{xtype:'DateField',xns:Roo.form,allowBlank:true,fieldLabel:'Publish',format:'Y-m-d',name:'publish_dt_day',width:100},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'hr',editable:false,fieldLabel:'Time',listWidth:80,mode:'local',name:'publish_dt_hr',triggerAction:'all',valueField:'hr',width:60,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){var r=[];for(var i=0;i<24;i++){r.push([i+':00']);r.push([i+':30']);}return r;})(),fields:['hr']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Timezone',hiddenName:'publish_dt_tz',listWidth:500,mode:'local',name:'publish_dt_tz_name',triggerAction:'all',valueField:'ftype',width:280,store:{xtype:'SimpleStore',xns:Roo.data,data:[['-12.00','(GMT -12:00) Eniwetok, Kwajalein'],['-11.00','(GMT -11:00) Midway Island, Samoa'],['-10.00','(GMT -10:00) Hawaii'],['-9.00','(GMT -9:00) Alaska'],['-8.00','(GMT -8:00) Pacific Time (US & Canada)'],['-7.00','(GMT -7:00) Mountain Time (US & Canada)'],['-6.00','(GMT -6:00) Central Time (US & Canada), Mexico City'],['-5.00','(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'],['-4.00','(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'],['-3.50','(GMT -3:30) Newfoundland'],['-3.00','(GMT -3:00) Brazil, Buenos Aires, Georgetown'],['-2.00','(GMT -2:00) Mid-Atlantic'],['-1.00','(GMT -1:00 hour) Azores, Cape Verde Islands'],['0.00','(GMT) Western Europe Time, London, Lisbon, Casablanca'],['1.00','(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris'],['2.00','(GMT +2:00) Kaliningrad, South Africa'],['3.00','(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'],['3.30','(GMT +3:30) Tehran'],['4.00','(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'],['4.50','(GMT +4:30) Kabul'],['5.00','(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'],['5.30','(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'],['5.45','(GMT +5:45) Kathmandu'],['6.00','(GMT +6:00) Almaty, Dhaka, Colombo'],['7.00','(GMT +7:00) Bangkok, Hanoi, Jakarta'],['8.00','(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'],['9.00','(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'],['9.30','(GMT +9:30) Adelaide, Darwin'],['10.00','(GMT +10:00) Eastern Australia, Guam, Vladivostok'],['11.00','(GMT +11:00) Magadan, Solomon Islands, New Caledonia'],['12.00','(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka']],fields:['ftype','fname']}}]}]},{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Headline',name:'headline',width:650},{xtype:'TextField',xns:Roo.form,fieldLabel:'Sub-Headline',name:'subheadline',width:650},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'HtmlEditor',xns:Roo.form,listeners:{sync:function(B,C){Roo.log('sync');var D=this.fieldEl.query('label')[0];var it=this.doc.body.innerText;var n=Math.max(0,it.replace(/^\s+/,'').replace(/\s+$/,'').split(/\s+/).length);D.innerHTML='Content: ('+n+' Words)';}},allowBlank:false,fieldLabel:'Content',height:230,name:'content',width:750}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]},{xtype:'ContentPanel',xns:Roo,background:true,region:'center',title:_T["ec9a9bc99ffe5d81f040177472335842"],items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form2=B;}},labelWidth:80,method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Companies.php',items:[{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Stock Code',name:'stockcode',width:100},{xtype:'Row',xns:Roo.form,labelWidth:110,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:' (Chinese) Name',name:'company_name_alt',width:150},{xtype:'Row',xns:Roo.form,labelWidth:65,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Industry',name:'industry',width:150}]}]}]},{xtype:'Row',xns:Roo.form,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',displayField:'name',editable:'false',fieldLabel:'Contact 1',forceSelection:true,hiddenName:'contact1_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact1_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact1_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]],[2,_T["0d19a0095546423b9cf64aa7bd124f4c"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',displayField:'name',editable:'false',fieldLabel:'Contact 2',forceSelection:true,hiddenName:'contact2_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact2_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact2_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]],[2,_T["0d19a0095546423b9cf64aa7bd124f4c"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',displayField:'name',editable:'false',fieldLabel:'Contact 3',forceSelection:true,hiddenName:'contact3_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact3_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact3_showtype',listWidth:200,mode:'local',name:'contact3_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]],[2,_T["0d19a0095546423b9cf64aa7bd124f4c"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'About the Company',height:150,name:'content_about',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Related Web Links',height:100,name:'content_links',width:750}]}]}]},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){if(A.hasFinanceWatch){return;}
-A.hasFinanceWatch=true;A.financeSending=false;window.setInterval(function(){if(!A.financeForm){return;}var C=A.financeForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.financeSending){return;}
-A.financeSending=true;A.financeForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.financeForm.submit.defer(100,A.financeForm);},1000)}},region:'center',title:_T["5dce890ec8a5d8b38b5a562cf37abd24"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form3=B;}},method:'POST',style:'margin:10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Forward Looking Statement',height:150,name:'content_forward',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Financial Content',height:200,name:'content_data',style:'font-family: monospace;',width:750}]}]}]},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.financeForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.financeForm.reset();A.financeSending=false;A.financeForm.el.unmask();A.form2.findField('content_data').setValue(C.result.data);return;}},rendered:function(B){A.financeForm=B;}},fileUpload:true,labelWidth:200,style:'margin: 10px;',url:baseURL+'/PressRelease/ExcelToText.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Excel of Financial data',inputType:'file',name:'imageUpload',width:350}]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},south:{xtype:'LayoutRegion',xns:Roo,height:40}}},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){A.imagePanel=B;if(A.addFromStore){A.addFromStore.lastQuery='~~~~';}if(!A.loaded){return;}
-A.imageView.el.unmask();if(A.data.id){A.imageView.loadImages();}else {A.imageView.el.mask(_T["e011724ff5d9246a1c4d47b5e795b878"]);}if(A.hasUploadWatch){return;}
-A.hasUploadWatch=true;A.uploadSending=false;window.setInterval(function(){if(!A.uploadForm){return;}var C=A.uploadForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.uploadSending){return;}
-A.uploadSending=true;A.uploadForm.findField('onid').setValue(A.data.id);A.uploadForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.uploadForm.submit.defer(100,A.uploadForm);},1000)}},region:'center',title:_T["4a192a6c3e83c0074ceb1dcc90040959"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,autoScroll:true,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'JsonView',xns:Roo,listeners:{beforerender:function(B,C){A.imageView=B;if(this.stylesheet){return;}
-this.el.addClass('thumb-browser');this.stylesheet=Roo.util.CSS.createStyleSheet({'.thumb-browser .thumb-wrap':{border:'3px solid #EEE','float':'left',height:'190px',margin:'2px','padding-left':'5px','padding-top':'5px',width:'160px'},'.thumb-browser .x-view-selected':{border:'3px solid #333'},'.thumblabel':{font:'normal normal normal 11px/normal tahoma, verdana, helvetica'}},Roo.id());},selectionchange:function(B,C){if(!C||!C.length){A.imagePanel.layout.getRegion('east').hide();return;}
-A.imagePanel.layout.getRegion('east').show();A.imageForm.setValues(A.imageView.getNodeData(C[0]));}},jsonRoot:'data',singleSelect:true,loadImages:function(){this.load({url:baseURL+'/Roo/Images.php',method:'GET',params:{ontable:'pressrelease_entry',onid:A.data.id,'query[imagesize]':'150x150','query[imageBaseURL]':rootURL+'/release.php'},text:'Loading'});},tpl:{xtype:'Template',xns:Roo,html:'<div class="thumb-wrap"> '+'<div class="thumb"><img  src="{url}" class="thumb-img"></div>'+'<div class="thumblabel">{title}<br/>{linkurl}</div>'+'</div>'}}],toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'TextItem',xns:Roo.Toolbar,text:_T["e16fd5cb9f059764f1c6fc25278674cb"]},{xtype:'ComboBox',xns:Roo.form,listeners:{render:function(B){A.addFromStore=B;},select:function(B,C,D){new Pman.Request({url:baseURL+'/Roo/Images',method:'POST',params:{ontable:'pressrelease_entry',onid:A.form.findField('id').getValue(),_copy_from:C.data.id},success:function(){A.imageView.loadImages();}});}},editable:false,emptyText:_T["d29dfaa2afb866c3cd10de844a8dac93"],fieldLabel:'Images',forceSelection:true,listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,pageSize:20,qtip:_T["c69f794304daa24af7d4f56a7b2a96a2"],queryParam:'search',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><img src="{url_thumb}" height="150" width="150"><b>{filename}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var c=A.form.findField('client_id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["060cfc60d63f1f333d4242787f442d99"]);return;}var id=A.form.findField('id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["daf74af5b9f6345d8bdb57c9988b2289"]);return;}
-o.params.onid=c;o.params.ontable='Companies';o.params['query[imagesize]']='150x150';}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["861bd0bd5a0665f84a3efacb87a9e4c9"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'Fill',xns:Roo.Toolbar},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(B,e){if(!A.imageView.getSelectedNodes().length){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["105aaa39cf6d0d73b6e6efd1201002f0"]);return;}var id=A.imageView.getNodeData(A.imageView.getSelectedNodes()[0]).id;A.imageView.el.mask('Deleting');Roo.Ajax.request({url:baseURL+'/Roo/Images.php',params:{_delete:id},method:'GET',success:function(){A.imageView.loadImages();},failure:function(){A.imageView.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["42ebce0c2ee76d20878ce7b7f35d59b3"]);return;}});}},text:_T["8462cfa01d6a20b5596db43b5a1c8911"]}]}},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.uploadForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.uploadForm.reset();A.uploadSending=false;A.uploadForm.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.uploadForm=B;},actionfailed:function(B,C){A.uploadForm.el.unmask();A.uploadForm.reset();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);A.imageView.loadImages();}},fileUpload:true,labelWidth:200,style:'margin: 10px;',url:baseURL+'/Roo/Images.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Image or File',inputType:'file',name:'imageUpload',width:250}]},{xtype:'Hidden',xns:Roo.form,name:'onid'},{xtype:'Hidden',xns:Roo.form,name:'ontable',value:_T["2ba3fba33421853e25813b236644a9b7"]}]}]},{xtype:'ContentPanel',xns:Roo,region:'east',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.type=='setdata'){return;}if(C.type=='load'){return;}if(C.type=='submit'){A.selectAfterLoad=this.findField('id').getValue();var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.imageForm=B;},actionfailed:function(B,C){var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();if(C.failureType==Roo.form.Action.CLIENT_INVALID){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["24387c7b2865c89e6950da30bd41aca7"]);return;}
-Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["623ba736d9f334f43f05e32a287cdcc6"]);}},labelAlign:'top',method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Images.php',items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Title',name:'title',width:150},{xtype:'TextField',xns:Roo.form,fieldLabel:'Link',name:'linkurl',vtype:'url',width:150},{xtype:'TextField',xns:Roo.form,fieldLabel:'Mimetype',name:'mimetype',width:150,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Width',name:'width',width:75,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Height',name:'height',readOnly:true,width:75},{xtype:'TextField',xns:Roo.form,fieldLabel:'Filesize',name:'filesize',width:75,readOnly:true},{xtype:'Hidden',xns:Roo.form,name:'id'},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){var lr=A.imagePanel.layout.getRegion('east');lr.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.imageForm.submit();}},text:_T["f3f0675937db6122a7bab05a282c4e54"]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},east:{xtype:'LayoutRegion',xns:Roo,hidden:true,width:200},south:{xtype:'LayoutRegion',xns:Roo,height:60}}}],center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top'},buttons:[{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.hide();}},text:_T["146e39adf5733982b394c16f71d96a48"]},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.form.doAction(_T["fe718e1ebf8adc7d016d7ff733296320"]);}},text:_T["5c1d5518211974c8447a38503db18739"]}]});}};
-Pman.Dialog.PressReleaseImage={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,background:true,closable:false,collapsible:false,height:270,modal:true,resizable:false,title:_T["e3f73516a11b5fd15f18d4bd74b23a30"],width:580,items:[{xtype:'ContentPanel',xns:Roo,background:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,style:'margin: 5px',url:baseURL+'/Roo/Images.php',method:'POST',listeners:{actionfailed:function(B,C){A.dialog.el.unmask();Pman.standardActionFailed(B,C);},actioncomplete:function(_s,B){if(B.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;}},items:[{xtype:'Column',xns:Roo.form,width:'200',labelAlign:'top',items:[{xtype:'DisplayImage',xns:Roo.form,name:'filename',fieldLabel:'Image Preview',readOnly:'true',width:'180',renderer:function(v){return String.format('<img src="{0}/Images/Thumb/200/{1}/{2}" width="180">',baseURL,A.data.id,A.data.filename);}}]},{xtype:'Column',xns:Roo.form,width:'320',labelAlign:'top',items:[{xtype:'TextField',xns:Roo.form,name:'title',fieldLabel:'Press Release Name',width:'300'},{xtype:'TextArea',xns:Roo.form,name:'descript',fieldLabel:'Notes',width:'300',height:'100'}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]}],center:{xtype:'LayoutRegion',xns:Roo,titlebar:false},buttons:[{xtype:'Button',xns:Roo,text:_T["b72b8d653936bd294f1c112df2ba657c"],listeners:{click:function(){A.form.reset();A.dialog.hide();}}},{xtype:'Button',xns:Roo,text:_T["022f847bcb8d9f05c33afa850bb96efd"],listeners:{click:function(){A.dialog.el.mask(_T["6c71e00c1e6226f31d6add04316e1942"]);A.form.doAction(_T["22446320a9f49f202ec567ee6c3abc55"]);}}}]});}};
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseCompanies',module:Pman.Tab.PressReleaseCompanies,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["2fad5624b2c220076adfc0d7621fc87d"],disabled:false,permname:''});});Pman.Tab.PressReleaseCompanies=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'west',background:true,fitContainer:true,fitToframe:true,tableName:'Companies',title:_T["4888e81fff0e8fec50e695b385433130"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'code',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params['!id']=Pman.Login.authUser.company_id;}},remoteSort:true,sortInfo:{field:'name',direction:'ASC'},reader:Pman.Readers.Companies,proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'},{'name':'logo_id_id','type':'int'},{'name':'logo_id_filename','type':'string'},{'name':'logo_id_ontable','type':'string'},{'name':'logo_id_onid','type':'int'},{'name':'logo_id_mimetype','type':'string'},{'name':'logo_id_width','type':'int'},{'name':'logo_id_height','type':'int'},{'name':'logo_id_filesize','type':'int'},{'name':'logo_id_displayorder','type':'int'},{'name':'logo_id_language','type':'string'},{'name':'logo_id_parent_image_id','type':'int'},{'name':'logo_id_created','type':'string'},{'name':'logo_id_imgtype','type':'string'},{'name':'logo_id_linkurl','type':'string'},{'name':'logo_id_descript','type':'string'},{'name':'logo_id_title','type':'string'},{'name':'owner_id_id','type':'int'},{'name':'owner_id_office_id','type':'int'},{'name':'owner_id_name','type':'string'},{'name':'owner_id_phone','type':'string'},{'name':'owner_id_fax','type':'string'},{'name':'owner_id_email','type':'string'},{'name':'owner_id_company_id','type':'int'},{'name':'owner_id_role','type':'string'},{'name':'owner_id_active','type':'int'},{'name':'owner_id_remarks','type':'string'},{'name':'owner_id_passwd','type':'string'},{'name':'owner_id_owner_id','type':'int'},{'name':'owner_id_lang','type':'string'},{'name':'owner_id_no_reset_sent','type':'int'},{'name':'owner_id_action_type','type':'string'},{'name':'owner_id_project_id','type':'int'},{'name':'main_office_id_id','type':'int'},{'name':'main_office_id_company_id','type':'int'},{'name':'main_office_id_name','type':'string'},{'name':'main_office_id_address','type':'string'},{'name':'main_office_id_phone','type':'string'},{'name':'main_office_id_fax','type':'string'},{'name':'main_office_id_email','type':'string'},{'name':'main_office_id_role','type':'string'}]}},footer:{xtype:'PagingToolbar',xns:Roo,displayInfo:true,displayMsg:'',emptyMsg:'',pageSize:50},selModel:{xtype:'RowSelectionModel',xns:Roo.grid,listeners:{afterselectionchange:function(D){Pman.Tab.PressReleaseImages.grid.footer.onClick('first');}}},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Company',width:100,dataIndex:'name',renderer:function(v){return String.format('{0}',v);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseEntry',module:Pman.Tab.PressReleaseEntry,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["882d3af136207fdcc9c3828c28d43d61"],disabled:false,permname:''});});Pman.Tab.PressReleaseEntry=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},background:true,fitContainer:true,fitToframe:true,region:'center',tableName:'pressrelease_entry',title:_T["882d3af136207fdcc9c3828c28d43d61"],grid:{xtype:'Grid',xns:Roo.grid,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=C.grid.getDataSource().getAt(E);Pman.Dialog.PressReleaseEdit.show(s.data,function(){C.grid.footer.onClick('first');});}},autoExpandColumn:'headline',loadMask:true,dataSource:{xtype:'Store',xns:Roo.data,proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/pressrelease_entry.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'client_id','type':'int'},{'name':'client_id_name','type':'string'},{'name':'language','type':'string'},{'name':'publish_dt','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'publish_dt_hour','type':'float'},{'name':'publish_dt_tz','type':'float'},{'name':'headline','type':'string'},{'name':'content','type':'string'},{'name':'content_data','type':'string'},{'name':'content_links','type':'string'},{'name':'updated','type':'string'},{'name':'created','type':'string'},{'name':'created_by','type':'int'},{'name':'updated_by','type':'int'},{'name':'owner_id','type':'int'},{'name':'publish_status','type':'int'}]}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying pressrelease_entry{0} - {1} of {2}',emptyMsg:'No pressrelease_entry found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo,listeners:{click:function(){Pman.Dialog.PressReleaseEdit.show({id:0},function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["97b0d3f09fec9e59a34c5f83f69a72c2"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s.length||(s.length>1)){Roo.MessageBox.alert(_T["6836a1c0c8926e420d5055d535093141"],s.length?_T["b584d87a9686827e406637319e3ba5b0"]:_T["07d72f1deeff78a4581d7c618b01033b"]);return;}
-Pman.Dialog.PressReleaseEdit.show(C.grid.getDataSource().getById(s[0].data.id),function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["1387df571211c89a915018ac3e733177"],icon:Roo.rootURL+'images/default/tree/leaf.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'client_id_name',header:'Client',width:75,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'language',header:'Lang.',width:50,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt',header:'Publish Time',width:150,renderer:function(v,x,r){return String.format('{0}',v?v.format('d/M/Y H:i'):'');}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt_tz',header:'Timezone',width:75,renderer:function(v){var D='GMT';if(!v){return D;}return D+((v>0)?'+'+v:v);}},{xtype:'ColumnModel',xns:Roo.grid,header:'Headline',width:200,dataIndex:'headline',renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,header:'Publish status',width:75,dataIndex:'publish_status',renderer:function(v){return String.format('{0}',v);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseImages',module:Pman.Tab.PressReleaseImages,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["5a937fa4cdb12621d75fbfd9c1f98cd9"],disabled:false,permname:''});});Pman.Tab.PressReleaseImages=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'center',background:true,fitContainer:true,fitToframe:true,tableName:'Images',title:_T["6123ad9dc9a4a83978f40e369098fe93"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'title',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=D.getDataSource().getAt(E);Pman.Dialog.PressReleaseImage.show(s.data,function(){C.grid.footer.onClick('first');});}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params.ontable='Companies';o.params['query[imagesize]']='150x150';o.params['query[imageBaseURL]']=rootURL+'/release.php';var E=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falseo.params.imgtype='PressRelease';o.params.onid=E?E.data.id:0;if(!o.params.onid){if(!C.isBuilder){C.panel.el.mask('select company');}return false;}},load:function(D,E,F){C.panel.el.unmask();}},remoteSort:true,sortInfo:{field:'created',direction:'DESC'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'filename','type':'string'},{'name':'ontable','type':'string'},{'name':'onid','type':'int'},{'name':'mimetype','type':'string'},{'name':'width','type':'int'},{'name':'height','type':'int'},{'name':'filesize','type':'int'},{'name':'displayorder','type':'int'},{'name':'language','type':'string'},{'name':'parent_image_id','type':'int'},{'name':'created','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'imgtype','type':'string'},{'name':'linkurl','type':'string'},{'name':'descript','type':'string'},{'name':'title','type':'string'}]},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying Images  {0} - {1} of {2}',emptyMsg:'No Images found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){var D=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falsePman.Dialog.Image.show({id:0,ontable:'Companies',onid:D.data.id,imgtype:'PressRelease'},function(E){if(!E){return;}Pman.Dialog.PressReleaseImage.show(E,function(){C.grid.footer.onClick('first');});});}},cls:'x-btn-text-icon',text:_T["50dea3784491bf900415dc0cb48cfa56"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s||s.length!=1){Roo.MessageBox.alert(_T["26ad1f9420df99d50abfccd20bde4523"],_T["c1ebc05528786477caa746b8969ac7b7"]);return;}var D=C.grid.getDataSource().getById(s[0].data.id).data;Pman.Dialog.PressReleaseImage.show(D,function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["e50f23f4c186e2883a1793dc4ac1aa7b"],icon:Roo.rootURL+'images/default/tree/leaf.gif'},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){Pman.genericDelete(C,'Images');}},cls:'x-btn-text-icon',text:_T["f98ca9b05bf7c48a32dbdc3b631db8e0"],icon:rootURL+'/Pman/templates/images/trash.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Created',width:100,dataIndex:'created',renderer:function(v,x,r){return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',v.format('d/M/Y'),r.data.mimetype,r.data.filename,r.data.width,r.data.height);},sortable:true},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'id',header:'Image',width:100,renderer:function(v,x,r){return String.format('<img src="{0}/Images/Thumb/100/{1}/{2}" width="100">',baseURL,v,r.data.filename);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'title',header:'Details',width:100,renderer:function(v,x,r){var D=r.json.url.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;var E=r.json.url_view.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;return String.format('Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>'+'<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>'+'<br/><b>{3}</b><br/>{4}</i>',window.location.host,D,E,v,r.json.descript);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseTab',module:Pman.Tab.PressReleaseTab,region:'center',parent:Pman,name:_T["0171f490ee4f0845462c2ef7fe7d282d"],disabled:false});});Pman.Tab.PressReleaseTab=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'NestedLayoutPanel',xns:Roo,background:true,fitToFrame:true,region:'center',title:_T["518c51a07de566914661f27461de9bc7"],layout:{xtype:'BorderLayout',xns:Roo,west:{xtype:'LayoutRegion',xns:Roo,titlebar:false,split:true,width:'200'},center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top',titlebar:false}}});this.layout=this.panel.layout;}});
-Pman.Readers.Pressrelease_entry={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'client_id',type:'int'},'language',{name:'publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'publish_dt_tz',type:'int'},'headline','content','content_data','content_links',{name:'updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created_by',type:'int'},{name:'updated_by',type:'int'},{name:'owner_id',type:'int'},{name:'publish_status',type:'int'},{name:'client_id_id',type:'int'},{name:'client_id_office_id',type:'int'},'client_id_name','client_id_phone','client_id_fax','client_id_email',{name:'client_id_company_id',type:'int'},'client_id_role',{name:'client_id_active',type:'int'},'client_id_remarks','client_id_passwd',{name:'client_id_owner_id',type:'int'},'client_id_lang',{name:'client_id_no_reset_sent',type:'int'},'client_id_action_type',{name:'client_id_project_id',type:'int'},{name:'created_by_id',type:'int'},{name:'created_by_office_id',type:'int'},'created_by_name','created_by_phone','created_by_fax','created_by_email',{name:'created_by_company_id',type:'int'},'created_by_role',{name:'created_by_active',type:'int'},'created_by_remarks','created_by_passwd',{name:'created_by_owner_id',type:'int'},'created_by_lang',{name:'created_by_no_reset_sent',type:'int'},'created_by_action_type',{name:'created_by_project_id',type:'int'},{name:'updated_by_id',type:'int'},{name:'updated_by_office_id',type:'int'},'updated_by_name','updated_by_phone','updated_by_fax','updated_by_email',{name:'updated_by_company_id',type:'int'},'updated_by_role',{name:'updated_by_active',type:'int'},'updated_by_remarks','updated_by_passwd',{name:'updated_by_owner_id',type:'int'},'updated_by_lang',{name:'updated_by_no_reset_sent',type:'int'},'updated_by_action_type',{name:'updated_by_project_id',type:'int'},{name:'owner_id_id',type:'int'},{name:'owner_id_office_id',type:'int'},'owner_id_name','owner_id_phone','owner_id_fax','owner_id_email',{name:'owner_id_company_id',type:'int'},'owner_id_role',{name:'owner_id_active',type:'int'},'owner_id_remarks','owner_id_passwd',{name:'owner_id_owner_id',type:'int'},'owner_id_lang',{name:'owner_id_no_reset_sent',type:'int'},'owner_id_action_type',{name:'owner_id_project_id',type:'int'}]};Pman.Readers.Pressrelease_entry_related={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'entry_id',type:'int'},'relationship','table_name',{name:'table_id',type:'int'},{name:'entry_id_id',type:'int'},{name:'entry_id_client_id',type:'int'},'entry_id_language',{name:'entry_id_publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'entry_id_publish_dt_tz',type:'int'},'entry_id_headline','entry_id_content','entry_id_content_data','entry_id_content_links',{name:'entry_id_updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created_by',type:'int'},{name:'entry_id_updated_by',type:'int'},{name:'entry_id_owner_id',type:'int'},{name:'entry_id_publish_status',type:'int'}]};
diff --git a/PressRelease/compiled/PressRelease-2031_165055.js b/PressRelease/compiled/PressRelease-2031_165055.js
deleted file mode 100644 (file)
index 88b145f..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-if (typeof(_T) == 'undefined') { _T={};}
-_T["94f8f6e16cd2b597dd86bc97eb494947"]="Edit Press Release";
-_T["a9566bada1b13383b04743e2afb17729"]="Contents";
-_T["3fbbd723e360d75b3cadb243ede5fd6c"]="Error";
-_T["913c44e8f01618cc9d6ea2e85459002a"]="Please correct the errors in red";
-_T["7921d6e9293a3c2f642b898d34f342c2"]="Release Details";
-_T["7a9199b40ac31f6f2b3737b62f3a159a"]="Draft";
-_T["57e6adadd31335be6face97336006e91"]="Ready to Distribute";
-_T["ccfadea50dd71709e7c833fb14542f19"]="Embargoed";
-_T["04dfd45a9f3c81ce058c9acb90085060"]="Select Client";
-_T["e615dca2da5c70bfd247783b5595925f"]="Searching...";
-_T["ec9a9bc99ffe5d81f040177472335842"]="Company Details";
-_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]="Sending";
-_T["5dce890ec8a5d8b38b5a562cf37abd24"]="Financial Data";
-_T["ad472f752938345d00b2d3e0a1dcfb13"]="Upload Failed";
-_T["e011724ff5d9246a1c4d47b5e795b878"]="Save Press Release First";
-_T["4a192a6c3e83c0074ceb1dcc90040959"]="Images / PDF";
-_T["e16fd5cb9f059764f1c6fc25278674cb"]="Add From Image Store";
-_T["d29dfaa2afb866c3cd10de844a8dac93"]="Select Image";
-_T["c69f794304daa24af7d4f56a7b2a96a2"]="Select Images";
-_T["060cfc60d63f1f333d4242787f442d99"]="Select a company first";
-_T["daf74af5b9f6345d8bdb57c9988b2289"]="Save press release first";
-_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]="name";
-_T["e9f6e35e89802a5abd3edc4f6bda8eda"]="id";
-_T["a9a1897bacfd84601d1544d3db31136d"]="type";
-_T["0f5fb59163f9d8976c2be5634f57b326"]="int";
-_T["861bd0bd5a0665f84a3efacb87a9e4c9"]="filename";
-_T["4adda56db534f9b74a924003808812a3"]="string";
-_T["105aaa39cf6d0d73b6e6efd1201002f0"]="Select an Image";
-_T["42ebce0c2ee76d20878ce7b7f35d59b3"]="Error deleting image";
-_T["8462cfa01d6a20b5596db43b5a1c8911"]="Delete Selected File or  Image";
-_T["2ba3fba33421853e25813b236644a9b7"]="pressrelease_entry";
-_T["24387c7b2865c89e6950da30bd41aca7"]="Correct All the errors in Red";
-_T["623ba736d9f334f43f05e32a287cdcc6"]="Problem sending to server";
-_T["c93a8434f8d59e703d43c9c545da8032"]="Select type";
-_T["960409ef3c9bde7d57df2d63e71be7e6"]="Select Image Type";
-_T["d4ddf25bdf42d24705e5da2d1aced69e"]="Saving";
-_T["f3f0675937db6122a7bab05a282c4e54"]="Update Image Details";
-_T["c23240053a436cc91bc9f3d79b6a094e"]="MO - Website";
-_T["09423f64bebc3ddaba0c1280bfebd701"]="These contacts only appear on MO website";
-_T["d2a41fa7754b64b9e8f172c79760f74d"]="Select the client first";
-_T["35270abee43385e64e6d323e6263260d"]="Select Person";
-_T["de5564d58d1b86112580b5d623206fde"]="Name and Email";
-_T["e1ec66453f09e4536ea51e720f9a9e24"]="Name (email is link on our site)";
-_T["146e39adf5733982b394c16f71d96a48"]="Cancel";
-_T["fe718e1ebf8adc7d016d7ff733296320"]="submit";
-_T["5c1d5518211974c8447a38503db18739"]="Save";
-
-_T["e3f73516a11b5fd15f18d4bd74b23a30"]="Edit Image Details";
-_T["0eda5c8be173ebf25f47f7a9cde33db5"]="Select Image type";
-_T["ef826a2e1f8d865b75683bf445af80a9"]="Searching...";
-_T["2f1c95e0745d60b7f511220072d52722"]="Select core_image_type";
-_T["a467fa8589c6821edd3162c0936a10c4"]="name";
-_T["2a533e9f7e15f5bf7003b0bc70ad78e7"]="id";
-_T["6f77cec3a80c1b4435b467b022531856"]="type";
-_T["7702f5b5ab4ecf9072e1143668427f12"]="int";
-_T["77e68832070931808620683e1da16268"]="string";
-_T["b72b8d653936bd294f1c112df2ba657c"]="Cancel";
-_T["022f847bcb8d9f05c33afa850bb96efd"]="OK";
-_T["6c71e00c1e6226f31d6add04316e1942"]="Saving";
-_T["22446320a9f49f202ec567ee6c3abc55"]="submit";
-
-_T["2fad5624b2c220076adfc0d7621fc87d"]="Company List";
-_T["4888e81fff0e8fec50e695b385433130"]="Companies";
-
-_T["882d3af136207fdcc9c3828c28d43d61"]="Press Releases";
-_T["97b0d3f09fec9e59a34c5f83f69a72c2"]="Add";
-_T["6836a1c0c8926e420d5055d535093141"]="Error";
-_T["b584d87a9686827e406637319e3ba5b0"]="Select only one Row";
-_T["07d72f1deeff78a4581d7c618b01033b"]="Select a Row";
-_T["1387df571211c89a915018ac3e733177"]="Edit";
-
-_T["5a937fa4cdb12621d75fbfd9c1f98cd9"]="Image List";
-_T["6123ad9dc9a4a83978f40e369098fe93"]="Images";
-_T["50dea3784491bf900415dc0cb48cfa56"]="Add";
-_T["26ad1f9420df99d50abfccd20bde4523"]="Error";
-_T["c1ebc05528786477caa746b8969ac7b7"]="Select a single image to edit";
-_T["e50f23f4c186e2883a1793dc4ac1aa7b"]="Edit";
-_T["f98ca9b05bf7c48a32dbdc3b631db8e0"]="Delete";
-
-_T["0171f490ee4f0845462c2ef7fe7d282d"]="Press Release Tab";
-_T["518c51a07de566914661f27461de9bc7"]="Press Releases";
-
-Pman.Dialog.PressReleaseEdit={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,closable:false,collapsible:false,height:550,modal:true,resizable:false,title:_T["94f8f6e16cd2b597dd86bc97eb494947"],width:800,items:[{xtype:'ContentPanel',xns:Roo,region:'center',title:_T["a9566bada1b13383b04743e2afb17729"],items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}if(C.type=='setdata'){A.loaded=false;A.dialog.getLayout().showPanel(0);A.form.addForm(A.form2);A.form.addForm(A.form3);if(A.data.id){this.load({method:'GET',params:{'_id':A.data.id}});}else {A.loaded=true;A.form.findField('publish_status').setValue(-1);}return;}if(C.type=='load'){A.loaded=true;A.dialog.el.unmask();return;}if(C.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;},actionfailed:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}}},method:'POST',style:'margin: 10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'FieldSet',xns:Roo.form,labelWidth:75,legend:_T["7921d6e9293a3c2f642b898d34f342c2"],items:[{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Status',hiddenName:'publish_status',listWidth:200,mode:'local',name:'publish_status_name',triggerAction:'all',valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[-1,_T["7a9199b40ac31f6f2b3737b62f3a159a"]],[0,_T["57e6adadd31335be6face97336006e91"]],[1,_T["ccfadea50dd71709e7c833fb14542f19"]]],fields:['ftype','fname']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:true,displayField:'name',editable:'false',emptyText:_T["04dfd45a9f3c81ce058c9acb90085060"],fieldLabel:'Client',forceSelection:true,hiddenName:'client_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'client_id_name',pageSize:20,qtip:_T["04dfd45a9f3c81ce058c9acb90085060"],selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,alwaysQuery:true,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'ava_craft','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'}]}}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Language',hiddenName:'language',listWidth:200,mode:'local',name:'language_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('l'):[]})(),fields:['code','title']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Country',hiddenName:'country',listWidth:200,mode:'local',name:'country_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('c'):[]})(),fields:['code','title']}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,width:730,items:[{xtype:'DateField',xns:Roo.form,allowBlank:true,fieldLabel:'Publish',format:'Y-m-d',name:'publish_dt_day',width:100},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'hr',editable:false,fieldLabel:'Time',listWidth:80,mode:'local',name:'publish_dt_hr',triggerAction:'all',valueField:'hr',width:60,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){var r=[];for(var i=0;i<24;i++){r.push([i+':00']);r.push([i+':30']);}return r;})(),fields:['hr']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Timezone',hiddenName:'publish_dt_tz',listWidth:500,mode:'local',name:'publish_dt_tz_name',triggerAction:'all',valueField:'ftype',width:280,store:{xtype:'SimpleStore',xns:Roo.data,data:[['-12.00','(GMT -12:00) Eniwetok, Kwajalein'],['-11.00','(GMT -11:00) Midway Island, Samoa'],['-10.00','(GMT -10:00) Hawaii'],['-9.00','(GMT -9:00) Alaska'],['-8.00','(GMT -8:00) Pacific Time (US & Canada)'],['-7.00','(GMT -7:00) Mountain Time (US & Canada)'],['-6.00','(GMT -6:00) Central Time (US & Canada), Mexico City'],['-5.00','(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'],['-4.00','(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'],['-3.50','(GMT -3:30) Newfoundland'],['-3.00','(GMT -3:00) Brazil, Buenos Aires, Georgetown'],['-2.00','(GMT -2:00) Mid-Atlantic'],['-1.00','(GMT -1:00 hour) Azores, Cape Verde Islands'],['0.00','(GMT) Western Europe Time, London, Lisbon, Casablanca'],['1.00','(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris'],['2.00','(GMT +2:00) Kaliningrad, South Africa'],['3.00','(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'],['3.30','(GMT +3:30) Tehran'],['4.00','(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'],['4.50','(GMT +4:30) Kabul'],['5.00','(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'],['5.30','(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'],['5.45','(GMT +5:45) Kathmandu'],['6.00','(GMT +6:00) Almaty, Dhaka, Colombo'],['7.00','(GMT +7:00) Bangkok, Hanoi, Jakarta'],['8.00','(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'],['9.00','(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'],['9.30','(GMT +9:30) Adelaide, Darwin'],['10.00','(GMT +10:00) Eastern Australia, Guam, Vladivostok'],['11.00','(GMT +11:00) Magadan, Solomon Islands, New Caledonia'],['12.00','(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka']],fields:['ftype','fname']}}]}]},{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Headline',name:'headline',width:650},{xtype:'TextField',xns:Roo.form,fieldLabel:'Sub-Headline',name:'subheadline',width:650},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'HtmlEditor',xns:Roo.form,listeners:{sync:function(B,C){Roo.log('sync');var D=this.fieldEl.query('label')[0];var it=this.doc.body.innerText;var n=Math.max(0,it.replace(/^\s+/,'').replace(/\s+$/,'').split(/\s+/).length);D.innerHTML='Content: ('+n+' Words)';}},allowBlank:false,fieldLabel:'Content',height:230,name:'content',width:750}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]},{xtype:'ContentPanel',xns:Roo,background:true,region:'center',title:_T["ec9a9bc99ffe5d81f040177472335842"],items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form2=B;}},labelWidth:80,method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Companies.php',items:[{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Stock Code',name:'stockcode',width:100},{xtype:'Row',xns:Roo.form,labelWidth:110,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:' (Chinese) Name',name:'company_name_alt',width:150},{xtype:'Row',xns:Roo.form,labelWidth:65,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Industry',name:'industry',width:150}]}]}]},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Contacts',height:100,name:'contacts_txt',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Company Boiler Plate Statement',height:150,name:'content_about',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Related Web Links',height:100,name:'content_links',width:750}]}]}]},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){if(A.hasFinanceWatch){return;}
-A.hasFinanceWatch=true;A.financeSending=false;window.setInterval(function(){if(!A.financeForm){return;}var C=A.financeForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.financeSending){return;}
-A.financeSending=true;A.financeForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.financeForm.submit.defer(100,A.financeForm);},1000)}},region:'center',title:_T["5dce890ec8a5d8b38b5a562cf37abd24"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form3=B;}},method:'POST',style:'margin:10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Forward Looking Statement',height:150,name:'content_forward',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Financial Content',height:200,name:'content_data',style:'font-family: monospace;',width:750}]}]}]},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.financeForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.financeForm.reset();A.financeSending=false;A.financeForm.el.unmask();A.form2.findField('content_data').setValue(C.result.data);return;}},rendered:function(B){A.financeForm=B;}},fileUpload:true,labelWidth:200,style:'margin: 10px;',url:baseURL+'/PressRelease/ExcelToText.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Excel of Financial data',inputType:'file',name:'imageUpload',width:350}]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},south:{xtype:'LayoutRegion',xns:Roo,height:40}}},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){A.imagePanel=B;if(A.addFromStore){A.addFromStore.lastQuery='~~~~';}if(!A.loaded){return;}
-A.imageView.el.unmask();if(A.data.id){A.imageView.loadImages();}else {A.imageView.el.mask(_T["e011724ff5d9246a1c4d47b5e795b878"]);}if(A.hasUploadWatch){return;}
-A.hasUploadWatch=true;A.uploadSending=false;window.setInterval(function(){if(!A.uploadForm){return;}var C=A.uploadForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.uploadSending){return;}
-A.uploadSending=true;A.uploadForm.findField('onid').setValue(A.data.id);A.uploadForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.uploadForm.submit.defer(100,A.uploadForm);},1000)}},region:'center',title:_T["4a192a6c3e83c0074ceb1dcc90040959"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,autoScroll:true,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'JsonView',xns:Roo,listeners:{beforerender:function(B,C){A.imageView=B;if(this.stylesheet){return;}
-this.el.addClass('thumb-browser');this.stylesheet=Roo.util.CSS.createStyleSheet({'.thumb-browser .thumb-wrap':{border:'3px solid #EEE','float':'left',height:'190px',margin:'2px','padding-left':'5px','padding-top':'5px',width:'160px'},'.thumb-browser .x-view-selected':{border:'3px solid #333'},'.thumblabel':{font:'normal normal normal 11px/normal tahoma, verdana, helvetica'}},Roo.id());},selectionchange:function(B,C){if(!C||!C.length){A.imagePanel.layout.getRegion('east').hide();return;}
-A.imagePanel.layout.getRegion('east').show();A.imageForm.setValues(A.imageView.getNodeData(C[0]));}},jsonRoot:'data',singleSelect:true,loadImages:function(){this.load({url:baseURL+'/Roo/Images.php',method:'GET',params:{ontable:'pressrelease_entry',onid:A.data.id,'query[imagesize]':'150x150','query[imageBaseURL]':rootURL+'/release.php'},text:'Loading'});},tpl:{xtype:'Template',xns:Roo,html:'<div class="thumb-wrap"> '+'<div class="thumb"><img  src="{url_thumb}" class="thumb-img"></div>'+'<div class="thumblabel">{title}<br/>{linkurl}</div>'+'</div>'}}],toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'TextItem',xns:Roo.Toolbar,text:_T["e16fd5cb9f059764f1c6fc25278674cb"]},{xtype:'ComboBox',xns:Roo.form,listeners:{render:function(B){A.addFromStore=B;},select:function(B,C,D){new Pman.Request({url:baseURL+'/Roo/Images',method:'POST',params:{ontable:'pressrelease_entry',onid:A.form.findField('id').getValue(),_copy_from:C.data.id},success:function(){A.imageView.loadImages();}});}},alwaysQuery:true,editable:false,emptyText:_T["d29dfaa2afb866c3cd10de844a8dac93"],fieldLabel:'Images',forceSelection:true,listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,pageSize:20,qtip:_T["c69f794304daa24af7d4f56a7b2a96a2"],queryParam:'search',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><img src="{url_thumb}" height="150" width="150"><b>{filename}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var c=A.form.findField('client_id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["060cfc60d63f1f333d4242787f442d99"]);return false;}var id=A.form.findField('id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["daf74af5b9f6345d8bdb57c9988b2289"]);return false;}
-o.params.onid=c;o.params.ontable='Companies';o.params.imgtype='PressRelease';o.params['query[imagesize]']='150x150';}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["861bd0bd5a0665f84a3efacb87a9e4c9"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'Fill',xns:Roo.Toolbar},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(B,e){if(!A.imageView.getSelectedNodes().length){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["105aaa39cf6d0d73b6e6efd1201002f0"]);return;}var id=A.imageView.getNodeData(A.imageView.getSelectedNodes()[0]).id;A.imageView.el.mask('Deleting');Roo.Ajax.request({url:baseURL+'/Roo/Images.php',params:{_delete:id},method:'GET',success:function(){A.imageView.loadImages();},failure:function(){A.imageView.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["42ebce0c2ee76d20878ce7b7f35d59b3"]);return;}});}},text:_T["8462cfa01d6a20b5596db43b5a1c8911"]}]}},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.uploadForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.uploadForm.reset();A.uploadSending=false;A.uploadForm.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.uploadForm=B;},actionfailed:function(B,C){A.uploadForm.el.unmask();A.uploadForm.reset();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);A.imageView.loadImages();}},fileUpload:true,labelWidth:200,style:'margin: 10px;',progressUrl:baseURL+'/Core/UploadProgress.php',url:baseURL+'/Roo/Images.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Image or File',inputType:'file',name:'imageUpload',width:250}]},{xtype:'Hidden',xns:Roo.form,name:'onid'},{xtype:'Hidden',xns:Roo.form,name:'ontable',value:_T["2ba3fba33421853e25813b236644a9b7"]}]}]},{xtype:'ContentPanel',xns:Roo,region:'east',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.type=='setdata'){return;}if(C.type=='load'){return;}if(C.type=='submit'){A.selectAfterLoad=this.findField('id').getValue();var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.imageForm=B;},actionfailed:function(B,C){var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();if(C.failureType==Roo.form.Action.CLIENT_INVALID){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["24387c7b2865c89e6950da30bd41aca7"]);return;}
-Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["623ba736d9f334f43f05e32a287cdcc6"]);}},labelAlign:'top',method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Images.php',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Title',height:75,name:'title',width:150},{xtype:'ComboBox',xns:Roo.form,alwaysQuery:true,displayField:'name',editable:false,emptyText:_T["c93a8434f8d59e703d43c9c545da8032"],fieldLabel:'Image Type',forceSelection:true,listWidth:200,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'imgtype',pageSize:20,qtip:_T["960409ef3c9bde7d57df2d63e71be7e6"],queryParam:'query[name]',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'name',width:150,store:{xtype:'Store',xns:Roo.data,remoteSort:true,sortInfo:{direction:'ASC',field:'id'},listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/core_image_type.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'TextField',xns:Roo.form,fieldLabel:'Link',name:'linkurl',vtype:'url',width:150},{xtype:'TextField',xns:Roo.form,fieldLabel:'Mimetype',name:'mimetype',width:150,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Width',name:'width',width:75,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Height',name:'height',readOnly:true,width:75},{xtype:'TextField',xns:Roo.form,fieldLabel:'Filesize',name:'filesize',width:75,readOnly:true},{xtype:'Hidden',xns:Roo.form,name:'id'},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){var lr=A.imagePanel.layout.getRegion('east');lr.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.imageForm.submit();}},text:_T["f3f0675937db6122a7bab05a282c4e54"]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},east:{xtype:'LayoutRegion',xns:Roo,hidden:true,width:200},south:{xtype:'LayoutRegion',xns:Roo,height:60}}},{xtype:'ContentPanel',xns:Roo,background:true,region:'center',title:_T["c23240053a436cc91bc9f3d79b6a094e"],items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form_mo=B;}},method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Companies.php',items:[{xtype:'FieldSet',xns:Roo.form,legend:_T["09423f64bebc3ddaba0c1280bfebd701"],items:[{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',alwaysQuery:true,displayField:'name',editable:'false',fieldLabel:'Contact 1',forceSelection:true,hiddenName:'contact1_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact1_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact1_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',displayField:'name',editable:'false',fieldLabel:'Contact 2',forceSelection:true,hiddenName:'contact2_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact2_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,alwaysQuery:true,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact2_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',alwaysQuery:true,displayField:'name',editable:'false',fieldLabel:'Contact 3',forceSelection:true,hiddenName:'contact3_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact3_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact3_showtype',listWidth:200,mode:'local',name:'contact3_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]}]}]}]}],center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top'},buttons:[{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.hide();}},text:_T["146e39adf5733982b394c16f71d96a48"]},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.form.doAction(_T["fe718e1ebf8adc7d016d7ff733296320"]);}},text:_T["5c1d5518211974c8447a38503db18739"]}]});}};
-Pman.Dialog.PressReleaseImage={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,background:true,closable:false,collapsible:false,height:300,modal:true,resizable:false,title:_T["e3f73516a11b5fd15f18d4bd74b23a30"],width:580,items:[{xtype:'ContentPanel',xns:Roo,background:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,style:'margin: 5px',url:baseURL+'/Roo/Images.php',method:'POST',listeners:{actionfailed:function(B,C){A.dialog.el.unmask();Pman.standardActionFailed(B,C);},actioncomplete:function(_s,B){if(B.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;}},items:[{xtype:'Column',xns:Roo.form,width:'200',labelAlign:'top',items:[{xtype:'DisplayImage',xns:Roo.form,fieldLabel:'Image Preview',name:'filename',readOnly:'true',width:180,renderer:function(v){return String.format('<img src="{0}/Images/Thumb/200x200/{1}/{2}" width="180">',baseURL,A.data.id,A.data.filename);}}]},{xtype:'Column',xns:Roo.form,width:'320',labelAlign:'top',items:[{xtype:'TextField',xns:Roo.form,name:'title',fieldLabel:'Press Release Name',width:'300'},{xtype:'TextArea',xns:Roo.form,name:'descript',fieldLabel:'Notes',width:'300',height:'100'},{xtype:'ComboBox',xns:Roo.form,displayField:'name',editable:false,emptyText:_T["0eda5c8be173ebf25f47f7a9cde33db5"],fieldLabel:'Type',forceSelection:true,listWidth:400,loadingText:_T["ef826a2e1f8d865b75683bf445af80a9"],minChars:2,name:'imgtype',pageSize:20,qtip:_T["2f1c95e0745d60b7f511220072d52722"],queryParam:'query[name]',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'name',width:300,store:{xtype:'Store',xns:Roo.data,remoteSort:true,sortInfo:{direction:'ASC',field:'id'},listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/core_image_type.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["a467fa8589c6821edd3162c0936a10c4"]:_T["2a533e9f7e15f5bf7003b0bc70ad78e7"],_T["6f77cec3a80c1b4435b467b022531856"]:_T["7702f5b5ab4ecf9072e1143668427f12"]},{_T["a467fa8589c6821edd3162c0936a10c4"]:_T["a467fa8589c6821edd3162c0936a10c4"],_T["6f77cec3a80c1b4435b467b022531856"]:_T["77e68832070931808620683e1da16268"]}]}}}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]}],center:{xtype:'LayoutRegion',xns:Roo,titlebar:false},buttons:[{xtype:'Button',xns:Roo,text:_T["b72b8d653936bd294f1c112df2ba657c"],listeners:{click:function(){A.form.reset();A.dialog.hide();}}},{xtype:'Button',xns:Roo,text:_T["022f847bcb8d9f05c33afa850bb96efd"],listeners:{click:function(){A.dialog.el.mask(_T["6c71e00c1e6226f31d6add04316e1942"]);A.form.doAction(_T["22446320a9f49f202ec567ee6c3abc55"]);}}}]});}};
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseCompanies',module:Pman.Tab.PressReleaseCompanies,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["2fad5624b2c220076adfc0d7621fc87d"],disabled:false,permname:''});});Pman.Tab.PressReleaseCompanies=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'west',background:true,fitContainer:true,fitToframe:true,tableName:'Companies',title:_T["4888e81fff0e8fec50e695b385433130"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'code',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params['!id']=Pman.Login.authUser.company_id;}},remoteSort:true,sortInfo:{field:'name',direction:'ASC'},reader:Pman.Readers.Companies,proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'},{'name':'logo_id_id','type':'int'},{'name':'logo_id_filename','type':'string'},{'name':'logo_id_ontable','type':'string'},{'name':'logo_id_onid','type':'int'},{'name':'logo_id_mimetype','type':'string'},{'name':'logo_id_width','type':'int'},{'name':'logo_id_height','type':'int'},{'name':'logo_id_filesize','type':'int'},{'name':'logo_id_displayorder','type':'int'},{'name':'logo_id_language','type':'string'},{'name':'logo_id_parent_image_id','type':'int'},{'name':'logo_id_created','type':'string'},{'name':'logo_id_imgtype','type':'string'},{'name':'logo_id_linkurl','type':'string'},{'name':'logo_id_descript','type':'string'},{'name':'logo_id_title','type':'string'},{'name':'owner_id_id','type':'int'},{'name':'owner_id_office_id','type':'int'},{'name':'owner_id_name','type':'string'},{'name':'owner_id_phone','type':'string'},{'name':'owner_id_fax','type':'string'},{'name':'owner_id_email','type':'string'},{'name':'owner_id_company_id','type':'int'},{'name':'owner_id_role','type':'string'},{'name':'owner_id_active','type':'int'},{'name':'owner_id_remarks','type':'string'},{'name':'owner_id_passwd','type':'string'},{'name':'owner_id_owner_id','type':'int'},{'name':'owner_id_lang','type':'string'},{'name':'owner_id_no_reset_sent','type':'int'},{'name':'owner_id_action_type','type':'string'},{'name':'owner_id_project_id','type':'int'},{'name':'main_office_id_id','type':'int'},{'name':'main_office_id_company_id','type':'int'},{'name':'main_office_id_name','type':'string'},{'name':'main_office_id_address','type':'string'},{'name':'main_office_id_phone','type':'string'},{'name':'main_office_id_fax','type':'string'},{'name':'main_office_id_email','type':'string'},{'name':'main_office_id_role','type':'string'}]}},footer:{xtype:'PagingToolbar',xns:Roo,displayInfo:true,displayMsg:'',emptyMsg:'',pageSize:50},selModel:{xtype:'RowSelectionModel',xns:Roo.grid,listeners:{afterselectionchange:function(D){Pman.Tab.PressReleaseImages.grid.footer.onClick('first');}}},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Company',width:100,dataIndex:'name',renderer:function(v){return String.format('{0}',v);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseEntry',module:Pman.Tab.PressReleaseEntry,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["882d3af136207fdcc9c3828c28d43d61"],disabled:false,permname:''});});Pman.Tab.PressReleaseEntry=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},background:true,fitContainer:true,fitToframe:true,region:'center',tableName:'pressrelease_entry',title:_T["882d3af136207fdcc9c3828c28d43d61"],grid:{xtype:'Grid',xns:Roo.grid,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=C.grid.getDataSource().getAt(E);Pman.Dialog.PressReleaseEdit.show(s.data,function(){C.grid.footer.onClick('first');});}},autoExpandColumn:'headline',loadMask:true,dataSource:{xtype:'Store',xns:Roo.data,proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/pressrelease_entry.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'client_id','type':'int'},{'name':'client_id_name','type':'string'},{'name':'language','type':'string'},{'name':'publish_dt','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'publish_dt_hour','type':'float'},{'name':'publish_dt_tz','type':'float'},{'name':'headline','type':'string'},{'name':'content','type':'string'},{'name':'content_data','type':'string'},{'name':'content_links','type':'string'},{'name':'updated','type':'string'},{'name':'created','type':'string'},{'name':'created_by','type':'int'},{'name':'updated_by','type':'int'},{'name':'owner_id','type':'int'},{'name':'publish_status','type':'int'}]}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying pressrelease_entry{0} - {1} of {2}',emptyMsg:'No pressrelease_entry found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo,listeners:{click:function(){Pman.Dialog.PressReleaseEdit.show({id:0},function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["97b0d3f09fec9e59a34c5f83f69a72c2"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s.length||(s.length>1)){Roo.MessageBox.alert(_T["6836a1c0c8926e420d5055d535093141"],s.length?_T["b584d87a9686827e406637319e3ba5b0"]:_T["07d72f1deeff78a4581d7c618b01033b"]);return;}
-Pman.Dialog.PressReleaseEdit.show(C.grid.getDataSource().getById(s[0].data.id),function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["1387df571211c89a915018ac3e733177"],icon:Roo.rootURL+'images/default/tree/leaf.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'client_id_name',header:'Client',width:75,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'language',header:'Lang.',width:50,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt',header:'Publish Time',width:150,renderer:function(v,x,r){return String.format('{0}',v?v.format('d/M/Y H:i'):'');}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt_tz',header:'Timezone',width:75,renderer:function(v){var D='GMT';if(!v){return D;}return D+((v>0)?'+'+v:v);}},{xtype:'ColumnModel',xns:Roo.grid,header:'Headline',width:200,dataIndex:'headline',renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,header:'Publish status',width:75,dataIndex:'publish_status',renderer:function(v){return String.format('{0}',v);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseImages',module:Pman.Tab.PressReleaseImages,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["5a937fa4cdb12621d75fbfd9c1f98cd9"],disabled:false,permname:''});});Pman.Tab.PressReleaseImages=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'center',background:true,fitContainer:true,fitToframe:true,tableName:'Images',title:_T["6123ad9dc9a4a83978f40e369098fe93"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'title',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=D.getDataSource().getAt(E);Pman.Dialog.PressReleaseImage.show(s.data,function(){C.grid.footer.onClick('first');});}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params.ontable='Companies';o.params['query[imagesize]']='150x150';o.params['query[imageBaseURL]']=rootURL+'/release.php';var E=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falseo.params.onid=E?E.data.id:0;if(!o.params.onid){if(!C.isBuilder){C.panel.el.mask('select company');}return false;}},load:function(D,E,F){C.panel.el.unmask();}},remoteSort:true,sortInfo:{field:'created',direction:'DESC'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'filename','type':'string'},{'name':'ontable','type':'string'},{'name':'onid','type':'int'},{'name':'mimetype','type':'string'},{'name':'width','type':'int'},{'name':'height','type':'int'},{'name':'filesize','type':'int'},{'name':'displayorder','type':'int'},{'name':'language','type':'string'},{'name':'parent_image_id','type':'int'},{'name':'created','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'imgtype','type':'string'},{'name':'linkurl','type':'string'},{'name':'descript','type':'string'},{'name':'title','type':'string'}]},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying Images  {0} - {1} of {2}',emptyMsg:'No Images found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){var D=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falsePman.Dialog.Image.show({id:0,ontable:'Companies',onid:D.data.id,imgtype:'PressRelease'},function(E){if(!E){return;}Pman.Dialog.PressReleaseImage.show(E,function(){C.grid.footer.onClick('first');});});}},cls:'x-btn-text-icon',text:_T["50dea3784491bf900415dc0cb48cfa56"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s||s.length!=1){Roo.MessageBox.alert(_T["26ad1f9420df99d50abfccd20bde4523"],_T["c1ebc05528786477caa746b8969ac7b7"]);return;}var D=C.grid.getDataSource().getById(s[0].data.id).data;Pman.Dialog.PressReleaseImage.show(D,function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["e50f23f4c186e2883a1793dc4ac1aa7b"],icon:Roo.rootURL+'images/default/tree/leaf.gif'},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){Pman.genericDelete(C,'Images');}},cls:'x-btn-text-icon',text:_T["f98ca9b05bf7c48a32dbdc3b631db8e0"],icon:rootURL+'/Pman/templates/images/trash.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Created',width:100,dataIndex:'created',renderer:function(v,x,r){return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',v.format('d/M/Y'),r.data.mimetype,r.data.filename,r.data.width,r.data.height);},sortable:true},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'id',header:'Image',width:100,renderer:function(v,x,r){return String.format('<img src="{0}/Images/Thumb/100/{1}/{2}" width="100">',baseURL,v,r.data.filename);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'title',header:'Details',width:100,renderer:function(v,x,r){var D=r.json.url.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;var E=r.json.url_view.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;return String.format('Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>'+'<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>'+'<br/><b>{3}</b><br/>{4}</i>',window.location.host,D,E,v,r.json.descript);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseTab',module:Pman.Tab.PressReleaseTab,region:'center',parent:Pman,name:_T["0171f490ee4f0845462c2ef7fe7d282d"],disabled:false});});Pman.Tab.PressReleaseTab=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'NestedLayoutPanel',xns:Roo,background:true,fitToFrame:true,region:'center',title:_T["518c51a07de566914661f27461de9bc7"],layout:{xtype:'BorderLayout',xns:Roo,west:{xtype:'LayoutRegion',xns:Roo,titlebar:false,split:true,width:'200'},center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top',titlebar:false}}});this.layout=this.panel.layout;}});
-Pman.Readers.Pressrelease_entry={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'client_id',type:'int'},'language',{name:'publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'publish_dt_tz',type:'int'},'headline','content','content_data','content_links',{name:'updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created_by',type:'int'},{name:'updated_by',type:'int'},{name:'owner_id',type:'int'},{name:'publish_status',type:'int'},{name:'client_id_id',type:'int'},{name:'client_id_office_id',type:'int'},'client_id_name','client_id_phone','client_id_fax','client_id_email',{name:'client_id_company_id',type:'int'},'client_id_role',{name:'client_id_active',type:'int'},'client_id_remarks','client_id_passwd',{name:'client_id_owner_id',type:'int'},'client_id_lang',{name:'client_id_no_reset_sent',type:'int'},'client_id_action_type',{name:'client_id_project_id',type:'int'},{name:'created_by_id',type:'int'},{name:'created_by_office_id',type:'int'},'created_by_name','created_by_phone','created_by_fax','created_by_email',{name:'created_by_company_id',type:'int'},'created_by_role',{name:'created_by_active',type:'int'},'created_by_remarks','created_by_passwd',{name:'created_by_owner_id',type:'int'},'created_by_lang',{name:'created_by_no_reset_sent',type:'int'},'created_by_action_type',{name:'created_by_project_id',type:'int'},{name:'updated_by_id',type:'int'},{name:'updated_by_office_id',type:'int'},'updated_by_name','updated_by_phone','updated_by_fax','updated_by_email',{name:'updated_by_company_id',type:'int'},'updated_by_role',{name:'updated_by_active',type:'int'},'updated_by_remarks','updated_by_passwd',{name:'updated_by_owner_id',type:'int'},'updated_by_lang',{name:'updated_by_no_reset_sent',type:'int'},'updated_by_action_type',{name:'updated_by_project_id',type:'int'},{name:'owner_id_id',type:'int'},{name:'owner_id_office_id',type:'int'},'owner_id_name','owner_id_phone','owner_id_fax','owner_id_email',{name:'owner_id_company_id',type:'int'},'owner_id_role',{name:'owner_id_active',type:'int'},'owner_id_remarks','owner_id_passwd',{name:'owner_id_owner_id',type:'int'},'owner_id_lang',{name:'owner_id_no_reset_sent',type:'int'},'owner_id_action_type',{name:'owner_id_project_id',type:'int'}]};Pman.Readers.Pressrelease_entry_related={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'entry_id',type:'int'},'relationship','table_name',{name:'table_id',type:'int'},{name:'entry_id_id',type:'int'},{name:'entry_id_client_id',type:'int'},'entry_id_language',{name:'entry_id_publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'entry_id_publish_dt_tz',type:'int'},'entry_id_headline','entry_id_content','entry_id_content_data','entry_id_content_links',{name:'entry_id_updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created_by',type:'int'},{name:'entry_id_updated_by',type:'int'},{name:'entry_id_owner_id',type:'int'},{name:'entry_id_publish_status',type:'int'}]};
diff --git a/PressRelease/compiled/PressRelease-2051_135946.js b/PressRelease/compiled/PressRelease-2051_135946.js
deleted file mode 100644 (file)
index 4b6ea7c..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-if (typeof(_T) == 'undefined') { _T={};}
-_T["94f8f6e16cd2b597dd86bc97eb494947"]="Edit Press Release";
-_T["a9566bada1b13383b04743e2afb17729"]="Contents";
-_T["3fbbd723e360d75b3cadb243ede5fd6c"]="Error";
-_T["913c44e8f01618cc9d6ea2e85459002a"]="Please correct the errors in red";
-_T["7921d6e9293a3c2f642b898d34f342c2"]="Release Details";
-_T["7a9199b40ac31f6f2b3737b62f3a159a"]="Draft";
-_T["57e6adadd31335be6face97336006e91"]="Ready to Distribute";
-_T["ccfadea50dd71709e7c833fb14542f19"]="Embargoed";
-_T["04dfd45a9f3c81ce058c9acb90085060"]="Select Client";
-_T["e615dca2da5c70bfd247783b5595925f"]="Searching...";
-_T["ec9a9bc99ffe5d81f040177472335842"]="Company Details";
-_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]="Sending";
-_T["5dce890ec8a5d8b38b5a562cf37abd24"]="Financial Data";
-_T["ad472f752938345d00b2d3e0a1dcfb13"]="Upload Failed";
-_T["e011724ff5d9246a1c4d47b5e795b878"]="Save Press Release First";
-_T["4a192a6c3e83c0074ceb1dcc90040959"]="Images / PDF";
-_T["e16fd5cb9f059764f1c6fc25278674cb"]="Add From Image Store";
-_T["d29dfaa2afb866c3cd10de844a8dac93"]="Select Image";
-_T["c69f794304daa24af7d4f56a7b2a96a2"]="Select Images";
-_T["060cfc60d63f1f333d4242787f442d99"]="Select a company first";
-_T["daf74af5b9f6345d8bdb57c9988b2289"]="Save press release first";
-_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]="name";
-_T["e9f6e35e89802a5abd3edc4f6bda8eda"]="id";
-_T["a9a1897bacfd84601d1544d3db31136d"]="type";
-_T["0f5fb59163f9d8976c2be5634f57b326"]="int";
-_T["861bd0bd5a0665f84a3efacb87a9e4c9"]="filename";
-_T["4adda56db534f9b74a924003808812a3"]="string";
-_T["53be4acba0065a9765409179c07c2a4b"]="url_thumb";
-_T["105aaa39cf6d0d73b6e6efd1201002f0"]="Select an Image";
-_T["42ebce0c2ee76d20878ce7b7f35d59b3"]="Error deleting image";
-_T["8462cfa01d6a20b5596db43b5a1c8911"]="Delete Selected File or  Image";
-_T["2ba3fba33421853e25813b236644a9b7"]="pressrelease_entry";
-_T["24387c7b2865c89e6950da30bd41aca7"]="Correct All the errors in Red";
-_T["623ba736d9f334f43f05e32a287cdcc6"]="Problem sending to server";
-_T["c93a8434f8d59e703d43c9c545da8032"]="Select type";
-_T["960409ef3c9bde7d57df2d63e71be7e6"]="Select Image Type";
-_T["d4ddf25bdf42d24705e5da2d1aced69e"]="Saving";
-_T["f3f0675937db6122a7bab05a282c4e54"]="Update Image Details";
-_T["c23240053a436cc91bc9f3d79b6a094e"]="MO - Website";
-_T["09423f64bebc3ddaba0c1280bfebd701"]="These contacts only appear on MO website";
-_T["d2a41fa7754b64b9e8f172c79760f74d"]="Select the client first";
-_T["35270abee43385e64e6d323e6263260d"]="Select Person";
-_T["de5564d58d1b86112580b5d623206fde"]="Name and Email";
-_T["e1ec66453f09e4536ea51e720f9a9e24"]="Name (email is link on our site)";
-_T["146e39adf5733982b394c16f71d96a48"]="Cancel";
-_T["fe718e1ebf8adc7d016d7ff733296320"]="submit";
-_T["5c1d5518211974c8447a38503db18739"]="Save";
-
-_T["e3f73516a11b5fd15f18d4bd74b23a30"]="Edit Image Details";
-_T["0eda5c8be173ebf25f47f7a9cde33db5"]="Select Image type";
-_T["ef826a2e1f8d865b75683bf445af80a9"]="Searching...";
-_T["2f1c95e0745d60b7f511220072d52722"]="Select core_image_type";
-_T["a467fa8589c6821edd3162c0936a10c4"]="name";
-_T["2a533e9f7e15f5bf7003b0bc70ad78e7"]="id";
-_T["6f77cec3a80c1b4435b467b022531856"]="type";
-_T["7702f5b5ab4ecf9072e1143668427f12"]="int";
-_T["77e68832070931808620683e1da16268"]="string";
-_T["b72b8d653936bd294f1c112df2ba657c"]="Cancel";
-_T["022f847bcb8d9f05c33afa850bb96efd"]="OK";
-_T["6c71e00c1e6226f31d6add04316e1942"]="Saving";
-_T["22446320a9f49f202ec567ee6c3abc55"]="submit";
-
-_T["2fad5624b2c220076adfc0d7621fc87d"]="Company List";
-_T["4888e81fff0e8fec50e695b385433130"]="Companies";
-
-_T["882d3af136207fdcc9c3828c28d43d61"]="Press Releases";
-_T["97b0d3f09fec9e59a34c5f83f69a72c2"]="Add";
-_T["6836a1c0c8926e420d5055d535093141"]="Error";
-_T["b584d87a9686827e406637319e3ba5b0"]="Select only one Row";
-_T["07d72f1deeff78a4581d7c618b01033b"]="Select a Row";
-_T["1387df571211c89a915018ac3e733177"]="Edit";
-
-_T["5a937fa4cdb12621d75fbfd9c1f98cd9"]="Image List";
-_T["6123ad9dc9a4a83978f40e369098fe93"]="Images";
-_T["50dea3784491bf900415dc0cb48cfa56"]="Add";
-_T["26ad1f9420df99d50abfccd20bde4523"]="Error";
-_T["c1ebc05528786477caa746b8969ac7b7"]="Select a single image to edit";
-_T["e50f23f4c186e2883a1793dc4ac1aa7b"]="Edit";
-_T["f98ca9b05bf7c48a32dbdc3b631db8e0"]="Delete";
-
-_T["0171f490ee4f0845462c2ef7fe7d282d"]="Press Release Tab";
-_T["518c51a07de566914661f27461de9bc7"]="Press Releases";
-
-Pman.Dialog.PressReleaseEdit={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,closable:false,collapsible:false,height:550,modal:true,resizable:false,title:_T["94f8f6e16cd2b597dd86bc97eb494947"],width:800,items:[{xtype:'ContentPanel',xns:Roo,region:'center',title:_T["a9566bada1b13383b04743e2afb17729"],items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}if(C.type=='setdata'){A.loaded=false;A.dialog.getLayout().showPanel(0);A.form.addForm(A.form2);A.form.addForm(A.form3);if(A.data.id){this.load({method:'GET',params:{'_id':A.data.id}});}else {A.loaded=true;A.form.findField('publish_status').setValue(-1);}return;}if(C.type=='load'){A.loaded=true;A.dialog.el.unmask();return;}if(C.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;},actionfailed:function(B,C){if(C.failureType){A.dialog.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["913c44e8f01618cc9d6ea2e85459002a"]);return;}}},method:'POST',style:'margin: 10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'FieldSet',xns:Roo.form,labelWidth:75,legend:_T["7921d6e9293a3c2f642b898d34f342c2"],items:[{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Status',hiddenName:'publish_status',listWidth:200,mode:'local',name:'publish_status_name',triggerAction:'all',valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[-1,_T["7a9199b40ac31f6f2b3737b62f3a159a"]],[0,_T["57e6adadd31335be6face97336006e91"]],[1,_T["ccfadea50dd71709e7c833fb14542f19"]]],fields:['ftype','fname']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:true,displayField:'name',editable:'false',emptyText:_T["04dfd45a9f3c81ce058c9acb90085060"],fieldLabel:'Client',forceSelection:true,hiddenName:'client_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'client_id_name',pageSize:20,qtip:_T["04dfd45a9f3c81ce058c9acb90085060"],selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,alwaysQuery:true,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'ava_craft','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'}]}}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,items:[{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Language',hiddenName:'language',listWidth:200,mode:'local',name:'language_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('l'):[]})(),fields:['code','title']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'title',editable:false,fieldLabel:'Country',hiddenName:'country',listWidth:200,mode:'local',name:'country_name',tpl:'<div class="x-grid-cell-text x-btn button"><b>{title}</b> </div>',triggerAction:'all',valueField:'code',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){return typeof(Pman)=='object'?Pman.I18n.simpleStoreData('c'):[]})(),fields:['code','title']}}]},{xtype:'Row',xns:Roo.form,labelWidth:75,width:730,items:[{xtype:'DateField',xns:Roo.form,allowBlank:true,fieldLabel:'Publish',format:'Y-m-d',name:'publish_dt_day',width:100},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'hr',editable:false,fieldLabel:'Time',listWidth:80,mode:'local',name:'publish_dt_hr',triggerAction:'all',valueField:'hr',width:60,store:{xtype:'SimpleStore',xns:Roo.data,data:(function(){var r=[];for(var i=0;i<24;i++){r.push([i+':00']);r.push([i+':30']);}return r;})(),fields:['hr']}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Timezone',hiddenName:'publish_dt_tz',listWidth:500,mode:'local',name:'publish_dt_tz_name',triggerAction:'all',valueField:'ftype',width:280,store:{xtype:'SimpleStore',xns:Roo.data,data:[['-12.00','(GMT -12:00) Eniwetok, Kwajalein'],['-11.00','(GMT -11:00) Midway Island, Samoa'],['-10.00','(GMT -10:00) Hawaii'],['-9.00','(GMT -9:00) Alaska'],['-8.00','(GMT -8:00) Pacific Time (US & Canada)'],['-7.00','(GMT -7:00) Mountain Time (US & Canada)'],['-6.00','(GMT -6:00) Central Time (US & Canada), Mexico City'],['-5.00','(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'],['-4.00','(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'],['-3.50','(GMT -3:30) Newfoundland'],['-3.00','(GMT -3:00) Brazil, Buenos Aires, Georgetown'],['-2.00','(GMT -2:00) Mid-Atlantic'],['-1.00','(GMT -1:00 hour) Azores, Cape Verde Islands'],['0.00','(GMT) Western Europe Time, London, Lisbon, Casablanca'],['1.00','(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris'],['2.00','(GMT +2:00) Kaliningrad, South Africa'],['3.00','(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'],['3.30','(GMT +3:30) Tehran'],['4.00','(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'],['4.50','(GMT +4:30) Kabul'],['5.00','(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'],['5.30','(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'],['5.45','(GMT +5:45) Kathmandu'],['6.00','(GMT +6:00) Almaty, Dhaka, Colombo'],['7.00','(GMT +7:00) Bangkok, Hanoi, Jakarta'],['8.00','(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'],['9.00','(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'],['9.30','(GMT +9:30) Adelaide, Darwin'],['10.00','(GMT +10:00) Eastern Australia, Guam, Vladivostok'],['11.00','(GMT +11:00) Magadan, Solomon Islands, New Caledonia'],['12.00','(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka']],fields:['ftype','fname']}}]}]},{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Headline',name:'headline',width:650},{xtype:'TextField',xns:Roo.form,fieldLabel:'Sub-Headline',name:'subheadline',width:650},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'HtmlEditor',xns:Roo.form,listeners:{sync:function(B,C){Roo.log('sync');var D=this.fieldEl.query('label')[0];var it=this.doc.body.innerText;var n=Math.max(0,it.replace(/^\s+/,'').replace(/\s+$/,'').split(/\s+/).length);D.innerHTML='Content: ('+n+' Words)';}},allowBlank:false,fieldLabel:'Content',height:230,name:'content',width:750}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]},{xtype:'ContentPanel',xns:Roo,background:true,region:'center',title:_T["ec9a9bc99ffe5d81f040177472335842"],items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form2=B;}},labelWidth:80,method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Companies.php',items:[{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Stock Code',name:'stockcode',width:100},{xtype:'Row',xns:Roo.form,labelWidth:110,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:' (Chinese) Name',name:'company_name_alt',width:150},{xtype:'Row',xns:Roo.form,labelWidth:65,items:[{xtype:'TextField',xns:Roo.form,fieldLabel:'Industry',name:'industry',width:150}]}]}]},{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Contacts',height:100,name:'contact_txt',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Company Boiler Plate Statement',height:150,name:'content_about',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Related Web Links',height:100,name:'content_links',width:750}]}]}]},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){if(A.hasFinanceWatch){return;}
-A.hasFinanceWatch=true;A.financeSending=false;window.setInterval(function(){if(!A.financeForm){return;}var C=A.financeForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.financeSending){return;}
-A.financeSending=true;A.financeForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.financeForm.submit.defer(100,A.financeForm);},1000)}},region:'center',title:_T["5dce890ec8a5d8b38b5a562cf37abd24"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form3=B;}},method:'POST',style:'margin:10px;',url:baseURL+'/Roo/pressrelease_entry.php',items:[{xtype:'Row',xns:Roo.form,labelAlign:'top',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Forward Looking Statement',height:150,name:'content_forward',width:750},{xtype:'TextArea',xns:Roo.form,fieldLabel:'Financial Content',height:200,name:'content_data',style:'font-family: monospace;',width:750}]}]}]},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.financeForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.financeForm.reset();A.financeSending=false;A.financeForm.el.unmask();A.form2.findField('content_data').setValue(C.result.data);return;}},rendered:function(B){A.financeForm=B;}},fileUpload:true,labelWidth:200,style:'margin: 10px;',url:baseURL+'/PressRelease/ExcelToText.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Excel of Financial data',inputType:'file',name:'imageUpload',width:350}]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},south:{xtype:'LayoutRegion',xns:Roo,height:40}}},{xtype:'NestedLayoutPanel',xns:Roo,listeners:{activate:function(B){A.imagePanel=B;if(A.addFromStore){A.addFromStore.lastQuery='~~~~';}if(!A.loaded){return;}
-A.imageView.el.unmask();if(A.data.id){A.imageView.loadImages();}else {A.imageView.el.mask(_T["e011724ff5d9246a1c4d47b5e795b878"]);}if(A.hasUploadWatch){return;}
-A.hasUploadWatch=true;A.uploadSending=false;window.setInterval(function(){if(!A.uploadForm){return;}var C=A.uploadForm.findField('imageUpload').getValue();if(!C||!C.length){return;}if(A.uploadSending){return;}
-A.uploadSending=true;A.uploadForm.findField('onid').setValue(A.data.id);A.uploadForm.el.mask(_T["fd57ca4f666fd5c2b4e32814bd4a70dc"]);A.uploadForm.submit.defer(100,A.uploadForm);},1000)}},region:'center',title:_T["4a192a6c3e83c0074ceb1dcc90040959"],layout:{xtype:'BorderLayout',xns:Roo,items:[{xtype:'ContentPanel',xns:Roo,autoScroll:true,fitContainer:true,fitToFrame:true,region:'center',items:[{xtype:'JsonView',xns:Roo,listeners:{beforerender:function(B,C){A.imageView=B;if(this.stylesheet){return;}
-this.el.addClass('thumb-browser');this.stylesheet=Roo.util.CSS.createStyleSheet({'.thumb-browser .thumb-wrap':{border:'3px solid #EEE','float':'left',height:'190px',margin:'2px','padding-left':'5px','padding-top':'5px',width:'160px'},'.thumb-browser .x-view-selected':{border:'3px solid #333'},'.thumblabel':{font:'normal normal normal 11px/normal tahoma, verdana, helvetica'}},Roo.id());},selectionchange:function(B,C){if(!C||!C.length){A.imagePanel.layout.getRegion('east').hide();return;}
-A.imagePanel.layout.getRegion('east').show();A.imageForm.setValues(A.imageView.getNodeData(C[0]));}},jsonRoot:'data',singleSelect:true,loadImages:function(){this.load({url:baseURL+'/Roo/Images.php',method:'GET',params:{ontable:'pressrelease_entry',onid:A.data.id,'query[imagesize]':'150x150','query[imageBaseURL]':rootURL+'/release.php'},text:'Loading'});},tpl:{xtype:'Template',xns:Roo,html:'<div class="thumb-wrap"> '+'<div class="thumb"><img  src="{url_thumb}" class="thumb-img"></div>'+'<div class="thumblabel">{title}<br/>{linkurl}</div>'+'</div>'}}],toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'TextItem',xns:Roo.Toolbar,text:_T["e16fd5cb9f059764f1c6fc25278674cb"]},{xtype:'ComboBox',xns:Roo.form,listeners:{render:function(B){A.addFromStore=B;},select:function(B,C,D){new Pman.Request({url:baseURL+'/Roo/Images',method:'POST',params:{ontable:'pressrelease_entry',onid:A.form.findField('id').getValue(),_copy_from:C.data.id},success:function(){A.imageView.loadImages();}});}},alwaysQuery:true,editable:false,emptyText:_T["d29dfaa2afb866c3cd10de844a8dac93"],fieldLabel:'Images',forceSelection:true,listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,pageSize:20,qtip:_T["c69f794304daa24af7d4f56a7b2a96a2"],queryParam:'search',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><img src="{url_thumb}" height="150" width="150"><b>{filename}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var c=A.form.findField('client_id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["060cfc60d63f1f333d4242787f442d99"]);return false;}var id=A.form.findField('id').getValue();if(!c){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["daf74af5b9f6345d8bdb57c9988b2289"]);return false;}
-o.params.onid=c;o.params.ontable='Companies';o.params['query[imagesize]']='150x150';}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["861bd0bd5a0665f84a3efacb87a9e4c9"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["53be4acba0065a9765409179c07c2a4b"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'Fill',xns:Roo.Toolbar},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(B,e){if(!A.imageView.getSelectedNodes().length){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["105aaa39cf6d0d73b6e6efd1201002f0"]);return;}var id=A.imageView.getNodeData(A.imageView.getSelectedNodes()[0]).id;A.imageView.el.mask('Deleting');Roo.Ajax.request({url:baseURL+'/Roo/Images.php',params:{_delete:id},method:'GET',success:function(){A.imageView.loadImages();},failure:function(){A.imageView.el.unmask();Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["42ebce0c2ee76d20878ce7b7f35d59b3"]);return;}});}},text:_T["8462cfa01d6a20b5596db43b5a1c8911"]}]}},{xtype:'ContentPanel',xns:Roo,region:'south',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.failureType){A.uploadForm.el.unmask();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);return false;}if(C.type=='submit'){A.uploadForm.reset();A.uploadSending=false;A.uploadForm.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.uploadForm=B;},actionfailed:function(B,C){A.uploadForm.el.unmask();A.uploadForm.reset();A.uploadSending=false;Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["ad472f752938345d00b2d3e0a1dcfb13"]);A.imageView.loadImages();}},fileUpload:true,labelWidth:200,style:'margin: 10px;',progressUrl:baseURL+'/Core/UploadProgress.php',url:baseURL+'/Roo/Images.php',items:[{xtype:'Row',xns:Roo.form,items:[{xtype:'TextField',xns:Roo.form,allowBlank:false,fieldLabel:'Upload Image or File',inputType:'file',name:'imageUpload',width:250}]},{xtype:'Hidden',xns:Roo.form,name:'onid'},{xtype:'Hidden',xns:Roo.form,name:'ontable',value:_T["2ba3fba33421853e25813b236644a9b7"]}]}]},{xtype:'ContentPanel',xns:Roo,region:'east',items:[{xtype:'Form',xns:Roo.form,listeners:{actioncomplete:function(B,C){if(C.type=='setdata'){return;}if(C.type=='load'){return;}if(C.type=='submit'){A.selectAfterLoad=this.findField('id').getValue();var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();A.imageView.loadImages();return;}},rendered:function(B){A.imageForm=B;},actionfailed:function(B,C){var lr=A.imagePanel.layout.getRegion('east');lr.el.unmask();if(C.failureType==Roo.form.Action.CLIENT_INVALID){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["24387c7b2865c89e6950da30bd41aca7"]);return;}
-Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["623ba736d9f334f43f05e32a287cdcc6"]);}},labelAlign:'top',method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Images.php',items:[{xtype:'TextArea',xns:Roo.form,fieldLabel:'Title',height:75,name:'title',width:150},{xtype:'ComboBox',xns:Roo.form,alwaysQuery:true,displayField:'name',editable:false,emptyText:_T["c93a8434f8d59e703d43c9c545da8032"],fieldLabel:'Image Type',forceSelection:true,listWidth:200,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'imgtype',pageSize:20,qtip:_T["960409ef3c9bde7d57df2d63e71be7e6"],queryParam:'query[name]',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'name',width:150,store:{xtype:'Store',xns:Roo.data,remoteSort:true,sortInfo:{direction:'ASC',field:'id'},listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/core_image_type.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'TextField',xns:Roo.form,fieldLabel:'Link',name:'linkurl',vtype:'url',width:150},{xtype:'TextField',xns:Roo.form,fieldLabel:'Mimetype',name:'mimetype',width:150,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Width',name:'width',width:75,readOnly:true},{xtype:'TextField',xns:Roo.form,fieldLabel:'Height',name:'height',readOnly:true,width:75},{xtype:'TextField',xns:Roo.form,fieldLabel:'Filesize',name:'filesize',width:75,readOnly:true},{xtype:'Hidden',xns:Roo.form,name:'id'},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){var lr=A.imagePanel.layout.getRegion('east');lr.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.imageForm.submit();}},text:_T["f3f0675937db6122a7bab05a282c4e54"]}]}]}],center:{xtype:'LayoutRegion',xns:Roo},east:{xtype:'LayoutRegion',xns:Roo,hidden:true,width:200},south:{xtype:'LayoutRegion',xns:Roo,height:60}}},{xtype:'ContentPanel',xns:Roo,background:true,region:'center',title:_T["c23240053a436cc91bc9f3d79b6a094e"],items:[{xtype:'Form',xns:Roo.form,listeners:{rendered:function(B){A.form_mo=B;}},method:'POST',style:'margin:10px;',url:baseURL+'/Roo/Companies.php',items:[{xtype:'FieldSet',xns:Roo.form,legend:_T["09423f64bebc3ddaba0c1280bfebd701"],items:[{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',alwaysQuery:true,displayField:'name',editable:'false',fieldLabel:'Contact 1',forceSelection:true,hiddenName:'contact1_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact1_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact1_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',displayField:'name',editable:'false',fieldLabel:'Contact 2',forceSelection:true,hiddenName:'contact2_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact2_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,alwaysQuery:true,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact1_showtype',listWidth:200,mode:'local',name:'contact2_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]},{xtype:'Row',xns:Roo.form,labelWidth:80,items:[{xtype:'ComboBox',xns:Roo.form,listeners:{add:function(B){if(!A.form.findField('client_id').getValue()){Roo.MessageBox.alert(_T["3fbbd723e360d75b3cadb243ede5fd6c"],_T["d2a41fa7754b64b9e8f172c79760f74d"]);return;}
-Pman.Dialog.PersonNew.show({},function(s){if(s){B.setValue(s.id);B.el.dom.value=s.name;}});}},allowBlank:'false',alwaysQuery:true,displayField:'name',editable:'false',fieldLabel:'Contact 3',forceSelection:true,hiddenName:'contact3_id',listWidth:400,loadingText:_T["e615dca2da5c70bfd247783b5595925f"],minChars:2,name:'contact3_id_name',pageSize:20,qtip:_T["35270abee43385e64e6d323e6263260d"],queryParam:'_psel',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'id',width:300,store:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(B,o){o.params=o.params||{};var C=A.form.findField('client_id').getValue();if(!C){Roo.MessageBox.alert('Error','Select a company first');return false;}
-o.params['query[comptype_or_company_id]']='AGENCY,'+C;}},remoteSort:true,sortInfo:{direction:'ASC',field:'id'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Person.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["e9f6e35e89802a5abd3edc4f6bda8eda"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["0f5fb59163f9d8976c2be5634f57b326"]},{_T["ff35d0f35e4941cd4ef11ffcfc4315bb"]:_T["ff35d0f35e4941cd4ef11ffcfc4315bb"],_T["a9a1897bacfd84601d1544d3db31136d"]:_T["4adda56db534f9b74a924003808812a3"]}]}}},{xtype:'ComboBox',xns:Roo.form,allowBlank:false,displayField:'fname',editable:false,fieldLabel:'Show as',hiddenName:'contact3_showtype',listWidth:200,mode:'local',name:'contact3_showtype_name',triggerAction:'all',value:0,valueField:'ftype',width:200,store:{xtype:'SimpleStore',xns:Roo.data,data:[[0,_T["de5564d58d1b86112580b5d623206fde"]],[1,_T["e1ec66453f09e4536ea51e720f9a9e24"]]],fields:['ftype','fname']}}]}]}]}]}],center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top'},buttons:[{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.hide();}},text:_T["146e39adf5733982b394c16f71d96a48"]},{xtype:'Button',xns:Roo,listeners:{click:function(B,e){A.dialog.el.mask(_T["d4ddf25bdf42d24705e5da2d1aced69e"]);A.form.doAction(_T["fe718e1ebf8adc7d016d7ff733296320"]);}},text:_T["5c1d5518211974c8447a38503db18739"]}]});}};
-Pman.Dialog.PressReleaseImage={dialog:false,callback:false,show:function(A,cb){if(!this.dialog){this.create();}
-this.callback=cb;this.data=A;this.dialog.show(this.data._el);if(this.form){this.form.reset();this.form.setValues(A);this.form.fireEvent('actioncomplete',this.form,{type:'setdata',data:A});}},create:function(){var A=this;this.dialog=Roo.factory({xtype:'LayoutDialog',xns:Roo,background:true,closable:false,collapsible:false,height:300,modal:true,resizable:false,title:_T["e3f73516a11b5fd15f18d4bd74b23a30"],width:580,items:[{xtype:'ContentPanel',xns:Roo,background:true,fitToFrame:true,region:'center',items:[{xtype:'Form',xns:Roo.form,style:'margin: 5px',url:baseURL+'/Roo/Images.php',method:'POST',listeners:{actionfailed:function(B,C){A.dialog.el.unmask();Pman.standardActionFailed(B,C);},actioncomplete:function(_s,B){if(B.type=='submit'){A.dialog.el.unmask();A.dialog.hide();if(A.callback){A.callback.call(A,A.form.getValues());}
-A.form.reset();return;}},rendered:function(B){A.form=B;}},items:[{xtype:'Column',xns:Roo.form,width:'200',labelAlign:'top',items:[{xtype:'DisplayImage',xns:Roo.form,fieldLabel:'Image Preview',name:'filename',readOnly:'true',width:180,renderer:function(v){return String.format('<img src="{0}/Images/Thumb/200x200/{1}/{2}" width="180">',baseURL,A.data.id,A.data.filename);}}]},{xtype:'Column',xns:Roo.form,width:'320',labelAlign:'top',items:[{xtype:'TextField',xns:Roo.form,name:'title',fieldLabel:'Press Release Name',width:'300'},{xtype:'TextArea',xns:Roo.form,name:'descript',fieldLabel:'Notes',width:'300',height:'100'},{xtype:'ComboBox',xns:Roo.form,alwaysQuery:true,displayField:'name',editable:false,emptyText:_T["0eda5c8be173ebf25f47f7a9cde33db5"],fieldLabel:'Type',forceSelection:true,listWidth:400,loadingText:_T["ef826a2e1f8d865b75683bf445af80a9"],minChars:2,name:'imgtype',pageSize:20,qtip:_T["2f1c95e0745d60b7f511220072d52722"],queryParam:'query[name]',selectOnFocus:true,tpl:'<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',triggerAction:'all',typeAhead:true,valueField:'name',width:300,store:{xtype:'Store',xns:Roo.data,remoteSort:true,sortInfo:{direction:'ASC',field:'id'},listeners:{beforeload:function(B,o){o.params=o.params||{};}},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/core_image_type.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{_T["a467fa8589c6821edd3162c0936a10c4"]:_T["2a533e9f7e15f5bf7003b0bc70ad78e7"],_T["6f77cec3a80c1b4435b467b022531856"]:_T["7702f5b5ab4ecf9072e1143668427f12"]},{_T["a467fa8589c6821edd3162c0936a10c4"]:_T["a467fa8589c6821edd3162c0936a10c4"],_T["6f77cec3a80c1b4435b467b022531856"]:_T["77e68832070931808620683e1da16268"]}]}}}]},{xtype:'Hidden',xns:Roo.form,name:'id'}]}]}],center:{xtype:'LayoutRegion',xns:Roo,titlebar:false},buttons:[{xtype:'Button',xns:Roo,text:_T["b72b8d653936bd294f1c112df2ba657c"],listeners:{click:function(){A.form.reset();A.dialog.hide();}}},{xtype:'Button',xns:Roo,text:_T["022f847bcb8d9f05c33afa850bb96efd"],listeners:{click:function(){A.dialog.el.mask(_T["6c71e00c1e6226f31d6add04316e1942"]);A.form.doAction(_T["22446320a9f49f202ec567ee6c3abc55"]);}}}]});}};
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseCompanies',module:Pman.Tab.PressReleaseCompanies,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["2fad5624b2c220076adfc0d7621fc87d"],disabled:false,permname:''});});Pman.Tab.PressReleaseCompanies=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'west',background:true,fitContainer:true,fitToframe:true,tableName:'Companies',title:_T["4888e81fff0e8fec50e695b385433130"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'code',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params['!id']=Pman.Login.authUser.company_id;o.params['comptype[0]']='CLIENT';o.params['comptype[1]']='AGENCY';}},remoteSort:true,reader:Pman.Readers.Companies,sortInfo:{field:'name',direction:'ASC'},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Companies.php'},reader:{xtype:'JsonReader',xns:Roo.data,totalProperty:'total',root:'data',id:'id',fields:[{'name':'code','type':'string'},{'name':'name','type':'string'},{'name':'remarks','type':'string'},{'name':'owner_id','type':'int'},{'name':'address','type':'string'},{'name':'tel','type':'string'},{'name':'fax','type':'string'},{'name':'email','type':'string'},{'name':'id','type':'int'},{'name':'isOwner','type':'int'},{'name':'logo_id','type':'int'},{'name':'background_color','type':'string'},{'name':'comptype','type':'string'},{'name':'url','type':'string'},{'name':'main_office_id','type':'int'},{'name':'created_by','type':'int'},{'name':'created_dt','type':'string'},{'name':'updated_by','type':'int'},{'name':'updated_dt','type':'string'},{'name':'passwd','type':'string'},{'name':'logo_id_id','type':'int'},{'name':'logo_id_filename','type':'string'},{'name':'logo_id_ontable','type':'string'},{'name':'logo_id_onid','type':'int'},{'name':'logo_id_mimetype','type':'string'},{'name':'logo_id_width','type':'int'},{'name':'logo_id_height','type':'int'},{'name':'logo_id_filesize','type':'int'},{'name':'logo_id_displayorder','type':'int'},{'name':'logo_id_language','type':'string'},{'name':'logo_id_parent_image_id','type':'int'},{'name':'logo_id_created','type':'string'},{'name':'logo_id_imgtype','type':'string'},{'name':'logo_id_linkurl','type':'string'},{'name':'logo_id_descript','type':'string'},{'name':'logo_id_title','type':'string'},{'name':'owner_id_id','type':'int'},{'name':'owner_id_office_id','type':'int'},{'name':'owner_id_name','type':'string'},{'name':'owner_id_phone','type':'string'},{'name':'owner_id_fax','type':'string'},{'name':'owner_id_email','type':'string'},{'name':'owner_id_company_id','type':'int'},{'name':'owner_id_role','type':'string'},{'name':'owner_id_active','type':'int'},{'name':'owner_id_remarks','type':'string'},{'name':'owner_id_passwd','type':'string'},{'name':'owner_id_owner_id','type':'int'},{'name':'owner_id_lang','type':'string'},{'name':'owner_id_no_reset_sent','type':'int'},{'name':'owner_id_action_type','type':'string'},{'name':'owner_id_project_id','type':'int'},{'name':'main_office_id_id','type':'int'},{'name':'main_office_id_company_id','type':'int'},{'name':'main_office_id_name','type':'string'},{'name':'main_office_id_address','type':'string'},{'name':'main_office_id_phone','type':'string'},{'name':'main_office_id_fax','type':'string'},{'name':'main_office_id_email','type':'string'},{'name':'main_office_id_role','type':'string'}]}},footer:{xtype:'PagingToolbar',xns:Roo,displayInfo:true,displayMsg:'',emptyMsg:'',pageSize:50},selModel:{xtype:'RowSelectionModel',xns:Roo.grid,listeners:{afterselectionchange:function(D){Pman.Tab.PressReleaseImages.grid.footer.onClick('first');}}},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Company',width:100,dataIndex:'name',renderer:function(v){return String.format('{0}',v);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseEntry',module:Pman.Tab.PressReleaseEntry,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["882d3af136207fdcc9c3828c28d43d61"],disabled:false,permname:''});});Pman.Tab.PressReleaseEntry=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},background:true,fitContainer:true,fitToframe:true,region:'center',tableName:'pressrelease_entry',title:_T["882d3af136207fdcc9c3828c28d43d61"],grid:{xtype:'Grid',xns:Roo.grid,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=C.grid.getDataSource().getAt(E);Pman.Dialog.PressReleaseEdit.show(s.data,function(){C.grid.footer.onClick('first');});}},autoExpandColumn:'headline',loadMask:true,dataSource:{xtype:'Store',xns:Roo.data,proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/pressrelease_entry.php'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'client_id','type':'int'},{'name':'client_id_name','type':'string'},{'name':'language','type':'string'},{'name':'publish_dt','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'publish_dt_hour','type':'float'},{'name':'publish_dt_tz','type':'float'},{'name':'headline','type':'string'},{'name':'content','type':'string'},{'name':'content_data','type':'string'},{'name':'content_links','type':'string'},{'name':'updated','type':'string'},{'name':'created','type':'string'},{'name':'created_by','type':'int'},{'name':'updated_by','type':'int'},{'name':'owner_id','type':'int'},{'name':'publish_status','type':'int'}]}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying pressrelease_entry{0} - {1} of {2}',emptyMsg:'No pressrelease_entry found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo,listeners:{click:function(){Pman.Dialog.PressReleaseEdit.show({id:0},function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["97b0d3f09fec9e59a34c5f83f69a72c2"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s.length||(s.length>1)){Roo.MessageBox.alert(_T["6836a1c0c8926e420d5055d535093141"],s.length?_T["b584d87a9686827e406637319e3ba5b0"]:_T["07d72f1deeff78a4581d7c618b01033b"]);return;}
-Pman.Dialog.PressReleaseEdit.show(C.grid.getDataSource().getById(s[0].data.id),function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["1387df571211c89a915018ac3e733177"],icon:Roo.rootURL+'images/default/tree/leaf.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'id',header:'no#',width:35,renderer:function(v){return String.format('#{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'client_id_name',header:'Client',width:75,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'language',header:'Lang.',width:50,renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt',header:'Publish Time',width:150,renderer:function(v,x,r){return String.format('{0}',v?v.format('d/M/Y H:i'):'');}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_dt_tz',header:'Timezone',width:75,renderer:function(v){var D='GMT';if(!v){return D;}return D+((v>0)?'+'+v:v);}},{xtype:'ColumnModel',xns:Roo.grid,header:'Headline',width:200,dataIndex:'headline',renderer:function(v){return String.format('{0}',v);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'publish_status',header:'Publish status',width:75,renderer:function(v){return v<0?'DRAFT':'publish';}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseImages',module:Pman.Tab.PressReleaseImages,region:'center',parent:Pman.Tab.PressReleaseTab,name:_T["5a937fa4cdb12621d75fbfd9c1f98cd9"],disabled:false,permname:''});});Pman.Tab.PressReleaseImages=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'GridPanel',xns:Roo,listeners:{activate:function(){C.panel=this;if(C.grid){C.grid.footer.onClick('first');}}},region:'center',background:true,fitContainer:true,fitToframe:true,tableName:'Images',title:_T["6123ad9dc9a4a83978f40e369098fe93"],grid:{xtype:'Grid',xns:Roo.grid,autoExpandColumn:'title',loadMask:true,listeners:{render:function(){C.grid=this;if(C.panel.active){this.footer.onClick('first');}},rowdblclick:function(D,E,e){var s=D.getDataSource().getAt(E);Pman.Dialog.PressReleaseImage.show(s.data,function(){C.grid.footer.onClick('first');});}},dataSource:{xtype:'Store',xns:Roo.data,listeners:{beforeload:function(D,o){o.params.ontable='Companies';o.params['query[imagesize]']='150x150';o.params['query[imageBaseURL]']=rootURL+'/release.php';var E=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falseo.params.onid=E?E.data.id:0;if(!o.params.onid){if(!C.isBuilder){C.panel.el.mask('select company');}return false;}},load:function(D,E,F){C.panel.el.unmask();}},remoteSort:true,sortInfo:{field:'created',direction:'DESC'},reader:{xtype:'JsonReader',xns:Roo.data,id:'id',root:'data',totalProperty:'total',fields:[{'name':'id','type':'int'},{'name':'filename','type':'string'},{'name':'ontable','type':'string'},{'name':'onid','type':'int'},{'name':'mimetype','type':'string'},{'name':'width','type':'int'},{'name':'height','type':'int'},{'name':'filesize','type':'int'},{'name':'displayorder','type':'int'},{'name':'language','type':'string'},{'name':'parent_image_id','type':'int'},{'name':'created','type':'date','dateFormat':'Y-m-d H:i:s'},{'name':'imgtype','type':'string'},{'name':'linkurl','type':'string'},{'name':'descript','type':'string'},{'name':'title','type':'string'}]},proxy:{xtype:'HttpProxy',xns:Roo.data,method:'GET',url:baseURL+'/Roo/Images.php'}},footer:{xtype:'PagingToolbar',xns:Roo,pageSize:25,displayInfo:true,displayMsg:'Displaying Images  {0} - {1} of {2}',emptyMsg:'No Images found'},toolbar:{xtype:'Toolbar',xns:Roo,items:[{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){var D=Pman.Tab.PressReleaseCompanies?Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected():falsePman.Dialog.Image.show({id:0,ontable:'Companies',onid:D.data.id,imgtype:'PressRelease'},function(E){if(!E){return;}Pman.Dialog.PressReleaseImage.show(E,function(){C.grid.footer.onClick('first');});});}},cls:'x-btn-text-icon',text:_T["50dea3784491bf900415dc0cb48cfa56"],icon:Roo.rootURL+'images/default/dd/drop-add.gif'},{xtype:'Button',xns:Roo,listeners:{click:function(){var s=C.grid.getSelectionModel().getSelections();if(!s||s.length!=1){Roo.MessageBox.alert(_T["26ad1f9420df99d50abfccd20bde4523"],_T["c1ebc05528786477caa746b8969ac7b7"]);return;}var D=C.grid.getDataSource().getById(s[0].data.id).data;Pman.Dialog.PressReleaseImage.show(D,function(){C.grid.footer.onClick('first');});}},cls:'x-btn-text-icon',text:_T["e50f23f4c186e2883a1793dc4ac1aa7b"],icon:Roo.rootURL+'images/default/tree/leaf.gif'},{xtype:'Button',xns:Roo.Toolbar,listeners:{click:function(){Pman.genericDelete(C,'Images');}},cls:'x-btn-text-icon',text:_T["f98ca9b05bf7c48a32dbdc3b631db8e0"],icon:rootURL+'/Pman/templates/images/trash.gif'}]},colModel:[{xtype:'ColumnModel',xns:Roo.grid,header:'Created',width:100,dataIndex:'created',renderer:function(v,x,r){return String.format('{0}<br/><i>{1}</i><br/>{2}<br/><i>{3}x{4}</i>',v.format('d/M/Y'),r.data.mimetype,r.data.filename,r.data.width,r.data.height);},sortable:true},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'id',header:'Image',width:100,renderer:function(v,x,r){return String.format('<img src="{0}/Images/Thumb/100/{1}/{2}" width="100">',baseURL,v,r.data.filename);}},{xtype:'ColumnModel',xns:Roo.grid,dataIndex:'title',header:'Details',width:100,renderer:function(v,x,r){var D=r.json.url.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;var E=r.json.url_view.replace(/\/release.php\/Images\//,'/i/').replace(/\/([0-9]+)\/.*$/,'/$1');;return String.format('Download Url : <a href="http://{0}{1}" target="_new">http://{0}{1}</a>'+'<br/>View Url : <a href="http://{0}{2}" target="_new">http://{0}{2}</a>'+'<br/><b>{3}</b><br/>{4}</i>',window.location.host,D,E,v,r.json.descript);}}]}});this.layout=this.panel.layout;}});
-Pman.on('beforeload',function(){Pman.register({modKey:'001-Pman.Tab.PressReleaseTab',module:Pman.Tab.PressReleaseTab,region:'center',parent:Pman,name:_T["0171f490ee4f0845462c2ef7fe7d282d"],disabled:false});});Pman.Tab.PressReleaseTab=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(A,B){var C=this;this.parentLayout=A;this.panel=A.addxtype({xtype:'NestedLayoutPanel',xns:Roo,background:true,fitToFrame:true,region:'center',title:_T["518c51a07de566914661f27461de9bc7"],layout:{xtype:'BorderLayout',xns:Roo,west:{xtype:'LayoutRegion',xns:Roo,titlebar:false,split:true,width:'200'},center:{xtype:'LayoutRegion',xns:Roo,alwaysShowTabs:true,tabPosition:'top',titlebar:false}}});this.layout=this.panel.layout;}});
-Pman.Readers.Pressrelease_entry={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'client_id',type:'int'},'language',{name:'publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'publish_dt_tz',type:'int'},'headline','content','content_data','content_links',{name:'updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'created_by',type:'int'},{name:'updated_by',type:'int'},{name:'owner_id',type:'int'},{name:'publish_status',type:'int'},{name:'client_id_id',type:'int'},{name:'client_id_office_id',type:'int'},'client_id_name','client_id_phone','client_id_fax','client_id_email',{name:'client_id_company_id',type:'int'},'client_id_role',{name:'client_id_active',type:'int'},'client_id_remarks','client_id_passwd',{name:'client_id_owner_id',type:'int'},'client_id_lang',{name:'client_id_no_reset_sent',type:'int'},'client_id_action_type',{name:'client_id_project_id',type:'int'},{name:'created_by_id',type:'int'},{name:'created_by_office_id',type:'int'},'created_by_name','created_by_phone','created_by_fax','created_by_email',{name:'created_by_company_id',type:'int'},'created_by_role',{name:'created_by_active',type:'int'},'created_by_remarks','created_by_passwd',{name:'created_by_owner_id',type:'int'},'created_by_lang',{name:'created_by_no_reset_sent',type:'int'},'created_by_action_type',{name:'created_by_project_id',type:'int'},{name:'updated_by_id',type:'int'},{name:'updated_by_office_id',type:'int'},'updated_by_name','updated_by_phone','updated_by_fax','updated_by_email',{name:'updated_by_company_id',type:'int'},'updated_by_role',{name:'updated_by_active',type:'int'},'updated_by_remarks','updated_by_passwd',{name:'updated_by_owner_id',type:'int'},'updated_by_lang',{name:'updated_by_no_reset_sent',type:'int'},'updated_by_action_type',{name:'updated_by_project_id',type:'int'},{name:'owner_id_id',type:'int'},{name:'owner_id_office_id',type:'int'},'owner_id_name','owner_id_phone','owner_id_fax','owner_id_email',{name:'owner_id_company_id',type:'int'},'owner_id_role',{name:'owner_id_active',type:'int'},'owner_id_remarks','owner_id_passwd',{name:'owner_id_owner_id',type:'int'},'owner_id_lang',{name:'owner_id_no_reset_sent',type:'int'},'owner_id_action_type',{name:'owner_id_project_id',type:'int'}]};Pman.Readers.Pressrelease_entry_related={root:'data',totalProperty:'total',id:'id',xtype:'JsonReader',fields:[{name:'id',type:'int'},{name:'entry_id',type:'int'},'relationship','table_name',{name:'table_id',type:'int'},{name:'entry_id_id',type:'int'},{name:'entry_id_client_id',type:'int'},'entry_id_language',{name:'entry_id_publish_dt',type:'date',dateFormat:'Y-m-d'},{name:'entry_id_publish_dt_tz',type:'int'},'entry_id_headline','entry_id_content','entry_id_content_data','entry_id_content_links',{name:'entry_id_updated',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created',type:'date',dateFormat:'Y-m-d H:i:s'},{name:'entry_id_created_by',type:'int'},{name:'entry_id_updated_by',type:'int'},{name:'entry_id_owner_id',type:'int'},{name:'entry_id_publish_status',type:'int'}]};
diff --git a/PressRelease/compiled/_translation_.js b/PressRelease/compiled/_translation_.js
deleted file mode 100644 (file)
index efd6e60..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-
-'Pman.Dialog.PressReleaseEdit.js' : {
-       "Edit Press Release" : "Edit Press Release",
-       "Contents" : "Contents",
-       "Error" : "Error",
-       "Please correct the errors in red" : "Please correct the errors in red",
-       "Release Details" : "Release Details",
-       "Draft" : "Draft",
-       "Ready to Distribute" : "Ready to Distribute",
-       "Embargoed" : "Embargoed",
-       "Select Client" : "Select Client",
-       "Searching..." : "Searching...",
-       "Company Details" : "Company Details",
-       "Sending" : "Sending",
-       "Financial Data" : "Financial Data",
-       "Upload Failed" : "Upload Failed",
-       "Save Press Release First" : "Save Press Release First",
-       "Images / PDF" : "Images / PDF",
-       "Add From Image Store" : "Add From Image Store",
-       "Select Image" : "Select Image",
-       "Select Images" : "Select Images",
-       "Select a company first" : "Select a company first",
-       "Save press release first" : "Save press release first",
-       "name" : "name",
-       "id" : "id",
-       "type" : "type",
-       "int" : "int",
-       "filename" : "filename",
-       "string" : "string",
-       "url_thumb" : "url_thumb",
-       "Select an Image" : "Select an Image",
-       "Error deleting image" : "Error deleting image",
-       "Delete Selected File or  Image" : "Delete Selected File or  Image",
-       "pressrelease_entry" : "pressrelease_entry",
-       "Correct All the errors in Red" : "Correct All the errors in Red",
-       "Problem sending to server" : "Problem sending to server",
-       "Select type" : "Select type",
-       "Select Image Type" : "Select Image Type",
-       "Saving" : "Saving",
-       "Update Image Details" : "Update Image Details",
-       "MO - Website" : "MO - Website",
-       "These contacts only appear on MO website" : "These contacts only appear on MO website",
-       "Select the client first" : "Select the client first",
-       "Select Person" : "Select Person",
-       "Name and Email" : "Name and Email",
-       "Name (email is link on our site)" : "Name (email is link on our site)",
-       "Cancel" : "Cancel",
-       "submit" : "submit",
-       "Save" : "Save"
-},
-'Pman.Dialog.PressReleaseImage.js' : {
-       "Edit Image Details" : "Edit Image Details",
-       "Select Image type" : "Select Image type",
-       "Searching..." : "Searching...",
-       "Select core_image_type" : "Select core_image_type",
-       "name" : "name",
-       "id" : "id",
-       "type" : "type",
-       "int" : "int",
-       "string" : "string",
-       "Cancel" : "Cancel",
-       "OK" : "OK",
-       "Saving" : "Saving",
-       "submit" : "submit"
-},
-'Pman.Tab.PressReleaseCompanies.js' : {
-       "Company List" : "Company List",
-       "Companies" : "Companies"
-},
-'Pman.Tab.PressReleaseEntry.js' : {
-       "Press Releases" : "Press Releases",
-       "Add" : "Add",
-       "Error" : "Error",
-       "Select only one Row" : "Select only one Row",
-       "Select a Row" : "Select a Row",
-       "Edit" : "Edit"
-},
-'Pman.Tab.PressReleaseImages.js' : {
-       "Image List" : "Image List",
-       "Images" : "Images",
-       "Add" : "Add",
-       "Error" : "Error",
-       "Select a single image to edit" : "Select a single image to edit",
-       "Edit" : "Edit",
-       "Delete" : "Delete"
-},
-'Pman.Tab.PressReleaseTab.js' : {
-       "Press Release Tab" : "Press Release Tab",
-       "Press Releases" : "Press Releases"
-},
\ No newline at end of file
diff --git a/PressRelease/domtemplates/pressrelease_entry.html b/PressRelease/domtemplates/pressrelease_entry.html
deleted file mode 100644 (file)
index f4396c5..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!--
-To change this template, choose Tools | Templates
-and open the template in the editor.
--->
-<!DOCTYPE html>
-<html>
-    <head>
-        <title>{title} | Media Outreach </title>
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-        <link href="http://www.media-outreach.com/templates/rhuk_milkyway1/favicon.ico" rel="shortcut icon" type="image/x-icon" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/components/com_tag/css/tagcloud.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/components/com_chronoforms/css/frontforms.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/components/com_chronoforms/css/formcheck/theme/classic/formcheck.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/components/com_chronoforms/css/formcheck_fix.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/modules/mod_jflanguageselection/tmpl/mod_jflanguageselection.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/modules/mod_AddThis/css/at-jp-styles.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/templates/system/css/system.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/templates/system/css/general.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/templates/rhuk_milkyway/css/template.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/templates/rhuk_milkyway/css/blue.css" type="text/css" />
-        <link rel="stylesheet" href="http://www.media-outreach.com/templates/rhuk_milkyway/css/blue_bg.css" type="text/css" />
-        <link rel="stylesheet" type="text/css" href="http://www.media-outreach.com/css/multimedia-portfolio.css">
-
-        <style>
-            #footer-container {
-                width: 100%;  
-                background-image:url('http://mediaoutreach.roojs.com/images/footer_repeat.png');
-                background-repeat:repeat-x; 
-            }
-            #footer-content{
-                width: 950px;  
-                height: 400px;
-                margin-left: auto;
-                margin-right: auto;
-            }
-
-            .imgClass { 
-                background-image: url(http://mediaoutreach.roojs.com/images/readmore_1bg.png);
-                background-position:  0px 0px;
-                background-repeat: no-repeat;
-                width: 72px;
-                height: 22px;
-                border: 0px;
-
-            }
-
-        </style>
-
-        <link rel="stylesheet" href="/web.MediaOutreach/Release/templates/web/web.css" type="text/css" />
-    </head>
-    <body  style="padding: 0; margin: 0 auto; width: 100%; font-family: helvetica;">
-        <div class="pr-header" style="padding: 15px;">
-            <div class="pr-client-data" style="text-align:right;clear:both;" roo-if="languages.length">
-                View in :<span roo-for="languages" ><a class="language" data-id="{id}" data-langauge="{language}" href="#" style="padding-left:10px;">{language_translate}</a></span>
-            </div>
-            <div class="clear">&nbsp;</div>
-
-        </div>
-
-        <table class="contentpaneopen" width="100%" style="padding: 15px;">
-            <tr>
-                <td class="contentheading" width="100%">
-                    <h3 style=" font-size: 18px; ">{headline:raw}</h3>
-                    <h4 roo-if="subheadline">{subheadline:raw}</h4>
-                </td>
-            </tr>
-        </table>
-
-        <table class="contentpaneopen" style="padding: 15px;">
-            <tr>
-                <td valign="top">
-
-                    {content_formated:raw}
-                    
-                    <span roo-if="content_data_empty">
-                        <br/>
-                        {content_data:raw}
-                    </span>
-                    <br/>
-                    {content_about_formated:raw}
-                    <br/>
-
-
-                </td>
-            </tr>
-
-        </table> 
-
-
-    </body>
-</html>
diff --git a/PressRelease/mysql/pressrelease_contact_trigger_before_update.sql b/PressRelease/mysql/pressrelease_contact_trigger_before_update.sql
deleted file mode 100644 (file)
index 5332e98..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-
--- this fixes the fails counter if you modify the email address...
-
--- NOTE - Press release does not currently use GLOBAL triggers ... so we can do this.
--- however if we install that code - we will have to rework this..
-
-DROP TRIGGER IF EXISTS pressrelease_contact_trigger_before_update;
-
-DELIMITER $$
-CREATE TRIGGER pressrelease_contact_trigger_before_update BEFORE UPDATE on pressrelease_contact
-    FOR EACH ROW
-        BEGIN
-            
-            IF
-                    NEW.email != OLD.email
-                    AND
-                    NEW.email_fails > 0
-                THEN
-                    SET NEW.email_fails = 0;
-                    
-            END IF;
-            
-             IF
-                    NEW.email2 != OLD.email2
-                    AND
-                    NEW.email2_fails > 0
-                THEN
-                    SET NEW.email2_fails = 0;
-                    
-            END IF;
-            
-             IF
-                    NEW.email3 != OLD.email3
-                    AND
-                    NEW.email3_fails > 0
-                THEN
-                    SET NEW.email3_fails = 0;
-                    
-            END IF;
-            
-            
-        END;
-
-$$
-
-DELIMITER ;
diff --git a/PressRelease/mysql/pressrelease_notify_trigger_after_update.sql b/PressRelease/mysql/pressrelease_notify_trigger_after_update.sql
deleted file mode 100644 (file)
index 9b2d93f..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
--- updating of pressrelease_notify causes updates of email*_fails
-
-
-DROP TRIGGER IF EXISTS pressrelease_notify_trigger_after_update;
-
-DELIMITER $$
-CREATE TRIGGER pressrelease_notify_trigger_after_update AFTER UPDATE on pressrelease_notify
-    FOR EACH ROW
-        BEGIN
-            
-            IF
-                    NEW.person_id > 0
-                    AND
-                    OLD.sent < '1980-01-01 00:00:00'  -- sent is not null in pressrelease_notify?
-                    AND
-                    NEW.sent > '1980-01-01 00:00:00'
-                THEN
-                -- we have a result...
-                IF NEW.msgid = '' THEN
-                   -- it's an error condition.
-                    IF new.field = 'email' THEN
-                        UPDATE pressrelease_contact set email_fails = email_fails + 1 WHERE id = NEW.person_id;
-                    END IF;   
-                    IF new.field = 'email2' THEN
-                        UPDATE pressrelease_contact set email2_fails = email2_fails + 1 WHERE id = NEW.person_id;
-                    END IF;
-                    IF new.field = 'email3' THEN
-                        UPDATE pressrelease_contact set email3_fails = email3_fails + 1 WHERE id = NEW.person_id;
-                    END IF;
-                ELSE
-                 
-                   -- it's an error condition.
-                    IF new.field = 'email' THEN
-                        UPDATE pressrelease_contact set email_fails =  0 WHERE id = NEW.person_id;
-                    END IF;   
-                    IF new.field = 'email2' THEN
-                        UPDATE pressrelease_contact set email2_fails = 0 WHERE id = NEW.person_id;
-                    END IF;
-                    IF new.field = 'email3' THEN
-                        UPDATE pressrelease_contact set email3_fails = 0  WHERE id = NEW.person_id;
-                    END IF;
-                END IF;
-                
-                
-            END IF;
-        END;
-
-$$
-
-DELIMITER ;
diff --git a/PressRelease/notes.txt b/PressRelease/notes.txt
deleted file mode 100644 (file)
index ba52a47..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-
-// general table.
-
-
-notes: 
-content_data == excell style data..
-publish_status = -1 = draft
-publish_status = 0 = published / ready to go..
-publish_status = 1 = archived?
-
-publish_dt_tz = need pulldown data for this..
-
-also needs:
-
-client_company - name in chinese?: 
-client_company- listed company id..?
-client_company - country?
-client_company - industry type. (string or id reference?)
-
-
-
-videos - (images attached to this of type video/.....)
-related links - extracted? or listed?
-photos - (images attached to this of type image/.....) - flag downloadable..
-media contacts
-
-company_contacts
-   'type' => media
-   user_id => 
-   
diff --git a/PressRelease/pressrelease.css b/PressRelease/pressrelease.css
deleted file mode 100644 (file)
index 03e9b67..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-.display-none
-{
-    display:none;
-}
-.press-release-edit-link {
-    text-decoration: underline;
-    color: blue;
-    cursor: pointer;
-}
-TD.underline {
-    border-bottom: 1px solid #222;
-    
-}
-TD.double-underline {
-    border-bottom: 3px double #222;
-    
-}
\ No newline at end of file
diff --git a/PressRelease/sql/CampaignAssign.sql b/PressRelease/sql/CampaignAssign.sql
deleted file mode 100644 (file)
index 809ab34..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-ALTER TABLE CampaignAssign ADD COLUMN lastfetched DATETIME DEFAULT '1970-01-01 00:00:00';
\ No newline at end of file
diff --git a/PressRelease/sql/Clipping.sql b/PressRelease/sql/Clipping.sql
deleted file mode 100644 (file)
index 5146ff0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
--- points to the real (language press release..)
-ALTER TABLE Clipping ADD COLUMN pressrelease_id INT(11) NULL DEFAULT 0;
-
diff --git a/PressRelease/sql/Images.sql b/PressRelease/sql/Images.sql
deleted file mode 100644 (file)
index 6fc1933..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-ALTER TABLE Images ADD COLUMN credit VARCHAR(128) DEFAULT '' NOT NULL;
-ALTER TABLE Images ADD COLUMN  source VARCHAR(128) DEFAULT '' NOT NULL;
diff --git a/PressRelease/sql/Projects.sql b/PressRelease/sql/Projects.sql
deleted file mode 100644 (file)
index 79b47f3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-ALTER TABLE Projects ADD COLUMN pressrelease_id INT(11) NULL;
diff --git a/PressRelease/sql/pressrelease_auto_import.sql b/PressRelease/sql/pressrelease_auto_import.sql
deleted file mode 100644 (file)
index d8ce76e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-CREATE TABLE pressrelease_auto_import (
-  id INT(11) NOT NULL AUTO_INCREMENT,
-  url TEXT NULL,
-  PRIMARY KEY (id)
-);
-
-ALTER TABLE pressrelease_auto_import ADD COLUMN language VARCHAR(5) NULL DEFAULT '';
-ALTER TABLE pressrelease_auto_import ADD COLUMN local_search_url TEXT NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_auto_import ADD COLUMN use_local_search INT(2) NOT NULL DEFAULT 0;
-ALTER TABLE pressrelease_auto_import ADD COLUMN local_search_allow TEXT NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_auto_import ADD COLUMN is_active INT(2) NOT NULL DEFAULT 1;
diff --git a/PressRelease/sql/pressrelease_beats.sql b/PressRelease/sql/pressrelease_beats.sql
deleted file mode 100644 (file)
index 1773eb6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-CREATE TABLE  pressrelease_beats (
-  id int(11)  NOT NULL,
-  contact_id int(11)  NOT NULL,
-  category_id int(11)  NOT NULL,
-  PRIMARY KEY (id),
-  INDEX lookup(contact_id, category_id)
-);
-
diff --git a/PressRelease/sql/pressrelease_category.sql b/PressRelease/sql/pressrelease_category.sql
deleted file mode 100644 (file)
index 722663e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-CREATE TABLE pressrelease_category (
-  id int(11) NOT NULL auto_increment,
-  parent_id int(11) NOT NULL default '0',
-   name varchar(128) NOT NULL default '',
-  display_order int(11) NOT NULL default '0',
-  visible tinyint(1) NOT NULL default '1',
-  PRIMARY KEY  (id)
-) ;
-ALTER TABLE  pressrelease_category ADD COLUMN hgroup varchar(128) NOT NULL DEFAULT '';
-
-ALTER TABLE  pressrelease_category ADD COLUMN clist text NOT NULL DEFAULT '';
-
-
-ALTER TABLE  pressrelease_category DROP INDEX lookup;
-ALTER TABLE  pressrelease_category DROP INDEX lookuph;
-ALTER TABLE  pressrelease_category ADD INDEX lookupf (hgroup, parent_id, name, display_order, visible);
diff --git a/PressRelease/sql/pressrelease_contact.sql b/PressRelease/sql/pressrelease_contact.sql
deleted file mode 100644 (file)
index 54eed7f..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-
-CREATE TABLE  pressrelease_contact (
-    id                                INT(11)              NOT NULL AUTO_INCREMENT ,
-    category_type_id                  INT(11)              NOT NULL DEFAULT 0,
-    honor                             VARCHAR(8)           DEFAULT '',
-    name                              VARCHAR(255)         NOT NULL DEFAULT '',
-    name_alt                          VARCHAR(255)         NOT NULL DEFAULT '',
-    company_id_name                   VARCHAR(255)         NOT NULL DEFAULT '',
-    role                              VARCHAR(255)         NOT NULL DEFAULT '',
-    email                             VARCHAR(255)         NOT NULL DEFAULT '',
-    email_personal                    VARCHAR(255)         NOT NULL DEFAULT '',
-    phone                             VARCHAR(255)         NOT NULL DEFAULT '',
-    fax                               VARCHAR(128)         NOT NULL DEFAULT '',
-    address                           TEXT                ,
-    category_media_id                 INT(11)              NOT NULL DEFAULT 0,
-    submission_time                   VARCHAR(64)          NOT NULL DEFAULT '',
-    media_language                    VARCHAR(8)           DEFAULT '',
-    url                               VARCHAR(255)         NOT NULL DEFAULT '',
-    remarks                           TEXT                ,
-    PRIMARY KEY (id)
-);
-
-
-ALTER TABLE pressrelease_contact ADD COLUMN phone_mobile varchar(255)  NOT NULL;
-ALTER TABLE pressrelease_contact ADD COLUMN phone_direct varchar(255)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN firstname varchar(255)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN lastname varchar(255)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN firstname_alt varchar(255)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN lastname_alt varchar(255)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN publication_name varchar(255)  NOT NULL;
-ALTER TABLE pressrelease_contact ADD COLUMN publication_name_alt varchar(255)  NOT NULL;
-
-ALTER TABLE pressrelease_contact CHANGE COLUMN publication_scope category_scope_id int(11)  NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  category_scope_id int(11)  NOT NULL ;
-
-ALTER TABLE pressrelease_contact CHANGE COLUMN media_language publication_lang VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN publication_lang VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN publication_lang_alt VARCHAR(8)   NOT NULL ;
-
-
-
-ALTER TABLE pressrelease_contact ADD COLUMN  contact_language  VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  contact_language_alt  VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  country  VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  best_contact_method  VARCHAR(32)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  best_contact_from  VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  best_contact_to  VARCHAR(8)   NOT NULL ;
-ALTER TABLE pressrelease_contact ADD COLUMN  best_contact_days  VARCHAR(8)   NOT NULL ;
-
-ALTER TABLE pressrelease_contact ADD COLUMN city varchar(255)  NOT NULL;
-ALTER TABLE pressrelease_contact ADD COLUMN  email2  varchar(254)   NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_contact ADD COLUMN  email3  varchar(254)   NOT NULL  DEFAULT '' ;
-
-ALTER TABLE pressrelease_contact ADD COLUMN  email_fails INT(11) NOT NULL DEFAULT 0;
-ALTER TABLE pressrelease_contact ADD COLUMN  email2_fails INT(11) NOT NULL DEFAULT 0;
-ALTER TABLE pressrelease_contact ADD COLUMN  email3_fails INT(11) NOT NULL DEFAULT 0;
-
-
-
-
-
--- created by accident.
-ALTER TABLE pressrelease_contact DROP COLUMN stock_exchange_id;
-ALTER TABLE pressrelease_contact DROP COLUMN source_name;
-
-  alter table pressrelease_contact add index lookup (category_type_id, category_media_id, category_scope_id, country);
-
diff --git a/PressRelease/sql/pressrelease_entry.sql b/PressRelease/sql/pressrelease_entry.sql
deleted file mode 100644 (file)
index ae558cb..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-
-CREATE TABLE  pressrelease_entry (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  client_id int(11)  NOT NULL  DEFAULT 0, 
-  language varchar(5)  NOT NULL,
-  publish_dt date  NOT NULL,
-
-  publish_dt_tz int(11) NOT NULL DEFAULT 8,
-  headline varchar(254)  NOT NULL,
-  content longtext  NOT NULL,
-  content_data longtext  NOT NULL,
-  content_links longtext  NOT NULL,
-  updated datetime  NOT NULL,
-  created datetime  NOT NULL,
-  created_by int(11)  NOT NULL  DEFAULT 0,
-  updated_by int(11)  NOT NULL  DEFAULT 0,
-  owner_id int(11)  NOT NULL  DEFAULT 0,
-  publish_status int(11) DEFAULT 0,
-  word_count INT(11) DEFAULT 0,
-  PRIMARY KEY (id)
-)
-ENGINE = MyISAM;
-
-
-ALTER TABLE  pressrelease_entry ADD COLUMN subheadline text  NOT NULL DEFAULT '';
-ALTER TABLE  pressrelease_entry MODIFY COLUMN subheadline text  NOT NULL DEFAULT '';
-ALTER TABLE  pressrelease_entry MODIFY COLUMN headline text  NOT NULL DEFAULT '';
-
-ALTER TABLE  pressrelease_entry MODIFY COLUMN publish_dt DATETIME  NOT NULL;
-ALTER TABLE  pressrelease_entry MODIFY COLUMN publish_dt_tz DECIMAL(4,2)  NOT NULL DEFAULT 8.0;
-
-ALTER TABLE  pressrelease_entry DROP COLUMN   publish_dt_hour;
-ALTER TABLE  pressrelease_entry ADD INDEX lookup(client_id, publish_dt, publish_dt_tz);
- ALTER TABLE pressrelease_entry MODIFY COLUMN publish_status INTEGER  NOT NULL DEFAULT 0;
- ALTER TABLE pressrelease_entry ADD COLUMN stockcode varchar(64)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact1_id int(11)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact2_id int(11)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact3_id int(11)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact1_displaytype int(4)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact2_displaytype int(4)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN contact3_displaytype int(4)  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN content_about longtext  NOT NULL;
- ALTER TABLE pressrelease_entry ADD COLUMN content_forward longtext  NOT NULL;
-
-ALTER TABLE pressrelease_entry ADD COLUMN company_name_alt varchar(254)  NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_entry ADD COLUMN country varchar(4)  NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_entry ADD COLUMN industry varchar(254)  NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_entry ADD COLUMN contact_txt text  NOT NULL;
-ALTER TABLE pressrelease_entry ADD COLUMN publish_sum varchar(64)  NOT NULL DEFAULT '';
-ALTER TABLE pressrelease_entry ADD COLUMN published datetime  NOT NULL;
-ALTER TABLE pressrelease_entry ADD COLUMN distribution_contacts longtext NOT NULL;
-ALTER TABLE pressrelease_entry ADD COLUMN distribution_config text NOT NULL;
-ALTER TABLE pressrelease_entry ADD COLUMN distribution_countries text NOT NULL;
-
-ALTER TABLE pressrelease_entry ADD COLUMN parent_id int(11)  NOT NULL;
-ALTER TABLE pressrelease_entry ADD COLUMN  best_contact_days  VARCHAR(8)   NOT NULL ;
-
-
-ALTER TABLE pressrelease_entry ADD COLUMN  stock_exchange_id  INT(11)   NOT NULL ;
-ALTER TABLE pressrelease_entry ADD COLUMN  source_name  varchar(254)   NOT NULL ;
-ALTER TABLE pressrelease_entry ADD COLUMN  email2  varchar(254)   NOT NULL ;
-ALTER TABLE pressrelease_entry ADD COLUMN  email3  varchar(254)   NOT NULL ;
-
-ALTER TABLE pressrelease_entry ADD COLUMN  word_count  INT(11)   NOT NULL DEFAULT 0;
-
-ALTER TABLE pressrelease_entry ADD COLUMN  blacklist_ids TEXT;
-ALTER TABLE pressrelease_entry ADD COLUMN  distribute_to_feed int(2) NOT NULL  DEFAULT 1;
-
-
-ALTER TABLE pressrelease_entry ADD COLUMN  same_as_id int(11) NOT NULL  DEFAULT 0;
-
-ALTER TABLE pressrelease_entry ADD COLUMN  revisions INT(11) NOT NULL  DEFAULT 0;
-
---ALTER TABLE pressrelease_entry CONVERT TO CHARACTER SET u
-ALTER TABLE pressrelease_entry  CONVERT TO CHARACTER SET utf8;
diff --git a/PressRelease/sql/pressrelease_entry_related.sql b/PressRelease/sql/pressrelease_entry_related.sql
deleted file mode 100644 (file)
index 5b26abc..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-
-CREATE TABLE  pressrelease_entry_related (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  entry_id int(11) default 0,
-  relationship varchar(128) default 0,
-  table_name varchar(128) default '',
-  table_id int(11) default 0,
-  PRIMARY KEY (id)
-);
diff --git a/PressRelease/sql/pressrelease_notify.sql b/PressRelease/sql/pressrelease_notify.sql
deleted file mode 100644 (file)
index 4b40c35..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
--- actually the same as core_notify, except our person_id points to press_release contact..
-
-CREATE TABLE  pressrelease_notify  (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  act_when DATETIME NOT NULL,
-  act_start DATETIME NOT NULL,
-  onid int(11)  NOT NULL DEFAULT 0,
-  ontable varchar(128)  NOT NULL DEFAULT '',
-  person_id int(11)  NOT NULL DEFAULT 0,
-  msgid varchar(128)  NOT NULL  DEFAULT '',
-  sent DATETIME  NOT NULL,
-  event_id int(11)  NOT NULL DEFAULT 0,
-  PRIMARY KEY (id) 
-);
-ALTER TABLE pressrelease_notify CHANGE COLUMN bounced event_id INT(11) DEFAULT 0;
-ALTER TABLE pressrelease_notify ADD COLUMN event_id INT(11) DEFAULT 0;
-ALTER TABLE pressrelease_notify ADD COLUMN evtype VARCHAR(16) DEFAULT '';
-ALTER TABLE pressrelease_notify ADD COLUMN field VARCHAR(16) DEFAULT 'email';
-ALTER TABLE pressrelease_notify ADD COLUMN  act_start DATETIME NOT NULL;
-
-ALTER TABLE pressrelease_notify ADD COLUMN  to_email varchar(255)  NOT NULL  DEFAULT '';
-ALTER TABLE pressrelease_notify ADD COLUMN  fail_reviewed int(4) NOT NULL  DEFAULT 0;
-
-ALTER TABLE pressrelease_notify ADD COLUMN is_open INT(2) NOT NULL DEFAULT 0;
-
--- used to send manually
-ALTER TABLE pressrelease_notify ADD COLUMN  firstname varchar(255)  NOT NULL  DEFAULT '';
-ALTER TABLE pressrelease_notify ADD COLUMN  contact_language varchar(8)  NOT NULL  DEFAULT '';
-
-
-
-ALTER TABLE pressrelease_notify ADD INDEX is_open_idx(is_open);
-
-
--- ALTER TABLE pressrelease_notify ADD INDEX lookup_a(onid, ontable, person_id, act_when, msgid, to_email); -- too long..
-ALTER TABLE pressrelease_notify DROP INDEX lookup_a;
-
-ALTER TABLE pressrelease_notify ADD INDEX lookup_b(onid, ontable, person_id, act_when, msgid); 
-ALTER TABLE pressrelease_notify ADD INDEX lookup_e(onid, ontable, person_id, act_when, to_email); 
-
-alter table pressrelease_notify add index evtype_idx (evtype);
-alter table pressrelease_notify add index evtype_a_idx (evtype, person_id, act_when);
-alter table pressrelease_notify add index journalistlookup (person_id, event_id, evtype, act_when);
-
-alter table pressrelease_notify Drop index lookup;
diff --git a/PressRelease/sql/pressrelease_regionmap.sql b/PressRelease/sql/pressrelease_regionmap.sql
deleted file mode 100644 (file)
index d4df27a..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-CREATE TABLE pressrelease_regionmap (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  category_id int(11)  NOT NULL default 0,
-  country  varchar(8)  NOT NULL default '',
-  PRIMARY KEY (id)
-);
-ALTER TABLE pressrelease_regionmap ADD INDEX lookup(category_id, country);
-
-
-
-
diff --git a/PressRelease/sql/pressrelease_saved.sql b/PressRelease/sql/pressrelease_saved.sql
deleted file mode 100644 (file)
index e4a8a20..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-CREATE TABLE  pressrelease_saved (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  name varchar(255)  NOT NULL,
-  json text  NOT NULL,
-  PRIMARY KEY (id),
-  INDEX lookup(name)
-) ;
diff --git a/PressRelease/sql/pressrelease_search.sql b/PressRelease/sql/pressrelease_search.sql
deleted file mode 100644 (file)
index 03e7810..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-
-CREATE TABLE pressrelease_search (
-  id int(11)  NOT NULL AUTO_INCREMENT,
-  person_id int(11)  NOT NULL,
-  title text  NOT NULL,
-  data text  NOT NULL,
-  PRIMARY KEY (id),
-  INDEX lookup(person_id)
-);
-
\ No newline at end of file
diff --git a/PressRelease/sql/reader_article.sql b/PressRelease/sql/reader_article.sql
deleted file mode 100644 (file)
index e7e8e4d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-ALTER TABLE reader_article add COLUMN campaign_id INT(11) DEFAULT 0;
-
-
-
- alter table reader_article add index lookup_b(extid, src_id, language, campaign_id);
diff --git a/PressRelease/templates/distribution.html b/PressRelease/templates/distribution.html
deleted file mode 100644 (file)
index f8f4ee8..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-            
-<H1>Distribution will be delivered to {distlistN} Journalists</h3></H1>
-
-<div><b>Distribute: </b> {release.publish_dt} GMT+{release.publish_dt_tz}</div>
-<div><b>Word Count: </b> {release.word_count}</div>
-<div><b>Source: </b> {release.source_name}</div>
-
-<div><b>Language</b> {release.language(authUser.lang)} <span flexy:foreach="release.children,cr">,
-        {cr.language(authUser.language)}</span></div>
-
-<h3>Photos / Videos</h3>
-
-    {if:!release.images} No Images / Videos Available {end:}
-    
-    <div flexy:foreach="release.images,img">
-        {img.toHTML(#150x150#,imageURL):h}
-        <br/>{img.title} 
-        <br/> <a href="{rootURL}/i/Download/{img.id}">http://{HOST}/{rootURL}/i/Download/{img.id}</a>
-    </div>
-
-
-<h3>Links</h3>
-
- {release.content_links():h}
-<h3>Company Logo</h3>
-{if:!release.logo}No Company Logo{end:}
-{release.logo.toHTML(#150x150#,imageURL):h}
-
-<h3>Based on these rules</h3>
-
-<div><b>International: </b> {if:international}YES{else:}no{end:}</div>
-<div><b>Regions: </b> {if:regions}{regions}{else:}no{end:}</div>
-
-<div><b>Countries: </b> {countries}</div>
-<div><b>General News: </b> {if:general}YES{else:}no{end:}</div>
-<div><b>Beats: </b> {beats}</div>
-<br/><br/>
-<!--
-<h3>Journalists</h3>
-
-<table>
-
-   <tr >
-        <td>Publication<td>
-        <td>role<td>
-        <td>email<td>
-        <td>Pref. Lang</td>
-        <td>Name</td>
-        
-   </tr>
-   <tr flexy:foreach="distlist,v">
-
-        <td>{v.publication_name}</td>
-        <td>{v.role}<td>
-        <td>{v.email}<td>
-        <td>{v.contact_language}<td>
-        <td>{v.firstname} {v.lastname} </td>
-        
-        
-        
-        
-        
-   </tr>
-</table>
-   -->
-        
-  
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/breakdown_by_country.html b/PressRelease/templates/graphs/breakdown_by_country.html
deleted file mode 100644 (file)
index 432120f..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-   <script type="text/javascript" charset="utf-8">
-            
-            
-            window.onload = function () {
-                var r = Raphael(document.body, 600,300);
-                
-                var url = baseURL +'/PressRelease/DistributionReport/BreakdownByCountry';
-                
-                
-                 //r.text(340, 290, "Date").attr( { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" });
-                  
-                new Pman.Request({
-                    url : url +'/data' +
-                        '?fn=' +fn + 
-                        '&release_id=' +  release_id,
-                    
-                    method : 'GET',
-                    
-                    success : function(res) {
-                        var d = res.data;
-                        var cols = [];
-                        var labels = [];
-                        var titles = [];
-                        
-                        Roo.each(res.data, function(d) {
-                            cols.push(d.qty * 1 );
-                            labels.push(d.qty + '');
-                            titles.push(d.country + ' (' + d.qty + ')');
-                        });
-                        Roo.log(cols);
-                        r.piechart(160, 150, 120, cols, 
-                        { 
-                             cut: cols.length,
-                             legend: titles,
-                             legendpos: "east"
-                         }
-                     );
-                        
-                        // now send the svg to get converted...    
-                         new Pman.Request({
-                            method : 'POST',
-                            
-                            url : url,
-                            params : {
-                                fn : fn,
-                                data : r.toSVG() 
-                                
-                                
-                            }
-                        });
-                    }
-                    
-                });
-                
-                
-                
-                
-          
-                
-            };
-      
-        </script>
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/breakdown_by_language.html b/PressRelease/templates/graphs/breakdown_by_language.html
deleted file mode 100644 (file)
index 069b6e7..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-   <script type="text/javascript" charset="utf-8">
-            
-            
-            window.onload = function () {
-                var r = Raphael(document.body, 600,300);
-                
-                var url = baseURL +'/PressRelease/DistributionReport/BreakdownByLanguage';
-                
-                
-                 //r.text(340, 290, "Date").attr( { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" });
-                  
-                new Pman.Request({
-                    url : url +'/data' +
-                        '?fn=' +fn + 
-                        '&release_id=' +  release_id,
-                    
-                    method : 'GET',
-                    
-                    success : function(res) {
-                        var d = res.data;
-                        var cols = [];
-                        var labels = [];
-                        var titles = [];
-                        
-                        Roo.each(res.data, function(d) {
-                            cols.push(d.qty * 1 );
-                            labels.push(d.qty + '');
-                            titles.push(d.language + ' (' + d.qty + ')');
-                        });
-                        Roo.log(cols);
-                        r.piechart(160, 150, 120, cols, 
-                        { 
-                             cut: cols.length,
-                             legend: titles,
-                             legendpos: "east"
-                         }
-                     );
-                        
-                        // now send the svg to get converted...    
-                         new Pman.Request({
-                            method : 'POST',
-                            
-                            url : url,
-                            params : {
-                                fn : fn,
-                                data : r.toSVG() 
-                                
-                                
-                            }
-                        });
-                    }
-                    
-                });
-                
-                
-                
-                
-          
-                
-            };
-      
-        </script>
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/breakdown_by_news_coverage.html b/PressRelease/templates/graphs/breakdown_by_news_coverage.html
deleted file mode 100644 (file)
index 2ff6e44..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-   <script type="text/javascript" charset="utf-8">
-            
-            
-            window.onload = function () {
-                var r = Raphael(document.body, 600,300);
-                
-                var url = baseURL +'/PressRelease/DistributionReport/BreakdownByNewsCoverage';
-                
-                
-                 //r.text(340, 290, "Date").attr( { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" });
-                  
-                new Pman.Request({
-                    url : url +'/data' +
-                        '?fn=' +fn + 
-                        '&release_id=' +  release_id,
-                    
-                    method : 'GET',
-                    
-                    success : function(res) {
-                        var d = res.data;
-                        var cols = [];
-                        var labels = [];
-                        var titles = [];
-                        
-                        Roo.each(res.data, function(d) {
-                            cols.push(d.qty * 1 );
-                            labels.push(d.qty + '');
-                            titles.push(d.newsType + ' (' + d.qty + ')');
-                        });
-                        Roo.log(cols);
-                        r.piechart(160, 150, 120, cols, 
-                        { 
-                             cut: cols.length,
-                             legend: titles,
-                             legendpos: "east"
-                         }
-                     );
-                        
-                        // now send the svg to get converted...    
-                         new Pman.Request({
-                            method : 'POST',
-                            
-                            url : url,
-                            params : {
-                                fn : fn,
-                                data : r.toSVG() 
-                                
-                                
-                            }
-                        });
-                    }
-                    
-                });
-                
-                
-                
-                
-          
-                
-            };
-      
-        </script>
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/breakdown_by_reach.html b/PressRelease/templates/graphs/breakdown_by_reach.html
deleted file mode 100644 (file)
index bf09118..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-   <script type="text/javascript" charset="utf-8">
-            
-            
-            window.onload = function () {
-                var r = Raphael(document.body, 600,300);
-                
-                var url = baseURL +'/PressRelease/DistributionReport/BreakdownByReach';
-                
-                
-                 //r.text(340, 290, "Date").attr( { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" });
-                  
-                new Pman.Request({
-                    url : url +'/data' +
-                        '?fn=' +fn + 
-                        '&release_id=' +  release_id,
-                    
-                    method : 'GET',
-                    
-                    success : function(res) {
-                        var d = res.data;
-                        var cols = [];
-                        var labels = [];
-                        var titles = [];
-                        
-                        Roo.each(res.data, function(d) {
-                            cols.push(d.qty * 1 );
-                            labels.push(d.qty + '');
-                            titles.push(d.media_name + ' (' + d.qtyf + ')');
-                        });
-                        Roo.log(cols);
-                        r.piechart(160, 150, 120, cols, 
-                        { 
-                             cut: 10,
-                             legend: titles,
-                             legendpos: "east"
-                         }
-                     );
-                        
-                        // now send the svg to get converted...    
-                         new Pman.Request({
-                            method : 'POST',
-                            
-                            url : url,
-                            params : {
-                                fn : fn,
-                                data : r.toSVG() 
-                                
-                                
-                            }
-                        });
-                    }
-                    
-                });
-                
-                
-                
-                
-          
-                
-            };
-      
-        </script>
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/master.html b/PressRelease/templates/graphs/master.html
deleted file mode 100644 (file)
index cfee0ff..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-    <head>
-        <title>Chart</title>
-         
-        
-    <script type="text/javascript" src="{rootURL}/roojs1/roojs-debug.js"></script>
-    
-     <script type="text/javascript" src="{rootURL}/raphael/raphael.js"></script>
-     <script type="text/javascript" src="{rootURL}/raphael/plugins/raphael.export.js"></script> 
-     <script type="text/javascript" src="{rootURL}/g.raphael/g.raphael.js"></script>
-     <script type="text/javascript" src="{rootURL}/g.raphael/g.pie.js"></script>
-     <script type="text/javascript" src="{rootURL}/g.raphael/g.bar.js"></script>
-     <script type="text/javascript" src="{rootURL}/g.raphael/g.line.js"></script>
-     <script type="text/javascript" charset="utf-8">
-        Pman = {};
-    
-     </script>
-     <script type="text/javascript" src="{rootURL}/Pman/Core/Pman.Request.js"></script>
-     
-     <flexy:toJavascript
-                baseURL="baseURL"
-                release_id="release_id"
-                fn="fn"></flexy:toJavascript>
-     
-     
-     
-     {outputBody():h}
-     
-    </head>
-    <body>  </body>
-</head>
-          
\ No newline at end of file
diff --git a/PressRelease/templates/graphs/volume_over_time.html b/PressRelease/templates/graphs/volume_over_time.html
deleted file mode 100644 (file)
index 2669f37..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-   <script type="text/javascript" charset="utf-8">
-            
-            
-            window.onload = function () {
-                var r = Raphael(document.body, 600,300);
-                
-                var url = baseURL +'/PressRelease/DistributionReport/VolumeOverTime';
-                
-                
-                r.text(340, 290, "Date").attr( { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" });
-                
-                new Pman.Request({
-                    url : url +'/data' +
-                        '?fn=' +fn + 
-                        '&release_id=' +  release_id,
-                    
-                    method : 'GET',
-                    
-                    success : function(res) {
-                        var d = res.data;
-                        var cols = [];
-                        var labels = [];
-                        var titles = [];
-                        
-                        Roo.each(res.data, function(d) {
-                            cols.push(d.qty );
-                            labels.push(d.qty + '');
-                            titles.push(d.datef);
-                        });
-                        
-                        
-                        r.barchart(30, 30, 560, 250, cols, {
-                            labels : labels,
-                            axis : "0 0 1 1",
-                            axisxlabels :  titles,
-                            yvalues : cols,
-                           
-                        });
-                        // now send the svg to get converted...    
-                         new Pman.Request({
-                            method : 'POST',
-                            
-                            url : url,
-                            params : {
-                                fn : fn,
-                                data : r.toSVG() 
-                                
-                                
-                            }
-                        });
-                    }
-                    
-                });
-                
-                
-                
-                
-          
-                
-            };
-      
-        </script>
\ No newline at end of file
diff --git a/PressRelease/templates/images b/PressRelease/templates/images
deleted file mode 120000 (symlink)
index 3449466..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/images
\ No newline at end of file
diff --git a/PressRelease/templates/mail/DISTRIBUTION_END.html b/PressRelease/templates/mail/DISTRIBUTION_END.html
deleted file mode 100644 (file)
index 127dd8d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            html,body,table {font-family:Arial;font-size:14px;color:#2c336a;}
-            a {color:green;}
-            
-        </style>
-    </head>
-    <body>
-        
-        <p>Distribution of this press release has ended to {t.distlistN} Journalists</p>
-        <br/>
-        <p>Results:</p>
-        <p>Delivered : {t.delivered}</p>
-        <p>Failed : {t.failed}</p>
-        <p>Pending : {t.pending}</p>
-    </body>
-    
-</html>
\ No newline at end of file
diff --git a/PressRelease/templates/mail/DISTRIBUTION_START.html b/PressRelease/templates/mail/DISTRIBUTION_START.html
deleted file mode 100644 (file)
index bf304de..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<html>
-    <head>
-        <meta charset="UTF-8">
-        <style>
-            html,body,table {font-family:Arial;font-size:14px;color:#2c336a;}
-            a {color:green;}
-            
-        </style>
-    </head>
-    <body>
-        
-        <p>Distribution of this press release has started to {t.distlistN} Journalists, and this press release should be available via the direct news feed now.</p>
-    </body>
-    
-</html>
\ No newline at end of file
diff --git a/PressRelease/templates/mail/dashboard.report.word.html b/PressRelease/templates/mail/dashboard.report.word.html
deleted file mode 100644 (file)
index ae21bdb..0000000
+++ /dev/null
@@ -1,313 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd">
-<abiword template="false" xmlns:ct="http://www.abisource.com/changetracking.dtd" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:math="http://www.w3.org/1998/Math/MathML" xid-max="1026" xmlns:dc="http://purl.org/dc/elements/1.1/" styles="unlocked" fileformat="1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:awml="http://www.abisource.com/awml.dtd" xmlns="http://www.abisource.com/awml.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" version="0.99.2" xml:space="preserve" props="dom-dir:ltr; document-footnote-restart-section:0; document-endnote-type:numeric; document-endnote-place-enddoc:1; document-endnote-initial:1; lang:en-US; document-endnote-restart-section:0; document-footnote-restart-page:0; document-footnote-type:numeric; document-footnote-initial:1; document-endnote-place-endsection:0">
-<!-- ======================================================================== -->
-<!-- This file is an AbiWord document.                                        -->
-<!-- AbiWord is a free, Open Source word processor.                           -->
-<!-- More information about AbiWord is available at http://www.abisource.com/ -->
-<!-- You should not edit this file by hand.                                   -->
-<!-- ======================================================================== -->
-
-<metadata>
-<m key="abiword.date_last_changed">Thu Dec 11 13:23:21 2014
-</m>
-<m key="abiword.generator">AbiWord</m>
-<m key="dc.creator">Edward</m>
-<m key="dc.date">Tue Dec  9 16:50:07 2014
-</m>
-<m key="dc.format">application/x-abiword</m>
-</metadata>
-<rdf>
-</rdf>
-<styles>
-<s type="P" name="Normal" followedby="Current Settings" props="font-family:Helvetica; margin-top:0pt; font-style:normal; margin-left:0pt; margin-bottom:0pt; widows:2; text-decoration:none; text-indent:0in; text-position:normal; line-height:1.0; font-variant:normal; bgcolor:transparent; margin-right:0pt; color:000000; font-size:12pt; font-weight:normal; text-align:left; font-stretch:normal"/>
-</styles>
-<pagesize pagetype="A4" orientation="portrait" width="210.000000" height="297.000000" units="mm" page-scale="1.000000"/>
-<section props="page-margin-footer:1.27cm; page-margin-header:1.27cm; page-margin-right:2.54cm; page-margin-left:2.54cm; page-margin-top:2.54cm; page-margin-bottom:2.54cm">
-<table props="list-tag:1; homogeneous:1; table-column-props:1.300000in/1.300000in/1.300000in/1.300000in/1.300000in">
-<cell props="bot-attach:1; left-attach:0; background-color:f4f4f4; top-attach:0; right-attach:5">
-<p style="Normal" props="text-align:left; dom-dir:ltr"><c props="font-size:8pt; font-family:Helvetica; color:808080">Media OutReach Press release distribution report</c><c props="font-size:8pt; font-family:Helvetica; color:808080"></c></p>
-</cell>
-<cell props="bot-attach:2; left-attach:0; right-attach:5; top-attach:1">
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><c props="font-weight:bold; font-family:Helvetica; color:404040">Media OutReach News Dashboard - {days()} Day Report</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; font-weight:bold"></c><c></c></p>
-</cell>
-<cell props="bot-attach:3; left-attach:0; right-attach:3; top-attach:2">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><image dataid="7d0de758-803d-11e4-812a-f7d546563c01" props="height:0.5433071in; width:2.744094in; font-family:Helvetica"/></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><c></c></p>
-</cell>
-<cell props="bot-attach:3; left-attach:3; right-attach:5; top-attach:2">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><image dataid="{base64Images[release-logo][dataid]}" props="height:{base64Images[release-logo][height]}in; width:{base64Images[release-logo][width]}in; font-family:Arial"/></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica"></c><c></c></p>
-</cell>
-<cell props="bot-attach:4; left-attach:0; right-attach:5; top-attach:3">
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:505050"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:505050"></c><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:505050">Description :</c><c props="font-family:Arial"> </c><c props="font-size:9pt; font-family:Helvetica; color:505050">{release.headline}</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:505050">Release Details :</c><c props="font-size:9pt; font-weight:bold; font-family:Helvetica; color:505050"></c><c props="font-family:Arial"> </c><c props="font-size:9pt; font-family:Helvetica; color:505050"></c></p>
-{foreach:t.releases,r}
-    <p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; color:505050; font-family:Helvetica; font-size:9pt">#{r.id}</c><c props="font-weight:bold; color:505050; font-family:Helvetica; font-size:9pt"></c><c props="font-family:Arial"> </c><c props="font-size:9pt; font-family:Helvetica; color:505050">- {r.publish_dt(#d F Y h:ia#)} - {r.inlanguages}</c></p>
-{end:}
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica"></c><c></c></p>
-</cell>
-<cell props="bot-attach:5; left-attach:0; right-attach:5; top-attach:4">
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; font-weight:bold"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; font-weight:bold"></c><c props="font-weight:bold; font-family:Helvetica; color:404040">Overview</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; font-weight:bold"></c><c></c></p>
-</cell>
-<cell props="bot-attach:6; left-attach:0; right-attach:2; top-attach:5">
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:8pt; font-weight:bold; font-family:Helvetica; color:505050"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:8pt; font-weight:bold; font-family:Helvetica; color:505050"></c><c props="font-size:8pt; font-weight:bold; font-family:Helvetica; color:505050">Distribution</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; font-size:8pt"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:8pt; font-family:Helvetica; color:505050">Total Distribution Points: </c><c props="font-size:8pt; font-family:Helvetica; color:505050"></c><c props="font-size:8pt; font-weight:bold; font-family:Helvetica; color:505050">{release.delivered_total}</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-size:8pt; font-family:Helvetica; color:505050">Countries Targeted</c><c props="font-size:8pt; font-family:Helvetica; color:505050"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{countries_total}</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Languages: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{languages_total}</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c
-        props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Beats Covered: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c
-        props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{beats_total}</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; font-size:8pt"></c><c></c></p>
-</cell>
-<cell props="bot-attach:6; left-attach:2; right-attach:5; top-attach:5">
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Total Coverage</c></p>
-<p style="Normal" props="font-family:Times New Roman; dom-dir:ltr; font-style:normal; margin-left:0.1181in; lang:en-US; text-align:left; text-indent:0.0000in; text-position:normal; margin-top:0.0000in; font-weight:bold; line-height:1.000000; text-decoration:none; font-size:8pt; margin-right:0.0000in; margin-bottom:0.0000in"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Unique Web sites: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{release.media_total}</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Total Clippings: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{release.clipping_total}</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Total Reach: </c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">{release.reach_total}</c></p>
-{t.direct_news_feed_total():h}
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-<cell props="bot-attach:7; left-attach:0; right-attach:5; top-attach:6">
-<p style="Normal" props="text-align:left; margin-left:0.30cm"><c props="font-family:Helvetica; font-size:12pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="text-align:left; margin-left:0.30cm"><c props="font-family:Helvetica; font-size:12pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; font-size:12pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Distribution Details</c></p>
-<p style="Normal" props="text-align:left; margin-left:0.30cm"><c props="font-family:Helvetica; font-size:12pt; color:505050; text-decoration:none; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-<cell props="bot-attach:8; left-attach:0; right-attach:2; top-attach:7">
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Countries</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.60cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US" flexy:if="distribution.international">International (Outside of Asia Pacific)</c></p>
-{foreach:t.distribution.regions,r}
-    <p style="Normal" props="font-family:Times New Roman; margin-left:0.60cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{r}</c></p>
-{end:}
-{foreach:t.distribution.countries,c}
-    <p style="Normal" props="font-family:Times New Roman; margin-left:0.60cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">Regional: {c}</c></p>
-{end:}
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:normal; text-align:left"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-<cell props="bot-attach:8; left-attach:2; right-attach:5; top-attach:7">
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Languages</c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-{foreach:t.languages,l}
-    <p style="Normal" props="font-weight:bold; font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.60cm; text-align:left; dom-dir:ltr; text-decoration:none; text-indent:0.0000in; text-position:normal; lang:en-US; margin-right:0.0000in; color:505050; margin-bottom:0.0000in; line-height:1.000000; font-size:8pt"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{l}</c></p>
-{end:}
-<p style="Normal" props="font-weight:bold; font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.60cm; text-align:left; dom-dir:ltr; text-decoration:none; text-indent:0.0000in; text-position:normal; lang:en-US; margin-right:0.0000in; color:505050; margin-bottom:0.0000in; line-height:1.000000; font-size:8pt"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-top:0.0000in; font-style:normal; margin-left:0.1181in; dom-dir:ltr; color:505050; text-indent:0.0000in; text-position:normal; line-height:1.000000; lang:en-US; margin-right:0.0000in; font-size:8pt; text-decoration:none; margin-bottom:0.0000in; font-weight:bold; text-align:left"><c props="font-family:Helvetica; font-size:8pt; color:505050; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-<cell props="bot-attach:9; left-attach:0; right-attach:5; top-attach:8">
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; font-size:12pt; color:000000; text-decoration:none; text-align:left; text-position:normal; font-weight:normal; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Found on these Search Engines</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c></p>
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; font-size:12pt; color:000000; text-decoration:none; text-align:left; text-position:normal; font-weight:normal; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-{foreach:t.suppliers,s}
-    <p style="Normal" props="font-family:Times New Roman; margin-left:0.60cm; text-decoration:none; color:000000; font-size:12pt; font-weight:normal; text-position:normal; text-align:left; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">{s.name}</c><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c></p>
-{end:}
-<p style="Normal" props="font-family:Times New Roman; margin-left:0.30cm; font-size:12pt; color:000000; text-decoration:none; text-align:left; text-position:normal; font-weight:normal; font-style:normal"><c props="font-family:Helvetica; text-decoration:none; color:505050; font-size:8pt; text-position:normal; font-weight:normal; font-style:normal; lang:en-US"></c><c></c></p>
-</cell>
-<cell props="bot-attach:10; left-attach:0; right-attach:5; top-attach:9">
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><c props="font-weight:bold; font-family:Helvetica; color:404040">Volume over time</c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><c></c></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c props="font-weight:bold; font-family:Helvetica; color:404040"></c><image dataid="{base64Images[volume-over-time][dataid]}" props="height:2.1528in; width:4.3285in; font-family:Arial"/></p>
-<p style="Normal" props="text-align:left; dom-dir:ltr; margin-left:0.30cm"><c></c><c></c></p>
-</cell>
-<cell props="bot-attach:11; left-attach:0; right-attach:5; top-attach:10">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Breakdown by language</c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><image dataid="{base64Images[breakdown-language][dataid]}" props="height:2.1528in; width:4.3285in; font-family:Arial"/></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-<cell props="bot-attach:12; left-attach:0; right-attach:5; top-attach:11">
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US">Breakdown by country</c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><c></c></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Helvetica; text-decoration:none; color:404040; font-size:12pt; text-position:normal; font-weight:bold; font-style:normal; lang:en-US"></c><image dataid="{base64Images[breakdown-country][dataid]}" props="height:2.1528in; width:4.3285in; font-family:Arial"/></p>
-<p style="Normal" props="margin-left:0.30cm"><c props="font-family:Arial"></c><c></c></p>
-</cell>
-{t.breakdown_news_coverage():h}
-{t.clippings_summary():h}
-{t.clippings_details():h}
-{t.historical_comparison():h}
-</table>
-<p style="Normal"></p>
-</section>
-<data>
-{foreach:t.base64Images,i}
-<d name="{i[dataid]}" mime-type="{i[ext]}" base64="yes">
-    {i[data]}
-</d>
-{end:}
-<d name="7d0de758-803d-11e4-812a-f7d546563c01" mime-type="image/jpeg" base64="yes">
-iVBORw0KGgoAAAANSUhEUgAAARYAAAA4CAIAAAC3/kDqAAAACXBIWXMAADXUAAA11AFeZeUI
-AAAAB3RJTUUH3gMaCi4Qh8OGSgAAIABJREFUeNrtXHd8FNX2P/dO2b7JpheSQCgJAVQMAYII
-iAiCNAUV7Iqo8HyCovBQERuo8EAR4Yk8BBuIiEhViqL0JhBKJIX0Xjbb25T7+2OT3dlNAoGH
-yvu9OZ/8kZ25c+eWU7/n3EGEEJBJJpmulrC8BDLJJIuQTDLJIiSTTLIIySSTLEIyySTTlQFs
-tLxgMv0v0+kfTx3fdrLMzDtpzPBilBrdPCjt1on9294DkkFtmf436dxPZxfN3qAY0r/P00Or
-LBCjhjo3pMdB6fZTu9/9+ulZd9360ABZhGSSqWVaNnmFOan9rc8MywiFrHoxJRTpFcgqgJMH
-kwt+LhOOHswP/fSL9w++iSksi5BMMgXQa8PeumfBEzEp8VEKwIgAIO91AcAukHIruEXIM4of
-nrF1mjlndf6HsgjJJJOfsnaftSC69+1dFSj4lkUAngAngNkNpWZx9hFbca11Se3hCXPHX6LD
-/4+I3J+rE+wc2Vfq2pBt3ZBt3VPsrHeJMptet8R7+GXTV8f17mr2kCIrqXXD7hLB6iEiIRYe
-GAQKREQAjKDQIkSpsEWpfv37vLri2qu0Qo9onnI7XF6eRIC8vIkAacK0q+qXSVta66xPRE7F
-gCQtEQECAK//NDttcNc/blHuQuO0oGl8JUBE+8iPChcBQPmFiuldZ+EmG00ARjw79LGlD10z
-ZVbrWXCgfkeezWTmAEsUmkgUGuqOZO3f+xiGdlD/cRP/+KTpt0r3yruipRcf+r7qq9NmQJfa
-cC1DaRUo2cD2baec2S88WkP9d4nBwVJn/1Ul/jkS8v7o2Ok3h7Tl2QuHcsOToy2akEqbmKBF
-iTpUbCVJOmTlQSBEzyA3gRoHmF2EE9G4H81lLp54XJ9X7X/orQlXZYVQ4zCRRLcTIHaTnXNx
-0oblv1dihAJbEuQVJ/THLqj3BaRJTpqGHCDzjTev3Uim/FB905L8tWfMJqcALAYa+f9Y7ObI
-thzrsE+LBn9eauOuvVH6LscWsiBvyubKaqvQkgUml/ojYPMIVVb+UIlj8UFjzLu567Ot/10i
-hFDgHK8kElk/b2NotL6jDnpH4wgVuAVop0UIQEmBnkZWDmodxOgkIqBah6BmQBQI4YX1ewuv
-sSNHROK0OKRXtn+wE66TkIoEC9i1HZdAIG7JxY+PNQBzuaWj8d5Cu+7tHKNLuEYzI0fKnJp3
-88atK7M4hQDTJ5nwFakfoNGEb8rLbfx/sXN2JVM+s++8V5WyGCpsREnBuXpxexFfZhEpBCEM
-5DUIKgZ4kSw67SxzEK3oAjefVe++ahFqlf32fnpA+nP/dwf+9BjkMgtKEKEpmmJpmqVolmZY
-BtPXwGO5c21ZpYm7ggcwSvqg4JrMrM4hZi4vdLiFSzINuooV67uq+H8h9OWcXHRqO0vT7pXa
-RACIVKILRvG7fN7sEQ9WCR+ecv19r83ugce7Kpwi6ROrB170RERaKo2tqsorsqCIAAECQDa/
-t33MP+7yXq4pqMVA+XcPBc0K/SULG9cl9kvnqoBx4P90JAfLnHvyrH5n0beFFHrkhlAMsPa8
-2eMRghrY3MKHxxueyzD8yRq3kTyi6bWuFCIAYOfJqlPmV/ZUB3VktAvwP0CYQg1mp0cADoAB
-SI+mN17kSyyiw0PcAnn7qCdGiziBmD3k43OODaWeO6KpEyWWMK0iXkNhTP2nIkSAhEaGmGpM
-3tDCZGpwmp2qEBUAlJ4vY4Dxyo0IolavdZgdxB8Xtawlzuw8e3zzqfLscoHj1WHaxG7teo3u
-2blfp0uMoSy7fNuiHysuVGjD9Zn3Ztz6cL9LqRwXX5xVKhFnEhoTGtk+PHgYu86d2XWu/EKl
-vcEOhCh1qoiksMTuCX3GZxjiQoPxlc1VwfLDiWsfSJiYpvP+Wj0mel+JY+AnRUFu3rTt1T4R
-OlruRhJVQ2FIj1X4Wp6r8Tg5QprCOhGgV5yCF8mpSrfZExzOmVzC6SoPJxCMIT2Wba69vK/R
-sohCCAC0LLx8SxiF4R87a6RdcWLLe7TjomNrru1MjccuCIkaJjWSHZOivSVe2YTdtEBVdmHd
-eeupCmeBhbcLooaiEjQ4ycAOSFKN6Ki5NI+tybL+WmLPMXIOQUzQ0J3D2XtSdP0TlG0Xkk+y
-LNtzbCV2/oYwdkqGoW+cQnqXYmlHtcXqIWoaKSiipFH3cHSmlphcokcEo0sotiMTT0ycyNB0
-kkLoG6XMrWGKKqwJxRXa6JBrYIVSMjsf2HyYBQYAaKAbKhq8InRo3VHfzkUnRSk0SofZgVqz
-uQhWPrX6l8/2Oz0uCjAG7JXP49t+2/Dedzqt7o6nBz/0z2D0w2lxvjFw/oXTuSywCBABcnTr
-0U///vmMjdO8Io2aAEAf1RbVvpQ5Gzd5qgRg5JQ7Jy1/1Ndg2cMr9n15kAOOAgoBaoIlCAEg
-IK6Ytio5tcOLm6fFdonxti+x8AXlTlBIZYP8rX+4T368NCBR/dHY2Ge3VgXCdOKuAsfQZDUA
-9F2WDxTysSCrotwvd/E1HLehPLfKJcX3LHNTjU4hc+lFYFGQZO4vsvVcZgMAVoFdr6Qg1CY/
-p1+i+nKOEXpmR9Wa02a3SwTkdfZRFnFuzSYL99aq1dTk9NAPhkYFPbWzwDl1W2VBjRsoBI3z
-QwAECAJC3iOAaDQlI2zZ8KAHwcaJo9aV/5JnAwSAG9GfLEKAwPu/1qnV1KT00A+DXxfkLMOK
-U+a/76ji3CJgAIROF9s/P9HQv6Nm/2OJ0pbDHrn1pxL+rmTG5CZmj7jmnEeFiZkjLl5s4IiV
-gwYPqfDAunznzSHi8hP1tSZ3z86Rg7pGXBs4oVPfjr4NwQif2JbVuJHrDvmHOHUI7+Fb8zzc
-dvffk1/cvXIv7xEYoH38jQBRgBlgXDbX94u2zb75tSD0Ymri84WnixWg8AkMDbTD7Hh9yDw1
-UrXmdTLASP8oSSz0XMcXf/3yAAAwwGDfvgEgQBgQBRQLbNmF8r+lTLc32H1YKjCBTOoWX+7f
-wuL+rZcB+EDOpfAvxQ4fzAC0H8RT0AF9KigUgO/RTTgnjYDGLYBTvk5Qq64eFXjt6a1VQa1U
-kjHYOJK8tGDFMZObI0AhwE3S7uVvGjk84pJDxvSVRVLbtafQeeea4sIGrmk5fToCNT5IIUJg
-+dH6Cd9VBOQGaty6t3N/KbQDjRplzze1ptctPVifsaroEvHF12fNz2yq4HjSqAybVuZgseP+
-TQGvu3/mmP3bT9c6gcX4WBV/rI5rcJN6F6n3gNUDdR6xmgOnmxOdluNFtto6Z3o7/TClY/jQ
-lKsUoSBAGmHUe1ivRkyRkF0f7QGAytwqD3h8zl7f+zJEXmjNyr+a+WZNUQ3yg69EoWaj2key
-Sta/34ALThXOu2OB78qcW962m+0tDokC7BVq4sfcLx917vv8YGVBNZbMXQBBH6WPbB+hClGL
-kpYMsB/ct9z7f269JwgEo9R0nLZlF7l7M02f50N1/uTYkEav7K2fs7f+5Z/r7lxbhuZeuFDt
-DFwYcnea30vp8+/iIqNHknUBDYsTQ5kAUUdwqsJ1/8ZG7nQL5I5Pi4AKAD8pjBJCmIQQJmBL
-ENpwzmJvAvrrncJNSwuCeZAQEAOhaoxOlDp9r2vOpocLHcF6omnLvzlpqpJEeuHtwqkPVhQa
-uXoHSTPQmBIr3GKtW6xwiiVOsdwFNocDHDZwE+DEHgn6fskh+TMX3v7kHZda4MsjCE2T4T38
-wMduzdp51vu7uKTEZXH9vi/H69p5GTE01kCQhF8l89r9r5+LzhVLGbfHbd3n/DzL+//0zi9V
-5lf73npiz8nK3JrYLlEAUHCiEPkzpAQAlFqlQqNwWV1uh7u5C3fZSHzlM6sRgAi+jA2at39u
-Sv9Gb2p2+tyCk/48wIk9v3kcHlbNVlqDgbhO4WxrL+tsYM5J/TGAGkebEkSktaEzWEVjJy8G
-2jakoBABUNP4El7O/H21Up0ZFFG1C2XWjG7Mzy4+asyuckk1RUai6tgTSY379UnxuUqnb5yb
-sswHM8NvaaessPKYxaIEkugZrzw5ub33/19LnYNWFvlYXCTw1TnrUz1DAOCxzZUQaIRZCj10
-Y2h6gupkqeuL0yaPz9Ah9E2WadXoWC3TqgbSsNgjEE4gQamFggZPjEblW8rPij8eO3HNowuf
-OFHFZUQotuSbGKXKxoONF8FlBw8HHCE8ACf2iNVsXrZ196eTMY2vUoQIEGntAhFJ0k2JHHA0
-0ACgALbkfNmZXecQYO/WqxQqRkEjIkHlJNP5Yckur/x4xdIFrlk7XvDdfe/MvMe0T4mi6H2K
-BfbjJ1a+ceCV45tOcjyHJbuu0qs/NS7HFAJAM7rNLssuv1LI6jPbJwihyguVhSeLi06X8B7O
-Jz8AkDYw9eLJAp/QYqCs9bZwdZiDC2bvSCV1iaRQ0AWX0CbwFbV0JSGEFuem1jr46Pm5wPp7
-Ht5Zu3VCvHeLUOsh/iWocySbOzXZHx8eNUnlByHY97A/ltgxIT5xYZ6f6Vn88QnjLe3iOoQy
-3KupNk48Uek+Xuk6UOz8fGyM76mBCSqGxVLO/j7X/lTPEAKw7ZwlILrjxMIZXeK0NADATSHv
-3B4R8888sQmQ0miYT06ZXuhtaHHRjj2TnB7NIEBJH14saQhQdmWWALyRUtDvPNfv1Te/tt8/
-dm+FGwRatHmA8wDHgUCAE0EgiAcgsH3D4S/7qbv0v0xtzZUduYvtHM0BTwGNACig8o8WZO08
-64OBRr4wHLxVCc2lUST5OQUqUHqdQAC4eUBPVsn4YwAVS7GUKCkwqymsAYDjm3+T9ieAMGPj
-c7768ymfTn6p78sKULTBEPkbYIwBIK5rXFzXuFsezGy0Nt+f/GHp7sJTRfYGu9Rd9NlUFRs8
-sQpnq1iw2x18K4S9ynJE0ugNAGoGFzRGhgFRUFuzJPf2CPlwaFR0oCNaGJjySjIolBKtn6Cn
-A7A4AgdKXL6AXs/iwUmqwUmqWX0NAHDRzP/7ZMPaLHOljecCF6PezQPA1lxbELw5a3BUo/x4
-NZSaKpzeSUWDikYqhqJa1w9p0Ype0Yx3YC/0DZu+PQDLsTfTfd0HpS0N194/4hVxxnQiEsQJ
-Xo+E8AREgkQgNNX981Wr37+n16j0y3vKbdSJ3t3CFO7Z/8YLB3K8FzfN32yz2Hy+2dBnhwRn
-hpo6KD1XhgN93t8PXJiAHiUBO0+kXpnT6vTGWlKGxoB7DEnzu1J9kjngfTBd645QC8tfX2rc
-tuiHvMMXa0vr6irrARDVhMv5npK65In6YLetoLbVpHVWdfCtP6sUrdlMBXH7o0lbcmwrDtVL
-Vf6GLFNWpfPM0x18QY6NB8KL0qCiuMGF3siR9E2C/K6iBo/05xfnLOvOWgqNnkIT53aJgKHF
-EgrvpXO1bilHIAQP9tAFtUzUt0HFEzKhm9438Vgd3RY1ktAj8efz8zct2bHwk0PF6b0sHVJ4
-jQ7Z7LrC/NiTx54alfrYL8+HtYtoU7DZRs3t4+yRLwy/cCDHy16WWqtPMDCFdWHqpqbBk/A4
-PM3tEgHAjayPEADxZW4BAYBXd5Hggh3c3NuUDg+15pEGDumdEYuP/nDMiwoSABpoAMIBhwBH
-xUcay42+Pn0dpkUwIJIAnvAIeQ1cZwMTDMHzpLzaBQFuHukepWhL+CNc8xIPAYYla0Z01KRG
-sM/vkOS1MMqt89z4SeGFJkfO5habMWdgook0W+CmRz47Y3lySyXvFv0yRiMQCXiEjjGqYpOH
-bxYJEiGYH1T0VRlqAlqJ7UKkrd6sUq+aOGfcxDnjcvdll5wrdNTnKSJU8XcmdxtyD7qSkVzx
-txNS+ncmLTkMrJqllSwEFnr6GoXEhpJAI6MN08Z0iiFEbFRBhAS5IjRLA0BkYljuEeIzDiII
-oiD6HDmXze3FUNuCKDT2Tsj0TjMrC6oU4LMqRKVX9bi924CH+mXc02v9nO82vr2pueHqn6QG
-TgQFJQ1+X/+17quxsUEtPzphCmgGAJx4WwdNi4gBEYOypX9Uudr03oY3f61vcAT0n1Ptnry9
-auVdMQAQownmG70Sp4YrLtGn3SMCwLk692PflgOF/PJDSHo71V2ddU/0DEnS08p5OXyz7C2r
-wIFgHViayXClndcrKA2NLitFVxYNB1KXAWldBqRdPeR5pS6CWq8kIAZZAwJk8OMDm3hUYh+a
-VEJkUjgNlJTRNQbtvKOvXfalN91544FvDksFc93L3z743n3eH0c2HGOBDRBO0qoX571jb3BU
-FVRLJaRdavzi39/1/TSWGX0ASQB4oKIGpup/LbRLL679rSE5TPFKv1Aljb02ZFuefeb2yiA4
-QatjevtKEAIZ1WYXTG4xVIG9oUiFkQO6rVzAt1CkfClVsuuhhIxPCgK4DKM1p0xeEQIAnZqy
-SvjYI8DRJ5MuO4xJW6oCMGVB3Ppo+5Ed1ZLIkEAzNzYjVgkikTyI5u83fntvrHQmcQvzwEMA
-Q1K0sme08pYk9Yt9QuE6oyvIC3k3h1YwHW5s39xTGj1r5KU9876je3sPP3i7LbtYWpbtR/o9
-TveHEz/e9PaW37acqs6v4Tle4AUAMvDx/hj5lxkD2rpwe87+XJ4T8o8WLn/iExooqSPXXAl5
-vThfA2O5KdDNEfo/kCm9cmLLSSkjSm3psuHRIAZjpm/vrVG9ldP5o8Juy4voN34fu660ORy3
-erTEUgWVeNMoblH++mzbkmMNnT68eAn5ae5cnKlyAQAvkgY/DHMp8esVq4jQB7udPA9D1zai
-mqkRCuncXZxYa/dbrWoHP+qbilf31W/JteebeE4gXvfs2MUAtRKmpSXyQ17eW9+sXB4BwKBE
-FQRCLBvPmzbm2HxNH9xSDQiBAgODi42e77MtpwPzBG3PCvyxibereGbMzJFLHlwmFTClWmmI
-u8yZp3tfv/vAlsNKaFTGDDAv9Xj54YUTe9+dfmLrqS9eWucta/DyugDCsyufvu3JgQAQHmeo
-LzdKHHQyZ8BbNE0LvNBUSULasISNo9UaVNJkFwXUzmU/3TNnDAAUniiaP2yhzWiT9kkkeZRu
-keycwdFv/VLTPPeS782ctgCawc3tVOO7+gPlu1N0m85bAmInTpywoeyyy25QUkECXG7hFG/n
-IAANi+tmdmrL2awzk9vHL8oPKgPeW2Dz/vvtffFJC3KlRRhxiy8uHBY9vIv2hxzbi7uqBZFs
-+71pnUWy/O74KT31oKRB9Nsuo11YcLhhZqYBACZsqlp/xgytFPjOHRjxxt46aUXC+K/LtCxm
-MHIJxCk9akUIhfGXY2Iu7yuR68kKtTaYPuMzKERJm2kMmpadUUkX7XsmPfrmg16nqzGwEcXV
-M754Onnaqmmf+cqCvPhE77syvPIDAK/+NIsDPggeFHgBAEQgrIoJYNzLcZE2XMsHRrKmatN4
-9OBE+rGXMl6xNNgEEFHgUUFBUrL05sCwUakhbVV2CNqFskceD/CFFt8RiVCr4FLHCAWIrXbe
-NSm4UtMjELdA+NYfCVqQWC3dIza4JIoXyJCvyrwI2IxBkVJMgxfJ8zsqUxfnPb+jUpC+BZEH
-bg6d0lMPAPNuj0AQUEww68cq+q0cNPf39Vlm1CxQJU2y8frAiMwkVdBi2Dxig0twBh1V5MQ1
-4+LguqQ2nRcKykhQNGbUjCTGEHuN7Bm8cQihZoXD98wZfffs0U5w+/YVA6aBwv7qKOQAx5BJ
-t83a9rxfEabEPvzWBBe4ArUs4kEY+ED/kTOGAyGtKeDmnMWq2Be/mcZDQFRNASUKIoUoN3H9
-Y9MMB3H4RB0Dbgj0/bbcH7t4eAwIlzwvSQhw4rS+YSXTkoMcsPYhTN8kdQtyIpBJGWEvZoZd
-Yj/WjI6Blo7B8qIXPWvTEhx8PKH5d51+yrNZPSIA/HNI5MxBkeASAjKsjcVyTSLpESelG3w4
-ysy+YWFaBgKlSPCilyK5PVk3IkUrfdexMn+F0f5Hk8am6eDSZ3t58cuJCQ910/2l/tpVOXIJ
-3eI9To93DUUBQqL0jYuIoeutKcbyhsYJcvyI6cP8HN8lVqVVIdSIJyg0AZDOxPn39r6n16a3
-t+Qdya+prvVB0jTQkbERnXp3HDNrZOfMjkEjufvV0XFd4755bWNBdqE3sIlPiB829fYx/xi5
-bdEPiT0SfFieIa4xe00r6MRuCd4sqtf98x1e6Htvxpzts9e/tjH/t3wPcF62iImJ7ja425P/
-ekSlVw17+I6i0/5TaHtX70sd0EU6nud7G6akh84/YNyVbztf67ZZeZ+6QAqcEqEY1F49u394
-a2mNQ48mvri7dtUpk8nMeV3RLrGql/qFPXlTyPpsW2qUgmmK/gSRYIn+6h2n/GJCu9d+rius
-dYNIvC9VauiUCNabG0jQU92jFVKN5/CIQbKlZfC4NH12jTvQeJN3Dxrn3RYBAO8Njrivm+6t
-X2oPlblqGzggTa4sRtGhTGY71fOZ4QMkZxBoDHUzOj25ter7C7Z6s6dxHZRURpxicnrYkzfp
-j1e68us9vgSUSKDCxsVpGQCgMHx3b/yeDMOHR4zHKlzVJg6ExnkBRokR7JBk9aJh0aGSqElN
-o25RyqaNBVEk4Sr/3RAlTo32LyAAGJR/7Dd2/uKPYHkcnCiIjJKmmLZmHp1mlypEec0G4ORE
-XlTqFP9hPxYPQQh0jKQ88zI+ZWMDKwc6BtrSMuinnQOBgJ79w/fIwQNPQEVd/qh701KAlr3S
-Lwr458gTcHDAUqD8L/ksivwdOZlk+gNjIZlkkkkWIZlk+qvgBAB4Y8B8RKFnPp0c1SHi29c3
-Ze/Lnbr6yYik8MXjllqNtue+mhL0gYGy8+X/nvLZgEdvGTxpIOfh3xz0DgDM2vaCNqyFc/M1
-LmHEV6WxOmbrffH5Rk4ZOBaRACEoKbTxao1DWHnaHK6gA8qAJDGChRdm9jbIOyrT9SVC5/df
-EEHAGHYu3bPnk73GStO/HlvJqNgze85yHL9wzAfTvp4a3dF/rn37+zvP78+O7hQ1eNJAisK/
-H74AgHArmTU9Q/120ZEYxZaY+c6L8ppHmI9nhn86KtoHvLy6uRIUOPhMtVeQKNQxUimLkEzX
-kQhxLu7k9iwv7+cdLcjaddZSZwUgtSV1mMEgAgaUdyLfHViCfWLrSQJABHH74h8FjsdAESA7
-l+5m1SwQwAw1fNpQb8tdBU4bJwAGFw97i+w3JKhoCp2scAEhN8epRAICgTidf3gURkAhnYZ6
-e1CkEAiBVNuF9/bXK2kkb6dMfz61ishZaq2PRE32lTN3yuiY3Dt557LdN9zenVUzp3884+Rc
-K4uWRiT5z1QcWntk8YMftU9LtNRZG2oakOT4jTf/E9857v3c97xXbv+i7Od8a2PCjhDyetdj
-Ve4+/yqI1DM1M1r4FFatXYialwMsBl5sLEdo9OWI91MVKZGKC3/rIO+oTNeLFWLV7MSXx296
-Z0uXzC5FWSWhsSG8i0MAF4/mA0IiTxCA1ATxnLD8sRUU4MQb2mWM7cWqFXs+3nNyRxYAKLXK
-6V8/K3AC5/YfipzUK3Rcd/3fvisP19P/HBYDALN21wCCp9NbK8UlAGDQUFvvT5q0tSqnzrVs
-RIyA0XObK9qFsWvGxtg42QrJ9BdQq4icUqO4YVgPIOjuV0fzbj6qQ6QoiACAGYpWMtCsxGLt
-zPUcJwIA5+Yz7++dNijl6I4T3njfZrOFROl6je2ZeX9vX/sHumon36QHgYiErPitAQD2F9kB
-oSVHjOEL8sIX5MUuypf2b+cAEDAU6r+6OLfeDQSm/Vjzwo5qoHC5mRv+RdnJWre8nTJdRyIE
-AFsX7AAATYjKzbs7Z3bqNih13JyxTpvLUmcd+cKdd08b5aumAYAxs0dy4IGmIxLrZm1gEAtA
-ACEamPdGvR/U+fO7a2/+uBBYbHKKx0odo9aXCyIAAauFN5q5BpdgCvyae41LAARqCq0YHZsY
-ygLAC/3Dpw+IAIFE6eiPxsSMT9FcV6VTMv2vx0K8hx+lGK9HIQlp8QXnC1PSu1iqLYChvtRI
-AMLjDAgjm9E+78jcdt3jAYCI5NDXRz54cFm/8X0HPTHgjRHz2yXGVZfUECA3D73p5K6sW8b1
-ff7bZ32lHEO+LP0pxwo0NqioJAN7utwBCEXr6OwpyVaOtH/3glJDO1/xfwJvV4Fj2OpizKBw
-NWVyipxIQpUYAEwukcIoTIltHKma0VGvoORNlem6sEI0Sy/+5V2Mcen5cgJwwx3d1Qa1qcpM
-CAFC6suNCq1CE67BTbVtCCNtuI4AlGWXzx+xkAUmbVBXAECAUzI7A8D+jYc+GL/Ml8qZkmH4
-ckIicGKEmkoMbfz8CoVQmArHaanm5iTH6AYMahaHKilOJGmRCotbNDmEYZ00agYJgNJjlRSS
-wyGZridHruvA1JhOUQDAAhMaG/LIogccHofXVUOA4rrELS9+Py5FegoKAZCGChMBojNo937+
-KwaMAX/9xsYQg44BuqbYf1htXIpmXKoWRHDz5F93Ro1J0/k+N9Xip6UOlTgBoXu76admhAPA
-tD5hwzppAaNcI2918GY3v/beeA0rF1vIdN0gcgDwap83K3KraAYLvHjgy8M5x3ND9aEYI4fZ
-GRZvOL75t3Fo4oIj8zv2kULJKH3kjRGJkXdOu+PiscJ3Ri0EgBnrp8V0jj60/siwqUN87Y5W
-cUwT6B2no9feHav93Vph5dBr2UAAqYL9sa/PmkGEUV20Z2s5ANiQY1VQCAgUGt2A8bBOOqdH
-JES2QzJdT1bIXGMGQpbkL1pjXkEIAUBL8hZyHoEALMp+J6ZjFAIqUH4AANx2z/3zxoVE6W+8
-s7v3VFr3IV3b90x84J17wxP958l+LbClL8sH1u8J+k0ZQs0DtA7hSoOOmfNz7dyfqgFgT65t
-+++WSb0NE28IASA7cqwpS/KdvAwnyHQ9WaEFZ+ZV5VWFJ4YhgJe2TEcI6aN0hrgQTFOAYEn+
-wuKs0gBoAkjHG9oBGS+cAAAAg0lEQVRrIxpPFxKRJPdo7xePQAMxPk13qNQZq6On9TEAAEYw
-pqs+VEktGx7l5MmD31Vo2QBDlDu1/YLDDTV2fkAH9a1JmhsjmVAlFaHCLIUWDolYlWWlANSM
-bINkum4QOZlkkuk/deRkkkkmWYRkkkkWIZlkkkVIJplkEZJJJplaoP8DkR4alv+o1UEAAAAA
-SUVORK5CYII=
-</d>
-</data>
-</abiword>
diff --git a/PressRelease/templates/mail/dashboardmail.bjs b/PressRelease/templates/mail/dashboardmail.bjs
deleted file mode 100644 (file)
index f123c06..0000000
+++ /dev/null
@@ -1,579 +0,0 @@
-{
- "name" : "dashboardmail",
- "parent" : "",
- "title" : "",
- "path" : "/home/edward/gitlive/web.MediaOutreach/Pman/PressRelease/templates/mail/dashboardmail.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
-  "cfbb11cc8aee42c22634027806a48d90" : "<small> Total Clippings :</small><B> {release.clipping_total} </B>  ",
-  "c4969a309475aca5ebd7ebc92191d4f7" : "<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n",
-  "76c5232418eec0a94c56dd5ac98daa91" : "Historical Comparison",
-  "f0bac093bb884df2891d32385d053788" : "Distribution",
-  "886db5abb60274dd672e67bf0bebd6dd" : "<small> Unique Web sites :</small><B> {release.media_total} </B>  ",
-  "f8998f1fd787adb9dc08b3e91f4e2171" : "<ul>\n   <li flexy:if=\"distribution.international\">International (Outside of Asia Pacific)</li>\n   <li flexy:foreach=\"distribution.regions,c\">Regional: {c}</li>\n   <li flexy:foreach=\"distribution.countries,c\">{c}</li>\n</ul>",
-  "1bdbef3a4e139b098d750c51192e9ac2" : "<B> Release Details: </B>  ",
-  "5a455010b42d6056df9ac7c17682e52b" : "<small> Total Online News Posting :</small><B> {news_online_posting_total()} </B>  ",
-  "5b6ac829e60dcb06b6620d075ba6373b" : "Media OutReach News Dashboard - {daysHtml():h} Day Report",
-  "48cf7b62b0ae1dfeb5149e8e237d0c91" : "Top Media by Reach - Media Write-up Coverage",
-  "bc95d77e53cbe571952328a7727a57a8" : "<table width=\"100%\" style=\"table-layout:fixed;font-size:14px;\">\n    <thead>\n      <tr style=\"font-weight:bold\"><td>Date</td><td>Headline</td><td>Clippings</td><td>Circulation</td><td>Advalue</td></tr>\n  </thead>\n    <tbody flexy:foreach=\"history,h\">\n    <tr>\n        <td ><small> {h.publish_dt(#d/M/Y#)} </small></td>\n        <td colspan=\"4\" style=\"word-wrap: break-word;\"><small> #{h.id} {h.headline}</small> </td>\n    </tr>\n    <tr style=\"font-weight:bold\">\n        <td>&nbsp;</td>\n        <td>&nbsp;</td>\n        <td><small>{h.clipping_total}</small></td>\n        <td><small>{h.reach_total}</small></td>\n        <td><small>{h.advalue_total}</small></td>\n    </tr>\n    </tbody>\n </table>\n  ",
-  "ff562acaea20914448cb40525abd2623" : "Media Write-up Coverage",
-  "1f67d5fa612e2acf6fe7254c7bc701c2" : "<small> Languages:</small> <b> {languages_total} </b>",
-  "e918cef139697603dcac357ae876d489" : "as MS Word",
-  "41fc5e35e878b4095deb838ca1cfa80a" : "<small>Total Distribution Points:</small><B> {release.delivered_total} </B>  ",
-  "76f3187439a504e6cd587924886c9b8c" : "Media OutReach Press release distribution report",
-  "d903de581cf0ccea6e227b6ec1806054" : "{t.releaseLogo():h}",
-  "71db76a2a279a14e4952d729d705c157" : "<ul>\n    <li flexy:foreach=\"suppliers,s\">{s.name}</li>\n</ul>\n",
-  "b4642b75f343d6999b762e00624c1273" : "<img src=\"https://{t.HTTP_HOST}{t.rootURL}/Release/templates/images/widget-logo.png\" class=\"roo-m-column-image\" style=\"max-width: 260px;\">",
-  "e63c9f056ac343dbafa63d3209bda690" : "<a href=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>",
-  "553b4e75b4621742af0fc169b4d97f25" : "Distribution Details",
-  "dc683222b89e1db7ca4c12742851a762" : "<B> Description : </B> {release.headline}",
-  "b2e5425ba7928f8efddb04ce61d2614b" : "<ul><li flexy:foreach=\"languages,l\">{l}</li></ul>",
-  "80ef4578af7f6fd57678b5b49abf0db3" : "Share of Voice By Type of News Coverage",
-  "fdfd14a238a79f88aab3a7280bb7ccb1" : "Volume over time",
-  "52e6ca91ffeff2db060a1403eb07e992" : "<small> Total Media Write-up Coverage :</small><B> {media_write_up_total()} </B>  ",
-  "8f3e1295a3a1d30b6ee5d8de6e0b8c0a" : "as Excel",
-  "c22cbfe0fa9b97323840213b74e5cd59" : "Total Coverage",
-  "3a08e2e340ab29fd9263af48193cbf8e" : "Languages",
-  "a7bea2907eb650d8016e559e7dfcbb0d" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={release.id}&days={days}\">",
-  "cd2119f4c4a6bc283173f26747a3c775" : "<small> Media Write Up Advalue :</small><B> US${advalue_total(#media#)} </B>  ",
-  "dd5ba7fb87f4b9c3f95280b06144d396" : "Breakdown by country",
-  "26d1c91c990ee713e2a93e7faf8a21ae" : "<small> Total Advalue :</small><B> US${advalue_total(#all#)} </B>  ",
-  "af23cecc757c6fe3b8b69b0b0100e96b" : "<small> Total Reach :</small><B> {release.reach_total} </B>  ",
-  "790d59ef178acbc75d233bf4211763c6" : "Countries",
-  "3ba45f71401982ffb72268f81537fec3" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={release.id}&days={days}\">",
-  "40f5c2ed25804bc5229fc0d30ffcf8a4" : "<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist_feed,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n",
-  "c02f226ecf3f20e24e102b8f4809dc1b" : " | ",
-  "35a7b35ed73cc092ab53e483a03df0e3" : "<B>#{rr.id}</B> -  {rr.publish_dt(#d F Y h:ia#)} - {rr.inlanguages}",
-  "e28787c9b209f2a0dbfc21545ed4f3bc" : "<a href=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>",
-  "aab26161b230a5f238cfd958ffced969" : "Download Report : ",
-  "0f872003bb73e5f7a8c8e6bb59da52bc" : "Found on these Search Engines",
-  "3b878279a04dc47d60932cb294d96259" : "Overview",
-  "1992faaf8cfa18ac4578e08c4d7f6bff" : " \nHeadline: <a href=\"http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><B>{clip.headline()}</b></a><br/>\nMedia Title: {clip.media_name} <br/>\nPublished: {clip.published()} <br/>\nCountry: {clip.country(#en#)} <br/>\nLanguage: {clip.language(#en#)}<br/>\nAdValue: US${clip.advalue} <br/>\nCirculation: {clip.circulationFormated()}<br/>\nURL: <a target=\"_new\" href=\"{clip.remote_url}\">{clip.media_name}</a><br/>\n<br/>\n ",
-  "be9d418e92e41156493c6241374b659b" : "<small>Countries Targeted :</small> <b>{countries_total}</b>",
-  "7d24cc805dd8e5910bf9b882ae8a55f7" : "<small> Online News Posting Advalue :</small><B> US${advalue_total(#posting#)} </B>  ",
-  "6302799cad82c70e780a75f94adccb3c" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={release.id}&days={days}\">",
-  "e65bd2101f7b815610283c6209da6e93" : "Online News Posting",
-  "433d3c16a783c0427da55ee22f803f06" : " The news clipping shall not be copied, redistributed, reproduced or passed on\n        directly or indirectly to any 3rd party in whole or in part for any purpose at anytime.\n        This news clipping is intended for client's internal usage only.\n",
-  "7c3a21b4cd6180476ac198f341e9666c" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={release.id}&days={days}\">",
-  "d03b57561f46520029ba6df8f941c1cd" : "Top Media by Reach - Online News Posting",
-  "fadbb12cf481859fe32ee875dfd7e05e" : "<small> Beats Covered :</small> <b>{beats_total}</b>",
-  "5bfd1992799a6417b3b25c4373586da8" : "Breakdown by language"
- },
- "items" : [
-  {
-   "xtype" : "Body",
-   "cls" : "mailer-body",
-   "$ xns" : "Roo.mailer",
-   "items" : [
-    {
-     "xtype" : "BodyContainer",
-     "$ xns" : "Roo.mailer",
-     "items" : [
-      {
-       "String blocktype" : "preheader",
-       "xtype" : "Block",
-       "string html" : "Media OutReach Press release distribution report",
-       "$ xns" : "Roo.mailer",
-       "String style" : "padding-top:10px; padding-right:20px; padding-bottom:10px; padding-left:20px;"
-      },
-      {
-       "String blocktype" : "header",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Media OutReach News Dashboard - {daysHtml():h} Day Report",
-         "String style" : "padding:10px"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "left",
-         "String html" : "<img src=\"https://{t.HTTP_HOST}{t.rootURL}/Release/templates/images/widget-logo.png\" class=\"roo-m-column-image\" style=\"max-width: 260px;\">"
-        },
-        {
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "right",
-         "String html" : "{t.releaseLogo():h}"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<B> Description : </B> {release.headline}"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<B> Release Details: </B>  "
-        },
-        {
-         "flexy:foreach" : "releases,rr",
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<B>#{rr.id}</B> -  {rr.publish_dt(#d F Y h:ia#)} - {rr.inlanguages}"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String style" : "text-align: center;",
-         "items" : [
-          {
-           "String tag" : "span",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Download Report : "
-          },
-          {
-           "String target" : "_blank",
-           "String href" : "{toWordUrl()}",
-           "xtype" : "Link",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "as MS Word"
-          },
-          {
-           "String tag" : "span",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : " | "
-          },
-          {
-           "String href" : "{toExcelUrl()}",
-           "String target" : "_blank",
-           "xtype" : "Link",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "as Excel"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Overview"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "left",
-         "items" : [
-          {
-           "xtype" : "Header",
-           "$ xns" : "Roo.bootstrap",
-           "Number level" : 5,
-           "String html" : "Distribution"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small>Total Distribution Points:</small><B> {release.delivered_total} </B>  "
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small>Countries Targeted :</small> <b>{countries_total}</b>"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Languages:</small> <b> {languages_total} </b>"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Beats Covered :</small> <b>{beats_total}</b>"
-          }
-         ]
-        },
-        {
-         "xtype" : "Column",
-         "String column" : "right",
-         "$ xns" : "Roo.mailer",
-         "items" : [
-          {
-           "xtype" : "Header",
-           "Number level" : 5,
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Total Coverage"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Unique Web sites :</small><B> {release.media_total} </B>  "
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Total Clippings :</small><B> {release.clipping_total} </B>  "
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Total Reach :</small><B> {release.reach_total} </B>  "
-          },
-          {
-           "string flexy:if" : "release_is_feed()",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Media Write Up Advalue :</small><B> US${advalue_total(#media#)} </B>  "
-          },
-          {
-           "string flexy:if" : "release_is_feed()",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Online News Posting Advalue :</small><B> US${advalue_total(#posting#)} </B>  "
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Total Advalue :</small><B> US${advalue_total(#all#)} </B>  "
-          },
-          {
-           "string flexy:if" : "release_is_feed()",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Total Media Write-up Coverage :</small><B> {media_write_up_total()} </B>  "
-          },
-          {
-           "string flexy:if" : "release_is_feed()",
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<small> Total Online News Posting :</small><B> {news_online_posting_total()} </B>  "
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Distribution Details"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Column",
-         "String column" : "left",
-         "$ xns" : "Roo.mailer",
-         "items" : [
-          {
-           "xtype" : "Header",
-           "Number level" : 5,
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Countries"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<ul>\n   <li flexy:if=\"distribution.international\">International (Outside of Asia Pacific)</li>\n   <li flexy:foreach=\"distribution.regions,c\">Regional: {c}</li>\n   <li flexy:foreach=\"distribution.countries,c\">{c}</li>\n</ul>"
-          }
-         ]
-        },
-        {
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "right",
-         "items" : [
-          {
-           "xtype" : "Header",
-           "$ xns" : "Roo.bootstrap",
-           "Number level" : 5,
-           "String html" : "Languages"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<ul><li flexy:foreach=\"languages,l\">{l}</li></ul>"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "left",
-         "items" : [
-          {
-           "xtype" : "Header",
-           "Number level" : 5,
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Found on these Search Engines"
-          },
-          {
-           "xtype" : "Container",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "<ul>\n    <li flexy:foreach=\"suppliers,s\">{s.name}</li>\n</ul>\n"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "Number level" : 2,
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "Volume over time"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={release.id}&days={days}\">"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Breakdown by language"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={release.id}&days={days}\">"
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "Number level" : 2,
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "Breakdown by country"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={release.id}&days={days}\">"
-        }
-       ]
-      },
-      {
-       "string flexy:if" : "release_is_feed()",
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Share of Voice By Type of News Coverage"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={release.id}&days={days}\">"
-        }
-       ]
-      },
-      {
-       "string flexy:if" : "hasClippingsDist()",
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Top Media by Reach - Media Write-up Coverage"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n"
-        }
-       ]
-      },
-      {
-       "string flexy:if" : "hasClippingsDistFeed()",
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "Number level" : 2,
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "Top Media by Reach - Online News Posting"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist_feed,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n"
-        }
-       ]
-      },
-      {
-       "string flexy:if" : "hasClippings()",
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "$ xns" : "Roo.bootstrap",
-         "Number level" : 2,
-         "String html" : "Media Write-up Coverage"
-        }
-       ]
-      },
-      {
-       "flexy:foreach" : "release.clippings,clip",
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "int width" : 200,
-         "xtype" : "Column",
-         "String column" : "left",
-         "$ xns" : "Roo.mailer",
-         "String html" : "<a href=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>"
-        },
-        {
-         "int width" : 340,
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "right",
-         "String html" : " \nHeadline: <a href=\"http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><B>{clip.headline()}</b></a><br/>\nMedia Title: {clip.media_name} <br/>\nPublished: {clip.published()} <br/>\nCountry: {clip.country(#en#)} <br/>\nLanguage: {clip.language(#en#)}<br/>\nAdValue: US${clip.advalue} <br/>\nCirculation: {clip.circulationFormated()}<br/>\nURL: <a target=\"_new\" href=\"{clip.remote_url}\">{clip.media_name}</a><br/>\n<br/>\n "
-        }
-       ]
-      },
-      {
-       "string flexy:if" : "hasClippingsFeed()",
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "Number level" : 2,
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "Online News Posting"
-        }
-       ]
-      },
-      {
-       "flexy:foreach" : "release.clippings_feed,clip",
-       "String blocktype" : "row",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "int width" : 200,
-         "xtype" : "Column",
-         "String column" : "left",
-         "$ xns" : "Roo.mailer",
-         "String html" : "<a href=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>"
-        },
-        {
-         "int width" : 340,
-         "xtype" : "Column",
-         "$ xns" : "Roo.mailer",
-         "String column" : "right",
-         "String html" : " \nHeadline: <a href=\"http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><B>{clip.headline()}</b></a><br/>\nMedia Title: {clip.media_name} <br/>\nPublished: {clip.published()} <br/>\nCountry: {clip.country(#en#)} <br/>\nLanguage: {clip.language(#en#)}<br/>\nAdValue: US${clip.advalue} <br/>\nCirculation: {clip.circulationFormated()}<br/>\nURL: <a target=\"_new\" href=\"{clip.remote_url}\">{clip.media_name}</a><br/>\n<br/>\n "
-        }
-       ]
-      },
-      {
-       "String blocktype" : "body",
-       "xtype" : "Block",
-       "$ xns" : "Roo.mailer",
-       "items" : [
-        {
-         "xtype" : "Header",
-         "Number level" : 2,
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "Historical Comparison"
-        },
-        {
-         "xtype" : "Container",
-         "$ xns" : "Roo.bootstrap",
-         "String html" : "<table width=\"100%\" style=\"table-layout:fixed;font-size:14px;\">\n    <thead>\n      <tr style=\"font-weight:bold\"><td>Date</td><td>Headline</td><td>Clippings</td><td>Circulation</td><td>Advalue</td></tr>\n  </thead>\n    <tbody flexy:foreach=\"history,h\">\n    <tr>\n        <td ><small> {h.publish_dt(#d/M/Y#)} </small></td>\n        <td colspan=\"4\" style=\"word-wrap: break-word;\"><small> #{h.id} {h.headline}</small> </td>\n    </tr>\n    <tr style=\"font-weight:bold\">\n        <td>&nbsp;</td>\n        <td>&nbsp;</td>\n        <td><small>{h.clipping_total}</small></td>\n        <td><small>{h.reach_total}</small></td>\n        <td><small>{h.advalue_total}</small></td>\n    </tr>\n    </tbody>\n </table>\n  "
-        }
-       ]
-      },
-      {
-       "String blocktype" : "footer",
-       "xtype" : "Block",
-       "string html" : " The news clipping shall not be copied, redistributed, reproduced or passed on\n        directly or indirectly to any 3rd party in whole or in part for any purpose at anytime.\n        This news clipping is intended for client's internal usage only.\n",
-       "$ xns" : "Roo.mailer"
-      }
-     ]
-    }
-   ]
-  }
- ]
-}
\ No newline at end of file
diff --git a/PressRelease/templates/mail/dashboardmail.html b/PressRelease/templates/mail/dashboardmail.html
deleted file mode 100644 (file)
index adf07c1..0000000
+++ /dev/null
@@ -1,768 +0,0 @@
-  
-       
-        
-     
-    
-
-        
-  <CENTER xbuilderid="roo-gen3" class="mailer-body" xtype="Roo.mailer.Body">
-    <TABLE border="0" cellpadding="0" cellspacing="0" height="100%" align="center" class="roo-m-body-table mailer-body">
-      <TBODY>
-        <TR>
-          <TD align="center" valight="top" class="roo-m-body-cell">
-            <TABLE border="0" cellpadding="0" cellspacing="0" class="roo-m-body-container " xbuilderid="roo-gen4" xtype="Roo.mailer.BodyContainer">
-              <TBODY xbuilderid="roo-gen5">
-                <TR xbuilderid="roo-gen6">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen7">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-preheader " xbuilderid="roo-gen8" style="padding: 10px 20px;" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen9">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-preheader-content">Media OutReach Press release distribution report</TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen10">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen11">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-header " xbuilderid="roo-gen12" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen15">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-header-content" xbuilderid="roo-gen13">
-                            <H2 xbuilderid="roo-gen14" style="padding: 10px;" xtype="Roo.bootstrap.Header">Media OutReach News Dashboard - {daysHtml():h} Day Report</H2>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen16">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen17">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen18" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen24">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen19">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen20">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen21" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen25">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body">
-                                    <IMG src="https://{t.HTTP_HOST}{t.rootURL}/Release/templates/images/widget-logo.png" class="roo-m-column-image" style="max-width: 260px;"></IMG>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen22">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen23" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen26">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-right-content roo-m-column-body">{t.releaseLogo():h}</TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen27">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen28">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen29" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen34">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen30">
-                            <DIV class="container" xbuilderid="roo-gen31" xtype="Roo.bootstrap.Container">
-                              <B> Description : </B> {release.headline}
-                            </DIV>
-                            <DIV class="container" xbuilderid="roo-gen32" xtype="Roo.bootstrap.Container">
-                              <B> Release Details: </B>  
-                            </DIV>
-                            <DIV class="container" xbuilderid="roo-gen33" flexy:foreach="releases,rr" xtype="Roo.bootstrap.Container">
-                              <B>#{rr.id}</B> -  {rr.publish_dt(#d F Y h:ia#)} - {rr.inlanguages}
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen35">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen36">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen37" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen44">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen38">
-                            <DIV class="container" xbuilderid="roo-gen39" style="text-align: center;" xtype="Roo.bootstrap.Container">
-                              <SPAN class="container" xbuilderid="roo-gen40" xtype="Roo.bootstrap.Container">Download Report : </SPAN>
-                              <A href="{toWordUrl()}" target="_blank" xbuilderid="roo-gen41" xtype="Roo.bootstrap.Link">as MS Word</A>
-                              <SPAN class="container" xbuilderid="roo-gen42" xtype="Roo.bootstrap.Container"> | </SPAN>
-                              <A href="{toExcelUrl()}" target="_blank" xbuilderid="roo-gen43" xtype="Roo.bootstrap.Link">as Excel</A>
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen45">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen46">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen47" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen50">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen48">
-                            <H2 xbuilderid="roo-gen49" xtype="Roo.bootstrap.Header">Overview</H2>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen51">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen52">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen53" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen75">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen54">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen55">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen56" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen76">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body" xbuilderid="roo-gen57">
-                                    <H5 xbuilderid="roo-gen58" xtype="Roo.bootstrap.Header">Distribution</H5>
-                                    <DIV class="container" xbuilderid="roo-gen59" xtype="Roo.bootstrap.Container">
-                                      <SMALL>Total Distribution Points:</SMALL>
-                                      <B> {release.delivered_total} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen60" xtype="Roo.bootstrap.Container">
-                                      <SMALL>Countries Targeted :</SMALL> 
-                                      <B>{countries_total}</B>
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen61" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Languages:</SMALL> 
-                                      <B> {languages_total} </B>
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen62" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Beats Covered :</SMALL> 
-                                      <B>{beats_total}</B>
-                                    </DIV>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen63">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen64" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen77">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-right-content roo-m-column-body" xbuilderid="roo-gen65">
-                                    <H5 xbuilderid="roo-gen66" xtype="Roo.bootstrap.Header">Total Coverage</H5>
-                                    <DIV class="container" xbuilderid="roo-gen67" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Unique Web sites :</SMALL>
-                                      <B> {release.media_total} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen68" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Total Clippings :</SMALL>
-                                      <B> {release.clipping_total} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen69" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Total Reach :</SMALL>
-                                      <B> {release.reach_total} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen70" flexy:if="release_is_feed()" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Media Write Up Advalue :</SMALL>
-                                      <B> US${advalue_total(#media#)} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen71" flexy:if="release_is_feed()" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Online News Posting Advalue :</SMALL>
-                                      <B> US${advalue_total(#posting#)} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen72" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Total Advalue :</SMALL>
-                                      <B> US${advalue_total(#all#)} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen73" flexy:if="release_is_feed()" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Total Media Write-up Coverage :</SMALL>
-                                      <B> {media_write_up_total()} </B>  
-                                    </DIV>
-                                    <DIV class="container" xbuilderid="roo-gen74" flexy:if="release_is_feed()" xtype="Roo.bootstrap.Container">
-                                      <SMALL> Total Online News Posting :</SMALL>
-                                      <B> {news_online_posting_total()} </B>  
-                                    </DIV>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen78">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen79">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen80" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen83">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen81">
-                            <H2 xbuilderid="roo-gen82" xtype="Roo.bootstrap.Header">Distribution Details</H2>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen84">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen85">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen86" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen98">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen87">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen88">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen89" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen99">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body" xbuilderid="roo-gen90">
-                                    <H5 xbuilderid="roo-gen91" xtype="Roo.bootstrap.Header">Countries</H5>
-                                    <DIV class="container" xbuilderid="roo-gen92" xtype="Roo.bootstrap.Container">
-                                      <UL>
-   
-                                        <LI flexy:if="distribution.international">International (Outside of Asia Pacific)</LI>
-   
-                                        <LI flexy:foreach="distribution.regions,c">Regional: {c}</LI>
-   
-                                        <LI flexy:foreach="distribution.countries,c">{c}</LI>
-
-                                      </UL>
-                                    </DIV>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen93">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen94" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen100">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-right-content roo-m-column-body" xbuilderid="roo-gen95">
-                                    <H5 xbuilderid="roo-gen96" xtype="Roo.bootstrap.Header">Languages</H5>
-                                    <DIV class="container" xbuilderid="roo-gen97" xtype="Roo.bootstrap.Container">
-                                      <UL>
-                                        <LI flexy:foreach="languages,l">{l}</LI>
-                                      </UL>
-                                    </DIV>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen101">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen102">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen103" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen110">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen104">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen105">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="100%" xbuilderid="roo-gen106" xtype="Roo.mailer.Column" style="width: 100%;">
-                              <TBODY xbuilderid="roo-gen111">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body" xbuilderid="roo-gen107">
-                                    <H5 xbuilderid="roo-gen108" xtype="Roo.bootstrap.Header">Found on these Search Engines</H5>
-                                    <DIV class="container" xbuilderid="roo-gen109" xtype="Roo.bootstrap.Container">
-                                      <UL>
-    
-                                        <LI flexy:foreach="suppliers,s">{s.name}</LI>
-
-                                      </UL>
-
-                                    </DIV>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen112">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen113">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen114" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen118">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen115">
-                            <H2 xbuilderid="roo-gen116" xtype="Roo.bootstrap.Header">Volume over time</H2>
-                            <DIV class="container" xbuilderid="roo-gen117" xtype="Roo.bootstrap.Container">
-                              <IMG src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={release.id}&days={days}"></IMG>
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen119">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen120">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen121" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen125">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen122">
-                            <H2 xbuilderid="roo-gen123" xtype="Roo.bootstrap.Header">Breakdown by language</H2>
-                            <DIV class="container" xbuilderid="roo-gen124" xtype="Roo.bootstrap.Container">
-                              <IMG src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={release.id}&days={days}"></IMG>
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen126">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen127">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen128" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen132">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen129">
-                            <H2 xbuilderid="roo-gen130" xtype="Roo.bootstrap.Header">Breakdown by country</H2>
-                            <DIV class="container" xbuilderid="roo-gen131" xtype="Roo.bootstrap.Container">
-                              <IMG src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={release.id}&days={days}"></IMG>
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen133">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen134">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen135" flexy:if="release_is_feed()" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen139">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen136">
-                            <H2 xbuilderid="roo-gen137" xtype="Roo.bootstrap.Header">Share of Voice By Type of News Coverage</H2>
-                            <DIV class="container" xbuilderid="roo-gen138" xtype="Roo.bootstrap.Container">
-                              <IMG src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={release.id}&days={days}"></IMG>
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen140">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen141">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen142" flexy:if="hasClippingsDist()" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen146">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen143">
-                            <H2 xbuilderid="roo-gen144" xtype="Roo.bootstrap.Header">Top Media by Reach - Media Write-up Coverage</H2>
-                            <DIV class="container" xbuilderid="roo-gen145" xtype="Roo.bootstrap.Container">
-                              <TABLE width="100%">
-    
-                                <TBODY xbuilderid="roo-gen147">
-                                  <TR style="font-weight:bold">
-                                    <TD>
-                                      <SMALL>Source</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Source Link</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Download</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Circulation</SMALL>
-                                    </TD>
-                                  </TR>
-    
-                                  <TR flexy:foreach="release.clippings_dist,c">
-        
-                                    <TD style="width:50%">
-                                      <SMALL>{c.media_name} ({c.language_tr})</SMALL>
-                                    </TD>
-        
-                                    <TD>
-                                      <A href="{c.remote_url}" target="_new">
-                                        <IMG src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif" title="View"></IMG>
-                                      </A>
-                                    </TD>
-        
-                                    <TD>
-                                      <A href="https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=" target="_new">
-                                        <IMG src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif" title="Download"></IMG>
-                                      </A>
-                                    </TD>
-        
-                                    <TD>
-                                      <SMALL>{c.circulationFormated()}</SMALL>
-                                    </TD>
-    
-                                  </TR>
-    
-                                </TBODY>
-                              </TABLE>
-
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen148">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen149">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen150" flexy:if="hasClippingsDistFeed()" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen154">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen151">
-                            <H2 xbuilderid="roo-gen152" xtype="Roo.bootstrap.Header">Top Media by Reach - Online News Posting</H2>
-                            <DIV class="container" xbuilderid="roo-gen153" xtype="Roo.bootstrap.Container">
-                              <TABLE width="100%">
-    
-                                <TBODY xbuilderid="roo-gen155">
-                                  <TR style="font-weight:bold">
-                                    <TD>
-                                      <SMALL>Source</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Source Link</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Download</SMALL>
-                                    </TD>
-                                    <TD>
-                                      <SMALL>Circulation</SMALL>
-                                    </TD>
-                                  </TR>
-    
-                                  <TR flexy:foreach="release.clippings_dist_feed,c">
-        
-                                    <TD style="width:50%">
-                                      <SMALL>{c.media_name} ({c.language_tr})</SMALL>
-                                    </TD>
-        
-                                    <TD>
-                                      <A href="{c.remote_url}" target="_new">
-                                        <IMG src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif" title="View"></IMG>
-                                      </A>
-                                    </TD>
-        
-                                    <TD>
-                                      <A href="https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=" target="_new">
-                                        <IMG src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif" title="Download"></IMG>
-                                      </A>
-                                    </TD>
-        
-                                    <TD>
-                                      <SMALL>{c.circulationFormated()}</SMALL>
-                                    </TD>
-    
-                                  </TR>
-    
-                                </TBODY>
-                              </TABLE>
-
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen156">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen157">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen158" flexy:if="hasClippings()" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen161">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen159">
-                            <H2 xbuilderid="roo-gen160" xtype="Roo.bootstrap.Header">Media Write-up Coverage</H2>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen162">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen163">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen164" flexy:foreach="release.clippings,clip" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen170">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen165">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen166">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="200" xbuilderid="roo-gen167" xtype="Roo.mailer.Column" style="width: 200px;">
-                              <TBODY xbuilderid="roo-gen171">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body">
-                                    <A href="https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}">
-                                      <IMG width="200" mailembed="no" src="https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}"></IMG>
-                                    </A>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen168">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="340" xbuilderid="roo-gen169" xtype="Roo.mailer.Column" style="width: 340px;">
-                              <TBODY xbuilderid="roo-gen172">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-right-content roo-m-column-body"> 
-Headline: 
-                                    <A href="http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}">
-                                      <B>{clip.headline()}</B>
-                                    </A>
-                                    <BR/>
-Media Title: {clip.media_name} 
-                                    <BR/>
-Published: {clip.published()} 
-                                    <BR/>
-Country: {clip.country(#en#)} 
-                                    <BR/>
-Language: {clip.language(#en#)}
-                                    <BR/>
-AdValue: US${clip.advalue} 
-                                    <BR/>
-Circulation: {clip.circulationFormated()}
-                                    <BR/>
-URL: 
-                                    <A target="_new" href="{clip.remote_url}">{clip.media_name}</A>
-                                    <BR/>
-
-                                    <BR/>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen173">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen174">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen175" flexy:if="hasClippingsFeed()" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen178">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen176">
-                            <H2 xbuilderid="roo-gen177" xtype="Roo.bootstrap.Header">Online News Posting</H2>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen179">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen180">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-row " xbuilderid="roo-gen181" flexy:foreach="release.clippings_feed,clip" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen187">
-                        <TR class="roo-m-block-tr" xbuilderid="roo-gen182">
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen183">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="200" xbuilderid="roo-gen184" xtype="Roo.mailer.Column" style="width: 200px;">
-                              <TBODY xbuilderid="roo-gen188">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-left-content roo-m-column-body">
-                                    <A href="http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}">
-                                      <IMG width="200" mailembed="no" src="http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}"></IMG>
-                                    </A>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                          <TD align="center" valign="top" style="padding-top : 20px;" class="roo-m-column" xbuilderid="roo-gen185">
-                            <TABLE border="0" cellpadding="20" cellspacing="0" width="340" xbuilderid="roo-gen186" xtype="Roo.mailer.Column" style="width: 340px;">
-                              <TBODY xbuilderid="roo-gen189">
-                                <TR>
-                                  <TD align="center" valight="top" class="roo-m-column-right-content roo-m-column-body"> 
-Headline: 
-                                    <A href="http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}">
-                                      <B>{clip.headline()}</B>
-                                    </A>
-                                    <BR/>
-Media Title: {clip.media_name} 
-                                    <BR/>
-Published: {clip.published()} 
-                                    <BR/>
-Country: {clip.country(#en#)} 
-                                    <BR/>
-Language: {clip.language(#en#)}
-                                    <BR/>
-AdValue: US${clip.advalue} 
-                                    <BR/>
-Circulation: {clip.circulationFormated()}
-                                    <BR/>
-URL: 
-                                    <A target="_new" href="{clip.remote_url}">{clip.media_name}</A>
-                                    <BR/>
-
-                                    <BR/>
-                                  </TD>
-                                </TR>
-                              </TBODY>
-                            </TABLE>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen190">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen191">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-body " xbuilderid="roo-gen192" xtype="Roo.mailer.Block">
-                      <TBODY xbuilderid="roo-gen196">
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-body-content" xbuilderid="roo-gen193">
-                            <H2 xbuilderid="roo-gen194" xtype="Roo.bootstrap.Header">Historical Comparison</H2>
-                            <DIV class="container" xbuilderid="roo-gen195" xtype="Roo.bootstrap.Container">
-                              <TABLE width="100%" style="table-layout:fixed;font-size:14px;">
-    
-                                <THEAD>
-      
-                                  <TR style="font-weight:bold">
-                                    <TD>Date</TD>
-                                    <TD>Headline</TD>
-                                    <TD>Clippings</TD>
-                                    <TD>Circulation</TD>
-                                    <TD>Advalue</TD>
-                                  </TR>
-  
-                                </THEAD>
-    
-                                <TBODY flexy:foreach="history,h" xbuilderid="roo-gen197">
-    
-                                  <TR>
-        
-                                    <TD>
-                                      <SMALL> {h.publish_dt(#d/M/Y#)} </SMALL>
-                                    </TD>
-        
-                                    <TD colspan="4" style="word-wrap: break-word;">
-                                      <SMALL> #{h.id} {h.headline}</SMALL> 
-                                    </TD>
-    
-                                  </TR>
-    
-                                  <TR style="font-weight:bold">
-        
-                                    <TD> </TD>
-        
-                                    <TD> </TD>
-        
-                                    <TD>
-                                      <SMALL>{h.clipping_total}</SMALL>
-                                    </TD>
-        
-                                    <TD>
-                                      <SMALL>{h.reach_total}</SMALL>
-                                    </TD>
-        
-                                    <TD>
-                                      <SMALL>{h.advalue_total}</SMALL>
-                                    </TD>
-    
-                                  </TR>
-    
-                                </TBODY>
-                              </TABLE>
-  
-                            </DIV>
-                          </TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-                <TR xbuilderid="roo-gen198">
-                  <TD align="center" valign="top" class="roo-m-child-ctr"></TD>
-                </TR>
-                <TR xbuilderid="roo-gen199">
-                  <TD align="center" valign="top" class="roo-m-child-ctr">
-                    <TABLE border="0" cellpadding="0" cellspacing="0" width="100%" align="center" class="roo-m-footer " xbuilderid="roo-gen200" xtype="Roo.mailer.Block">
-                      <TBODY>
-                        <TR class="roo-m-block-tr">
-                          <TD align="center" valight="top" class="roo-m-footer-content"> The news clipping shall not be copied, redistributed, reproduced or passed on
-        directly or indirectly to any 3rd party in whole or in part for any purpose at anytime.
-        This news clipping is intended for client's internal usage only.
-</TD>
-                        </TR>
-                      </TBODY>
-                    </TABLE>
-                  </TD>
-                </TR>
-              </TBODY>
-            </TABLE>
-          </TD>
-        </TR>
-      </TBODY>
-    </TABLE>
-  </CENTER>
diff --git a/PressRelease/templates/mail/dashboardmail.js b/PressRelease/templates/mail/dashboardmail.js
deleted file mode 100644 (file)
index 8689d15..0000000
+++ /dev/null
@@ -1,764 +0,0 @@
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-dashboardmail = new Roo.XComponent({
-
- _strings : {
-  'cfbb11cc8aee42c22634027806a48d90' :"<small> Total Clippings :</small><B> {release.clipping_total} </B>  ",
-  'c4969a309475aca5ebd7ebc92191d4f7' :"<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n",
-  '76c5232418eec0a94c56dd5ac98daa91' :"Historical Comparison",
-  'f0bac093bb884df2891d32385d053788' :"Distribution",
-  '886db5abb60274dd672e67bf0bebd6dd' :"<small> Unique Web sites :</small><B> {release.media_total} </B>  ",
-  'f8998f1fd787adb9dc08b3e91f4e2171' :"<ul>\n   <li flexy:if=\"distribution.international\">International (Outside of Asia Pacific)</li>\n   <li flexy:foreach=\"distribution.regions,c\">Regional: {c}</li>\n   <li flexy:foreach=\"distribution.countries,c\">{c}</li>\n</ul>",
-  '1bdbef3a4e139b098d750c51192e9ac2' :"<B> Release Details: </B>  ",
-  '5a455010b42d6056df9ac7c17682e52b' :"<small> Total Online News Posting :</small><B> {news_online_posting_total()} </B>  ",
-  '5b6ac829e60dcb06b6620d075ba6373b' :"Media OutReach News Dashboard - {daysHtml():h} Day Report",
-  '48cf7b62b0ae1dfeb5149e8e237d0c91' :"Top Media by Reach - Media Write-up Coverage",
-  'bc95d77e53cbe571952328a7727a57a8' :"<table width=\"100%\" style=\"table-layout:fixed;font-size:14px;\">\n    <thead>\n      <tr style=\"font-weight:bold\"><td>Date</td><td>Headline</td><td>Clippings</td><td>Circulation</td><td>Advalue</td></tr>\n  </thead>\n    <tbody flexy:foreach=\"history,h\">\n    <tr>\n        <td ><small> {h.publish_dt(#d/M/Y#)} </small></td>\n        <td colspan=\"4\" style=\"word-wrap: break-word;\"><small> #{h.id} {h.headline}</small> </td>\n    </tr>\n    <tr style=\"font-weight:bold\">\n        <td>&nbsp;</td>\n        <td>&nbsp;</td>\n        <td><small>{h.clipping_total}</small></td>\n        <td><small>{h.reach_total}</small></td>\n        <td><small>{h.advalue_total}</small></td>\n    </tr>\n    </tbody>\n </table>\n  ",
-  'ff562acaea20914448cb40525abd2623' :"Media Write-up Coverage",
-  '1f67d5fa612e2acf6fe7254c7bc701c2' :"<small> Languages:</small> <b> {languages_total} </b>",
-  'e918cef139697603dcac357ae876d489' :"as MS Word",
-  '41fc5e35e878b4095deb838ca1cfa80a' :"<small>Total Distribution Points:</small><B> {release.delivered_total} </B>  ",
-  '76f3187439a504e6cd587924886c9b8c' :"Media OutReach Press release distribution report",
-  'd903de581cf0ccea6e227b6ec1806054' :"{t.releaseLogo():h}",
-  '71db76a2a279a14e4952d729d705c157' :"<ul>\n    <li flexy:foreach=\"suppliers,s\">{s.name}</li>\n</ul>\n",
-  'b4642b75f343d6999b762e00624c1273' :"<img src=\"https://{t.HTTP_HOST}{t.rootURL}/Release/templates/images/widget-logo.png\" class=\"roo-m-column-image\" style=\"max-width: 260px;\">",
-  'e63c9f056ac343dbafa63d3209bda690' :"<a href=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>",
-  '553b4e75b4621742af0fc169b4d97f25' :"Distribution Details",
-  'dc683222b89e1db7ca4c12742851a762' :"<B> Description : </B> {release.headline}",
-  'b2e5425ba7928f8efddb04ce61d2614b' :"<ul><li flexy:foreach=\"languages,l\">{l}</li></ul>",
-  '80ef4578af7f6fd57678b5b49abf0db3' :"Share of Voice By Type of News Coverage",
-  'fdfd14a238a79f88aab3a7280bb7ccb1' :"Volume over time",
-  '52e6ca91ffeff2db060a1403eb07e992' :"<small> Total Media Write-up Coverage :</small><B> {media_write_up_total()} </B>  ",
-  '8f3e1295a3a1d30b6ee5d8de6e0b8c0a' :"as Excel",
-  'c22cbfe0fa9b97323840213b74e5cd59' :"Total Coverage",
-  '3a08e2e340ab29fd9263af48193cbf8e' :"Languages",
-  'a7bea2907eb650d8016e559e7dfcbb0d' :"<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={release.id}&days={days}\">",
-  'cd2119f4c4a6bc283173f26747a3c775' :"<small> Media Write Up Advalue :</small><B> US${advalue_total(#media#)} </B>  ",
-  'dd5ba7fb87f4b9c3f95280b06144d396' :"Breakdown by country",
-  '26d1c91c990ee713e2a93e7faf8a21ae' :"<small> Total Advalue :</small><B> US${advalue_total(#all#)} </B>  ",
-  'af23cecc757c6fe3b8b69b0b0100e96b' :"<small> Total Reach :</small><B> {release.reach_total} </B>  ",
-  '790d59ef178acbc75d233bf4211763c6' :"Countries",
-  '3ba45f71401982ffb72268f81537fec3' :"<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={release.id}&days={days}\">",
-  '40f5c2ed25804bc5229fc0d30ffcf8a4' :"<table width=\"100%\">\n    <tr style=\"font-weight:bold\"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>\n    <tr flexy:foreach=\"release.clippings_dist_feed,c\">\n        <td style=\"width:50%\"><small>{c.media_name} ({c.language_tr})</small></td>\n        <td><a href=\"{c.remote_url}\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif\" title=\"View\"/></a></td>\n        <td><a href=\"https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=\" target=\"_new\"><img src=\"https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif\" title=\"Download\"/></a></td>\n        <td><small>{c.circulationFormated()}</small></td>\n    </tr>\n    \n </table>\n",
-  'c02f226ecf3f20e24e102b8f4809dc1b' :" | ",
-  '35a7b35ed73cc092ab53e483a03df0e3' :"<B>#{rr.id}</B> -  {rr.publish_dt(#d F Y h:ia#)} - {rr.inlanguages}",
-  'e28787c9b209f2a0dbfc21545ed4f3bc' :"<a href=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><img \n\t\t\twidth=\"200\"\n\t\t\tmailembed=\"no\"\n\t\t\tsrc=\"https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}\"></a>",
-  'aab26161b230a5f238cfd958ffced969' :"Download Report : ",
-  '0f872003bb73e5f7a8c8e6bb59da52bc' :"Found on these Search Engines",
-  '3b878279a04dc47d60932cb294d96259' :"Overview",
-  '1992faaf8cfa18ac4578e08c4d7f6bff' :" \nHeadline: <a href=\"http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}\"><B>{clip.headline()}</b></a><br/>\nMedia Title: {clip.media_name} <br/>\nPublished: {clip.published()} <br/>\nCountry: {clip.country(#en#)} <br/>\nLanguage: {clip.language(#en#)}<br/>\nAdValue: US${clip.advalue} <br/>\nCirculation: {clip.circulationFormated()}<br/>\nURL: <a target=\"_new\" href=\"{clip.remote_url}\">{clip.media_name}</a><br/>\n<br/>\n ",
-  'be9d418e92e41156493c6241374b659b' :"<small>Countries Targeted :</small> <b>{countries_total}</b>",
-  '7d24cc805dd8e5910bf9b882ae8a55f7' :"<small> Online News Posting Advalue :</small><B> US${advalue_total(#posting#)} </B>  ",
-  '6302799cad82c70e780a75f94adccb3c' :"<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={release.id}&days={days}\">",
-  'e65bd2101f7b815610283c6209da6e93' :"Online News Posting",
-  '433d3c16a783c0427da55ee22f803f06' :" The news clipping shall not be copied, redistributed, reproduced or passed on\n        directly or indirectly to any 3rd party in whole or in part for any purpose at anytime.\n        This news clipping is intended for client's internal usage only.\n",
-  '7c3a21b4cd6180476ac198f341e9666c' :"<img src=\"https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={release.id}&days={days}\">",
-  'd03b57561f46520029ba6df8f941c1cd' :"Top Media by Reach - Online News Posting",
-  'fadbb12cf481859fe32ee875dfd7e05e' :"<small> Beats Covered :</small> <b>{beats_total}</b>",
-  '5bfd1992799a6417b3b25c4373586da8' :"Breakdown by language"
- },
-
-  part     :  ["mail", "dashboardmail" ],
-  order    : '001-dashboardmail',
-  region   : 'center',
-  parent   : false,
-  name     : "unnamed module",
-  disabled : false, 
-  permname : '', 
-  _tree : function()
-  {
-   var _this = this;
-   var MODULE = this;
-   return {
-   cls : 'mailer-body',
-   xns : Roo.mailer,
-   '|xns' : 'Roo.mailer',
-   xtype : 'Body',
-   items  : [
-    {
-     xns : Roo.mailer,
-     '|xns' : 'Roo.mailer',
-     xtype : 'BodyContainer',
-     items  : [
-      {
-       blocktype : 'preheader',
-       html : _this._strings['76f3187439a504e6cd587924886c9b8c'] /* Media OutReach Press release distribution report */,
-       style : 'padding-top:10px; padding-right:20px; padding-bottom:10px; padding-left:20px;',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block'
-      },
-      {
-       blocktype : 'header',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['5b6ac829e60dcb06b6620d075ba6373b'] /* Media OutReach News Dashboard - {daysHtml():h} Day Report */,
-         level : 2,
-         style : 'padding:10px',
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         html : _this._strings['b4642b75f343d6999b762e00624c1273'] /* <img src="https://{t.HTTP_HOST}{t.rootURL}/Release/templates/images/widget-logo.png" class="roo-m-column-image" style="max-width: 260px;"> */,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        },
-        {
-         column : 'right',
-         html : _this._strings['d903de581cf0ccea6e227b6ec1806054'] /* {t.releaseLogo():h} */,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['dc683222b89e1db7ca4c12742851a762'] /* <B> Description : </B> {release.headline} */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        },
-        {
-         html : _this._strings['1bdbef3a4e139b098d750c51192e9ac2'] /* <B> Release Details: </B>   */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        },
-        {
-         'flexy:foreach' : 'releases,rr',
-         html : _this._strings['35a7b35ed73cc092ab53e483a03df0e3'] /* <B>#{rr.id}</B> -  {rr.publish_dt(#d F Y h:ia#)} - {rr.inlanguages} */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         style : 'text-align: center;',
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container',
-         items  : [
-          {
-           html : _this._strings['aab26161b230a5f238cfd958ffced969'] /* Download Report :  */,
-           tag : 'span',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           href : '{toWordUrl()}',
-           html : _this._strings['e918cef139697603dcac357ae876d489'] /* as MS Word */,
-           target : '_blank',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Link'
-          },
-          {
-           html : _this._strings['c02f226ecf3f20e24e102b8f4809dc1b'] /*  |  */,
-           tag : 'span',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           href : '{toExcelUrl()}',
-           html : _this._strings['8f3e1295a3a1d30b6ee5d8de6e0b8c0a'] /* as Excel */,
-           target : '_blank',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Link'
-          }
-         ]
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['3b878279a04dc47d60932cb294d96259'] /* Overview */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column',
-         items  : [
-          {
-           html : _this._strings['f0bac093bb884df2891d32385d053788'] /* Distribution */,
-           level : 5,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Header'
-          },
-          {
-           html : _this._strings['41fc5e35e878b4095deb838ca1cfa80a'] /* <small>Total Distribution Points:</small><B> {release.delivered_total} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['be9d418e92e41156493c6241374b659b'] /* <small>Countries Targeted :</small> <b>{countries_total}</b> */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['1f67d5fa612e2acf6fe7254c7bc701c2'] /* <small> Languages:</small> <b> {languages_total} </b> */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['fadbb12cf481859fe32ee875dfd7e05e'] /* <small> Beats Covered :</small> <b>{beats_total}</b> */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          }
-         ]
-        },
-        {
-         column : 'right',
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column',
-         items  : [
-          {
-           html : _this._strings['c22cbfe0fa9b97323840213b74e5cd59'] /* Total Coverage */,
-           level : 5,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Header'
-          },
-          {
-           html : _this._strings['886db5abb60274dd672e67bf0bebd6dd'] /* <small> Unique Web sites :</small><B> {release.media_total} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['cfbb11cc8aee42c22634027806a48d90'] /* <small> Total Clippings :</small><B> {release.clipping_total} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['af23cecc757c6fe3b8b69b0b0100e96b'] /* <small> Total Reach :</small><B> {release.reach_total} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           'flexy:if' : 'release_is_feed()',
-           html : _this._strings['cd2119f4c4a6bc283173f26747a3c775'] /* <small> Media Write Up Advalue :</small><B> US${advalue_total(#media#)} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           'flexy:if' : 'release_is_feed()',
-           html : _this._strings['7d24cc805dd8e5910bf9b882ae8a55f7'] /* <small> Online News Posting Advalue :</small><B> US${advalue_total(#posting#)} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           html : _this._strings['26d1c91c990ee713e2a93e7faf8a21ae'] /* <small> Total Advalue :</small><B> US${advalue_total(#all#)} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           'flexy:if' : 'release_is_feed()',
-           html : _this._strings['52e6ca91ffeff2db060a1403eb07e992'] /* <small> Total Media Write-up Coverage :</small><B> {media_write_up_total()} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          },
-          {
-           'flexy:if' : 'release_is_feed()',
-           html : _this._strings['5a455010b42d6056df9ac7c17682e52b'] /* <small> Total Online News Posting :</small><B> {news_online_posting_total()} </B>   */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          }
-         ]
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['553b4e75b4621742af0fc169b4d97f25'] /* Distribution Details */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column',
-         items  : [
-          {
-           html : _this._strings['790d59ef178acbc75d233bf4211763c6'] /* Countries */,
-           level : 5,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Header'
-          },
-          {
-           html : _this._strings['f8998f1fd787adb9dc08b3e91f4e2171'] /* 
-           <ul>           
-   <li flexy:if="distribution.international">International (Outside of Asia Pacific)</li>           
-   <li flexy:foreach="distribution.regions,c">Regional: {c}</li>           
-   <li flexy:foreach="distribution.countries,c">{c}</li>           
-</ul>
-           */ ,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          }
-         ]
-        },
-        {
-         column : 'right',
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column',
-         items  : [
-          {
-           html : _this._strings['3a08e2e340ab29fd9263af48193cbf8e'] /* Languages */,
-           level : 5,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Header'
-          },
-          {
-           html : _this._strings['b2e5425ba7928f8efddb04ce61d2614b'] /* <ul><li flexy:foreach="languages,l">{l}</li></ul> */,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          }
-         ]
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column',
-         items  : [
-          {
-           html : _this._strings['0f872003bb73e5f7a8c8e6bb59da52bc'] /* Found on these Search Engines */,
-           level : 5,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Header'
-          },
-          {
-           html : _this._strings['71db76a2a279a14e4952d729d705c157'] /* 
-           <ul>           
-    <li flexy:foreach="suppliers,s">{s.name}</li>           
-</ul>           
-
-           */ ,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           xtype : 'Container'
-          }
-         ]
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['fdfd14a238a79f88aab3a7280bb7ccb1'] /* Volume over time */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['7c3a21b4cd6180476ac198f341e9666c'] /* <img src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/VolumeOverTime/image?release_id={release.id}&days={days}"> */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['5bfd1992799a6417b3b25c4373586da8'] /* Breakdown by language */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['3ba45f71401982ffb72268f81537fec3'] /* <img src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByLanguage/image?release_id={release.id}&days={days}"> */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['dd5ba7fb87f4b9c3f95280b06144d396'] /* Breakdown by country */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['a7bea2907eb650d8016e559e7dfcbb0d'] /* <img src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByCountry/image?release_id={release.id}&days={days}"> */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       'flexy:if' : 'release_is_feed()',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['80ef4578af7f6fd57678b5b49abf0db3'] /* Share of Voice By Type of News Coverage */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['6302799cad82c70e780a75f94adccb3c'] /* <img src="https://{HTTP_HOST}{baseURL}/PressRelease/DistributionReport/BreakdownByNewsCoverage/image?release_id={release.id}&days={days}"> */,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       'flexy:if' : 'hasClippingsDist()',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['48cf7b62b0ae1dfeb5149e8e237d0c91'] /* Top Media by Reach - Media Write-up Coverage */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['c4969a309475aca5ebd7ebc92191d4f7'] /* 
-         <table width="100%">         
-    <tr style="font-weight:bold"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>         
-    <tr flexy:foreach="release.clippings_dist,c">         
-        <td style="width:50%"><small>{c.media_name} ({c.language_tr})</small></td>         
-        <td><a href="{c.remote_url}" target="_new"><img src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif" title="View"/></a></td>         
-        <td><a href="https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=" target="_new"><img src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif" title="Download"/></a></td>         
-        <td><small>{c.circulationFormated()}</small></td>         
-    </tr>         
-             
- </table>         
-
-         */ ,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       'flexy:if' : 'hasClippingsDistFeed()',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['d03b57561f46520029ba6df8f941c1cd'] /* Top Media by Reach - Online News Posting */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['40f5c2ed25804bc5229fc0d30ffcf8a4'] /* 
-         <table width="100%">         
-    <tr style="font-weight:bold"><td><small>Source</small></td><td><small>Source Link</small></td><td><small>Download</small></td><td><small>Circulation</small></td></tr>         
-    <tr flexy:foreach="release.clippings_dist_feed,c">         
-        <td style="width:50%"><small>{c.media_name} ({c.language_tr})</small></td>         
-        <td><a href="{c.remote_url}" target="_new"><img src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/view-document.gif" title="View"/></a></td>         
-        <td><a href="https://{HTTP_HOST}{baseURL}/Clipping/View/download/{c.id}.pdf?authkey=" target="_new"><img src="https://{t.HTTP_HOST}{t.rootURL}/Pman/templates/images/save.gif" title="Download"/></a></td>         
-        <td><small>{c.circulationFormated()}</small></td>         
-    </tr>         
-             
- </table>         
-
-         */ ,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       'flexy:if' : 'hasClippings()',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['ff562acaea20914448cb40525abd2623'] /* Media Write-up Coverage */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       'flexy:foreach' : 'release.clippings,clip',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         html : _this._strings['e28787c9b209f2a0dbfc21545ed4f3bc'] /* 
-         <a href="https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}"><img          
-                       width="200"         
-                       mailembed="no"         
-                       src="https://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}"></a>
-         */ ,
-         width : 200,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        },
-        {
-         column : 'right',
-         html : _this._strings['1992faaf8cfa18ac4578e08c4d7f6bff'] /* 
-                   
-Headline: <a href="http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}"><B>{clip.headline()}</b></a><br/>         
-Media Title: {clip.media_name} <br/>         
-Published: {clip.published()} <br/>         
-Country: {clip.country(#en#)} <br/>         
-Language: {clip.language(#en#)}<br/>         
-AdValue: US${clip.advalue} <br/>         
-Circulation: {clip.circulationFormated()}<br/>         
-URL: <a target="_new" href="{clip.remote_url}">{clip.media_name}</a><br/>         
-<br/>         
-         */ ,
-         width : 340,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       'flexy:if' : 'hasClippingsFeed()',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['e65bd2101f7b815610283c6209da6e93'] /* Online News Posting */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        }
-       ]
-      },
-      {
-       blocktype : 'row',
-       'flexy:foreach' : 'release.clippings_feed,clip',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         column : 'left',
-         html : _this._strings['e63c9f056ac343dbafa63d3209bda690'] /* 
-         <a href="http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}"><img          
-                       width="200"         
-                       mailembed="no"         
-                       src="http://{t.HTTP_HOST}{t.baseURL}/Clipping/View/thumb/{clip.id}.jpg?authkey={t.authKey}"></a>
-         */ ,
-         width : 200,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        },
-        {
-         column : 'right',
-         html : _this._strings['1992faaf8cfa18ac4578e08c4d7f6bff'] /* 
-                   
-Headline: <a href="http://{t.HTTP_HOST}/index.php/Clipping/View/download/{clip.id}.pdf?authkey={t.authKey}"><B>{clip.headline()}</b></a><br/>         
-Media Title: {clip.media_name} <br/>         
-Published: {clip.published()} <br/>         
-Country: {clip.country(#en#)} <br/>         
-Language: {clip.language(#en#)}<br/>         
-AdValue: US${clip.advalue} <br/>         
-Circulation: {clip.circulationFormated()}<br/>         
-URL: <a target="_new" href="{clip.remote_url}">{clip.media_name}</a><br/>         
-<br/>         
-         */ ,
-         width : 340,
-         xns : Roo.mailer,
-         '|xns' : 'Roo.mailer',
-         xtype : 'Column'
-        }
-       ]
-      },
-      {
-       blocktype : 'body',
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block',
-       items  : [
-        {
-         html : _this._strings['76c5232418eec0a94c56dd5ac98daa91'] /* Historical Comparison */,
-         level : 2,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Header'
-        },
-        {
-         html : _this._strings['bc95d77e53cbe571952328a7727a57a8'] /* 
-         <table width="100%" style="table-layout:fixed;font-size:14px;">         
-    <thead>         
-      <tr style="font-weight:bold"><td>Date</td><td>Headline</td><td>Clippings</td><td>Circulation</td><td>Advalue</td></tr>         
-  </thead>         
-    <tbody flexy:foreach="history,h">         
-    <tr>         
-        <td ><small> {h.publish_dt(#d/M/Y#)} </small></td>         
-        <td colspan="4" style="word-wrap: break-word;"><small> #{h.id} {h.headline}</small> </td>         
-    </tr>         
-    <tr style="font-weight:bold">         
-        <td>&nbsp;</td>         
-        <td>&nbsp;</td>         
-        <td><small>{h.clipping_total}</small></td>         
-        <td><small>{h.reach_total}</small></td>         
-        <td><small>{h.advalue_total}</small></td>         
-    </tr>         
-    </tbody>         
- </table>         
-  
-         */ ,
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         xtype : 'Container'
-        }
-       ]
-      },
-      {
-       blocktype : 'footer',
-       html : _this._strings['433d3c16a783c0427da55ee22f803f06'] /* 
-        The news clipping shall not be copied, redistributed, reproduced or passed on       
-        directly or indirectly to any 3rd party in whole or in part for any purpose at anytime.       
-        This news clipping is intended for client's internal usage only.       
-
-       */ ,
-       xns : Roo.mailer,
-       '|xns' : 'Roo.mailer',
-       xtype : 'Block'
-      }
-     ]
-    }
-   ]
-  };  }
-});
diff --git a/PressRelease/templates/mail/dashboardmaster.body.html b/PressRelease/templates/mail/dashboardmaster.body.html
deleted file mode 100644 (file)
index 9a7ccfb..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class=" roo-strict"><!-- this is the code embeded in the webkit browser --><head>
-    <title>Dashboard report.</title>
-    <!-- this lot needs to be available on the target site.. if used on remote.. -->
-    
-    <link rel="stylesheet" type="text/css" href="http://{HTTP_HOST}{rootURL}/roojs1/css-mailer/mailer.css"> 
-        
-    <link rel="stylesheet" href="http://{HTTP_HOST}{rootURL}/Pman/Clipping/templates/mail/mailer.css" type="text/css">  
-
- </head>
-       <!--background:#F8ECB2;-->   
-    <body class="   roo-safari roo-linux" id="roo-gen2" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  
-       
-        
-    {outputBody():h} 
-    </body></html>
\ No newline at end of file
diff --git a/PressRelease/templates/mail/dashboardmaster.html b/PressRelease/templates/mail/dashboardmaster.html
deleted file mode 100644 (file)
index f011eeb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class=" roo-strict"><!-- this is the code embeded in the webkit browser --><head>
-        <title>Dashboard report.</title>
-        <!-- this lot needs to be available on the target site.. if used on remote.. -->
-        
-        <link rel="stylesheet" type="text/css" href="https://{HTTP_HOST}{rootURL}/roojs1/css-mailer/mailer.css"> 
-        
-        <link rel="stylesheet" href="https://{HTTP_HOST}{rootURL}/Pman/Clipping/templates/mail/mailer.css" type="text/css">  
-
- </head>
-       <!--background:#F8ECB2;-->   
-    <body class="   roo-safari roo-linux" id="roo-gen2" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">  
-       <flexy:toJSON 
-            baseURL="baseURL" 
-            rootURL="rootURL" 
-        />
-        
-    {outputBody():h}
-    </body></html>
\ No newline at end of file
diff --git a/PressRelease/templates/mail/dashboardmaster.txt b/PressRelease/templates/mail/dashboardmaster.txt
deleted file mode 100644 (file)
index 527f92a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-From: {t.sender:h}
-To: {t.email:h}
-Subject: {subject:h}
-Content-Type: text/plain; charset="utf-8"
-Message-Id: <{t.msgid}@media-outreach.com>
-Mime-Version: 1.0
-
\ No newline at end of file
diff --git a/PressRelease/templates/mail/email_delivery.body.html b/PressRelease/templates/mail/email_delivery.body.html
deleted file mode 100644 (file)
index e5f01ec..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-
-<H1>Yesterday Delivery failed for {badtotal} Bad email address, and {blacktotal} for spam blacklists</H1>
-
-<H2>Possible blacklists</H2>
-
-<table>
-    <tr>
-        <td>Total Failed</td>
-        <td>Code</td>
-    </tr>
-    <tr flexy:foreach="blacklists,desc,failed">
-        <td>{failed}</td>
-        <td>{formatDesc(desc):h}<br/>{emails(desc):h}</td>
-    </tr>
- </table>
-
-<H2>Failed Delivery - probably bad email address</H2>
-
-<table>
-    <tr>
-        <td>email</td>
-        <td>reason</td>
-    </tr>
-    <tr flexy:foreach="bademails,email,failed">
-        <td>{email}</td>
-        <td>{formatDesc(failed):h}<br/></td>
-    </tr>
- </table>
-
-
-
diff --git a/PressRelease/templates/mail/email_delivery.txt b/PressRelease/templates/mail/email_delivery.txt
deleted file mode 100644 (file)
index e0b70b3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-From: "Media Outreach" <support@media-outreach.com>
-To: {t.email:h}
-Subject: [RELEASE] - Yesterday Delivery - {badtotal} Bad email address, and {blacktotal} for blacklists
-Content-Type: text/plain; charset="utf-8"
-Mime-Version: 1.0
-
-Sorry - HTML only
\ No newline at end of file
diff --git a/PressRelease/templates/mail/exportmaster.html b/PressRelease/templates/mail/exportmaster.html
deleted file mode 100644 (file)
index e307176..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-<!DOCTYPE html 
-      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" 
-      xmlns:html="http://www.w3.org/1999/xhtml" 
-      xmlns:svg="http://www.w3.org/2000/svg"
-      xmlns:xlink="http://www.w3.org/1999/xlink"> 
-    <head>
-        <title>{appName}</title>
-        <meta name="google" value="notranslate">
-        <link rel="shortcut icon" href="./Pman.ico" type="image/vnd.microsoft.icon"/>
-        
-        
-        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/roojs.css" />  
-        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/xtheme-slate.css" />  
-     </head>
-    
-    <script type="text/javascript">
-        Pman = {};
-    </script>
-    
-    <script type="text/javascript" src="{rootURL}/roojs1/roojs-all.js?"></script>
-    <script type="text/javascript" src="{rootURL}/Pman/Core/Pman.Request.js"></script>
-    <script type="text/javascript" src="{rootURL}/Pman/Core/Pman.Download.js"></script>
-                        
-    <flexy:toJSON 
-        baseURL="baseURL" 
-        rootURL="rootURL" 
-        release_id="release_id"
-        days="days"
-        direct_news_feed="direct_news_feed"
-        docType="docType"
-    ></flexy:toJSON>
-
-    <script type="text/javascript">
-        
-        Roo.onReady(function() {
-            
-            Roo.MessageBox.progress("Please wait...", "Sending");
-            
-            var task = false;
-            var p = {
-                release_id : release_id,
-                days : days,
-                direct_news_feed : direct_news_feed
-            };
-            
-            var doWordProcess = function()
-            {
-                if (task) {
-                    p.task = task;
-                }
-                
-                new Pman.Request( {
-                    url : baseURL+'/PressRelease/DistributionReport/ExportWord',
-                    method : 'POST',
-                    timeout: 600000,
-                    params : p,
-                    success : function(res) {
-                        var data = res.data;
-                        
-                        if (data.task) {
-                            task = data.task;
-                            Roo.MessageBox.updateProgress(data.done/data.total, data.desc);
-                            doWordProcess();
-                            return;
-                        }
-                            
-                        if (typeof(data.file) == 'undefined') {
-                            Roo.MessageBox.hide();
-                            Roo.MessageBox.alert("Error", "something went wrong!");
-                            Roo.log(data);
-                            return;
-                        }
-                        
-                        delete p.task;
-                        p.file = data.file;
-                        
-                        new Pman.Download({
-                            url : baseURL+'/PressRelease/DistributionReport/ExportWord',
-                            method : 'POST',
-                            timeout: 600000,
-                            params : p
-                        });
-
-                        Roo.MessageBox.hide();
-                        var ieMsg = Roo.isIE ? 
-                            "<BR/>You May have to allow downloads as you are using Internet Explorer" +
-                            "<BR/>We Highly recommend you use a better browser, like Chrome or Firefox" : '';
-                        Roo.MessageBox.alert("Downloading", "Report is downloading now" + ieMsg);
-                        
-                    }
-               });
-            }
-            
-            var doXLSProcess = function()
-            {
-                if (task) {
-                    p.task = task;
-                }
-                
-                new Pman.Request( {
-                    url : baseURL+'/PressRelease/DistributionReport/ExportXLS',
-                    method : 'POST',
-                    timeout: 600000,
-                    params : p,
-                    success : function(res) {
-                        var data = res.data;
-                        
-                        if (data.task) {
-                            task = data.task;
-                            Roo.MessageBox.updateProgress(data.done/data.total, data.desc);
-                            doXLSProcess();
-                            return;
-                        }
-                            
-                        if (typeof(data.file) == 'undefined') {
-                            Roo.MessageBox.hide();
-                            Roo.MessageBox.alert("Error", "something went wrong!");
-                            Roo.log(data);
-                            return;
-                        }
-                        
-                        delete p.task;
-                        p.file = data.file;
-                        
-                        new Pman.Download({
-                            url : baseURL+'/PressRelease/DistributionReport/ExportXLS',
-                            method : 'POST',
-                            timeout: 600000,
-                            params : p
-                        });
-
-                        Roo.MessageBox.hide();
-                        var ieMsg = Roo.isIE ? 
-                            "<BR/>You May have to allow downloads as you are using Internet Explorer" +
-                            "<BR/>We Highly recommend you use a better browser, like Chrome or Firefox" : '';
-                        Roo.MessageBox.alert("Downloading", "Report is downloading now" + ieMsg);
-                        
-                    }
-               });
-            }
-            
-            if(docType == 'Word'){
-                doWordProcess();
-                return;
-            }
-            
-            doXLSProcess();
-            
-            
-        },true);
-     </script>
-    
-    <body class="ytheme-gray">  
-        
-        
-    </body>
-</html>
-        
\ No newline at end of file
diff --git a/PressRelease/templates/mail/test_providers.txt b/PressRelease/templates/mail/test_providers.txt
deleted file mode 100644 (file)
index 2c804bb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-From: office@roojs.com
-To: {t.email}
-Subject: Press Release Test Search Engine Providers Results
-Content-Type: text/plain; charset="utf-8"
-Message-Id: <{t.msgid}@media-outreach.com>
-Mime-Version: 1.0
-
-
-The below search engine has failed in test search result:
-
-Engines: {t.failed}
\ No newline at end of file
diff --git a/PressRelease/templates/master.html b/PressRelease/templates/master.html
deleted file mode 100644 (file)
index fddcf24..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-<!DOCTYPE html 
-      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
-<html xmlns="http://www.w3.org/1999/xhtml" 
-      xmlns:html="http://www.w3.org/1999/xhtml" 
-      xmlns:svg="http://www.w3.org/2000/svg"
-      xmlns:xlink="http://www.w3.org/1999/xlink"> 
-    <head>
-        <title>{appName}</title>
-        <link rel="shortcut icon" href="./Pman.ico" type="image/vnd.microsoft.icon"/>
-        
-        
-        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/roojs.css" />
-        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/xtheme-slate.css" />
-        
-        {outputCSSIncludes()}
-        
-                     
-    <style>
-     #loading-logo-bottom,
-     #loading-logo-center,
-     #loading-logo-tile,
-     #loading-logo-tile-top
-     {
-        width:100%;
-        height:100%;
-        position:absolute;
-       
-        left:0;
-        top:0;
-        background-position:50% 50%;
-    }
-    
-    /* background-tile.jpg */
-    #loading-logo-tile {
-         z-index:1000;
-    }
-    
-    /* background.jpg */
-    #loading-logo-center
-    {
-        background-position:50% 0;
-        background-repeat:no-repeat; 
-        z-index:1001;
-    }
-    /* background-tile-top.jpg */
-    #loading-logo-tile-top
-    {
-        background-position:50% 0;
-        z-index:1002;
-        background-repeat:repeat-x; 
-        
-    }
-    /* background_bottom_logo.gif */
-    #loading-logo-bottom
-    {
-        background-position:50% 100%;
-        background-repeat:no-repeat; 
-        z-index:1003;
-    }
-    </style>
-     </head>
-    <body class="ytheme-gray">  
-         <!--background:#F8ECB2;-->   
-        <div flexy:if="hasBg(#background-tile.jpg#)" 
-            id="loading-logo-tile"
-            style="background-image:url({rootURL}/Pman/{appNameShort}/templates/images/background-tile.jpg);"></div>
-        
-        <div flexy:if="hasBg(#background-tile-top.jpg#)"  
-            id="loading-logo-tile-top"
-            style="background-image:url({rootURL}/Pman/{appNameShort}/templates/images/background-tile-top.jpg);"></div>
-        
-        <div flexy:if="hasBg(#background.jpg#)" 
-            id="loading-logo-center"
-            style="background-image:url({rootURL}/Pman/{appNameShort}/templates/images/background.jpg);"></div>
-        
-        <div flexy:if="hasBg(#background_bottom_logo.gif#)" 
-            id="loading-logo-bottom"
-            style="background-image:url({rootURL}/Pman/{appNameShort}/templates/images/background_bottom_logo.gif);"></div>
-        
-        
-        <div id="loading-mask"
-            style="width:1;height:1;position:absolute;z-index:1000;left:0;top:0;">&#160;</div>
-        <div id="loading">
-            <div class="loading-indicator" id="loading-text">&#160;Loading...(This may take a few seconds)</div>
-        </div>
-{if:bootLoader.Pman[roo_debug]}                   
-        <script type="text/javascript" src="{rootURL}/roojs1/roojs-debug.js"></script>  
-         
-{else:}                  
-        <script type="text/javascript" src="{rootURL}/roojs1/roojs-all.js"></script>
-                 
-{end:}                  
-        <flexy:toJSON 
-            baseURL="baseURL" 
-            rootURL="rootURL" 
-            isDev="isDev"
-            serverName="serverName" 
-            appLang="lang"
-            appName="appName"
-            appNameShort="appNameShort"
-            appOwnerCompanyId="company.id"
-           
-            AppLinkError="linkFail"
-            AppTrackOnLoad="onloadTrack"
-            
-            showNewPass="showNewPass"
-            allowSignup="allowSignup"
-            
-            logoPrefix="logoPrefix"
-            
-            AppModules="appModules"
-            AppVersion="appVersion"
-            appDisabled="appDisabled"
-        />
-            
-        <script type="text/javascript">
-            Ext=Roo; // bc
-            Roo.BLANK_IMAGE_URL =  rootURL + "/roojs1/images/gray/s.gif";
-            Roo.rootURL = rootURL +'/roojs1/';
-        </script>
-        
-        {outputJavascriptIncludes()}
-             
-        <!-- used by App.php in Builder - to enable loading of code/applicaiton on the fly -->
-        {foreach:builderJs,js}
-            <script type="text/javascript" src="{baseURL}/Builder/Code/{js}.js"></script>    
-        {end:} 
-           
-        <!-- finally language.. -->   
-        <script type="text/javascript" src="{baseURL}/Core/I18n.js"></script>
-               
-               
-        <script type="text/javascript">
-            Pman.debug = true;
-        </script>
-               
-               
-        <div id="title" class="x-layout-inactive-content logoblock">
-            <img id="headerInformation-company-logo" 
-                src="{rootURL}/Pman/{appNameShort}/templates/images/logo_small.gif" height="25"/>
-            <div id="headerInformation">Some other details</div>
-            <img id="headerInformation-applogo" 
-                src="{rootURL}/Pman/{appNameShort}/templates/images/logo_small.gif" height="25"/>
-            
-        </div>
-         
-          
-           
-        <div id="mainlist" class="x-layout-inactive-content">
-            <p>main list</p>
-                
-        </div>
-          
-    </body>
-</html>
-        
\ No newline at end of file
diff --git a/PressRelease/templates/mediaexport_template.abw b/PressRelease/templates/mediaexport_template.abw
deleted file mode 100644 (file)
index 61ee175..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd">
-<abiword template="false" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:math="http://www.w3.org/1998/Math/MathML" xid-max="752" xmlns:dc="http://purl.org/dc/elements/1.1/" fileformat="1.1" xmlns:svg="http://www.w3.org/2000/svg" xmlns:awml="http://www.abisource.com/awml.dtd" xmlns="http://www.abisource.com/awml.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.8.6" xml:space="preserve" props="dom-dir:ltr; document-footnote-restart-section:0; document-endnote-type:numeric; document-endnote-place-enddoc:1; document-endnote-initial:1; lang:en-HK; document-endnote-restart-section:0; document-footnote-restart-page:0; document-footnote-type:numeric; document-footnote-initial:1; document-endnote-place-endsection:0">
-<!-- ======================================================================== -->
-<!-- This file is an AbiWord document.                                        -->
-<!-- AbiWord is a free, Open Source word processor.                           -->
-<!-- More information about AbiWord is available at http://www.abisource.com/ -->
-<!-- You should not edit this file by hand.                                   -->
-<!-- ======================================================================== -->
-
-<metadata>
-<m key="dc.date">2011-09-09T02:40:00Z</m>
-<m key="abiword.date_last_changed">2011-11-17T06:56:00Z</m>
-<m key="dc.creator">Cision</m>
-<m key="abiword.generator">AbiWord</m>
-<m key="dc.publisher">Cision AB</m>
-<m key="dc.format">application/x-abiword</m>
-<m key="dc.title">Media List</m>
-</metadata>
-<history version="1" edit-time="26" last-saved="1337065189" uid="8092b384-9e5b-11e1-8f79-ea7a06706b67">
-<version id="1" started="1337065189" uid="9010bb94-9e5b-11e1-8f79-ea7a06706b67" auto="0" top-xid="752"/>
-</history>
-<styles>
-<s type="P" name="Normal" followedby="Normal" props="text-decoration:none; text-indent:0in; margin-top:0pt; margin-left:0pt; font-stretch:normal; line-height:1.0; text-align:left; bgcolor:transparent; lang:en-US; dom-dir:ltr; margin-bottom:0pt; font-weight:normal; font-variant:normal; color:000000; text-position:normal; font-size:12pt; margin-right:0pt; font-style:normal; widows:2; font-family:Times New Roman"/>
-<s type="P" name="Header" basedon="Normal" followedby="Header" props="font-family:Times New Roman; font-size:12pt; tabstops:3.0000in/C,6.0000in/C; dom-dir:ltr; lang:en-US; line-height:1.0; text-align:left"/>
-<s type="P" name="Footer" basedon="Normal" followedby="Footer" props="font-family:Times New Roman; font-size:12pt; tabstops:3.0000in/C,6.0000in/C; dom-dir:ltr; lang:en-US; line-height:1.0; text-align:left"/>
-<s type="P" name="Table Normal" followedby="Table Normal" props="font-family:Times New Roman; font-size:12pt; dom-dir:ltr; lang:en-US; orphans:0; text-align:left; widows:0"/>
-<s type="P" name="Table Grid" basedon="Table Normal" followedby="Table Grid" props="font-family:Times New Roman; font-size:12pt; dom-dir:ltr; lang:en-US; orphans:0; text-align:left; widows:0"/>
-</styles>
-<lists>
-<l id="1000" parentid="0" type="5" start-value="1" list-delim="%L" list-decimal="."/>
-</lists>
-<pagesize pagetype="Letter" orientation="portrait" width="8.500000" height="11.000000" units="in" page-scale="1.000000"/>
-
-</abiword>
diff --git a/PressRelease/templates/press.html b/PressRelease/templates/press.html
deleted file mode 100644 (file)
index 3faf54d..0000000
+++ /dev/null
@@ -1,249 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
-<head>
-   <base href="http://203.169.227.106/index.php/press-release-distribution/introduction" />
-  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-  <meta name="robots" content="index, follow" />
-  <meta name="keywords" content="Media outreach, press release distribution, launch, product, executive announcement, financial earnings, business announcement, event press release, public relations objectives, communications channels, Asia Pacific representative, post-release report, press release distribution, geography, industry, target audience, media circuit, North American, European, Latin American, Middle Eastern, African, Asia Pacific" />
-  <meta name="title" content="Flexible, tailor-made and comprehensive press release distribution services" />
-  <meta name="author" content="Administrator" />
-  <meta name="description" content="We offer you flexible, tailor-made and comprehensive press release distribution services" />
-
-  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
-  <title>Flexible, tailor-made and comprehensive press release distribution services</title>
-  <link href="/templates/media/favicon.ico" rel="shortcut icon" type="image/x-icon" />
-  <script type="text/javascript" src="/media/system/js/mootools.js"></script>
-  <script type="text/javascript" src="/media/system/js/caption.js"></script>
-  
- <link rel="stylesheet" href="/templates/media/css/template.css" type="text/css" /> 
-  <script type="text/javascript">
-  window.onDomReady(function(){ 
-   //background();
-
-   var li = $$('td#content_left ul.menu li');
-   var sub_li = $$('td#content_left ul.menu li ul li');
-
-   if (li.length > 0) {
-    for(var x = (li.length - 1); x > 0; x--) {
-     var is_child = 0;
-     for(var y=0; y < sub_li.length; y++) {
-       if (li[x].className == sub_li[y].className) {
-         is_child = 1;
-        break;
-       }
-     }
-
-     if (!is_child) {
-      li = li[x];
-      li.style.borderBottom = '0px';
-      break;
-     }
-    }
-   }
-  });
-
-  function background() {
-   var left = $('body').offsetLeft;
-   var body = $$('body');
-
-   if (left < 100) {
-     var width = documentElement.clientWidth;
-     left = (width - 881) / 2 + 1;
-   }
-   
-   body = body[0];
-   body.style.backgroundPosition = (left - 141) + "px 0px";
-  }
- </script>
-
-</head>
-<body>
- <div id="body">
-  <div id="header">
-   <div id="header_left">
-          <div id="logo">              
-       <a href="/">         
-         <p><img src="/images/stories/logo.jpg" border="0" /></p>                  
-       </a>
-     </div>
-       </div>
-
-   <div id="header_right">
-    <div id="top">
-          <div id="contact">
-            <span class="contact">Contact Us:</span>
-            <ul class="menu"><li class="item8"><a href="/index.php/en/enquiry-form"><span>Enquiry Form</span></a></li><li class="item9"><a href="/index.php/en/journalist-form"><span>Journalist Form</span></a></li></ul>
-     </div>
-          <div id="lang">
-
-      <div id="jflanguageselection"><ul class="jflanguageselection"><li id="active_language"><a href="http://203.169.227.106/index.php/en/press-release-distribution/introduction" ><span lang="en" xml:lang="en">Eng</span></a></li> | <li><a href="http://203.169.227.106/index.php/zh/press-release-distribution/introduction" ><span lang="zh" xml:lang="zh">??</span></a></li></ul></div><!--Joom!fish V2.0.4 (Lightning)-->
-<!-- &copy; 2003-2009 Think Network, released under the GPL. -->
-<!-- More information: at http://www.joomfish.net -->
-
-     </div>
-     <div class="clear"></div>
-    </div>
-    <div id="search">
-
-     <form action="index.php" method="post">
-  <table cellpadding="0" cellspacing="0" border="0">
-  <tr><td>
-       <div class="search_input">
-               <input name="searchword" id="mod_search_searchword" maxlength="20" alt="Search" class="search_input" type="text" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div>
-       </td><td>
-        <input type="submit" value="" class="search_button" onclick="this.form.searchword.focus();"/>   
-  </td></tr>
-  </table>
-
-       <input type="hidden" name="task"   value="search" />
-       <input type="hidden" name="option" value="com_search" />
-       <input type="hidden" name="Itemid" value="27" />
-</form>
-    </div>
-   </div>
-   <div class="clear"></div>
-  </div>
-  <div id="nav" class="clr">
-
-   <ul class="menu"><li class="parent item10"><a href="/index.php/en/about-us/about-the-founder"><span>About Us</span></a><ul><li class="item13"><a href="/index.php/en/about-us/about-the-founder"><span>About the Founder</span></a></li><li class="item14"><a href="/index.php/en/about-us/business-philosophy"><span>Business Philosophy</span></a></li><li class="item15"><a href="/index.php/en/about-us/csr"><span>Corporate Social Responsibility</span></a></li><li class="parent item16"><a href="/index.php/en/about-us/press-releases"><span>Press Releases</span></a></li></ul></li><li class="parent item11"><a href="/index.php/en/media-monitoring/introduction"><span>Media Monitoring</span></a><ul><li class="item17"><a href="/index.php/en/media-monitoring/introduction"><span>Introduction</span></a></li><li class="item22"><a href="/index.php/en/media-monitoring/print-monitoring"><span>Print Monitoring</span></a></li><li class="item23"><a href="/index.php/en/media-monitoring/broadcast-monitoring"><span>Broadcast Monitoring</span></a></li><li class="item24"><a href="/index.php/en/media-monitoring/online-monitoring"><span>Online Monitoring</span></a></li><li class="parent item25"><a href="/index.php/en/media-monitoring/by-geography"><span>By Geography</span></a></li><li class="item26"><a href="/index.php/en/media-monitoring/by-industry"><span>By Industry</span></a></li></ul></li><li class="parent active item12"><a href="/index.php/en/press-release-distribution/introduction"><span>Press Release Distribution</span></a><ul><li id="current" class="active item27"><a href="/index.php/en/press-release-distribution/introduction"><span>Introduction</span></a></li><li class="item28"><a href="/index.php/en/press-release-distribution/by-geography"><span>By Geography</span></a></li><li class="item29"><a href="/index.php/en/press-release-distribution/by-industry"><span>By Industry</span></a></li><li class="item30"><a href="/index.php/en/press-release-distribution/seo-multimedia-and-social-tags"><span>SEO, Multimedia and Social Tags</span></a></li><li class="item31"><a href="/index.php/en/press-release-distribution/investor-relations-and-regulatory-filings"><span>Investor Relations and Regulatory Filings</span></a></li></ul></li></ul>
-
-  </div>
-  <div class="clear"></div>
-  <div id="content">
-  <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
-   <td id="content_left">
-    <img src="/images/stories/press.jpg" /><br />
-        <div id="left_menu">
-     <ul class="menu"><li class="active item38"><a href="/index.php/en/press-release-distribution/introduction"><span>Introduction</span></a></li><li class="item39"><a href="/index.php/en/press-release-distribution/by-geography"><span>By Geography</span></a></li><li class="item40"><a href="/index.php/en/press-release-distribution/by-industry"><span>By Industry</span></a></li><li class="item41"><a href="/index.php/en/press-release-distribution/seo-multimedia-and-social-tags"><span>SEO, Multimedia and Social Tags</span></a></li><li class="item42"><a href="/index.php/en/press-release-distribution/investor-relations-and-regulatory-filings"><span>Investor Relations and Regulatory Filings</span></a></li></ul>
-
-    </div>
-        <div id="left_text">
-     <p><strong>Global media monitoring services and user-friendly clippings management portal</strong></p>
-<p> </p>
-<p>We also provide tailored media monitoring services with all the multimedia management tools you need, so you can stay on top of the news, views and issues that's important to you.<em> Find out more:</em></p>
-<br /> 
-<table border="0">
-<tbody>
-<tr>
-
-<td><a href="/index.php/en/media-monitoring/introduction"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt; Introduction</span></span></a></td>
-<td><a href="/index.php/en/media-monitoring/print-monitoring"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt; Print monitoring</span></span></a></td>
-</tr>
-<tr>
-<td><a href="/index.php/en/media-monitoring/by-geography"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt; By Geography</span></span></a></td>
-<td><a href="/index.php/en/media-monitoring/online-monitoring"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt;  Online monitoring</span></span></a></td>
-</tr>
-<tr>
-<td><a href="/index.php/en/media-monitoring/by-industry"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt; By Industry</span></span></a></td>
-
-<td style="width: 200px;"><a href="/index.php/en/media-monitoring/broadcast-monitoring"><span style="color: #5a0060;"><span style="color: #5a0060;">&gt; Broadcast monitoring</span></span></a></td>
-</tr>
-</tbody>
-</table>
-    </div>
-   </td>
-   <td id="content_right" valign="top">
-    <div id="content_main">
-     <div id="breadcrumb">
-      <span class="breadcrumbs pathway">
-
-<a href="http://203.169.227.106/" class="pathway">Home</a> <img src="/templates/media/images/arrow.png" alt=""  /> <a href="/index.php/en/press-release-distribution/introduction" class="pathway">Press Release Distribution</a> <img src="/templates/media/images/arrow.png" alt=""  /> Introduction</span>
-
-     </div>
-     <div id="content_com">
-      <table class="contentpaneopen" width="100%">
-<tr>
-               <td class="contentheading" width="100%">
-
-                                       <h3>Flexible, tailor-made and comprehensive press release distribution services</h3>
-                       </td>
-       </tr>
-</table>
-
-<table class="contentpaneopen">
-
-
-
-<tr>
-<td valign="top">
-<p><img style="margin-right: 20px; margin-bottom: 20px; float: left;" src="/images/stories/pressreleasedistribution/pr_distribution_introduction.jpg" alt="press release distribution" />Make an impact with every general, launch, product, executive announcement, financial earnings, business announcement or event press release.</p>
-
-<p>At Media OutReach, we make every effort to consult with you so we understand your business needs and can customise our press release distribution solutions to maximise the right media connections, according to your communications and public relations objectives.</p>
-<p>Raise your visibility across any number of communications channels: print and broadcast newsrooms; newswires; trade and news portals; news syndicates; freelance or full time reporters and editors; bloggers, social media networks; web sites and trade publications; because of such targeted efforts.</p>
-<p>We are the official Asia Pacific representative for <a href="http://www.marketwire.com/">Marketwire</a>, the third largest newswire company and the fastest growing regulatory newswire for the past seven years in North America.</p>
-<p><strong>Meet your objectives</strong>&nbsp; Whether you represent an agency, international corporation or SME business, be assured that your public relations objectives will be attended to with the highest level of client service. For all distributions via our service, we will provide a post-release report from online sources to enable you to review the results of each of your press release distribution efforts. For any distribution in the United States of America, we provide an interactive post-release report within the first hour of distribution and another within 24 hours of distribution.?<br /><br /><strong>Maximise the right connections</strong>&nbsp; We help you distribute your press releases in the right language to the right journalists in the right countries at the right time. <br /><br />For instance, we make it a point to target your releases by geography or by industry, based on where your target audience is, not where publishers may be located. In other words, our press distribution lists are tailored to target the regional news bureaus where your news release will be relevant, and not simply the regional media's headquarters. We are also provide complimentary press release translation services for countries where English is not the first language.<br /><br /><strong>Master the Asia Pacific</strong>&nbsp; Enjoy practical press release distribution solutions that are most relevant to your business or your client and their budget<br /><br /><strong>Make your mark in international markets</strong>&nbsp; Gain access to extensive lists of trade publications and online news sites by region, country or media circuit. We cover North American, European, Latin American, Middle Eastern and African markets, in addition to the Asia Pacific.<br /><br /><strong>Manage your quality assurance</strong>&nbsp; Rely on Marketwire's experienced editors who help check, format and tag your releases to ensure it is it error free when it is sent to your target media.<br /><br /><strong>Made for search optimisation</strong>&nbsp; We provide&nbsp; search engine optimisation (SEO) services, which aim to improve the search engine ranking of your corporate news and drive traffic to your corporate websites.</p>
-
-<p><strong><a href="/index.php/en/enquiry-form">Contact us</a></strong> to request for a proposal today.</p>
-<p> </p>
-
-</td>
-</tr>
-
-</table>
-<span class="article_separator">&nbsp;</span>
-                  <div id="print_share">
-        <span class="print icon">
-     <a href="/index.php/en/press-release-distribution/introduction?tmpl=component&amp;print=1&amp;page=" title="Print" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" rel="nofollow">&nbsp;Print</a>     </span>
-
-      
-        <span class="email icon">
-      <a href="/index.php/en/component/mailto/?tmpl=component&amp;link=aHR0cDovLzIwMy4xNjkuMjI3LjEwNi9pbmRleC5waHAvZW4vcHJlc3MtcmVsZWFzZS1kaXN0cmlidXRpb24vaW50cm9kdWN0aW9u" title="E-mail a friend" onclick="window.open(this.href,'win2','width=400,height=350,menubar=yes,resizable=yes'); return false;">&nbsp;E-mail a friend</a>     </span>
-   
-                               <!--
-               &nbsp;Share             -->
-     <span class="share icon"><a class="addthis_button_digg share_icon"></a><a class="addthis_button_hotmail share_icon"></a> <a class="addthis_button">...</a></span>
-     <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
-  </div>
-
-  <div class="clear"></div>
-
-     </div>
-        <div id="user_wrapper">
-     <table cellpadding="0" cellspacing="0" border="0" width="100%">
-      <tr valign="top">
-            <td class="us_width-33               separator
-             ">
-       <div id="user1" class="user_module">
-                       <div class="moduletable_client">
-
-                                       <p>BT, Ceva Logistics, Corel Corporation, NEC Asia, Frost &amp; Sullivan, Raffles Hotels &amp; Resorts, Ruder Finn Asia, Travelport</p>         </div>
-       
-       </div>
-      </td>
-        
-           <td class="us_width-33             separator
-            ">
-       <div id="user2"i class="user_module">
-                       <div class="moduletable_journal">
-
-                                       <p>Receive latest news<br /><a href="/A">Register here</a></p>          </div>
-       
-       </div>
-      </td>
-                <td class="us_width-33">
-       <div id="user3" class="user_module">
-                       <div class="moduletable_career">
-                                       <p>Be part of MediaOutreach<br /><a href="mailto:info@media-outreach.com">Submit your resume</a></p>            </div>
-
-       
-       </div>
-      </td>
-            </tr>
-     </table>
-    </div>
-        </div>
-   </td>
-   </tr></table>
-   <div class="clear"></div>
-
-  </div>
-  <div id="footer">
-   <ul class="menu"><li class="item5"><a href="/index.php/en/legal-terms"><span>Legal Terms</span></a></li><li class="item6"><a href="/index.php/en/site-map"><span>Site Map</span></a></li><li class="item7"><a href="/index.php/en/enquiry-form"><span>Contact Us</span></a></li></ul><p>Copyright � 2010 MediaOutreach. All Rights Reserved.</p>
-   
-  </div>
- </div>
- </body>
-</html>
-
diff --git a/PressRelease/templates/view.html b/PressRelease/templates/view.html
deleted file mode 120000 (symlink)
index 62247e3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.ja.html b/PressRelease/templates/view.ja.html
deleted file mode 120000 (symlink)
index 5728740..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.ja.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.ko.html b/PressRelease/templates/view.ko.html
deleted file mode 120000 (symlink)
index b700e11..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.ko.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.plain.html b/PressRelease/templates/view.plain.html
deleted file mode 120000 (symlink)
index dbf09d3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.plain.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.plain.style.html b/PressRelease/templates/view.plain.style.html
deleted file mode 120000 (symlink)
index c4adbef..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.plain.style.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.zh_CN.html b/PressRelease/templates/view.zh_CN.html
deleted file mode 120000 (symlink)
index 9c1f58b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.zh_CN.html
\ No newline at end of file
diff --git a/PressRelease/templates/view.zh_HK.html b/PressRelease/templates/view.zh_HK.html
deleted file mode 120000 (symlink)
index e25dc45..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../Release/templates/view.zh_HK.html
\ No newline at end of file
diff --git a/PressRelease/templates/viewMaster.html b/PressRelease/templates/viewMaster.html
deleted file mode 100644 (file)
index b676707..0000000
+++ /dev/null
@@ -1,241 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang=
-"en-gb">
-<head>
-  <meta name="generator" content=
-  "HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
-  <!-- <base href=
-  "http://203.169.227.106/index.php/press-release-distribution/introduction" /> -->
-  <meta http-equiv="content-type" content=
-  "text/html; charset=us-ascii" />
-  <meta name="robots" content="index, follow" />
-  <meta name="keywords" content=
-  "Media outreach, press release distribution, launch, product, executive announcement, financial earnings, business announcement, event press release, public relations objectives, communications channels, Asia Pacific representative, post-release report, press release distribution, geography, industry, target audience, media circuit, North American, European, Latin American, Middle Eastern, African, Asia Pacific" />
-  <meta name="title" content=
-  "Flexible, tailor-made and comprehensive press release distribution services" />
-  <meta name="author" content="Administrator" />
-  <meta name="description" content=
-  "We offer you flexible, tailor-made and comprehensive press release distribution services" />
-
-  <title>Media-outreach - Current Press Releases</title>
-  <link href="/templates/media/favicon.ico" rel="shortcut icon" type="image/x-icon" />
-  
-
-  <link rel="stylesheet" href="{rootURL}/Pman/PressRelease/templates/images/css/template.css" type="text/css" />
-  <link rel="stylesheet" href="{rootURL}/Pman/PressRelease/templates/images/css/mods.css" type="text/css" />
-  
-    
-</head>
-
-<body style="background-image: url({rootURL}/Pman/PressRelease/templates/images/body_bg_small.jpg);">
-  <div id="body"  style="width:588px;">
-     
-
-    <div class="clear"></div>
-
-    <div id="content" style="width: 588px;">
-      <table width="100%" cellpadding="0" cellspacing="0" border=  "0">
-        <tr>
-
-          
-             <div id="content_com">
-            <div  class="pr-header" style="margin-top:20px;">                
-                Dear {if:!firstname} &lt;Firstname goes here&gt; {end:} {firstname},
-                <br/>    <br/>
-                On behalf of  {release.client_id_name}, we would like to forward to you the latest press
-                release. 
-                <br/>
-                 <br/>
-                Thank you.
-                <br/>
-             
-                <br/>
-                With best regards    <br/><br/>
-                Jennifer Kok<br/>
-                Founder and Managing Director<br/>
-                Tel: +852 3101 7088<br/>
-                Email: info@media-outreach.com
-                <table class="contentpaneopen" width="100%">
-                    <tr>
-                        <td class="contentheading" width="100%">
-                            <h3 style="padding-top:2px;">&nbsp;</h3>
-                        </td>
-                    </tr>
-                </table>
-            </div>                
-                            
-                            <div class="pr-header">
-                                 <div class="pr-client-data" style="text-align:right;" flexy:if="langs">
-                                    View in : {foreach:langs,l}
-                                     <a   href="{baseURL}/{cls}/{l.id}/{l.headline}.html"> {l.language()}</a> 
-                                    
-                                    &nbsp;
-                                     {end:}
-                                  </div>
-                                <div class="clear">&nbsp;</div>
-                                <div class="clear">&nbsp;</div>
-                                <div id="news-content">
-                                    <ul class="related-bar" style="margin-top: 3px;" flexy:if="showShare">
-                                        <li class="bgon"><!-- AddThis Button BEGIN -->
-                                            <div class="addthis_toolbox addthis_default_style ">
-                                            <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
-                                            <a class="addthis_button_tweet"></a>
-                                            <a class="addthis_counter addthis_pill_style"></a>
-                                            </div>
-            
-            <!-- AddThis Button END -->
-                                        </li>
-                                   <!--     <li class="bgon"><a href="#" class="icon email" rel="nofollow">Email</a></li> -->
-                                        <li class="bgon"><a href="?printer=1" id="" class="icon printer" rel="nofollow">Print Friendly</a></li>
-            <!--                            <li class="bgoff">
-                                            <iframe allowtransparency="true" frameborder="0" scrolling="no"
-                                                src="http://platform.twitter.com/widgets/tweet_button.html"
-                                                style="width:130px; height:50px;"></iframe>
-                                        </li>-->
-                                    </ul> 
-                                </div>
-                                <div class="clear">&nbsp;</div>
-            
-                                <div class="pr-client-data"><B>SOURCE: {release.source_name}</B></div>
-                               
-                                <div class="pr-client-logo">{release.logo.toHTML(#150x150#):h}</div>
-                                <div class="pr-client-data"><i> {release.publish_dt(#jS F Y#)}</i></div>
-                                
-                            </div>
-                            
-                            
-                            <table class="contentpaneopen" width="100%">
-                              <tr>
-                                <td class="contentheading" width="100%">
-                                  <h3>{release.headline}</h3>
-                                </td>
-                              </tr>
-                            </table>
-            
-                            <table class="contentpaneopen">
-                              <tr>
-                                <td valign="top">
-                                
-                                  {release.content:h}
-                                  
-                                  <br/>
-                                  
-                                  {release.content_data():h}
-                                  
-                                  
-                                  <br/>
-                                  {release.content_about:b}
-                                   <br/>
-                                  
-                                  
-                                </td>
-                              </tr>
-                              
-                            </table> 
-            
-                            <div class="clear"></div>
-                        
-                        
-            <!-- images -->
-            
-            <div  class="box-t image-box "><div class="box-b"><div class="box-l"><div class="box-r"><div class="box-bl"><div class="box-br"><div class="box-tl"><div class="box-tr">
-            <div class="box-h">Downloadable Images</div><div class="box-body">
-                
-                {if:!release.images} No Images Available {end:}
-                
-                <div class="pr-download-img-block"flexy:foreach="release.images,img">
-                    {img.toHTML(#150x150#):h}
-                    <div class="pr-download-img-block-title">{img.title} 
-                        <div class="pr-download-img-block-link"><a
-                                        href="{rootURL}/i/Download/{img.id}">{rootURL}/i/Download/{img.id}</a>
-                        </div>
-                     </div>
-                </div>
-            
-            </div>
-            </div></div></div></div></div></div></div></div> 
-                   
-             
-            <div class="clear">&nbsp;</div>
-                  <!-- media contact --> 
-                          
-                          
-                          
-            
-            <div   class="box-t image-box "><div class="box-b"><div class="box-l"><div class="box-r"><div class="box-bl"><div class="box-br"><div class="box-tl"><div class="box-tr">
-            <div class="box-h">Media Contact</div><div class="box-body">
-                
-               {release.contact_txt:b}
-            </div> 
-            
-            </div></div></div></div></div></div></div></div>  
-             
-            <div class="clear">&nbsp;</div>
-            
-                   
-                   
-               
-                <!-- news / links -->         
-                        
-            <div    class="box-t video-box "><div class="box-b"><div class="box-l"><div class="box-r"><div class="box-bl"><div class="box-br"><div class="box-tl"><div class="box-tr">
-            <div class="box-h">Related Links</div><div class="box-body"> 
-            
-            
-             {release.content_links():h} 
-            <br/>
-            
-                <div flexy:foreach="related,y,ra">
-                    <h3>{y}</h3>
-                    <div flexy:foreach="ra,r">
-                        {r.publish_dt(#jS F#)} : <br/><a href="{baseURL}/{cls}/{r.id}/{r.headline}.html">{r.headline}</a><br/>
-                    </div> 
-                </div>
-                
-            
-            </div>
-            </div></div></div></div></div></div></div></div>  
-            
-             
-             
-            <div  class="box-t link-box "><div class="box-b"><div class="box-l"><div class="box-r"><div class="box-bl"><div class="box-br"><div class="box-tl"><div class="box-tr">
-            <div class="box-h">Journalist Update</div><div class="box-body">
-                    
-                    <br/>We aim to deliver targeted news to you. If you have received an irrelevant release or have change news beat,
-                    please kindly click on this link to update your information.
-                    <br/><br/>
-                                     <a href="http://www.media-outreach.com/index.php/en/journalist-form">Journalist update form</a>
-                     <br/><br/>
-                             If you would like to unsubscribe, please drop us an email at <a href="mailto:info@media-outreach.com">info@media-outreach.com</a></div>
-            </div></div></div></div></div></div></div></div>  
-            
-            
-            <div class="clear">&nbsp;</div>
-             <div class="clear">&nbsp;</div>` 
-                            
-            </div>
-             
-            </div>
-          </td>
-        </tr>
-      </table>
-
-      <div class="clear"></div>
-    </div>
-
-    <div id="footer">
-       
-      <p>To unsubscribe please email <a href="mailto:press@media-outreach.com">press@media-outreach.com</a></p>
-
-      <p>Copyright &copy; 2010 MediaOutreach. All Rights
-      Reserved.</p>
-    </div>
-  </div>
-  
-   
-</body>
-</html>