19 var bulkFormTableContent = (
function(){
21 function updateTable(){
23 var uploadTreeId = $(
'#uploadTreeId').val();
24 for (i = 0; i < content.length; ++i) {
25 s +=
"<tr class=\"" + ((i % 2 == 1) ?
"even" :
"odd") +
"\">" 26 +
"<td align=\"center\">" + content[i].action +
"</td>" 27 +
"<td>" + content[i].licenseName +
"</td>" 28 +
"<td><a href=\"javascript:;\" style=\"color:#000000;\" id='" + content[i].licenseId +
"reportinfoBulk'" 29 +
"onclick=\"openTextModel("+ uploadTreeId +
", " + content[i].licenseId +
", 'reportinfo', 'Bulk');\" title=''>Click to add</a></td>" 30 +
"<td><a href=\"javascript:;\" style=\"color:#000000;\" id='" + content[i].licenseId +
"acknowledgementBulk'" 31 +
"onclick=\"openTextModel("+ uploadTreeId +
", " + content[i].licenseId +
", 'acknowledgement', 'Bulk');\" title=''>Click to add</a></td>" 32 +
"<td><a href=\"javascript:;\" style=\"color:#000000;\" id='" + content[i].licenseId +
"commentBulk'" 33 +
"onclick=\"openTextModel("+ uploadTreeId +
", " + content[i].licenseId +
", 'comment', 'Bulk');\" title=''>Click to add</a></td>" 34 +
"<td><a href='#' onclick='bulkFormTableContent[2](" + content[i].licenseId +
")'>" 35 +
"<img src=\"images/icons/remove_16.png\" title=\"remove selected license row\" alt=\"-\"/></a></td>" 38 $(
'#bulkFormTable tbody').html(s);
40 function maybeRemoveOldEntry(lic){
41 for (i = 0; i < content.length; ++i) {
42 if (content[i].licenseId === lic){
48 function removeOldEntry(lic){
49 maybeRemoveOldEntry(lic);
52 function addLicense(){
53 var lic = parseInt($(
'#bulkLicense').val(), 10)
55 maybeRemoveOldEntry(lic);
58 licenseName: $(
'#bulkLicense option:selected').text(),
65 var lic = parseInt($(
'#bulkLicense').val(), 10)
67 maybeRemoveOldEntry(lic);
70 licenseName: $(
'#bulkLicense option:selected').text(),
76 function getContent(){
79 return [addLicense,rmLicense,removeOldEntry,getContent];
82 $(
'#bulkFormAddLicense').click(
function(){ bulkFormTableContent[0](); });
83 $(
'#bulkFormRmLicense').click(
function(){ bulkFormTableContent[1](); });
85 function getBulkFormTableContent(){
return bulkFormTableContent[3](); }
int s
The socket that the CLI will use to communicate.
if(!preg_match("/\s$projectGroup\s/", $groups)&&(posix_getgid()!=$gInfo['gid']))
get monk license list of one specified uploadtree_id