Add TPL files
This commit is contained in:
44
modules/Home/Dashlets/ChartsDashlet/ChartsDashletScript.tpl
Executable file
44
modules/Home/Dashlets/ChartsDashlet/ChartsDashletScript.tpl
Executable file
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
// $Id$
|
||||
|
||||
*}
|
||||
|
||||
<script>
|
||||
SUGAR.mySugar.addToChartsArray('{$chartName}', '{$chartXMLFile}', '100%', '480', '{$chartStyleCSS}', '{$chartColorsXML}', '{$chartLangFile}');
|
||||
</script>
|
||||
80
modules/Home/Dashlets/InvadersDashlet/InvadersDashlet.tpl
Executable file
80
modules/Home/Dashlets/InvadersDashlet/InvadersDashlet.tpl
Executable file
@@ -0,0 +1,80 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
*}
|
||||
<div align="center">
|
||||
<table cellpadding="0" cellspacing="0" class="playArea" style="overflow: hidden; background-color: black; background-image: url('modules/Home/Dashlets/InvadersDashlet/sprites/bg.png'); width: 400px; height:300px">
|
||||
<tr height="16"><td><img id="shot" style="position: relative; top:245px; display: none" src="modules/Home/Dashlets/InvadersDashlet/sprites/cube.png" width="16" height="16"/></td></tr>
|
||||
<tr height="32"><td><img id="player" style="position: relative; top:252px; left:134" src="modules/Home/Dashlets/InvadersDashlet/sprites/player.png" width="32" height="32"/></td></tr>
|
||||
<tr><td><div id="aliens" style="position: relative; left:0px; width:172px;">
|
||||
<table cellpadding="0" cellspacing="2"><tbody>
|
||||
<tr>
|
||||
<td id="a00" width="32" height="14"> </td>
|
||||
<td id="a10" width="32" height="14"> </td>
|
||||
<td id="a20" width="32" height="14"> </td>
|
||||
<td id="a30" width="32" height="14"> </td>
|
||||
<td id="a40" width="32" height="14"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="a01" width="32" height="14"> </td>
|
||||
<td id="a11" width="32" height="14"> </td>
|
||||
<td id="a21" width="32" height="14"> </td>
|
||||
<td id="a31" width="32" height="14"> </td>
|
||||
<td id="a41" width="32" height="14"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="a02" width="32" height="14"> </td>
|
||||
<td id="a12" width="32" height="14"> </td>
|
||||
<td id="a22" width="32" height="14"> </td>
|
||||
<td id="a32" width="32" height="14"> </td>
|
||||
<td id="a42" width="32" height="14"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="a03" width="32" height="14"> </td>
|
||||
<td id="a13" width="32" height="14"> </td>
|
||||
<td id="a23" width="32" height="14"> </td>
|
||||
<td id="a33" width="32" height="14"> </td>
|
||||
<td id="a43" width="32" height="14"> </td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
</td></tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div align="center" id="startScreen" style="position: relative; top: -125;" onclick="InvadersGame.reset()">
|
||||
<a href="javascript:void(0);" class="otherTabLink"><h1 style="color: #FFF; " id="messageText">Click Here to Start!</h1></a>
|
||||
</div>
|
||||
261
modules/Home/Dashlets/InvadersDashlet/InvadersDashletScript.tpl
Executable file
261
modules/Home/Dashlets/InvadersDashlet/InvadersDashletScript.tpl
Executable file
@@ -0,0 +1,261 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
{literal}<script>
|
||||
if(typeof InvadersGame == 'undefined') {
|
||||
InvadersGame = function() {
|
||||
var playerX, move, timer, rate, shotX, shotY, started, shotFired, alienX, alienY, aMove;
|
||||
var rightRowsCleared, leftRowsCleared, bottomRow;
|
||||
return {
|
||||
init: function() {
|
||||
//alert("initilized");
|
||||
InvadersGame.rate = 30;
|
||||
document.onkeydown = InvadersGame.keyDown;
|
||||
document.onkeyup = InvadersGame.keyUp;
|
||||
clearTimeout(InvadersGame.timer);
|
||||
InvadersGame.timer = setTimeout("InvadersGame.update()",InvadersGame.rate);
|
||||
InvadersGame.started = false;
|
||||
InvadersGame.shotFired = false;
|
||||
InvadersGame.level = 1;
|
||||
},
|
||||
moveLeft: function(frameTime) {
|
||||
InvadersGame.playerX = InvadersGame.playerX + (5 * frameTime);
|
||||
},
|
||||
moveRight: function(frameTime) {
|
||||
InvadersGame.playerX = InvadersGame.playerX - (5 * frameTime);
|
||||
},
|
||||
checkLoss: function() {
|
||||
if (InvadersGame.alienY + (InvadersGame.bottomRow * 16) >= 110) {
|
||||
InvadersGame.init();
|
||||
//InvadersGame.alienY += 32;
|
||||
var startScreen = document.getElementById("startScreen");
|
||||
startScreen.style.display = "block";
|
||||
var messageText = document.getElementById("messageText");
|
||||
messageText.innerHTML = "Game Over";
|
||||
}
|
||||
},
|
||||
keyDown: function(keyEvents) {
|
||||
var key = (window.event) ? event.keyCode : keyEvents.keyCode;
|
||||
if (InvadersGame.started) {
|
||||
if (key == 65){ //'a' key
|
||||
InvadersGame.move = -1;
|
||||
}
|
||||
if (key == 68){ //'d' key
|
||||
InvadersGame.move = 1;
|
||||
}
|
||||
if (key == 83){ //'s' key
|
||||
InvadersGame.shoot();
|
||||
}
|
||||
if (key == 82){ //'s' key
|
||||
InvadersGame.reset();
|
||||
}
|
||||
}
|
||||
},
|
||||
keyUp: function(keyEvents) {
|
||||
var key = (window.event) ? event.keyCode : keyEvents.keyCode;
|
||||
if (key == 65 || key == 68){
|
||||
InvadersGame.move = 0;
|
||||
}
|
||||
},
|
||||
reset: function() {
|
||||
InvadersGame.started = true;
|
||||
InvadersGame.lastFrame = new Date().getTime();
|
||||
var startScreen = document.getElementById("startScreen");
|
||||
startScreen.style.display = "none";
|
||||
var aliensTable = document.getElementById("aliens");
|
||||
var aliens = aliensTable.getElementsByTagName("td");
|
||||
var shot = document.getElementById("shot");
|
||||
shot.style.display = "none";
|
||||
var i=0;
|
||||
for(i=0; i < aliens.length; i++) {
|
||||
aliens[i].style.backgroundImage = "url('modules/Home/Dashlets/InvadersDashlet/sprites/alien.png')"
|
||||
}
|
||||
InvadersGame.playerX = 134;
|
||||
InvadersGame.move = 0;
|
||||
InvadersGame.aMove = (3 + InvadersGame.level) / 4;
|
||||
InvadersGame.alienX = 0;
|
||||
InvadersGame.alienY = -140;
|
||||
InvadersGame.shoty = 250;
|
||||
InvadersGame.shotFired = false;
|
||||
InvadersGame.rightRowsCleared = 0;
|
||||
InvadersGame.leftRowsCleared = 0;
|
||||
InvadersGame.bottomRow = 3;
|
||||
aliensTable.style.left = InvadersGame.alienX;
|
||||
aliensTable.style.top = InvadersGame.alienY;
|
||||
clearTimeout(InvadersGame.timer);
|
||||
InvadersGame.timer = setTimeout("InvadersGame.update()",InvadersGame.rate);
|
||||
},
|
||||
shoot: function() {
|
||||
if (!InvadersGame.shotFired) {
|
||||
InvadersGame.shotX = InvadersGame.playerX;
|
||||
InvadersGame.shotY = 250;
|
||||
InvadersGame.shotFired = true;
|
||||
var shot = document.getElementById("shot");
|
||||
shot.style.left = InvadersGame.playerX + 8;
|
||||
shot.style.top = 250;
|
||||
shot.style.display = "inline";
|
||||
}
|
||||
},
|
||||
update: function() {
|
||||
var time = new Date().getTime();
|
||||
var frameTime = (time - InvadersGame.lastFrame) / InvadersGame.rate;
|
||||
if (frameTime == 0) frameTime = 1;
|
||||
InvadersGame.lastFrame = time;
|
||||
if (InvadersGame.started) {
|
||||
if (InvadersGame.move < 0 && InvadersGame.playerX > 0) {
|
||||
InvadersGame.moveRight(frameTime);
|
||||
}
|
||||
if (InvadersGame.move > 0 && InvadersGame.playerX < 368) {
|
||||
InvadersGame.moveLeft(frameTime);
|
||||
}
|
||||
InvadersGame.alienX += InvadersGame.aMove * frameTime;
|
||||
if (InvadersGame.aMove > 0 && InvadersGame.alienX > (225 + InvadersGame.rightRowsCleared)) {
|
||||
InvadersGame.aMove = -(3 + InvadersGame.level) / (4);
|
||||
InvadersGame.alienY += 16;
|
||||
InvadersGame.checkLoss();
|
||||
}
|
||||
else if (InvadersGame.alienX < (0 - InvadersGame.leftRowsCleared)) {
|
||||
InvadersGame.aMove = (3 + InvadersGame.level) / (4);
|
||||
InvadersGame.alienY += 16;
|
||||
InvadersGame.checkLoss();
|
||||
}
|
||||
|
||||
var player = document.getElementById("player");
|
||||
var shot = document.getElementById("shot");
|
||||
var aliens = document.getElementById("aliens");
|
||||
|
||||
if (InvadersGame.shotY < 8){
|
||||
InvadersGame.shotY = 235;
|
||||
InvadersGame.shotFired = false;
|
||||
shot.style.display = "none";
|
||||
}
|
||||
if (InvadersGame.shotFired) {
|
||||
InvadersGame.shotY -= 5;
|
||||
shot.style.top = InvadersGame.shotY;
|
||||
}
|
||||
player.style.left = InvadersGame.playerX;
|
||||
aliens.style.left = InvadersGame.alienX;
|
||||
aliens.style.top = InvadersGame.alienY;
|
||||
if(InvadersGame.shotFired) {
|
||||
InvadersGame.checkCollide(shot, aliens);
|
||||
}
|
||||
}
|
||||
InvadersGame.timer = setTimeout("InvadersGame.update()",InvadersGame.rate);
|
||||
},
|
||||
nextLevel: function() {
|
||||
InvadersGame.started = false;
|
||||
var startScreen = document.getElementById("startScreen");
|
||||
startScreen.style.display = "block";
|
||||
InvadersGame.level++;
|
||||
var messageText = document.getElementById("messageText");
|
||||
messageText.innerHTML = "Level " + InvadersGame.level;
|
||||
clearTimeout(InvadersGame.timer);
|
||||
InvadersGame.timer = setTimeout("InvadersGame.reset()",5000);
|
||||
},
|
||||
checkCollide: function(shot, aliens) {
|
||||
var sx = InvadersGame.shotX + 8;
|
||||
var sy = InvadersGame.shotY;
|
||||
var ax = InvadersGame.alienX;
|
||||
var ay = InvadersGame.alienY + 140;
|
||||
var cx = Math.floor((sx - ax) / 34);
|
||||
var cy = Math.floor((sy - ay) / 16);
|
||||
if (cx > -1 && cx < 5 && cy > -1 && cy < 4) {
|
||||
var dAlien = document.getElementById("a" + cx + cy);
|
||||
if (!(dAlien.style.backgroundImage == "none")) {
|
||||
//Collision occured
|
||||
dAlien.style.backgroundImage = "none";
|
||||
InvadersGame.shotFired = false;
|
||||
shot.style.display = "none";
|
||||
var aliens = document.getElementById("aliens").getElementsByTagName("td");
|
||||
var i = 0;
|
||||
var col = 0;
|
||||
var row = 0;
|
||||
var count = new Array(5);
|
||||
var rows = new Array(5);
|
||||
for (i = 0; i < count.length; i++) {
|
||||
count[i] = 0;
|
||||
rows[i] = 0;
|
||||
}
|
||||
for (i = 0; i < aliens.length; i++) {
|
||||
col = i % 5;
|
||||
row = Math.floor(i / 5);
|
||||
if (aliens[i].style.backgroundImage != "none") {
|
||||
count[col]++;
|
||||
rows[row]++;
|
||||
}
|
||||
}
|
||||
if (count[0] == 0) {
|
||||
if (count[1] == 0) {
|
||||
if (count[2] == 0) {
|
||||
if (count[3] == 0) {
|
||||
if (count[4] == 0) { InvadersGame.nextLevel();}
|
||||
else {InvadersGame.leftRowsCleared = 32 * 4;}
|
||||
} else {InvadersGame.leftRowsCleared = 32 * 3;}
|
||||
} else {InvadersGame.leftRowsCleared = 32 * 2;}
|
||||
} else {InvadersGame.leftRowsCleared = 32;}
|
||||
} else {InvadersGame.leftRowsCleared = 0;}
|
||||
|
||||
if (count[4] == 0) {
|
||||
if (count[3] == 0) {
|
||||
if (count[2] == 0) {
|
||||
if (count[1] == 0) {
|
||||
if (count[0] == 0) {InvadersGame.rightRowsCleared = 32 * 5;
|
||||
} else {InvadersGame.rightRowsCleared = 32 * 4;}
|
||||
} else {InvadersGame.rightRowsCleared = 32 * 3; }
|
||||
} else {InvadersGame.rightRowsCleared = 32 * 2;}
|
||||
} else { InvadersGame.rightRowsCleared = 32;}
|
||||
} else {InvadersGame.rightRowsCleared = 0;}
|
||||
|
||||
for (i = 0; i < 4 ; i++) {
|
||||
if (rows[i] > 0) {
|
||||
InvadersGame.bottomRow = i;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}();
|
||||
}
|
||||
InvadersGame.init();
|
||||
|
||||
</script>{/literal}
|
||||
70
modules/Home/Dashlets/InvadersDashlet/InvadersOptions.tpl
Executable file
70
modules/Home/Dashlets/InvadersDashlet/InvadersOptions.tpl
Executable file
@@ -0,0 +1,70 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 500px'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.sugarHome.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$heightLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="height" size='3' value='{$height}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
44
modules/Home/Dashlets/JotPadDashlet/JotPadDashlet.tpl
Executable file
44
modules/Home/Dashlets/JotPadDashlet/JotPadDashlet.tpl
Executable file
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div id='jotpad_{$id}' ondblclick='JotPad.edit(this, "{$id}")' style='overflow: auto; width: 100%; height: {$height}px; border: 1px #ddd solid'>{$savedText}</div>
|
||||
<textarea id='jotpad_textarea_{$id}' rows="5" onblur='JotPad.blur(this, "{$id}")' style='display: none; width: 100%; height: {$height}px; overflow: auto'></textarea>
|
||||
70
modules/Home/Dashlets/JotPadDashlet/JotPadDashletOptions.tpl
Executable file
70
modules/Home/Dashlets/JotPadDashlet/JotPadDashletOptions.tpl
Executable file
@@ -0,0 +1,70 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 500px'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$heightLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="height" size='3' value='{$height}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
88
modules/Home/Dashlets/JotPadDashlet/JotPadDashletScript.tpl
Executable file
88
modules/Home/Dashlets/JotPadDashlet/JotPadDashletScript.tpl
Executable file
@@ -0,0 +1,88 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
{literal}<script>
|
||||
if(typeof JotPad == 'undefined') { // since the dashlet can be included multiple times a page, don't redefine these functions
|
||||
JotPad = function() {
|
||||
return {
|
||||
/**
|
||||
* Called when the textarea is blurred
|
||||
*/
|
||||
blur: function(ta, id) {
|
||||
ajaxStatus.showStatus('{/literal}{$saving}{literal}'); // show that AJAX call is happening
|
||||
// what data to post to the dashlet
|
||||
var va=JSON.stringify(ta.value);
|
||||
postData = 'to_pdf=1&module=Home&action=CallMethodDashlet&method=saveText&id=' + id + '&savedText=' + va;
|
||||
var cObj = YAHOO.util.Connect.asyncRequest('POST','index.php',
|
||||
{success: JotPad.saved, failure: JotPad.saved}, postData);
|
||||
},
|
||||
/**
|
||||
* Called when the textarea is double clicked on
|
||||
*/
|
||||
edit: function(divObj, id) {
|
||||
ta = document.getElementById('jotpad_textarea_' + id);
|
||||
if(isIE) ta.value = divObj.innerHTML.replace(/<br>/gi, "\n");
|
||||
else ta.value = divObj.innerHTML.replace(/<br>/gi, '');
|
||||
ta.value = ta.value.replace(/&/, "&");
|
||||
divObj.style.display = 'none';
|
||||
ta.style.display = '';
|
||||
ta.focus();
|
||||
},
|
||||
/**
|
||||
* handle the response of the saveText method
|
||||
*/
|
||||
saved: function(data) {
|
||||
eval(data.responseText);
|
||||
ajaxStatus.showStatus('{/literal}{$saved}{literal}');
|
||||
if(typeof result != 'undefined') {
|
||||
ta = document.getElementById('jotpad_textarea_' + result['id']);
|
||||
theDiv = document.getElementById('jotpad_' + result['id']);
|
||||
theDiv.innerHTML = result['savedText'];
|
||||
}
|
||||
ta.style.display = 'none';
|
||||
theDiv.style.display = '';
|
||||
window.setTimeout('ajaxStatus.hideStatus()', 2000);
|
||||
}
|
||||
};
|
||||
}();
|
||||
}
|
||||
</script>{/literal}
|
||||
42
modules/Home/Dashlets/MyEcmCalendarsDashlets/MyEcmCalendarsDashlets.tpl
Executable file
42
modules/Home/Dashlets/MyEcmCalendarsDashlets/MyEcmCalendarsDashlets.tpl
Executable file
@@ -0,0 +1,42 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div id='jotpad_{$id}' ondblclick='JotPad.edit(this, "{$id}")' style='overflow: auto; width: 100%; height: {$height}px; border: 1px #ddd solid'>{$savedText}lkjhlkjhlkjhlkjh</div>
|
||||
<textarea id='jotpad_textarea_{$id}' rows="5" onblur='JotPad.blur(this, "{$id}")' style='display: none; width: 100%; height: {$height}px; overflow: auto'></textarea>
|
||||
@@ -0,0 +1,82 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 500px'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$statusLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<select name='act_status'>{$act_status_options}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$userLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<select name='act_user'>{$act_user_options}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$typeLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<select name='act_type'>{$act_type_options}</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,88 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
{literal}<script>
|
||||
if(typeof JotPad == 'undefined') { // since the dashlet can be included multiple times a page, don't redefine these functions
|
||||
JotPad = function() {
|
||||
return {
|
||||
/**
|
||||
* Called when the textarea is blurred
|
||||
*/
|
||||
blur: function(ta, id) {
|
||||
ajaxStatus.showStatus('{/literal}{$saving}{literal}'); // show that AJAX call is happening
|
||||
// what data to post to the dashlet
|
||||
var va=JSON.stringify(ta.value);
|
||||
postData = 'to_pdf=1&module=Home&action=CallMethodDashlet&method=saveText&id=' + id + '&savedText=' + va;
|
||||
var cObj = YAHOO.util.Connect.asyncRequest('POST','index.php',
|
||||
{success: JotPad.saved, failure: JotPad.saved}, postData);
|
||||
},
|
||||
/**
|
||||
* Called when the textarea is double clicked on
|
||||
*/
|
||||
edit: function(divObj, id) {
|
||||
ta = document.getElementById('jotpad_textarea_' + id);
|
||||
if(isIE) ta.value = divObj.innerHTML.replace(/<br>/gi, "\n");
|
||||
else ta.value = divObj.innerHTML.replace(/<br>/gi, '');
|
||||
ta.value = ta.value.replace(/&/, "&");
|
||||
divObj.style.display = 'none';
|
||||
ta.style.display = '';
|
||||
ta.focus();
|
||||
},
|
||||
/**
|
||||
* handle the response of the saveText method
|
||||
*/
|
||||
saved: function(data) {
|
||||
eval(data.responseText);
|
||||
ajaxStatus.showStatus('{/literal}{$saved}{literal}');
|
||||
if(typeof result != 'undefined') {
|
||||
ta = document.getElementById('jotpad_textarea_' + result['id']);
|
||||
theDiv = document.getElementById('jotpad_' + result['id']);
|
||||
theDiv.innerHTML = result['savedText'];
|
||||
}
|
||||
ta.style.display = 'none';
|
||||
theDiv.style.display = '';
|
||||
window.setTimeout('ajaxStatus.hideStatus()', 2000);
|
||||
}
|
||||
};
|
||||
}();
|
||||
}
|
||||
</script>{/literal}
|
||||
81
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashlOptions.tpl
Executable file
81
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashlOptions.tpl
Executable file
@@ -0,0 +1,81 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 100%'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Date</td>
|
||||
<td class="dataField" valign="top">
|
||||
<input onblur="parseDate(this, '%d.%m.%Y');" class="text" name="date" size="12" maxlength="10" id="date" value="{$date}">
|
||||
<img src="themes/default/images/jscalendar.gif" alt="" id="date_trigger" align="absmiddle">
|
||||
<script type="text/javascript">
|
||||
{literal}Calendar.setup ({inputField : "date", ifFormat : "%d.%m.%Y", showsTime : false, button : "date_trigger", singleClick : true, step : 1});{/literal}
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$userLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<select name='user[]' size="6" multiple="multiple">{$user_options}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
81
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashleOptions.tpl
Executable file
81
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashleOptions.tpl
Executable file
@@ -0,0 +1,81 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 100%'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Date</td>
|
||||
<td class="dataField" valign="top">
|
||||
<input onblur="parseDate(this, '%d.%m.%Y');" class="text" name="date" size="12" maxlength="10" id="date" value="{$date}">
|
||||
<img src="themes/default/images/jscalendar.gif" alt="" id="date_trigger" align="absmiddle">
|
||||
<script type="text/javascript">
|
||||
{literal}Calendar.setup ({inputField : "date", ifFormat : "{/literal}{$format}{literal}", showsTime : false, button : "date_trigger", singleClick : true, step : 1});{/literal}
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$userLbl}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<select name='user[]' size="6" multiple="multiple">{$user_options}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
44
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashlets.tpl
Executable file
44
modules/Home/Dashlets/MyEcmCallsMoreDashlets/MyEcmCallsMoreDashlets.tpl
Executable file
@@ -0,0 +1,44 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div id='jotpad_{$id}' ondblclick='JotPad.edit(this, "{$id}")' style='overflow: auto; width: 100%; height: {$height}px; border: 1px #ddd solid'>{$savedText}lkjhlkjhlkjhlkjh</div>
|
||||
<textarea id='jotpad_textarea_{$id}' rows="5" onblur='JotPad.blur(this, "{$id}")' style='display: none; width: 100%; height: {$height}px; overflow: auto'></textarea>
|
||||
@@ -0,0 +1,88 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
{literal}<script>
|
||||
if(typeof JotPad == 'undefined') { // since the dashlet can be included multiple times a page, don't redefine these functions
|
||||
JotPad = function() {
|
||||
return {
|
||||
/**
|
||||
* Called when the textarea is blurred
|
||||
*/
|
||||
blur: function(ta, id) {
|
||||
ajaxStatus.showStatus('{/literal}{$saving}{literal}'); // show that AJAX call is happening
|
||||
// what data to post to the dashlet
|
||||
var va=JSON.stringify(ta.value);
|
||||
postData = 'to_pdf=1&module=Home&action=CallMethodDashlet&method=saveText&id=' + id + '&savedText=' + va;
|
||||
var cObj = YAHOO.util.Connect.asyncRequest('POST','index.php',
|
||||
{success: JotPad.saved, failure: JotPad.saved}, postData);
|
||||
},
|
||||
/**
|
||||
* Called when the textarea is double clicked on
|
||||
*/
|
||||
edit: function(divObj, id) {
|
||||
ta = document.getElementById('jotpad_textarea_' + id);
|
||||
if(isIE) ta.value = divObj.innerHTML.replace(/<br>/gi, "\n");
|
||||
else ta.value = divObj.innerHTML.replace(/<br>/gi, '');
|
||||
ta.value = ta.value.replace(/&/, "&");
|
||||
divObj.style.display = 'none';
|
||||
ta.style.display = '';
|
||||
ta.focus();
|
||||
},
|
||||
/**
|
||||
* handle the response of the saveText method
|
||||
*/
|
||||
saved: function(data) {
|
||||
eval(data.responseText);
|
||||
ajaxStatus.showStatus('{/literal}{$saved}{literal}');
|
||||
if(typeof result != 'undefined') {
|
||||
ta = document.getElementById('jotpad_textarea_' + result['id']);
|
||||
theDiv = document.getElementById('jotpad_' + result['id']);
|
||||
theDiv.innerHTML = result['savedText'];
|
||||
}
|
||||
ta.style.display = 'none';
|
||||
theDiv.style.display = '';
|
||||
window.setTimeout('ajaxStatus.hideStatus()', 2000);
|
||||
}
|
||||
};
|
||||
}();
|
||||
}
|
||||
</script>{/literal}
|
||||
128
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashletOptions.tpl
Executable file
128
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashletOptions.tpl
Executable file
@@ -0,0 +1,128 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div style='width: 100%'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Title</td>
|
||||
<td colspan="4" valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' value='{$title}'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Period</td>
|
||||
<td valign='top' class='dataField'>{$date}</td>
|
||||
<td valign='top' class='dataField'> </td>
|
||||
<td valign='top' class='dataField'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" valign='top' nowrap class='dataLabel'> </td>
|
||||
<td width="20%" valign='top' class='dataField'>Show</td>
|
||||
<td width="20%" valign='top' class='dataField'>Title</td>
|
||||
<td width="20%" valign='top' class='dataField'>Order</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Sales</td>
|
||||
<td valign='top' class='dataField'>{$sales}</td>
|
||||
<td valign='top' class='dataField'>{$sales_title}</td>
|
||||
<td valign='top' class='dataField'>{$sales_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Sales in year</td>
|
||||
<td valign='top' class='dataField'>{$sales_year}</td>
|
||||
<td valign='top' class='dataField'>{$sales_year_title}</td>
|
||||
<td valign='top' class='dataField'>{$sales_year_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Order fulfillment</td>
|
||||
<td valign='top' class='dataField'>{$percent}</td>
|
||||
<td valign='top' class='dataField'>{$percent_title}</td>
|
||||
<td valign='top' class='dataField'>{$percent_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Quotes</td>
|
||||
<td valign='top' class='dataField'>{$quotes}</td>
|
||||
<td valign='top' class='dataField'>{$quotes_title}</td>
|
||||
<td valign='top' class='dataField'>{$quotes_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Orders</td>
|
||||
<td valign='top' class='dataField'>{$orders}</td>
|
||||
<td valign='top' class='dataField'>{$orders_title}</td>
|
||||
<td valign='top' class='dataField'>{$orders_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Stocks</td>
|
||||
<td valign='top' class='dataField'>{$stocks}</td>
|
||||
<td valign='top' class='dataField'>{$stocks_title}</td>
|
||||
<td valign='top' class='dataField'>{$stocks_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Products</td>
|
||||
<td valign='top' class='dataField'>{$products}</td>
|
||||
<td valign='top' class='dataField'>{$products_title}</td>
|
||||
<td valign='top' class='dataField'>{$products_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>New products</td>
|
||||
<td valign='top' class='dataField'>{$new_products}</td>
|
||||
<td valign='top' class='dataField'>{$new_products_title}</td>
|
||||
<td valign='top' class='dataField'>{$new_products_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>Payments</td>
|
||||
<td valign='top' class='dataField'>{$payments}</td>
|
||||
<td valign='top' class='dataField'>{$payments_title}</td>
|
||||
<td valign='top' class='dataField'>{$payments_no}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="5">
|
||||
<input type='submit' class='button' value='{$saveLbl}'> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
49
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashlets.tpl
Executable file
49
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashlets.tpl
Executable file
@@ -0,0 +1,49 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
<div id='jotpad_{$id}' ondblclick='JotPad.edit(this, "{$id}")' style='overflow: auto; width: 100%; height: 500px; border: 1px #ddd solid'>aaaaa
|
||||
{php}
|
||||
include_once('include/ECM/open_flash_chart/ofc-library/open_flash_chart_object.php');
|
||||
open_flash_chart_object(900,500,'modules/Home/Dashlets/MyEcmReportDashlets/salesYearChart.php',false,'include/ECM/open_flash_chart/');
|
||||
{/php}
|
||||
</div>
|
||||
|
||||
88
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashletsScript.tpl
Executable file
88
modules/Home/Dashlets/MyEcmReportDashlets/MyEcmReportDashletsScript.tpl
Executable file
@@ -0,0 +1,88 @@
|
||||
{*
|
||||
|
||||
/**
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004 - 2007 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
*/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
|
||||
{literal}<script>
|
||||
if(typeof JotPad == 'undefined') { // since the dashlet can be included multiple times a page, don't redefine these functions
|
||||
JotPad = function() {
|
||||
return {
|
||||
/**
|
||||
* Called when the textarea is blurred
|
||||
*/
|
||||
blur: function(ta, id) {
|
||||
ajaxStatus.showStatus('{/literal}{$saving}{literal}'); // show that AJAX call is happening
|
||||
// what data to post to the dashlet
|
||||
var va=JSON.stringify(ta.value);
|
||||
postData = 'to_pdf=1&module=Home&action=CallMethodDashlet&method=saveText&id=' + id + '&savedText=' + va;
|
||||
var cObj = YAHOO.util.Connect.asyncRequest('POST','index.php',
|
||||
{success: JotPad.saved, failure: JotPad.saved}, postData);
|
||||
},
|
||||
/**
|
||||
* Called when the textarea is double clicked on
|
||||
*/
|
||||
edit: function(divObj, id) {
|
||||
ta = document.getElementById('jotpad_textarea_' + id);
|
||||
if(isIE) ta.value = divObj.innerHTML.replace(/<br>/gi, "\n");
|
||||
else ta.value = divObj.innerHTML.replace(/<br>/gi, '');
|
||||
ta.value = ta.value.replace(/&/, "&");
|
||||
divObj.style.display = 'none';
|
||||
ta.style.display = '';
|
||||
ta.focus();
|
||||
},
|
||||
/**
|
||||
* handle the response of the saveText method
|
||||
*/
|
||||
saved: function(data) {
|
||||
eval(data.responseText);
|
||||
ajaxStatus.showStatus('{/literal}{$saved}{literal}');
|
||||
if(typeof result != 'undefined') {
|
||||
ta = document.getElementById('jotpad_textarea_' + result['id']);
|
||||
theDiv = document.getElementById('jotpad_' + result['id']);
|
||||
theDiv.innerHTML = result['savedText'];
|
||||
}
|
||||
ta.style.display = 'none';
|
||||
theDiv.style.display = '';
|
||||
window.setTimeout('ajaxStatus.hideStatus()', 2000);
|
||||
}
|
||||
};
|
||||
}();
|
||||
}
|
||||
</script>{/literal}
|
||||
43
modules/Home/Dashlets/RSSDashlet/RSSDashlet.tpl
Executable file
43
modules/Home/Dashlets/RSSDashlet/RSSDashlet.tpl
Executable file
@@ -0,0 +1,43 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
<div id='rss_{$id}' style='overflow: auto; width: 100%; height: {$height}px; border: 1px #ddd solid'>
|
||||
{$rss_output}
|
||||
</div>
|
||||
76
modules/Home/Dashlets/RSSDashlet/RSSDashletOptions.tpl
Executable file
76
modules/Home/Dashlets/RSSDashlet/RSSDashletOptions.tpl
Executable file
@@ -0,0 +1,76 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
|
||||
|
||||
|
||||
*}
|
||||
|
||||
<div style='width: 500px'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="400" cellpadding="0" cellspacing="0" border="0" class="edit view" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap scope='row'>{$titleLbl}</td>
|
||||
<td valign='top'>
|
||||
<input class="text" name="title" size='20' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap scope='row'>{$rssUrlLbl}</td>
|
||||
<td valign='top'>
|
||||
<input class="text" name="url" size='20' value='{$url}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap scope='row'>{$heightLbl}</td>
|
||||
<td valign='top'>
|
||||
<input class="text" name="height" size='3' value='{$height}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLbl}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
73
modules/Home/Dashlets/SugarNewsDashlet/configure.tpl
Executable file
73
modules/Home/Dashlets/SugarNewsDashlet/configure.tpl
Executable file
@@ -0,0 +1,73 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
*}
|
||||
|
||||
|
||||
<div style='width:100%'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' maxlength='80' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$urlLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="url" size='20' maxlength='255' value='{$url}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$heightLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="height" size='20' maxlength='80' value='{$height}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLBL}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
73
modules/Home/Dashlets/iFrameDashlet/configure.tpl
Executable file
73
modules/Home/Dashlets/iFrameDashlet/configure.tpl
Executable file
@@ -0,0 +1,73 @@
|
||||
{*
|
||||
|
||||
/*********************************************************************************
|
||||
* SugarCRM is a customer relationship management program developed by
|
||||
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU Affero General Public License version 3 as published by the
|
||||
* Free Software Foundation with the addition of the following permission added
|
||||
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
|
||||
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
|
||||
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License along with
|
||||
* this program; if not, see http://www.gnu.org/licenses or write to the Free
|
||||
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301 USA.
|
||||
*
|
||||
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
|
||||
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of this program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU Affero General Public License version 3.
|
||||
*
|
||||
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
|
||||
* these Appropriate Legal Notices must retain the display of the "Powered by
|
||||
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
|
||||
* technical reasons, the Appropriate Legal Notices must display the words
|
||||
* "Powered by SugarCRM".
|
||||
********************************************************************************/
|
||||
*}
|
||||
|
||||
|
||||
<div style='width:100%'>
|
||||
<form name='configure_{$id}' action="index.php" method="post" onSubmit='return SUGAR.dashlets.postForm("configure_{$id}", SUGAR.mySugar.uncoverPage);'>
|
||||
<input type='hidden' name='id' value='{$id}'>
|
||||
<input type='hidden' name='module' value='Home'>
|
||||
<input type='hidden' name='action' value='ConfigureDashlet'>
|
||||
<input type='hidden' name='to_pdf' value='true'>
|
||||
<input type='hidden' name='configure' value='true'>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$titleLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="title" size='20' maxlength='80' value='{$title}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$urlLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="url" size='20' maxlength='255' value='{$url}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top' nowrap class='dataLabel'>{$heightLBL}</td>
|
||||
<td valign='top' class='dataField'>
|
||||
<input class="text" name="height" size='20' maxlength='80' value='{$height}'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type='submit' class='button' value='{$saveLBL}'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user