File: /home/nexper/public_html/crm/cache/smarty/templates_c/%%BB^BB0^BB07744C%%display_properties.tpl.php
<?php /* Smarty version 2.6.11, created on 2014-04-25 13:43:46
compiled from modules/Connectors/tpls/display_properties.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_translate', 'modules/Connectors/tpls/display_properties.tpl', 58, false),)), $this); ?>
<?php if (! empty ( $this->_tpl_vars['external'] )): ?>
<input type="checkbox" value="1" name="<?php echo $this->_tpl_vars['source_id']; ?>
_external" id="<?php echo $this->_tpl_vars['source_id']; ?>
_external"<?php echo $this->_tpl_vars['externalChecked']; ?>
> <label for="<?php echo $this->_tpl_vars['source_id']; ?>
_external"><?php echo $this->_tpl_vars['mod']['LBL_EXTERNAL']; ?>
<?php if (! empty ( $this->_tpl_vars['externalHasProperties'] )): echo $this->_tpl_vars['mod']['LBL_EXTERNAL_SET_PROPERTIES']; endif; ?></label><br/>
<br/>
<?php endif; if (empty ( $this->_tpl_vars['externalOnly'] )): ?>
<table id="<?php echo $this->_tpl_vars['source_id']; ?>
" class="sources_table" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="33%">
<span><b><?php echo $this->_tpl_vars['mod']['LBL_ENABLED']; ?>
</b></span>
</td>
<td width="33%">
<span><b><?php echo $this->_tpl_vars['mod']['LBL_DISABLED']; ?>
</b></span>
</td>
<td width="33%"> </td>
</tr>
<tr>
<td>
<div id="<?php echo $this->_tpl_vars['source_id']; ?>
:enabled_div" class="enabled_module_workarea">
<ul id="<?php echo $this->_tpl_vars['source_id']; ?>
:enabled_ul" class="module_draglist">
<?php $_from = $this->_tpl_vars['enabled_modules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['module']):
?>
<li id="<?php echo $this->_tpl_vars['source_id']; ?>
:<?php echo $this->_tpl_vars['module']; ?>
" class="noBullet2"><?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['module']), $this);?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>
</td>
<td>
<div id="<?php echo $this->_tpl_vars['source_id']; ?>
:disabled_div" class="disabled_module_workarea">
<ul id="<?php echo $this->_tpl_vars['source_id']; ?>
:disabled_ul" class="module_draglist">
<?php $_from = $this->_tpl_vars['disabled_modules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['module']):
?>
<li id="<?php echo $this->_tpl_vars['source_id']; ?>
:<?php echo $this->_tpl_vars['module']; ?>
" class="noBullet2"><?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['module']), $this);?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>
</td>
<td> </td>
</tr>
</table>
<script type="text/javascript">
<?php echo '
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var DDM = YAHOO.util.DragDropMgr;
(function() {
YAHOO.example.DDApp = {
init: function() {
'; ?>
new YAHOO.util.DDTarget("<?php echo $this->_tpl_vars['source_id']; ?>
:enabled_ul");
new YAHOO.util.DDTarget("<?php echo $this->_tpl_vars['source_id']; ?>
:disabled_ul");
<?php $_from = $this->_tpl_vars['enabled_modules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['module']):
?>
new YAHOO.example.DDList("<?php echo $this->_tpl_vars['source_id']; ?>
:<?php echo $this->_tpl_vars['module']; ?>
");
<?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['disabled_modules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['module']):
?>
new YAHOO.example.DDList("<?php echo $this->_tpl_vars['source_id']; ?>
:<?php echo $this->_tpl_vars['module']; ?>
");
<?php endforeach; endif; unset($_from); echo '
}
};
YAHOO.example.DDList = function(id, sGroup, config) {
YAHOO.example.DDList.superclass.constructor.call(this, id, sGroup, config);
var el = this.getDragEl();
Dom.setStyle(el, "opacity", 0.67);
this.goingUp = false;
this.lastY = 0;
};
YAHOO.extend(YAHOO.example.DDList, YAHOO.util.DDProxy, {
startDrag: function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
dragEl.innerHTML = clickEl.innerHTML;
Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color"));
Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor"));
Dom.setStyle(dragEl, "border", "2px solid gray");
},
endDrag: function(e) {
var srcEl = this.getEl();
var proxy = this.getDragEl();
// Show the proxy element and animate it to the src element\'s location
Dom.setStyle(proxy, "visibility", "");
var a = new YAHOO.util.Motion(
proxy, {
points: {
to: Dom.getXY(srcEl)
}
},
0.2,
YAHOO.util.Easing.easeOut
)
var proxyid = proxy.id;
var thisid = this.id;
// Hide the proxy and show the source element when finished with the animation
a.onComplete.subscribe(function() {
Dom.setStyle(proxyid, "visibility", "hidden");
Dom.setStyle(thisid, "visibility", "");
});
a.animate();
},
onDragDrop: function(e, id) {
// If there is one drop interaction, the li was dropped either on the list,
// or it was dropped on the current location of the source element.
if (typeof(DDM.interactionInfo) != \'undefined\' && DDM.interactionInfo.drop.length === 1) {
// The position of the cursor at the time of the drop (YAHOO.util.Point)
var pt = DDM.interactionInfo.point;
// The region occupied by the source element at the time of the drop
var region = DDM.interactionInfo.sourceRegion;
// Check to see if we are over the source element\'s location. We will
// append to the bottom of the list once we are sure it was a drop in
// the negative space (the area of the list without any list items)
if (!region.intersect(pt)) {
var destEl = Dom.get(id);
var destDD = DDM.getDDById(id);
destEl.appendChild(this.getEl());
destDD.isEmpty = false;
DDM.refreshCache();
}
}
},
onDrag: function(e) {
// Keep track of the direction of the drag for use during onDragOver
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
},
onDragOver: function(e, id) {
var srcEl = this.getEl();
var destEl = Dom.get(id);
if (destEl.nodeName.toLowerCase() == "li") {
var orig_p = srcEl.parentNode;
var p = destEl.parentNode;
if (this.goingUp) {
p.insertBefore(srcEl, destEl); // insert above
} else {
p.insertBefore(srcEl, destEl.nextSibling); // insert below
}
DDM.refreshCache();
}
}
});
Event.onDOMReady(YAHOO.example.DDApp.init, YAHOO.example.DDApp, true);
})();
'; ?>
</script>
<?php else: ?>
<table id="<?php echo $this->_tpl_vars['source_id']; ?>
" class="sources_table" border="0" cellspacing="1" cellpadding="1" style="display: none"></table>
<?php endif; ?>