Version Notes
initial relise with base functionality
Download this release
Release Info
Developer | GroupDocs |
Extension | groupdocs_comparison |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Cms/Form/Form.php +57 -0
- app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Cms/Page/Edit.php +70 -0
- app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Groupdocscomparison.php +7 -0
- app/code/local/Gdc/Groupdocscomparison/Helper/Data.php +5 -0
- app/code/local/Gdc/Groupdocscomparison/Model/Mysql4/Groupdocscomparison/Collection.php +9 -0
- app/code/local/Gdc/Groupdocscomparison/Model/Mysql4/groupdocscomparison.php +8 -0
- app/code/local/Gdc/Groupdocscomparison/Model/groupdocscomparison.php +9 -0
- app/code/local/Gdc/Groupdocscomparison/controllers/Adminhtml/ComparisonController.php +45 -0
- app/code/local/Gdc/Groupdocscomparison/etc/config.xml +122 -0
- app/code/local/Gdc/Groupdocscomparison/js/.htaccess +2 -0
- app/code/local/Gdc/Groupdocscomparison/js/insert.js +25 -0
- app/code/local/Gdc/Groupdocscomparison/sql/Groupdocscomparison_setup/mysql4-install-0.1.0 +26 -0
- app/etc/modules/Gdc_Groupdocscomparison.xml +9 -0
- package.xml +38 -0
app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Cms/Form/Form.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Gdc_Groupdocscomparison_Block_Adminhtml_Cms_Form_Form extends Mage_Adminhtml_Block_Cms_Form_Form {
|
3 |
+
public function __construct() {
|
4 |
+
parent::__construct();
|
5 |
+
}
|
6 |
+
}
|
7 |
+
echo '
|
8 |
+
<html>
|
9 |
+
<head>
|
10 |
+
<title></title>
|
11 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
12 |
+
</head>
|
13 |
+
<body>
|
14 |
+
<div>
|
15 |
+
|
16 |
+
<h2><a href="http://groupdocs.com/">GroupDocs Compare</a></h2>
|
17 |
+
<form action="#" name="form">
|
18 |
+
<label for="embedKey">Embed Key</label>
|
19 |
+
<br />
|
20 |
+
<input type="text", name="embedKey" value="" />
|
21 |
+
<br />
|
22 |
+
<label for="fileId">File ID</label>
|
23 |
+
<br>
|
24 |
+
<input type="text" name="fileId" value="">
|
25 |
+
<br>
|
26 |
+
<input type="button" name="doRequest" value="Make request" onClick="insertIframe();">
|
27 |
+
<input type="button" name="cancel" value="Cancel" onClick="window.close();">
|
28 |
+
</form>
|
29 |
+
<br>
|
30 |
+
<a target="blank" href="http://groupdocs.com/docs/display/gendoc/FAQs">See our FAQ</a> to learn how to use Comparison.
|
31 |
+
</div>
|
32 |
+
</body>
|
33 |
+
</html>';
|
34 |
+
?>
|
35 |
+
<script language="JavaScript" type="text/javascript">
|
36 |
+
|
37 |
+
function insertIframe()
|
38 |
+
{
|
39 |
+
form = document.forms.form;
|
40 |
+
embedId = form.embedKey.value;
|
41 |
+
fileId = form.fileid.value;
|
42 |
+
if (fileId != "" && embedId != "") {
|
43 |
+
var iframe = '<iframe src="https://apps.groupdocs.com/document-comparison/embed/' + embedId + '/' + fileId + '?&referer=Magento-Comparison/1.0" frameborder="0" width="500" height="650">If you can see this text, your browser does not support iframes. Please enable iframe support in your browser or use the latest version of any popular web browser such as Mozilla Firefox or Google Chrome. For more help, please check our documentation Wiki: http://groupdocs.com/docs/display/comparison/GroupDocs+Comparison+Integration+with+3rd+Party+Platforms</iframe>';
|
44 |
+
var tinyMceContent = window.opener.tinyMCE.activeEditor.getContent();
|
45 |
+
// set content
|
46 |
+
console.log(tinyMceContent);
|
47 |
+
window.opener.tinyMCE.activeEditor.setContent(tinyMceContent + iframe);
|
48 |
+
} else {
|
49 |
+
var tinyMceContent = window.opener.tinyMCE.activeEditor.getContent();
|
50 |
+
// set content
|
51 |
+
console.log(tinyMceContent);
|
52 |
+
window.opener.tinyMCE.activeEditor.setContent(tinyMceContent + "Something wrong with entered data");
|
53 |
+
}
|
54 |
+
window.close();
|
55 |
+
|
56 |
+
}
|
57 |
+
</script>
|
app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Cms/Page/Edit.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script>
|
2 |
+
// Insert GroupDocs File ID at cms edit page
|
3 |
+
function gdfileid(){
|
4 |
+
var anchor = document.getElementsByTagName("a");
|
5 |
+
// Switch the right tab
|
6 |
+
for (var i = 0; i < anchor.length; i++){
|
7 |
+
if (anchor[i].className.match(/tab-item-link/) || anchor[i].className.match(/tab-item-link active/)){
|
8 |
+
if (anchor[i].title!="Content"){
|
9 |
+
anchor[i].className ="tab-item-link";
|
10 |
+
var tab1 = document.getElementById('page_tabs_main_section_content');
|
11 |
+
var tab3 = document.getElementById('page_tabs_design_section_content');
|
12 |
+
var tab4 = document.getElementById('page_tabs_meta_section_content');
|
13 |
+
tab1.style.display = 'none';
|
14 |
+
tab3.style.display = 'none';
|
15 |
+
tab4.style.display = 'none';
|
16 |
+
} else {
|
17 |
+
anchor[i].className ="tab-item-link active";
|
18 |
+
var tab2 = document.getElementById('page_tabs_content_section_content');
|
19 |
+
tab2.style.display = 'block';
|
20 |
+
var form = document.createElement('div');
|
21 |
+
form.setAttribute("id", "groupdocs")
|
22 |
+
form.innerHTML = '<form action="#" name="form">' +
|
23 |
+
'<label for="embedKey">Embed Key</label><br />'+
|
24 |
+
'<input type="text", name="embedKey" value="" /><br />'+
|
25 |
+
'<label for="fileId">File ID</label><br />'+
|
26 |
+
'<input type="text" name="fileid" value=""><br />'+
|
27 |
+
'<input type="button" name="doRequest" value="Make request" onClick="insertIframe();">'+
|
28 |
+
'<input type="button" name="cancel" value="Cancel" onClick="delForm()">'+
|
29 |
+
'</form>'+
|
30 |
+
'<br />'+
|
31 |
+
'<a target="blank" href="http://groupdocs.com/docs/display/gendoc/FAQs">See our FAQ</a> to learn how to use Comparison.';
|
32 |
+
tab2.appendChild(form);
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
36 |
+
// Enter GroupDocs File ID
|
37 |
+
// var form = popWin('groupdocscomparison/form.php', 'GroupDocs Compare', 'width=450,height=260, resizable=no, scrollbars=no');
|
38 |
+
// all good continue
|
39 |
+
|
40 |
+
// var cmsName = 'Magento'
|
41 |
+
// var cmsVersion = '1.7'
|
42 |
+
// var iframe = '<iframe src="https://apps.groupdocs.com/signature/forms/SignEmbed/'+ans+'?&referer='+cmsName+'/'+cmsVersion+'" frameborder="0" width="600" height="400"></iframe>';
|
43 |
+
// var tinyMceContent = tinyMCE.activeEditor.getContent();
|
44 |
+
// // set content
|
45 |
+
// tinyMCE.activeEditor.setContent(tinyMceContent+iframe);
|
46 |
+
//
|
47 |
+
|
48 |
+
}
|
49 |
+
|
50 |
+
</script>
|
51 |
+
<?php
|
52 |
+
class Gdc_Groupdocscomparison_Block_Adminhtml_Cms_Page_Edit extends Mage_Adminhtml_Block_Cms_Page_Edit {
|
53 |
+
public function __construct() {
|
54 |
+
|
55 |
+
parent::__construct();
|
56 |
+
|
57 |
+
$head = Mage::app()->getFrontController()
|
58 |
+
->getAction()
|
59 |
+
->getLayout()
|
60 |
+
->getBlock('root')
|
61 |
+
->getChild('head');
|
62 |
+
$head->addJs('../app/code/local/Gdc/Groupdocscomparison/js/insert.js');
|
63 |
+
$this->_addButton('button_id', array(
|
64 |
+
'label' => Mage::helper('cms')->__('GroupDocs Comparison'),
|
65 |
+
'onclick' => "gdfileid()",
|
66 |
+
'class' => 'go'
|
67 |
+
), 0, 100, 'footer', 'header');
|
68 |
+
|
69 |
+
}
|
70 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/Block/Adminhtml/Groupdocscomparison.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gdc_Groupdocscomparison_Block_Adminhtml_Groupdocscomparison extends Mage_Adminhtml_Block_Template {
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gdc_Groupdocscomparison_Helper_Data extends Mage_Core_Helper_Abstract {
|
4 |
+
|
5 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/Model/Mysql4/Groupdocscomparison/Collection.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gdc_Groupdocscomparison_Model_Mysql4_Groupdocscomparison_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
+
{
|
5 |
+
public function _construct()
|
6 |
+
{
|
7 |
+
$this->_init('groupdocscomparison/groupdocscomparison');
|
8 |
+
}
|
9 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/Model/Mysql4/groupdocscomparison.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Gdc_Groupdocscomparison_Model_Mysql4_Groupdocscomparison extends Mage_Core_Model_Mysql4_Abstract
|
3 |
+
{
|
4 |
+
public function _construct()
|
5 |
+
{
|
6 |
+
$this->_init('groupdocscomparison/groupdocscomparison', 'id');
|
7 |
+
}
|
8 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/Model/groupdocscomparison.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Gdc_Groupdocscomparison_Model_Groupdocscomparison extends Mage_Core_Model_Abstract
|
3 |
+
{
|
4 |
+
public function _construct()
|
5 |
+
{
|
6 |
+
parent::_construct();
|
7 |
+
$this->_init('groupdocscomparison/groupdocscomparison');
|
8 |
+
}
|
9 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/controllers/Adminhtml/ComparisonController.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Gdc_Groupdocscomparison_Adminhtml_ComparisonController extends Mage_Adminhtml_Controller_Action
|
4 |
+
{
|
5 |
+
public $jj;
|
6 |
+
|
7 |
+
public function indexAction()
|
8 |
+
{
|
9 |
+
$this->loadLayout();
|
10 |
+
|
11 |
+
// gether data
|
12 |
+
$block = $this->getLayout()->getBlock('viewer');
|
13 |
+
// //on initialize la variable
|
14 |
+
// $retour = '';
|
15 |
+
// /* we are doing the query to select all elements of the pfay_test table (thanks to our model test/test and we sort them by id_pfay_test */
|
16 |
+
// $collection = Mage::getModel('groupdocsassembly/groupdocsassembly')->getCollection()
|
17 |
+
// ->setOrder('id');
|
18 |
+
//
|
19 |
+
// /* then, we check the result of the query and with the function getData() */
|
20 |
+
// foreach ($collection as $data) {
|
21 |
+
// $retour.= $data->getData('id') .' => '. $data->getData('file_id') . '<br />';
|
22 |
+
// }
|
23 |
+
// $block->setData('doc',$retour);
|
24 |
+
|
25 |
+
$this->renderLayout();
|
26 |
+
}
|
27 |
+
|
28 |
+
public function postAction()
|
29 |
+
{
|
30 |
+
$post = $this->getRequest()->getPost();
|
31 |
+
try {
|
32 |
+
if (empty($post)) {
|
33 |
+
Mage::throwException($this->__('Invalid form data.'));
|
34 |
+
}
|
35 |
+
|
36 |
+
/* here's your form processing */
|
37 |
+
|
38 |
+
$message = $this->__('Your form has been submitted successfully.');
|
39 |
+
Mage::getSingleton('adminhtml/session')->addSuccess($message);
|
40 |
+
} catch (Exception $e) {
|
41 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
42 |
+
}
|
43 |
+
$this->_redirect('*/*');
|
44 |
+
}
|
45 |
+
}
|
app/code/local/Gdc/Groupdocscomparison/etc/config.xml
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Gdc_Groupdocscomparison>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Gdc_Groupdocscomparison>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
|
11 |
+
<blocks>
|
12 |
+
<adminhtml>
|
13 |
+
<rewrite>
|
14 |
+
<cms_page_edit>Gdc_Groupdocscomparison_Block_Adminhtml_Cms_Page_Edit</cms_page_edit>
|
15 |
+
|
16 |
+
</rewrite>
|
17 |
+
|
18 |
+
</adminhtml>
|
19 |
+
</blocks>
|
20 |
+
|
21 |
+
|
22 |
+
<models>
|
23 |
+
<groupdocscomparison>
|
24 |
+
<class>Gdc_Groupdocscomparison_Model</class>
|
25 |
+
<resourceModel>groupdocscomparison_mysql4</resourceModel>
|
26 |
+
</groupdocscomparison>
|
27 |
+
<groupdocscomparison_mysql4>
|
28 |
+
<class>Gdc_Groupdocscomparison_Model_Mysql4</class>
|
29 |
+
<entities>
|
30 |
+
<groupdocscomparison>
|
31 |
+
<table>groupdocsc</table>
|
32 |
+
</groupdocscomparison>
|
33 |
+
</entities>
|
34 |
+
</groupdocscomparison_mysql4>
|
35 |
+
</models>
|
36 |
+
<resources>
|
37 |
+
<groupdocscomparison_write>
|
38 |
+
<connection>
|
39 |
+
<use>core_write</use>
|
40 |
+
</connection>
|
41 |
+
</groupdocscomparison_write>
|
42 |
+
|
43 |
+
<groupdocscomparison_read>
|
44 |
+
<connection>
|
45 |
+
<use>core_read</use>
|
46 |
+
</connection>
|
47 |
+
</groupdocscomparison_read>
|
48 |
+
|
49 |
+
<groupdocscomparison_delete>
|
50 |
+
<connection>
|
51 |
+
<use>core_delete</use>
|
52 |
+
</connection>
|
53 |
+
</groupdocscomparison_delete>
|
54 |
+
</resources>
|
55 |
+
|
56 |
+
<blocks>
|
57 |
+
<groupdocscomparison>
|
58 |
+
<class>Gdc_Groupdocscomparison_Block</class>
|
59 |
+
|
60 |
+
</groupdocscomparison>
|
61 |
+
</blocks>
|
62 |
+
<helpers>
|
63 |
+
<groupdocscomparison>
|
64 |
+
<class>Gdc_Groupdocscomparison_Helper</class>
|
65 |
+
</groupdocscomparison>
|
66 |
+
</helpers>
|
67 |
+
</global>
|
68 |
+
|
69 |
+
<admin>
|
70 |
+
<routers>
|
71 |
+
<groupdocscomparison>
|
72 |
+
<use>admin</use>
|
73 |
+
<args>
|
74 |
+
<module>Gdc_Groupdocscomparison</module>
|
75 |
+
<frontName>groupdocscomparison</frontName>
|
76 |
+
</args>
|
77 |
+
</groupdocscomparison>
|
78 |
+
</routers>
|
79 |
+
</admin>
|
80 |
+
|
81 |
+
<adminhtml>
|
82 |
+
|
83 |
+
<menu>
|
84 |
+
<catalog>
|
85 |
+
<children>
|
86 |
+
<groupdocscomparison_adminform translate="title" module="groupdocscomparison">
|
87 |
+
<title>Groupdocs Comparison</title>
|
88 |
+
<action>groupdocscomparison/adminhtml_viewer</action>
|
89 |
+
</groupdocscomparison_adminform>
|
90 |
+
</children>
|
91 |
+
</catalog>
|
92 |
+
</menu>
|
93 |
+
|
94 |
+
<acl>
|
95 |
+
<resources>
|
96 |
+
<admin>
|
97 |
+
<children>
|
98 |
+
<catalog>
|
99 |
+
<children>
|
100 |
+
<groupdocscomparison_adminform>
|
101 |
+
<title>Groupdocs Comparison</title>
|
102 |
+
</groupdocscomparison_adminform>
|
103 |
+
</children>
|
104 |
+
</catalog>
|
105 |
+
</children>
|
106 |
+
</admin>
|
107 |
+
</resources>
|
108 |
+
</acl>
|
109 |
+
|
110 |
+
<layout>
|
111 |
+
<updates>
|
112 |
+
<groupdocscomparison>
|
113 |
+
<file>groupdocscomparison.xml</file>
|
114 |
+
</groupdocscomparison>
|
115 |
+
</updates>
|
116 |
+
</layout>
|
117 |
+
</adminhtml>
|
118 |
+
<!-- <reference name="head">
|
119 |
+
<action method="addJs"><script>insert.js</script></action>
|
120 |
+
|
121 |
+
</reference>-->
|
122 |
+
</config>
|
app/code/local/Gdc/Groupdocscomparison/js/.htaccess
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
order deny,allow
|
2 |
+
Allow from all
|
app/code/local/Gdc/Groupdocscomparison/js/insert.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function insertIframe()
|
2 |
+
{
|
3 |
+
form = document.forms.form;
|
4 |
+
embedId = form.embedKey.value;
|
5 |
+
fileId = form.fileid.value;
|
6 |
+
if (fileId != "" && embedId != "") {
|
7 |
+
var iframe = '<iframe src="https://apps.groupdocs.com/document-comparison/embed/' + embedId + '/' + fileId + '?&referer=Magento-Comparison/1.0" frameborder="0" width="500" height="650">If you can see this text, your browser does not support iframes. Please enable iframe support in your browser or use the latest version of any popular web browser such as Mozilla Firefox or Google Chrome. For more help, please check our documentation Wiki: http://groupdocs.com/docs/display/comparison/GroupDocs+Comparison+Integration+with+3rd+Party+Platforms</iframe>';
|
8 |
+
var tinyMceContent = tinyMCE.activeEditor.getContent();
|
9 |
+
// set content
|
10 |
+
|
11 |
+
tinyMCE.activeEditor.setContent(tinyMceContent + iframe);
|
12 |
+
} else {
|
13 |
+
var tinyMceContent = tinyMCE.activeEditor.getContent();
|
14 |
+
// set content
|
15 |
+
|
16 |
+
tinyMCE.activeEditor.setContent(tinyMceContent + "Something wrong with entered data");
|
17 |
+
}
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
function delForm(){
|
22 |
+
del = document.getElementById('page_tabs_content_section_content');
|
23 |
+
del.removeChild("groupdocs");
|
24 |
+
}
|
25 |
+
|
app/code/local/Gdc/Groupdocscomparison/sql/Groupdocscomparison_setup/mysql4-install-0.1.0
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// draft - http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table
|
3 |
+
$installer = $this;
|
4 |
+
|
5 |
+
$installer->startSetup();
|
6 |
+
|
7 |
+
$installer->run("
|
8 |
+
|
9 |
+
-- DROP TABLE IF EXISTS {groupdocsc};
|
10 |
+
CREATE TABLE IF NOT EXISTS `groupdocsc` (
|
11 |
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
12 |
+
`date_entered` datetime DEFAULT NULL,
|
13 |
+
`date_modified` datetime DEFAULT NULL,
|
14 |
+
`modified_user_id` char(36) DEFAULT NULL,
|
15 |
+
`created_by` char(36) DEFAULT NULL,
|
16 |
+
`description` text,
|
17 |
+
`active` tinyint(1) DEFAULT '1',
|
18 |
+
`client_id` varchar(255) DEFAULT NULL,
|
19 |
+
`iframe` varchar(255) DEFAULT NULL,
|
20 |
+
`file_id` varchar(255) DEFAULT NULL,
|
21 |
+
PRIMARY KEY (`id`)
|
22 |
+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
23 |
+
|
24 |
+
");
|
25 |
+
|
26 |
+
$installer->endSetup();
|
app/etc/modules/Gdc_Groupdocscomparison.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Gdc_Groupdocscomparison>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Gdc_Groupdocscomparison>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>groupdocs_comparison</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GPL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Compare Word and PDF documents side by side directly on your Magento website.</summary>
|
10 |
+
<description>With this extension you and your website visitors will be able to compare two versions of a Word document directly on your website. This is a convenient approach of comparing documents online, when several parties can see the differences between two revisions of a document at the same time.
|
11 |
+
Compare Word Documents Online
|
12 |
+

|
13 |
+
Once installed, you will be able to compare Word documents by uploading and embedding two versions of a document directly into your Magento web-pages. GroupDocs Comparison tool will merge the documents automatically and highlight differences between the two documents. This way you can compare any word processing documents online right from your favorite web-browser and without having to install the software that the documents were created in initially.
|
14 |
+
Document Formats Supported
|
15 |
+

|
16 |
+
With GroupDocs Comparison, you can compare literally any word processing files, including: DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, ODT, ODS and OTT. In addition to that, you can also compare two revisions of a PDF document, Excel spreadsheet (XLS, XLSX, CSV), PowerPoint presentation (PPT, PPTX) and HTML document.
|
17 |
+
Key Features of the GroupDocs Comparison Extension
|
18 |
+

|
19 |
+
1. Documents embedded into web-pages are rendered using HTML5. Thanks to this, your web-site visitors won't need Flash or any web-browser plug-ins to view the compared documents right on your Magento web-pages.
|
20 |
+

|
21 |
+
2. Embedded documents are not converted to images, but rendered just like real text documents. This allows you, for example, to select and copy text right from the document embedded to a web-page; or you can search for a particular text (a word or a phrase) within the document.
|
22 |
+

|
23 |
+
3. To compare two versions of a document, neither you nor your website visitors need the original software that the documents were created in to be installed. Documents are compared online and can be viewed from a web-browser and from any web-enabled device.
|
24 |
+

|
25 |
+
4. Uploaded revisions of a document are automatically merged with the Change Tracking feature, showing you all the differences between the document versions you compare. Added text is highlighted with underlines and removed one - with strikeouts. This approach is quite similar to when you track changes in a document with MS Word app.
|
26 |
+

|
27 |
+
5. When comparing Word documents, you can merge the two revisions of a document and export them to a single DOC or DOCX file with the MS Word's Track Changes feature turned on. You can then edit the document offline by accepting or rejecting the changes in a document.
|
28 |
+

|
29 |
+
For more information on how to compare Word and other business documents online, please visit GroupDocs Comparison Homepage.
|
30 |
+
Installation and configuration documentation for the extension may be found here.</description>
|
31 |
+
<notes>initial relise with base functionality</notes>
|
32 |
+
<authors><author><name>GroupDocs</name><user>Marketplace</user><email>marketplace@groupdocs.com</email></author></authors>
|
33 |
+
<date>2013-07-03</date>
|
34 |
+
<time>05:42:52</time>
|
35 |
+
<contents><target name="magelocal"><dir><dir name="Gdc"><dir name="Groupdocscomparison"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Form"><file name="Form.php" hash="4c97e0e803284b87fb2e02667eb8e8ec"/></dir><dir name="Page"><file name="Edit.php" hash="2dc87f5fdc201c68919a2ffcd1ef01de"/></dir></dir><file name="Groupdocscomparison.php" hash="276955368738c834d7dec25e19da9f38"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ComparisonController.php" hash="8ac4e59fdba5150c1cc6ced106b034a0"/></dir></dir><dir name="etc"><file name="config.xml" hash="db290fcdec1eb772f602d4b86d13a035"/></dir><dir name="Helper"><file name="Data.php" hash="36be06bd0edf26fc505ba7c1b2c55d05"/></dir><dir name="js"><file name=".htaccess" hash="7cffe2704dc0e86389a2d02391dcca5d"/><file name="insert.js" hash="4d9b7410b0cf3aa3524144db2c298853"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Groupdocscomparison"><file name="Collection.php" hash="ae551c1abcca550c79c107737e7fe2e1"/></dir><file name="groupdocscomparison.php" hash="de49b10a88dd99b93a1ebe9c92604d1e"/><file name="groupdocscomparison.php" hash="de49b10a88dd99b93a1ebe9c92604d1e"/></dir><file name="groupdocscomparison.php" hash="4c5c247f3d81a28d86a005652816f5ac"/></dir><dir name="sql"><dir name="Groupdocscomparison_setup"><file name="mysql4-install-0.1.0" hash="62218edae4b80b5916bd56908008006a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Gdc_Groupdocscomparison.xml" hash="0c4e3f641f2092e4004eed296be85853"/></dir></dir></target></contents>
|
36 |
+
<compatible/>
|
37 |
+
<dependencies><required><php><min>5.3.0</min><max>5.4.15</max></php></required></dependencies>
|
38 |
+
</package>
|