WYSIWYG EDITOR Variable Picker Layout
WYSIWYG EDITOR Variable Picker Layout
This commit is contained in:
66
gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/VariablePicker.html
vendored
Normal file
66
gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmVariablePicker/VariablePicker.html
vendored
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<form action="uploader.php?'.$_SERVER["QUERY_STRING"].'&q=upload" method="post" enctype="multipart/form-data" onsubmit="">'
|
||||||
|
<div id="d_variables">
|
||||||
|
<table width="80%">
|
||||||
|
<tr>
|
||||||
|
<td width="33%"><label for="type_label">Type Variable</label></td>
|
||||||
|
<td width="33%"><label for="prefix_label">Prefix</label></td>
|
||||||
|
<td width="33%"><label for="variables_label">Variables</label></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td width="33%">
|
||||||
|
<select name="type_variables">
|
||||||
|
<option value="all">All Variables</option>
|
||||||
|
<option value="system">System Variables</option>
|
||||||
|
<option value="process">Process Variables</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td width="33%">
|
||||||
|
<select name="prefix">
|
||||||
|
<option value="quotes">@#</option>
|
||||||
|
<option value="float">@@</option>
|
||||||
|
<option value="encoding">@?</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
<td width="33%">
|
||||||
|
<select name="variables">
|
||||||
|
<option value="quotes">@@SYS_SYS</option>
|
||||||
|
<option value="float">@@SYS_LANG</option>
|
||||||
|
<option value="encoding">@@SYS_SKIN</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div id="desc_variables">
|
||||||
|
<table border="1" width="100%">
|
||||||
|
<tr width="40%">
|
||||||
|
<td>Result</td>
|
||||||
|
<td>@#SYS_LANG</td>
|
||||||
|
</tr>
|
||||||
|
<tr width="60%">
|
||||||
|
<td>Description</td>
|
||||||
|
<td>Description @#SYS_LANG</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div id="desc_variables">
|
||||||
|
<label for="desc_prefix">* @# Replace de value in quotes</label>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -44,10 +44,11 @@ function pmVariablePicker(field_name, url, type, win) {
|
|||||||
strUploaderURL = strUploaderURL + "&type=" + type + "&d=" + strUploadPath + "&subs=" + strSubstitutePath;
|
strUploaderURL = strUploaderURL + "&type=" + type + "&d=" + strUploadPath + "&subs=" + strSubstitutePath;
|
||||||
}
|
}
|
||||||
tinyMCE.activeEditor.windowManager.open({ // open the plugin popup
|
tinyMCE.activeEditor.windowManager.open({ // open the plugin popup
|
||||||
file : strUploaderURL,
|
//file : strUploaderURL,
|
||||||
title : 'Upload Variable',
|
file : strPluginPath + '/VariablePicker.html',
|
||||||
width : 500,
|
title : 'Upload Variable',
|
||||||
height : 100,
|
width : '600px',
|
||||||
|
height : '150px',
|
||||||
resizable : "yes",
|
resizable : "yes",
|
||||||
inline : 1, // This parameter only has an effect if you use the inlinepopups plugin!
|
inline : 1, // This parameter only has an effect if you use the inlinepopups plugin!
|
||||||
close_previous : "no"
|
close_previous : "no"
|
||||||
|
|||||||
@@ -21,13 +21,78 @@
|
|||||||
|
|
||||||
// displays the upload form
|
// displays the upload form
|
||||||
function displayUploadForm()
|
function displayUploadForm()
|
||||||
{
|
{/*
|
||||||
echo '<form action="uploader.php?'.$_SERVER["QUERY_STRING"].'&q=upload" method="post" enctype="multipart/form-data" onsubmit="">'
|
echo '<form action="uploader.php?'.$_SERVER["QUERY_STRING"].'&q=upload" method="post" enctype="multipart/form-data" onsubmit="">'
|
||||||
.'Variable Name: <br/>'
|
//.'Variable Name: <br/>'
|
||||||
.'<br/> <input type="text" size="20" name="upload_variable" ID="Text1"/>  '
|
.'<div id="d_variables">'
|
||||||
.'<input type="submit" name="Variable" value="Variable" style="width: 100px;" onclick="document.getElementById(\'progress_div\').style.visibility=\'visible\';"/>'
|
.'<table width="80%">'
|
||||||
.' <div id="progress_div" style="visibility: hidden;"><img src="progress.gif" alt="wait..." style="padding-top: 5px;"></div>'
|
|
||||||
|
.'<tr>'
|
||||||
|
.'<td width="33%">'
|
||||||
|
.'<label for="type_label">Type Variable</label>'
|
||||||
|
.'</td>'
|
||||||
|
|
||||||
|
.'<td width="33%">'
|
||||||
|
.'<label for="prefix_label">Prefix</label>'
|
||||||
|
.'</td>'
|
||||||
|
|
||||||
|
.'<td width="33%">'
|
||||||
|
.'<label for="variables_label">Variables</label>'
|
||||||
|
.'</td>'
|
||||||
|
.'</tr>'
|
||||||
|
|
||||||
|
.'<tr>'
|
||||||
|
.'<td>'
|
||||||
|
.'<select name="type_variables">'
|
||||||
|
.'<option value="all">All Variables</option>'
|
||||||
|
.'<option value="system">System Variables</option>'
|
||||||
|
.'<option value="process">Process Variables</option>'
|
||||||
|
.'</select> '
|
||||||
|
.'</td>'
|
||||||
|
|
||||||
|
.'<td width="33%">'
|
||||||
|
.'<select name="prefix">'
|
||||||
|
.'<option value="quotes">@#</option>'
|
||||||
|
.'<option value="float">@@</option>'
|
||||||
|
.'<option value="encoding">@?</option>'
|
||||||
|
.'</select> '
|
||||||
|
.'</td>'
|
||||||
|
|
||||||
|
.'<td width="33%">'
|
||||||
|
.'<select name="variables">'
|
||||||
|
.'<option value="quotes">@@SYS_SYS</option>'
|
||||||
|
.'<option value="float">@@SYS_LANG</option>'
|
||||||
|
.'<option value="encoding">@@SYS_SKIN</option>'
|
||||||
|
.'</select>'
|
||||||
|
.'</td>'
|
||||||
|
.'</tr>'
|
||||||
|
.'</table>'
|
||||||
|
.'</div>'
|
||||||
|
|
||||||
|
.'<br>'
|
||||||
|
.'<div id="desc_variables">'
|
||||||
|
.'<table border="1" width="100%">'
|
||||||
|
.'<tr width="40%">'
|
||||||
|
.'<td>Result</td>'
|
||||||
|
.'<td>@#SYS_LANG</td>'
|
||||||
|
.'</tr>'
|
||||||
|
.'<tr width="60%">'
|
||||||
|
.'<td>Description</td>'
|
||||||
|
.'<td>Description @#SYS_LANG</td>'
|
||||||
|
.'</tr>'
|
||||||
|
.'</table>'
|
||||||
|
.'</div>'
|
||||||
|
|
||||||
|
.'<br>'
|
||||||
|
.'<div id="desc_variables">'
|
||||||
|
.'<label for="desc_prefix">* @# Replace de value in quotes</label>'
|
||||||
|
.'</div>'
|
||||||
|
|
||||||
|
//.'<br/><input type="text" size="20" name="upload_variable" ID="Text1"/>'
|
||||||
|
// .'<input type="submit" name="Variable" value="Variable" style="width: 100px;" onclick="document.getElementById(\'progress_div\').style.visibility=\'visible\';"/>'
|
||||||
|
//.' <div id="progress_div" style="visibility: hidden;"><img src="progress.gif" alt="wait..." style="padding-top: 5px;"></div>'
|
||||||
.'</form>';
|
.'</form>';
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
// uploads the file to the destination path, and returns a link with link path substituted for destination path
|
// uploads the file to the destination path, and returns a link with link path substituted for destination path
|
||||||
function uploadVariablePicker()
|
function uploadVariablePicker()
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ class XmlForm_Field_TextareaPM extends XmlForm_Field
|
|||||||
* @param eter string owner
|
* @param eter string owner
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function renderGrid ($values = null, $owner)
|
public function renderGrid ($owner, $values = null)
|
||||||
{
|
{
|
||||||
$result = array ();
|
$result = array ();
|
||||||
$r = 1;
|
$r = 1;
|
||||||
@@ -320,7 +320,7 @@ class XmlForm_Field_hours extends XmlForm_Field_SimpleText
|
|||||||
* @param eter string owner
|
* @param eter string owner
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function renderGrid ($values = array(), $owner)
|
public function renderGrid ($values = array(),$owner)
|
||||||
{
|
{
|
||||||
$result = array ();
|
$result = array ();
|
||||||
$r = 1;
|
$r = 1;
|
||||||
@@ -380,17 +380,14 @@ function getDynaformsVars ($sProcessUID, $bSystemVars = true, $bIncMulSelFields
|
|||||||
if ($bSystemVars) {
|
if ($bSystemVars) {
|
||||||
$aAux = G::getSystemConstants();
|
$aAux = G::getSystemConstants();
|
||||||
foreach ($aAux as $sName => $sValue) {
|
foreach ($aAux as $sName => $sValue) {
|
||||||
$aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable'
|
$aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable');
|
||||||
);
|
|
||||||
}
|
}
|
||||||
//we're adding the ping variable to the system list
|
//we're adding the ping variable to the system list
|
||||||
$aFields[] = array ('sName' => 'PIN','sType' => 'system','sLabel' => 'System variable'
|
$aFields[] = array ('sName' => 'PIN','sType' => 'system','sLabel' => 'System variable'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript'
|
$aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript');
|
||||||
);
|
$aMultipleSelectionFields = array ('listbox','checkgroup','grid');
|
||||||
$aMultipleSelectionFields = array ('listbox','checkgroup','grid'
|
|
||||||
);
|
|
||||||
if ($bIncMulSelFields != 0) {
|
if ($bIncMulSelFields != 0) {
|
||||||
$aInvalidTypes = array_merge( $aInvalidTypes, $aMultipleSelectionFields );
|
$aInvalidTypes = array_merge( $aInvalidTypes, $aMultipleSelectionFields );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,9 +21,134 @@
|
|||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
G::LoadClass( 'xmlfield_InputPM' );
|
|
||||||
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
|
||||||
|
|
||||||
|
$html = '<form action="uploader.php?'.$_SERVER["QUERY_STRING"].'&q=upload" method="post" enctype="multipart/form-data" onsubmit="">';
|
||||||
|
|
||||||
|
$html .= '<div id="d_variables">';
|
||||||
|
$html .= '<table width="90%" align="center">';
|
||||||
|
$html .= '<tr>';
|
||||||
|
$html .= '<td width="50%">';
|
||||||
|
$html .= '<label for="type_label">Type Variable</label>';
|
||||||
|
$html .= '</td>';
|
||||||
|
|
||||||
|
$html .= '<td width="25%">';
|
||||||
|
$html .= '<label for="prefix_label">Prefix</label>';
|
||||||
|
$html .= '</td>';
|
||||||
|
|
||||||
|
$html .= '<td width="25%">';
|
||||||
|
$html .= '<label for="variables_label">Search</label>';
|
||||||
|
$html .= '</td>';
|
||||||
|
$html .= '</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
$html .= '<tr>';
|
||||||
|
$html .= '<td width="25%">';
|
||||||
|
$html .= '<select name="type_variables">';
|
||||||
|
$html .= '<option value="all">All Variables</option>';
|
||||||
|
$html .= '<option value="system">System Variables</option>';
|
||||||
|
$html .= '<option value="process">Process Variables</option>';
|
||||||
|
$html .= '</select> ';
|
||||||
|
$html .= '</td>';
|
||||||
|
|
||||||
|
$html .= '<td width="25%">';
|
||||||
|
$html .= '<select name="prefix" id="prefix" onChange="Seleccionar(this);">';
|
||||||
|
$html .= '<option value="ID_TO_FLOAT">@#</option>';
|
||||||
|
$html .= '<option value="ID_TO_STRING">@@</option>';
|
||||||
|
$html .= '<option value="ID_TO_INTEGER">@%</option>';
|
||||||
|
$html .= '<option value="ID_TO_URL">@?</option>';
|
||||||
|
$html .= '<option value="ID_SQL_ESCAPE">@$</option>';
|
||||||
|
$html .= '<option value="ID_REPLACE_WITHOUT_CHANGES">@=</option>';
|
||||||
|
$html .= '</select> ';
|
||||||
|
$html .= '</td>';
|
||||||
|
|
||||||
|
$html .= '<td width="20%">';
|
||||||
|
$html .= '<input type="text" size="15">';
|
||||||
|
$html .= '</td>';
|
||||||
|
$html .= '</tr>';
|
||||||
|
|
||||||
|
$html .= '<br>';
|
||||||
|
$html .= '<tr><td> </td></tr>';
|
||||||
|
$html .= '<tr>';
|
||||||
|
|
||||||
|
$html .= '<br>';
|
||||||
|
$html .= '<tr><td><label for="prefix_label">Variables</label></td></tr>';
|
||||||
|
$html .= '<tr>';
|
||||||
|
//onChange="Seleccionar(this);
|
||||||
|
$html .= '<td colspan="3">';
|
||||||
|
|
||||||
|
G::LoadClass( 'xmlfield_InputPM' );
|
||||||
|
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||||
|
|
||||||
|
//$html .= '<select name="_Var_Form_" id="_Var_Form_" size="' . count( $aFields ) . '" style="width:100%;' . (! isset( $_POST['sNoShowLeyend'] ) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
||||||
|
|
||||||
|
$html .= '<select name="_Var_Form_" id="_Var_Form_" size="4" style="width:100%;' . (! isset( $_POST['sNoShowLeyend'] ) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
||||||
|
|
||||||
|
foreach ($aFields as $aField) {
|
||||||
|
$html .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'
|
||||||
|
);
|
||||||
|
foreach ($aFields as $aField) {
|
||||||
|
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .= '</select>';
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
$html .= '</select> ';
|
||||||
|
$html .= '</td>';
|
||||||
|
$html .= '<td width="30%">';
|
||||||
|
$html .= '<select name="variables">';
|
||||||
|
$html .= '<option value="quotes">@@SYS_SYS</option>';
|
||||||
|
$html .= '<option value="float">@@SYS_LANG</option>';
|
||||||
|
$html .= '<option value="encoding">@@SYS_SKIN</option>';
|
||||||
|
$html .= '</select>';*/
|
||||||
|
$html .= '</td>';
|
||||||
|
$html .= '</tr>';
|
||||||
|
$html .= '</table>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
$html .= '<br>';
|
||||||
|
$html .= '<div id="desc_variables">';
|
||||||
|
$html .= '<table border="1" width="90%" align="center">';
|
||||||
|
$html .= '<tr width="40%">';
|
||||||
|
$html .= '<td>Result</td>';
|
||||||
|
$html .= '<td>@#SYS_LANG</td>';
|
||||||
|
$html .= '</tr>';
|
||||||
|
$html .= '<tr width="60%">';
|
||||||
|
$html .= '<td>Description</td>';
|
||||||
|
$html .= '<td>Description @#SYS_LANG</td>';
|
||||||
|
$html .= '</tr>';
|
||||||
|
$html .= '</table>';
|
||||||
|
$html .= '</div>';
|
||||||
|
$html .= '<br>';
|
||||||
|
$html .= '<div id="desc_variables">';
|
||||||
|
$html .= '<table width="90%" align="center">';
|
||||||
|
$html .= '<tr><td>';
|
||||||
|
$html .= '<label for="desc_prefix">' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '</label>';
|
||||||
|
$html .= '</td></tr>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
|
$html .= '</form>';
|
||||||
|
|
||||||
|
echo $html;
|
||||||
|
/*
|
||||||
|
$alll = '<script type="text/javascript" language="javascript">';
|
||||||
|
$alll .= 'function Seleccionar(combo){';
|
||||||
|
$alll .= 'alert(combo.value);';
|
||||||
|
$alll .= '}';
|
||||||
|
$alll .= '</script>';
|
||||||
|
|
||||||
|
echo $alll;
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//echo var_dump($aFields);
|
||||||
|
/*
|
||||||
$sHTML = '<select name="_Var_Form_" id="_Var_Form_" size="' . count( $aFields ) . '" style="width:100%;' . (! isset( $_POST['sNoShowLeyend'] ) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
$sHTML = '<select name="_Var_Form_" id="_Var_Form_" size="' . count( $aFields ) . '" style="width:100%;' . (! isset( $_POST['sNoShowLeyend'] ) ? 'height:50%;' : '') . '" ondblclick="insertFormVar(\'' . $_POST['sFieldName'] . '\', this.value);">';
|
||||||
foreach ($aFields as $aField) {
|
foreach ($aFields as $aField) {
|
||||||
$sHTML .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
$sHTML .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
||||||
@@ -45,11 +170,11 @@ if (! isset( $_POST['sNoShowLeyend'] )) {
|
|||||||
if (isset( $_POST['sType'] )) {
|
if (isset( $_POST['sType'] )) {
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_ESC' ) . '</td></tr>';
|
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_ESC' ) . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_NONEC' ) . '</td></tr>';
|
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_NONEC' ) . '</td></tr>';
|
||||||
/*$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EURL') . '</td></tr>';
|
//$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EURL') . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EVAL') . '</td></tr>';
|
//$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_EVAL') . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCJS') . '</td></tr>';
|
//$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCJS') . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCSJS') . '</td></tr>';
|
//$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_ESCSJS') . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_FUNCTION') . '</td></tr>';*/
|
//$sHTML .= '<tr><td class="module_app_input___gray">' . G::LoadTranslation('ID_FUNCTION') . '</td></tr>';
|
||||||
} else {
|
} else {
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@@</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_STRING' ) . '</td></tr>';
|
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@@</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_STRING' ) . '</td></tr>';
|
||||||
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@#</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '</td></tr>';
|
$sHTML .= '<tr><td class="module_app_input___gray" width="5%">@#</td><td class="module_app_input___gray">' . G::LoadTranslation( 'ID_TO_FLOAT' ) . '</td></tr>';
|
||||||
@@ -70,48 +195,48 @@ $sStyle = " <style type=\"text/css\">
|
|||||||
|
|
||||||
.pm__dynavars a#dynalink{color:#000000;}
|
.pm__dynavars a#dynalink{color:#000000;}
|
||||||
|
|
||||||
/* begin css tabs */
|
// begin css tabs
|
||||||
ul#tabnav { /* general settings */
|
ul#tabnav { // general settings
|
||||||
text-align: left; /* set to left, right or center */
|
text-align: left; // set to left, right or center
|
||||||
margin: 1em 0 1em 0; /* set margins as desired */
|
margin: 1em 0 1em 0; // set margins as desired
|
||||||
font: bold 11px verdana, arial, sans-serif; /* set font as desired */
|
font: bold 11px verdana, arial, sans-serif; // set font as desired
|
||||||
border-bottom: 1px solid #ccc; /* set border COLOR as desired */
|
border-bottom: 1px solid #ccc; // set border COLOR as desired
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 3px 10px 3px 10px; /* THIRD number must change with respect to padding-top (X) below */
|
padding: 3px 10px 3px 10px; // THIRD number must change with respect to padding-top (X) below
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#tabnav li { /* do not change */
|
ul#tabnav li { // do not change
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#all li.all, div#system li.system, div#process li.process, div#tab4 li.tab4 { /* settings for selected tab */
|
div#all li.all, div#system li.system, div#process li.process, div#tab4 li.tab4 { // settings for selected tab
|
||||||
border-bottom: 1px solid #fff; /* set border color to page background color */
|
border-bottom: 1px solid #fff; // set border color to page background color
|
||||||
background-color: #fff; /* set background color to match above border color */
|
background-color: #fff; // set background color to match above border color
|
||||||
}
|
}
|
||||||
|
|
||||||
div#all li.all a, div#system li.system a, div#process li.process a, div#tab4 li.tab4 a { /* settings for selected tab link */
|
div#all li.all a, div#system li.system a, div#process li.process a, div#tab4 li.tab4 a { // settings for selected tab link
|
||||||
background-color: #fff; /* set selected tab background color as desired */
|
background-color: #fff; // set selected tab background color as desired
|
||||||
color: #000; /* set selected tab link color as desired */
|
color: #000; // set selected tab link color as desired
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
padding-top: 4px; /* must change with respect to padding (X) above and below */
|
padding-top: 4px; // must change with respect to padding (X) above and below
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#tabnav li a { /* settings for all tab links */
|
ul#tabnav li a { // settings for all tab links
|
||||||
padding: 3px 4px; /* set padding (tab size) as desired; FIRST number must change with respect to padding-top (X) above */
|
padding: 3px 4px; // set padding (tab size) as desired; FIRST number must change with respect to padding-top (X) above
|
||||||
border: 1px solid #aaa; /* set border COLOR as desired; usually matches border color specified in #tabnav */
|
border: 1px solid #aaa; // set border COLOR as desired; usually matches border color specified in #tabnav
|
||||||
background-color: #ccc; /* set unselected tab background color as desired */
|
background-color: #ccc; // set unselected tab background color as desired
|
||||||
color: #666; /* set unselected tab link color as desired */
|
color: #666; // set unselected tab link color as desired
|
||||||
margin-right: 10px; /* set additional spacing between tabs as desired */
|
margin-right: 10px; // set additional spacing between tabs as desired
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#tabnav a:hover { /* settings for hover effect */
|
ul#tabnav a:hover { // settings for hover effect
|
||||||
background: #fff; /* set desired hover color */
|
background: #fff; // set desired hover color
|
||||||
}
|
}
|
||||||
|
|
||||||
/* end css tabs */
|
// end css tabs
|
||||||
|
|
||||||
</style>";
|
</style>";
|
||||||
$cssTabs = "<div id=\"all\">
|
$cssTabs = "<div id=\"all\">
|
||||||
@@ -129,11 +254,11 @@ echo $sStyle;
|
|||||||
|
|
||||||
|
|
||||||
echo "<div id=\"processVariablesContent\">";
|
echo "<div id=\"processVariablesContent\">";
|
||||||
echo $cssTabs;
|
//echo $cssTabs;
|
||||||
G::LoadClass( 'ArrayPeer' );
|
G::LoadClass( 'ArrayPeer' );
|
||||||
|
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
$_DBArray['dynavars'] = $aRows;
|
//$_DBArray['dynavars'] = $aRows;
|
||||||
$_SESSION['_DBArray'] = $_DBArray;
|
$_SESSION['_DBArray'] = $_DBArray;
|
||||||
|
|
||||||
G::LoadClass( 'ArrayPeer' );
|
G::LoadClass( 'ArrayPeer' );
|
||||||
@@ -150,3 +275,4 @@ G::RenderPage( 'publish', 'raw' );
|
|||||||
|
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
|
||||||
|
*/
|
||||||
@@ -11,12 +11,8 @@
|
|||||||
<en>Variable</en>
|
<en>Variable</en>
|
||||||
</variable_label>
|
</variable_label>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<label type="text" colWidth="350" titleAlign="left" align="left">
|
<label type="text" colWidth="350" titleAlign="left" align="left">
|
||||||
<en>Label</en>
|
<en>Label</en>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</dynaForm>
|
</dynaForm>
|
||||||
@@ -36,7 +36,8 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
|||||||
_oVarsPanel_ = new leimnud.module.panel();
|
_oVarsPanel_ = new leimnud.module.panel();
|
||||||
_oVarsPanel_.options = {
|
_oVarsPanel_.options = {
|
||||||
limit : true,
|
limit : true,
|
||||||
size : {w:550,h:645},
|
//size : {w:550,h:645},
|
||||||
|
size : {w:600,h:340},
|
||||||
position : {x:0,y:0,center:true},
|
position : {x:0,y:0,center:true},
|
||||||
title : '',
|
title : '',
|
||||||
theme : 'processmaker',
|
theme : 'processmaker',
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
|||||||
_oVarsPanel_ = new leimnud.module.panel();
|
_oVarsPanel_ = new leimnud.module.panel();
|
||||||
_oVarsPanel_.options = {
|
_oVarsPanel_.options = {
|
||||||
limit : true,
|
limit : true,
|
||||||
size : {w:550,h:645},
|
//size : {w:550,h:645},
|
||||||
|
size : {w:600,h:340},
|
||||||
position : {x:0,y:0,center:true},
|
position : {x:0,y:0,center:true},
|
||||||
title : '',
|
title : '',
|
||||||
theme : 'processmaker',
|
theme : 'processmaker',
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
|||||||
_oVarsPanel_ = new leimnud.module.panel();
|
_oVarsPanel_ = new leimnud.module.panel();
|
||||||
_oVarsPanel_.options = {
|
_oVarsPanel_.options = {
|
||||||
limit : true,
|
limit : true,
|
||||||
size : {w:550,h:645},
|
//size : {w:550,h:645},
|
||||||
|
size : {w:600,h:340},
|
||||||
position : {x:0,y:0,center:true},
|
position : {x:0,y:0,center:true},
|
||||||
title : '',
|
title : '',
|
||||||
theme : 'processmaker',
|
theme : 'processmaker',
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
|||||||
_oVarsPanel_ = new leimnud.module.panel();
|
_oVarsPanel_ = new leimnud.module.panel();
|
||||||
_oVarsPanel_.options = {
|
_oVarsPanel_.options = {
|
||||||
limit : true,
|
limit : true,
|
||||||
size : {w:550,h:675},
|
size : {w:600,h:340},
|
||||||
position : {x:0,y:0,center:true},
|
position : {x:0,y:0,center:true},
|
||||||
title : '',
|
title : '',
|
||||||
theme : 'processmaker',
|
theme : 'processmaker',
|
||||||
|
|||||||
Reference in New Issue
Block a user