$list = $this->availableCodes($ltype);
-
+ //print_r($list);
foreach($list as $lkey) {
// skip ones we know we have done...
if (in_array($lkey, $complete)) {
if ( $q['query']['not_in_directory'] > -1) {
$tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName();
// can list current - so that it does not break!!!
- $x->whereAdd("$tn_p.id NOT IN
+ $this->whereAdd("$tn_p.id NOT IN
( SELECT distinct person_id FROM $tn_pd WHERE
project_id = " . $q['query']['not_in_directory'] . " AND
company_id = " . $this->company_id . ')');
}
}
+
+ if (!empty($q['query']['role'])) {
+ // it's a Person list..
+ // DB_DATaobjecT::debugLevel(1);
+
+ // specific to project directory which is single comp. login
+ //
+ $tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName();
+ // can list current - so that it does not break!!!
+ $this->whereAdd("$tn_p.id IN
+ ( SELECT distinct person_id FROM $tn_pd WHERE
+ role = '". $this->escape($q['query']['role']) ."'
+ )");
+
+ }
if (!empty($q['query']['project_member_of'])) {
switch($s) {
case 'Lang':
+
+
$i->ltype = 'l';
$i->applyFilters($_REQUEST, $this->authUser, $this);
- $this->jdata($i->toTransList('l', $lbits[0]));
+ $this->jdata($i->toTransList('l', implode('_',$lbits)));
break;
case 'Country':
$i->ltype = 'c';
$i->applyFilters($_REQUEST, $this->authUser, $this);
- $this->jdata($i->toTransList('c', $lbits[0]));
+ $this->jdata($i->toTransList('c', implode('_',$lbits)));
break;
case 'Currency':
$i->ltype = 'm';
$i->applyFilters($_REQUEST, $this->authUser, $this);
- $this->jdata($i->toTransList('m', $lbits[0]));
+ $this->jdata($i->toTransList('m', implode('_',$lbits)));
break;
case 'Timezone':
// or the compressed version.
// first expand files..
+ echo "<!-- compiling $basedir -->\n";
+
$arfiles = array();
$ofiles = array();
foreach($files as $f) {
echo '<script type="text/javascript" src="'.$output_url.'/'.$f.'"></script>'."\n";
}
-
-
+
}
+
function packCss($basedir, $files, $output_url)
{
// this outputs <script tags..>
return false;
}
- $targetm = file_exists($output) ? filemtime($output) : 0;
+ $targetm = file_exists($output) && filesize($output) ? filemtime($output) : 0;
$max = 0;
$ofiles = array();
foreach($files as $f => $mt) {
$max = max($max,$mt);
$ofiles[] = escapeshellarg($f);
}
- if ($max < $targetm) {
+ if ($max < $targetm) {
+ echo '<!-- use cached compile. -->';
return true;
}
//var_dump($output);
//exit;
file_put_contents($output.'.log', $cmd."\n\n". $res);
// since this only appears when we change.. it's ok to dump it out..
- echo "<!-- Compiled javascript
+ echo "<!-- Compiled javascript
" . htmlspecialchars($res) . "
-->";
},
{
"listeners": {
- "|click": "function()\n{\n _this.grid.stopEditing();\n var s = _this.grid.selModel.getSelectedCell()\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select row\");\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/core_notify_recur',\n method : 'POST',\n params : {\n _delete : _this.grid.ds.getAt(s[0]).data.id,\n }, \n success : function() {\n _this.grid.ds.load({});\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"Deleting failed - try reloading\");\n }\n });\n \n}\n "
+ "|click": "function()\n{\n _this.grid.stopEditing();\n var s = _this.grid.selModel.getSelectedCell();\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select row\");\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/core_notify_recur',\n method : 'POST',\n params : {\n _delete : _this.grid.ds.getAt(s[0]).data.id\n }, \n success : function() {\n _this.grid.ds.load({});\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"Deleting failed - try reloading\");\n }\n });\n \n}\n "
},
"cls": "x-btn-text-icon",
"text": "Delete",
click : function()
{
_this.grid.stopEditing();
- var s = _this.grid.selModel.getSelectedCell()
+ var s = _this.grid.selModel.getSelectedCell();
if (!s) {
Roo.MessageBox.alert("Error", "Select row");
return;
url : baseURL + '/Roo/core_notify_recur',
method : 'POST',
params : {
- _delete : _this.grid.ds.getAt(s[0]).data.id,
+ _delete : _this.grid.ds.getAt(s[0]).data.id
},
success : function() {
_this.grid.ds.load({});