");
+ // set the id.
+ // use carefull only to change here colproperties.
+ if(onBeforeInit) { onBeforeInit($("#"+frmgr)); }
+ var valref = createData(rowid,$t,tbl);
+ // buttons at footer
+ var imp = $t.p.imgpath;
+ var bP ="";
+ var bN ="";
+ var bS ="";
+ var bC ="";
+ $(tbl).append("
"+bP+" "+bN+"
"+bS+" "+bC+"
");
+ // beforeinitdata after creation of the form
+ createModal(IDs,frm,p,$t.grid.hDiv,$t.grid.hDiv);
+ // here initform - only once
+ if(onInitializeForm) { onInitializeForm($("#"+frmgr)); }
+ if( p.drag ) { DnRModal("#"+IDs.themodal,"#"+IDs.modalhead+" td.modaltext"); }
+ if(rowid=="_empty") { $("#pData,#nData","#"+frmtb).hide(); } else { $("#pData,#nData","#"+frmtb).show(); }
+ if(onBeforeShow) { onBeforeShow($("#"+frmgr)); }
+ viewModal("#"+IDs.themodal,{modal:p.modal});
+ if(onAfterShow) { onAfterShow($("#"+frmgr)); }
+ $("#sData", "#"+frmtb).click(function(e){
+ var postdata = {}, ret=[true,"",""], extpost={};
+ $("#FormError","#"+frmtb).hide();
+ // all depend on ret array
+ //ret[0] - succes
+ //ret[1] - msg if not succes
+ //ret[2] - the id that will be set if reload after submit false
+ var j =0;
+ $(".FormElement", "#"+frmtb).each(function(i){
+ var suc = true;
+ switch ($(this).get(0).type) {
+ case "checkbox":
+ if($(this).attr("checked")) {
+ postdata[this.name]= $(this).val();
+ }else {
+ postdata[this.name]= "";
+ extpost[this.name] = $(this).attr("offval");
+ }
+ break;
+ case "select-one":
+ postdata[this.name]= $("option:selected",this).val();
+ extpost[this.name]= $("option:selected",this).text();
+ break;
+ case "select-multiple":
+ postdata[this.name]= $(this).val();
+ var selectedText = [];
+ $("option:selected",this).each(
+ function(i,selected){
+ selectedText[i] = $(selected).text();
+ }
+ );
+ extpost[this.name]= selectedText.join(",");
+ break;
+ case "password":
+ case "text":
+ case "textarea":
+ postdata[this.name] = $(this).val();
+ ret = checkValues($(this).val(),valref[i],$t);
+ if(ret[0] === false) { suc=false; }
+ break;
+ }
+ j++;
+ if(!suc) { return false; }
+ });
+ if(j==0) { ret[0] = false; ret[1] = $.jgrid.errors.norecords; }
+ if( $.isFunction( rp_ge.onclickSubmit)) { rp_ge.editData = rp_ge.onclickSubmit(p) || {}; }
+ if(ret[0]) {
+ if( $.isFunction(rp_ge.beforeSubmit)) { ret = rp_ge.beforeSubmit(postdata,$("#"+frmgr)); }
+ }
+ var gurl = rp_ge.url ? rp_ge.url : $t.p.editurl;
+ if(ret[0]) {
+ if(!gurl) { ret[0]=false; ret[1] += " "+$.jgrid.errors.nourl; }
+ }
+ if(ret[0] === false) {
+ $("#FormError>td","#"+frmtb).html(ret[1]);
+ $("#FormError","#"+frmtb).show();
+ } else {
+ if(!p.processing) {
+ p.processing = true;
+ $("div.loading","#"+IDs.themodal).fadeIn("fast");
+ $(this).attr("disabled",true);
+ // we add to pos data array the action - the name is oper
+ postdata.oper = postdata.id == "_empty" ? "add" : "edit";
+ postdata = $.extend(postdata,rp_ge.editData);
+ $.ajax({
+ url:gurl,
+ type: rp_ge.mtype,
+ data:postdata,
+ complete:function(data,Status){
+ if(Status != "success") {
+ ret[0] = false;
+ ret[1] = Status+" Status: "+data.statusText +" Error code: "+data.status;
+ } else {
+ // data is posted successful
+ // execute aftersubmit with the returned data from server
+ if( $.isFunction(rp_ge.afterSubmit) ) {
+ ret = rp_ge.afterSubmit(data,postdata);
+ }
+ }
+ if(ret[0] === false) {
+ $("#FormError>td","#"+frmtb).html(ret[1]);
+ $("#FormError","#"+frmtb).show();
+ } else {
+ postdata = $.extend(postdata,extpost);
+ // the action is add
+ if(postdata.id=="_empty" ) {
+ //id processing
+ // user not set the id ret[2]
+ if(!ret[2]) { ret[2] = parseInt($($t).getGridParam('records'))+1; }
+ postdata.id = ret[2];
+ if(rp_ge.closeAfterAdd) {
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
+ else {
+ $($t).addRowData(ret[2],postdata,p.addedrow);
+ $($t).setSelection(ret[2]);
+ }
+ hideModal("#"+IDs.themodal);
+ } else if (rp_ge.clearAfterAdd) {
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
+ else { $($t).addRowData(ret[2],postdata,p.addedrow); }
+ $(".FormElement", "#"+frmtb).each(function(i){
+ switch ($(this).get(0).type) {
+ case "checkbox":
+ $(this).attr("checked",0);
+ break;
+ case "select-one":
+ case "select-multiple":
+ $("option",this).attr("selected","");
+ break;
+ case "password":
+ case "text":
+ case "textarea":
+ if(this.name =='id') { $(this).val("_empty"); }
+ else { $(this).val(""); }
+ break;
+ }
+ });
+ } else {
+ if(rp_ge.reloadAfterSubmit) { $($t).trigger("reloadGrid"); }
+ else { $($t).addRowData(ret[2],postdata,p.addedrow); }
+ }
+ } else {
+ // the action is update
+ if(rp_ge.reloadAfterSubmit) {
+ $($t).trigger("reloadGrid");
+ if( !rp_ge.closeAfterEdit ) { $($t).setSelection(postdata.id); }
+ } else {
+ if($t.p.treeGrid === true) {
+ $($t).setTreeRow(postdata.id,postdata);
+ } else {
+ $($t).setRowData(postdata.id,postdata);
+ }
+ }
+ if(rp_ge.closeAfterEdit) { hideModal("#"+IDs.themodal); }
+ }
+ if($.isFunction(rp_ge.afterComplete)) {
+ setTimeout(function(){rp_ge.afterComplete(data,postdata,$("#"+frmgr));},500);
+ }
+ }
+ p.processing=false;
+ $("#sData", "#"+frmtb).attr("disabled",false);
+ $("div.loading","#"+IDs.themodal).fadeOut("fast");
+ }
+ });
+ }
+ }
+ e.stopPropagation();
+ });
+ $("#cData", "#"+frmtb).click(function(e){
+ hideModal("#"+IDs.themodal);
+ e.stopPropagation();
+ });
+ $("#nData", "#"+frmtb).click(function(e){
+ $("#FormError","#"+frmtb).hide();
+ var npos = getCurrPos();
+ npos[0] = parseInt(npos[0]);
+ if(npos[0] != -1 && npos[1][npos[0]+1]) {
+ if($.isFunction(p.onclickPgButtons)) {
+ p.onclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]]);
+ }
+ fillData(npos[1][npos[0]+1],$t);
+ $($t).setSelection(npos[1][npos[0]+1]);
+ if($.isFunction(p.afterclickPgButtons)) {
+ p.afterclickPgButtons('next',$("#"+frmgr),npos[1][npos[0]+1]);
+ }
+ updateNav(npos[0]+1,npos[1].length-1);
+ };
+ return false;
+ });
+ $("#pData", "#"+frmtb).click(function(e){
+ $("#FormError","#"+frmtb).hide();
+ var ppos = getCurrPos();
+ if(ppos[0] != -1 && ppos[1][ppos[0]-1]) {
+ if($.isFunction(p.onclickPgButtons)) {
+ p.onclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]]);
+ }
+ fillData(ppos[1][ppos[0]-1],$t);
+ $($t).setSelection(ppos[1][ppos[0]-1]);
+ if($.isFunction(p.afterclickPgButtons)) {
+ p.afterclickPgButtons('prev',$("#"+frmgr),ppos[1][ppos[0]-1]);
+ }
+ updateNav(ppos[0]-1,ppos[1].length-1);
+ };
+ return false;
+ });
+ };
+ var posInit =getCurrPos();
+ updateNav(posInit[0],posInit[1].length-1);
+ function updateNav(cr,totr,rid){
+ var imp = $t.p.imgpath;
+ if (cr==0) { $("#pData","#"+frmtb).attr("src",imp+"off-"+$t.p.previmg); } else { $("#pData","#"+frmtb).attr("src",imp+$t.p.previmg); }
+ if (cr==totr) { $("#nData","#"+frmtb).attr("src",imp+"off-"+$t.p.nextimg); } else { $("#nData","#"+frmtb).attr("src",imp+$t.p.nextimg); }
+ };
+ function getCurrPos() {
+ var rowsInGrid = $($t).getDataIDs();
+ var selrow = $("#id_g","#"+frmtb).val();
+ var pos = $.inArray(selrow,rowsInGrid);
+ return [pos,rowsInGrid];
+ };
+ function createData(rowid,obj,tb){
+ var nm, hc,trdata, tdl, tde, cnt=0,tmp, dc,elc, retpos=[];
+ $('#'+rowid+' td',obj.grid.bDiv).each( function(i) {
+ nm = obj.p.colModel[i].name;
+ // hidden fields are included in the form
+ if(obj.p.colModel[i].editrules && obj.p.colModel[i].editrules.edithidden == true) {
+ hc = false;
+ } else {
+ hc = obj.p.colModel[i].hidden === true ? true : false;
+ }
+ dc = hc ? "style='display:none'" : "";
+ if ( nm !== 'cb' && nm !== 'subgrid' && obj.p.colModel[i].editable===true) {
+ if(nm == obj.p.ExpandColumn && obj.p.treeGrid === true) {
+ tmp = $(this).text();
+ } else {
+ tmp = $(this).html();
+ }
+ var opt = $.extend(obj.p.colModel[i].editoptions || {} ,{id:nm,name:nm});
+ if(!obj.p.colModel[i].edittype) obj.p.colModel[i].edittype = "text";
+ elc = createEl(obj.p.colModel[i].edittype,opt,tmp);
+ $(elc).addClass("FormElement");
+ trdata = $("
" );
+ $(".tablediv",ts).css("width", ts.grid.width-20+"px");
+ if( typeof ts.p.subGridRowExpanded === 'function') {
+ ts.p.subGridRowExpanded(pID+"_"+ _id,_id);
+ } else {
+ populatesubgrid(res);
+ }
+ $(this).html("");
+ }, function(e) {
+ if( typeof ts.p.subGridRowColapsed === 'function') {
+ res = $(this).parent();
+ _id = $(res).attr("id");
+ ts.p.subGridRowColapsed(pID+"_"+_id,_id );
+ };
+ $(this).parent().next().remove(".subgrid");
+ $(this).html("");
+ });
+ row.appendChild(td);
+ //-------------------------
+ var populatesubgrid = function( rd ) {
+ var res,sid,dp;
+ sid = $(rd).attr("id");
+ dp = {id:sid};
+ if(!ts.p.subGridModel[0]) { return false; }
+ if(ts.p.subGridModel[0].params) {
+ for(var j=0; j < ts.p.subGridModel[0].params.length; j++) {
+ for(var i=0; i"+sgmap.row, sjxml).each( function(){
+ trdiv = document.createElement("div");
+ trdiv.className="rowdiv";
+ if(sgmap.repeatitems === true) {
+ $(sgmap.cell,this).each( function(i) {
+ subGridCell(trdiv, this.textContent || this.text || ' ',i);
+ });
+ } else {
+ var f = ts.p.subGridModel[0].mapping;
+ if (f) {
+ for (i=0;i
+ If the first column of the table contains checkboxes or
+ radiobuttons then the jqGrid is made selectable.
+*/
+// Addition - selector can be a class or id
+function tableToGrid(selector) {
+$(selector).each(function() {
+ if(this.grid) {return;} //Adedd from Tony Tomov
+ // This is a small "hack" to make the width of the jqGrid 100%
+ $(this).width("99%");
+ var w = $(this).width();
+
+ // Text whether we have single or multi select
+ var inputCheckbox = $('input[type=checkbox]:first', $(this));
+ var inputRadio = $('input[type=radio]:first', $(this));
+ var selectMultiple = inputCheckbox.length > 0;
+ var selectSingle = !selectMultiple && inputRadio.length > 0;
+ var selectable = selectMultiple || selectSingle;
+ var inputName = inputCheckbox.attr("name") || inputRadio.attr("name");
+
+ // Build up the columnModel and the data
+ var colModel = [];
+ var colNames = [];
+ $('th', $(this)).each(function() {
+ if (colModel.length == 0 && selectable) {
+ colModel.push({
+ name: '__selection__',
+ index: '__selection__',
+ width: 0,
+ hidden: true
+ });
+ colNames.push('__selection__');
+ } else {
+ colModel.push({
+ name: $(this).html(),
+ index: $(this).html(),
+ width: $(this).width() || 150
+ });
+ colNames.push($(this).html());
+ }
+ });
+ var data = [];
+ var rowIds = [];
+ var rowChecked = [];
+ $('tbody > tr', $(this)).each(function() {
+ var row = {};
+ var rowPos = 0;
+ data.push(row);
+ $('td', $(this)).each(function() {
+ if (rowPos == 0 && selectable) {
+ var input = $('input', $(this));
+ var rowId = input.attr("value");
+ rowIds.push(rowId || data.length);
+ if (input.attr("checked")) {
+ rowChecked.push(rowId);
+ }
+ row[colModel[rowPos].name] = input.attr("value");
+ } else {
+ row[colModel[rowPos].name] = $(this).html();
+ }
+ rowPos++;
+ });
+ });
+
+ // Clear the original HTML table
+ $(this).empty();
+
+ // Mark it as jqGrid
+ $(this).addClass("scroll");
+
+ $(this).jqGrid({
+ datatype: "local",
+ width: w,
+ colNames: colNames,
+ colModel: colModel,
+ multiselect: selectMultiple
+ //inputName: inputName,
+ //inputValueCol: imputName != null ? "__selection__" : null
+ });
+
+ // Add data
+ for (var a = 0; a < data.length; a++) {
+ var id = null;
+ if (rowIds.length > 0) {
+ id = rowIds[a];
+ if (id && id.replace) {
+ // We have to do this since the value of a checkbox
+ // or radio button can be anything
+ id = encodeURIComponent(id).replace(/[.\-%]/g, "_");
+ }
+ }
+ if (id == null) {
+ id = a + 1;
+ }
+ $(this).addRowData(id, data[a]);
+ }
+
+ // Set the selection
+ for (var a = 0; a < rowChecked.length; a++) {
+ $(this).setSelection(rowChecked[a]);
+ }
+});
+};
Index: lams_central/web/includes/javascript/jqgrid/js/grid.treegrid.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/Attic/grid.treegrid.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/grid.treegrid.js 17 Mar 2009 01:07:27 -0000 1.1
@@ -0,0 +1,322 @@
+;(function($) {
+/*
+**
+ * jqGrid extension - Tree Grid
+ * Tony Tomov tony@trirand.com
+ * http://trirand.com/blog/
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+$.fn.extend({
+ setTreeNode : function(rd, row){
+ return this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ var expCol=0,i=0;
+ if(!$t.p.expColInd) {
+ for (var key in $t.p.colModel){
+ if($t.p.colModel[key].name == $t.p.ExpandColumn) {
+ expCol = i;
+ $t.p.expColInd = expCol;
+ break;
+ }
+ i++;
+ }
+ if(!$t.p.expColInd ) {$t.p.expColInd = expCol;}
+ } else {
+ expCol = $t.p.expColInd;
+ }
+ var level = $t.p.treeReader.level_field;
+ var expanded = $t.p.treeReader.expanded_field;
+ var isLeaf = $t.p.treeReader.leaf_field;
+ row.lft = rd[$t.p.treeReader.left_field];
+ row.rgt = rd[$t.p.treeReader.right_field];
+ row.level = rd[level];
+ if(!rd[isLeaf]) {
+ // NS Model
+ rd[isLeaf] = (parseInt(row.rgt,10) === parseInt(row.lft,10)+1) ? 'true' : 'false';
+ }
+ var curExpand = (rd[expanded] && rd[expanded] == "true") ? true : false;
+ var curLevel = parseInt(row.level,10);
+ var ident,lftpos;
+ if($t.p.tree_root_level === 0) {
+ ident = curLevel+1;
+ lftpos = curLevel;
+ } else {
+ ident = curLevel;
+ lftpos = curLevel -1;
+ }
+ var twrap = document.createElement("div");
+ $(twrap).addClass("tree-wrap").width(ident*18);
+ var treeimg = document.createElement("div");
+ $(treeimg).css("left",lftpos*18);
+ twrap.appendChild(treeimg);
+
+ if(rd[isLeaf] == "true") {
+ $(treeimg).addClass("tree-leaf");
+ row.isLeaf = true;
+ } else {
+ if(rd[expanded] == "true") {
+ $(treeimg).addClass("tree-minus treeclick");
+ row.expanded = true;
+ } else {
+ $(treeimg).addClass("tree-plus treeclick");
+ row.expanded = false;
+ }
+ }
+ if(parseInt(rd[level],10) !== parseInt($t.p.tree_root_level,10)) {
+ if(!$($t).isVisibleNode(row)){
+ $(row).css("display","none");
+ }
+ }
+ var mhtm = $("td:eq("+expCol+")",row).html();
+ var thecell = $("td:eq("+expCol+")",row).html(""+mhtm+"").prepend(twrap);
+ $(".treeclick",thecell).click(function(e){
+ var target = e.target || e.srcElement;
+ var ind =$(target,$t.rows).parents("tr:first")[0].rowIndex;
+ if(!$t.rows[ind].isLeaf){
+ if($t.rows[ind].expanded){
+ $($t).collapseRow($t.rows[ind]);
+ $($t).collapseNode($t.rows[ind]);
+ } else {
+ $($t).expandRow($t.rows[ind]);
+ $($t).expandNode($t.rows[ind]);
+ }
+ }
+ e.stopPropagation();
+ });
+ });
+ },
+ expandRow: function (record){
+ this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ var childern = $($t).getNodeChildren(record);
+ //if ($($t).isVisibleNode(record)) {
+ $(childern).each(function(i){
+ $(this).css("display","");
+ if(this.expanded) {
+ $($t).expandRow(this);
+ }
+ });
+ //}
+ });
+ },
+ collapseRow : function (record) {
+ this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ var childern = $($t).getNodeChildren(record);
+ $(childern).each(function(i){
+ $(this).css("display","none");
+ $($t).collapseRow(this);
+ });
+ });
+ },
+ // NS model
+ getRootNodes : function() {
+ var result = [];
+ this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ $($t.rows).each(function(i){
+ if(parseInt(this.level,10) === parseInt($t.p.tree_root_level,10)) {
+ result.push(this);
+ }
+ });
+ });
+ return result;
+ },
+ getNodeDepth : function(rc) {
+ var ret = null;
+ this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ ret = parseInt(rc.level,10) - parseInt(this.p.tree_root_level,10);
+ });
+ return ret;
+ },
+ getNodeParent : function(rc) {
+ var result = null;
+ this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ var lft = parseInt(rc.lft,10), rgt = parseInt(rc.rgt,10), level = parseInt(rc.level,10);
+ $(this.rows).each(function(){
+ if(parseInt(this.level,10) === level-1 && parseInt(this.lft) < lft && parseInt(this.rgt) > rgt) {
+ result = this;
+ return false;
+ }
+ });
+ });
+ return result;
+ },
+ getNodeChildren : function(rc) {
+ var result = [];
+ this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ var lft = parseInt(rc.lft,10), rgt = parseInt(rc.rgt,10), level = parseInt(rc.level,10);
+ var ind = rc.rowIndex;
+ $(this.rows).slice(1).each(function(i){
+ if(parseInt(this.level,10) === level+1 && parseInt(this.lft,10) > lft && parseInt(this.rgt,10) < rgt) {
+ result.push(this);
+ }
+ });
+ });
+ return result;
+ },
+ // End NS Model
+ getNodeAncestors : function(rc) {
+ var ancestors = [];
+ this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ var parent = $(this).getNodeParent(rc);
+ while (parent) {
+ ancestors.push(parent);
+ parent = $(this).getNodeParent(parent);
+ }
+ });
+ return ancestors;
+ },
+ isVisibleNode : function(rc) {
+ var result = true;
+ this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ var ancestors = $($t).getNodeAncestors(rc);
+ $(ancestors).each(function(){
+ result = result && this.expanded;
+ if(!result) {return false;}
+ });
+ });
+ return result;
+ },
+ isNodeLoaded : function(rc) {
+ var result;
+ this.each(function(){
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ if(rc.loaded !== undefined) {
+ result = rc.loaded;
+ } else if( rc.isLeaf || $($t).getNodeChildren(rc).length > 0){
+ result = true;
+ } else {
+ result = false;
+ }
+ });
+ return result;
+ },
+ expandNode : function(rc) {
+ return this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ if(!rc.expanded) {
+ if( $(this).isNodeLoaded(rc) ) {
+ rc.expanded = true;
+ $("div.treeclick",rc).removeClass("tree-plus").addClass("tree-minus");
+ } else {
+ rc.expanded = true;
+ $("div.treeclick",rc).removeClass("tree-plus").addClass("tree-minus");
+ this.p.treeANode = rc.rowIndex;
+ this.p.datatype = this.p.treedatatype;
+ $(this).setGridParam({postData:{nodeid:rc.id,n_left:rc.lft,n_right:rc.rgt,n_level:rc.level}});
+ $(this).trigger("reloadGrid");
+ this.treeANode = 0;
+ $(this).setGridParam({postData:{nodeid:'',n_left:'',n_right:'',n_level:''}})
+ }
+ }
+ });
+ },
+ collapseNode : function(rc) {
+ return this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ if(rc.expanded) {
+ rc.expanded = false;
+ $("div.treeclick",rc).removeClass("tree-minus").addClass("tree-plus");
+ }
+ });
+ },
+ SortTree : function( newDir) {
+ return this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ var i, len,
+ rec, records = [],
+ roots = $(this).getRootNodes();
+ // Sorting roots
+ roots.sort(function(a, b) {
+ if (a.sortKey < b.sortKey) {return -newDir;}
+ if (a.sortKey > b.sortKey) {return newDir;}
+ return 0;
+ });
+ // Sorting children
+ for (i = 0, len = roots.length; i < len; i++) {
+ rec = roots[i];
+ records.push(rec);
+ $(this).collectChildrenSortTree(records, rec, newDir);
+ }
+ var $t = this;
+ $.each(records, function(index, row) {
+ $('tbody',$t.grid.bDiv).append(row);
+ row.sortKey = null;
+ });
+ });
+ },
+ collectChildrenSortTree : function(records, rec, newDir) {
+ return this.each(function(){
+ if(!this.grid || !this.p.treeGrid) { return; }
+ var i, len,
+ child,
+ children = $(this).getNodeChildren(rec);
+ children.sort(function(a, b) {
+ if (a.sortKey < b.sortKey) {return -newDir;}
+ if (a.sortKey > b.sortKey) {return newDir;}
+ return 0;
+ });
+ for (i = 0, len = children.length; i < len; i++) {
+ child = children[i];
+ records.push(child);
+ $(this).collectChildrenSortTree(records, child,newDir);
+ }
+ });
+ },
+ // experimental
+ setTreeRow : function(rowid, data) {
+ var nm, success=false;
+ this.each(function(){
+ var t = this;
+ if(!t.grid || !t.p.treeGrid) { return false; }
+ if( data ) {
+ var ind = $(t).getInd(t.rows,rowid);
+ if(!ind) {return success;}
+ success=true;
+ $(this.p.colModel).each(function(i){
+ nm = this.name;
+ if(data[nm] !== 'undefined') {
+ if(nm == t.p.ExpandColumn && t.p.treeGrid===true) {
+ $("td:eq("+i+") > span:first",t.rows[ind]).html(data[nm]);
+ } else {
+ $("td:eq("+i+")",t.rows[ind]).html(data[nm]);
+ }
+ success = true;
+ }
+ });
+ }
+ });
+ return success;
+ },
+ delTreeNode : function (rowid) {
+ return this.each(function () {
+ var $t = this;
+ if(!$t.grid || !$t.p.treeGrid) { return; }
+ var rc = $($t).getInd($t.rows,rowid,true);
+ if (rc) {
+ var dr = $($t).getNodeChildren(rc);
+ if(dr.length>0){
+ for (var i=0;i, http://www.iceburg.net
+ * Licensed under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * $Version: 2007.08.19 +r2
+ */
+
+(function($){
+$.fn.jqDrag=function(h){return i(this,h,'d');};
+$.fn.jqResize=function(h){return i(this,h,'r');};
+$.jqDnR={
+ dnr:{},
+ e:0,
+ drag:function(v){
+ if(M.k == 'd')E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY});
+ else E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)});
+ return false;
+ },
+ stop:function(){
+ //E.css('opacity',M.o);
+ $().unbind('mousemove',J.drag).unbind('mouseup',J.stop);
+ }
+};
+var J=$.jqDnR,M=J.dnr,E=J.e,
+i=function(e,h,k){
+ return e.each(function(){
+ h=(h)?$(h,e):e;
+ h.bind('mousedown',{e:e,k:k},function(v){
+ var d=v.data,p={};E=d.e;
+ // attempt utilization of dimensions plugin to fix IE issues
+ if(E.css('position') != 'relative'){try{E.position(p);}catch(e){}}
+ M={
+ X:p.left||f('left')||0,
+ Y:p.top||f('top')||0,
+ W:f('width')||E[0].scrollWidth||0,
+ H:f('height')||E[0].scrollHeight||0,
+ pX:v.pageX,
+ pY:v.pageY,
+ k:d.k
+ //o:E.css('opacity')
+ };
+ //E.css({opacity:0.8});
+ $().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);
+ return false;
+ });
+ });
+},
+f=function(k){return parseInt(E.css(k))||false;};
+})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/jqModal.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/Attic/jqModal.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/jqModal.js 17 Mar 2009 01:07:29 -0000 1.1
@@ -0,0 +1,69 @@
+/*
+ * jqModal - Minimalist Modaling with jQuery
+ * (http://dev.iceburg.net/jquery/jqmodal/)
+ *
+ * Copyright (c) 2007,2008 Brice Burgess
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ *
+ * $Version: 07/06/2008 +r13
+ */
+(function($) {
+$.fn.jqm=function(o){
+var p={
+overlay: 50,
+overlayClass: 'jqmOverlay',
+closeClass: 'jqmClose',
+trigger: '.jqModal',
+ajax: F,
+ajaxText: '',
+target: F,
+modal: F,
+toTop: F,
+onShow: F,
+onHide: F,
+onLoad: F
+};
+return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;
+H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};
+if(p.trigger)$(this).jqmAddTrigger(p.trigger);
+});};
+
+$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide');};
+$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');};
+$.fn.jqmShow=function(t){return this.each(function(){$.jqm.open(this._jqm,t);});};
+$.fn.jqmHide=function(t){return this.each(function(){$.jqm.close(this._jqm,t)});};
+
+$.jqm = {
+hash:{},
+open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);
+ if(c.modal) {if(!A[0])L('bind');A.push(s);}
+ else if(c.overlay > 0)h.w.jqmAddClose(o);
+ else o=F;
+
+ h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;
+ if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}}
+
+ if(c.ajax) {var r=c.target||h.w,u=c.ajax,r=(typeof r == 'string')?$(r,h.w):$(r),u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u;
+ r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});}
+ else if(cc)h.w.jqmAddClose($(cc,h.w));
+
+ if(c.toTop&&h.o)h.w.before('').insertAfter(h.o);
+ (c.onShow)?c.onShow(h):h.w.show();e(h);return F;
+},
+close:function(s){var h=H[s];if(!h.a)return F;h.a=F;
+ if(A[0]){A.pop();if(!A[0])L('unbind');}
+ if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();
+ if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return F;
+},
+params:{}};
+var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version == "6.0"),F=false,
+i=$('').css({opacity:0}),
+e=function(h){if(ie6)if(h.o)h.o.html('').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i); f(h);},
+f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(_){}},
+L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},
+m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;},
+hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function() {
+ if(!this[c]){this[c]=[];$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F;});}this[c].push(s);});});};
+})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/jquery.jqGrid.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/Attic/jquery.jqGrid.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/jquery.jqGrid.js 17 Mar 2009 01:07:27 -0000 1.1
@@ -0,0 +1,63 @@
+function jqGridInclude()
+{
+ var pathtojsfiles = "js/"; // need to be ajusted
+ // set include to false if you do not want some modules to be included
+ var combineIntoOne = false;
+ var combinedInclude = new Array();
+ var combinedIncludeURL = "combine.php?type=javascript&files=";
+ var minver = false;
+ var modules = [
+ { include: true, incfile:'grid.locale-en.js',minfile: 'min/grid.locale-en-min.js'}, // jqGrid translation
+/* { include: true, incfile:'grid.pack.js',minfile: ''}, */ // jqGrid all packecd
+ { include: true, incfile:'grid.base.js',minfile: 'min/grid.base-min.js'}, // jqGrid base
+ { include: true, incfile:'grid.common.js',minfile: 'min/grid.common-min.js' }, // jqGrid common for editing
+ { include: true, incfile:'grid.formedit.js',minfile: 'min/grid.formedit-min.js' }, // jqGrid Form editing
+ { include: true, incfile:'grid.inlinedit.js',minfile: 'min/grid.inlinedit-min.js' }, // jqGrid inline editing
+ { include: true, incfile:'grid.celledit.js',minfile: 'min/grid.celledit-min.js' }, // jqGrid cell editing
+ { include: true, incfile:'grid.subgrid.js',minfile: 'min/grid.subgrid-min.js'}, //jqGrid subgrid
+ { include: true, incfile:'grid.treegrid.js',minfile: 'min/grid.treegrid-min.js'}, //jqGrid treegrid
+ { include: true, incfile:'grid.custom.js',minfile: 'min/grid.custom-min.js'}, //jqGrid custom
+ { include: true, incfile:'grid.postext.js',minfile: 'min/grid.postext-min.js'}, //jqGrid postext
+ { include: true, incfile:'grid.tbltogrid.js',minfile: 'min/grid.tbltogrid-min.js'}, //jqGrid table to grid
+ { include: true, incfile:'grid.setcolumns.js',minfile: 'min/grid.setcolumns-min.js'} //jqGrid setcolumns
+ ];
+ var filename;
+ for(var i=0;i0) ) {
+ var fileList = implode(",",combinedInclude);
+ IncludeJavaScript(combinedIncludeURL+fileList);
+ }
+ function implode( glue, pieces ) {
+ // http://kevin.vanzonneveld.net
+ //original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
+ //example 1: implode(' ', ['Kevin', 'van', 'Zonneveld']);
+ //returns 1: 'Kevin van Zonneveld'
+ return ( ( pieces instanceof Array ) ? pieces.join ( glue ) : pieces );
+ };
+
+ function IncludeJavaScript(jsFile)
+ {
+ var oHead = document.getElementsByTagName('head')[0];
+ var oScript = document.createElement('script');
+ oScript.type = 'text/javascript';
+ oScript.src = jsFile;
+ oHead.appendChild(oScript);
+ };
+};
+jqGridInclude();
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/jquery.tablednd.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/Attic/jquery.tablednd.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/jquery.tablednd.js 17 Mar 2009 01:07:26 -0000 1.1
@@ -0,0 +1,383 @@
+/**
+ * TableDnD plug-in for JQuery, allows you to drag and drop table rows
+ * You can set up various options to control how the system will work
+ * Copyright (c) Denis Howlett
+ * Licensed like jQuery, see http://docs.jquery.com/License.
+ *
+ * Configuration options:
+ *
+ * onDragStyle
+ * This is the style that is assigned to the row during drag. There are limitations to the styles that can be
+ * associated with a row (such as you can't assign a border--well you can, but it won't be
+ * displayed). (So instead consider using onDragClass.) The CSS style to apply is specified as
+ * a map (as used in the jQuery css(...) function).
+ * onDropStyle
+ * This is the style that is assigned to the row when it is dropped. As for onDragStyle, there are limitations
+ * to what you can do. Also this replaces the original style, so again consider using onDragClass which
+ * is simply added and then removed on drop.
+ * onDragClass
+ * This class is added for the duration of the drag and then removed when the row is dropped. It is more
+ * flexible than using onDragStyle since it can be inherited by the row cells and other content. The default
+ * is class is tDnD_whileDrag. So to use the default, simply customise this CSS class in your
+ * stylesheet.
+ * onDrop
+ * Pass a function that will be called when the row is dropped. The function takes 2 parameters: the table
+ * and the row that was dropped. You can work out the new order of the rows by using
+ * table.rows.
+ * onDragStart
+ * Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the
+ * table and the row which the user has started to drag.
+ * onAllowDrop
+ * Pass a function that will be called as a row is over another row. If the function returns true, allow
+ * dropping on that row, otherwise not. The function takes 2 parameters: the dragged row and the row under
+ * the cursor. It returns a boolean: true allows the drop, false doesn't allow it.
+ * scrollAmount
+ * This is the number of pixels to scroll if the user moves the mouse cursor to the top or bottom of the
+ * window. The page should automatically scroll up or down as appropriate (tested in IE6, IE7, Safari, FF2,
+ * FF3 beta
+ * dragHandle
+ * This is the name of a class that you assign to one or more cells in each row that is draggable. If you
+ * specify this class, then you are responsible for setting cursor: move in the CSS and only these cells
+ * will have the drag behaviour. If you do not specify a dragHandle, then you get the old behaviour where
+ * the whole row is draggable.
+ *
+ * Other ways to control behaviour:
+ *
+ * Add class="nodrop" to any rows for which you don't want to allow dropping, and class="nodrag" to any rows
+ * that you don't want to be draggable.
+ *
+ * Inside the onDrop method you can also call $.tableDnD.serialize() this returns a string of the form
+ * []=&[]= so that you can send this back to the server. The table must have
+ * an ID as must all the rows.
+ *
+ * Other methods:
+ *
+ * $("...").tableDnDUpdate()
+ * Will update all the matching tables, that is it will reapply the mousedown method to the rows (or handle cells).
+ * This is useful if you have updated the table rows using Ajax and you want to make the table draggable again.
+ * The table maintains the original configuration (so you don't have to specify it again).
+ *
+ * $("...").tableDnDSerialize()
+ * Will serialize and return the serialized string as above, but for each of the matching tables--so it can be
+ * called from anywhere and isn't dependent on the currentTable being set up correctly before calling
+ *
+ * Known problems:
+ * - Auto-scoll has some problems with IE7 (it scrolls even when it shouldn't), work-around: set scrollAmount to 0
+ *
+ * Version 0.2: 2008-02-20 First public version
+ * Version 0.3: 2008-02-07 Added onDragStart option
+ * Made the scroll amount configurable (default is 5 as before)
+ * Version 0.4: 2008-03-15 Changed the noDrag/noDrop attributes to nodrag/nodrop classes
+ * Added onAllowDrop to control dropping
+ * Fixed a bug which meant that you couldn't set the scroll amount in both directions
+ * Added serialize method
+ * Version 0.5: 2008-05-16 Changed so that if you specify a dragHandle class it doesn't make the whole row
+ * draggable
+ * Improved the serialize method to use a default (and settable) regular expression.
+ * Added tableDnDupate() and tableDnDSerialize() to be called when you are outside the table
+ */
+jQuery.tableDnD = {
+ /** Keep hold of the current table being dragged */
+ currentTable : null,
+ /** Keep hold of the current drag object if any */
+ dragObject: null,
+ /** The current mouse offset */
+ mouseOffset: null,
+ /** Remember the old value of Y so that we don't do too much processing */
+ oldY: 0,
+
+ /** Actually build the structure */
+ build: function(options) {
+ // Set up the defaults if any
+
+ this.each(function() {
+ // This is bound to each matching table, set up the defaults and override with user options
+ this.tableDnDConfig = jQuery.extend({
+ onDragStyle: null,
+ onDropStyle: null,
+ // Add in the default class for whileDragging
+ onDragClass: "tDnD_whileDrag",
+ onDrop: null,
+ onDragStart: null,
+ scrollAmount: 5,
+ serializeRegexp: /[^\-]*$/, // The regular expression to use to trim row IDs
+ serializeParamName: null, // If you want to specify another parameter name instead of the table ID
+ dragHandle: null // If you give the name of a class here, then only Cells with this class will be draggable
+ }, options || {});
+ // Now make the rows draggable
+ jQuery.tableDnD.makeDraggable(this);
+ });
+
+ // Now we need to capture the mouse up and mouse move event
+ // We can use bind so that we don't interfere with other event handlers
+ jQuery(document)
+ .bind('mousemove', jQuery.tableDnD.mousemove)
+ .bind('mouseup', jQuery.tableDnD.mouseup);
+
+ // Don't break the chain
+ return this;
+ },
+
+ /** This function makes all the rows on the table draggable apart from those marked as "NoDrag" */
+ makeDraggable: function(table) {
+ var config = table.tableDnDConfig;
+ if (table.tableDnDConfig.dragHandle) {
+ // We only need to add the event to the specified cells
+ var cells = jQuery("td."+table.tableDnDConfig.dragHandle, table);
+ cells.each(function() {
+ // The cell is bound to "this"
+ jQuery(this).mousedown(function(ev) {
+ jQuery.tableDnD.dragObject = this.parentNode;
+ jQuery.tableDnD.currentTable = table;
+ jQuery.tableDnD.mouseOffset = jQuery.tableDnD.getMouseOffset(this, ev);
+ if (config.onDragStart) {
+ // Call the onDrop method if there is one
+ config.onDragStart(table, this);
+ }
+ return false;
+ });
+ })
+ } else {
+ // For backwards compatibility, we add the event to the whole row
+ var rows = jQuery("tr", table); // get all the rows as a wrapped set
+ rows.each(function() {
+ // Iterate through each row, the row is bound to "this"
+ var row = jQuery(this);
+ if (! row.hasClass("nodrag")) {
+ row.mousedown(function(ev) {
+ if (ev.target.tagName == "TD") {
+ jQuery.tableDnD.dragObject = this;
+ jQuery.tableDnD.currentTable = table;
+ jQuery.tableDnD.mouseOffset = jQuery.tableDnD.getMouseOffset(this, ev);
+ if (config.onDragStart) {
+ // Call the onDrop method if there is one
+ config.onDragStart(table, this);
+ }
+ return false;
+ }
+ }).css("cursor", "move"); // Store the tableDnD object
+ }
+ });
+ }
+ },
+
+ updateTables: function() {
+ this.each(function() {
+ // this is now bound to each matching table
+ if (this.tableDnDConfig) {
+ jQuery.tableDnD.makeDraggable(this);
+ }
+ })
+ },
+
+ /** Get the mouse coordinates from the event (allowing for browser differences) */
+ mouseCoords: function(ev){
+ if(ev.pageX || ev.pageY){
+ return {x:ev.pageX, y:ev.pageY};
+ }
+ return {
+ x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
+ y:ev.clientY + document.body.scrollTop - document.body.clientTop
+ };
+ },
+
+ /** Given a target element and a mouse event, get the mouse offset from that element.
+ To do this we need the element's position and the mouse position */
+ getMouseOffset: function(target, ev) {
+ ev = ev || window.event;
+
+ var docPos = this.getPosition(target);
+ var mousePos = this.mouseCoords(ev);
+ return {x:mousePos.x - docPos.x, y:mousePos.y - docPos.y};
+ },
+
+ /** Get the position of an element by going up the DOM tree and adding up all the offsets */
+ getPosition: function(e){
+ var left = 0;
+ var top = 0;
+ /** Safari fix -- thanks to Luis Chato for this! */
+ if (e.offsetHeight == 0) {
+ /** Safari 2 doesn't correctly grab the offsetTop of a table row
+ this is detailed here:
+ http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari/
+ the solution is likewise noted there, grab the offset of a table cell in the row - the firstChild.
+ note that firefox will return a text node as a first child, so designing a more thorough
+ solution may need to take that into account, for now this seems to work in firefox, safari, ie */
+ e = e.firstChild; // a table cell
+ }
+ if (e && e.offsetParent) {
+ while (e.offsetParent){
+ left += e.offsetLeft;
+ top += e.offsetTop;
+ e = e.offsetParent;
+ }
+
+ left += e.offsetLeft;
+ top += e.offsetTop;
+ }
+
+ return {x:left, y:top};
+ },
+
+ mousemove: function(ev) {
+ if (jQuery.tableDnD.dragObject == null) {
+ return;
+ }
+
+ var dragObj = jQuery(jQuery.tableDnD.dragObject);
+ var config = jQuery.tableDnD.currentTable.tableDnDConfig;
+ var mousePos = jQuery.tableDnD.mouseCoords(ev);
+ var y = mousePos.y - jQuery.tableDnD.mouseOffset.y;
+ //auto scroll the window
+ var yOffset = window.pageYOffset;
+ if (document.all) {
+ // Windows version
+ //yOffset=document.body.scrollTop;
+ if (typeof document.compatMode != 'undefined' &&
+ document.compatMode != 'BackCompat') {
+ yOffset = document.documentElement.scrollTop;
+ }
+ else if (typeof document.body != 'undefined') {
+ yOffset=document.body.scrollTop;
+ }
+
+ }
+
+ if (mousePos.y-yOffset < config.scrollAmount) {
+ window.scrollBy(0, -config.scrollAmount);
+ } else {
+ var windowHeight = window.innerHeight ? window.innerHeight
+ : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
+ if (windowHeight-(mousePos.y-yOffset) < config.scrollAmount) {
+ window.scrollBy(0, config.scrollAmount);
+ }
+ }
+
+
+ if (y != jQuery.tableDnD.oldY) {
+ // work out if we're going up or down...
+ var movingDown = y > jQuery.tableDnD.oldY;
+ // update the old value
+ jQuery.tableDnD.oldY = y;
+ // update the style to show we're dragging
+ if (config.onDragClass) {
+ dragObj.addClass(config.onDragClass);
+ } else {
+ dragObj.css(config.onDragStyle);
+ }
+ // If we're over a row then move the dragged row to there so that the user sees the
+ // effect dynamically
+ var currentRow = jQuery.tableDnD.findDropTargetRow(dragObj, y);
+ if (currentRow) {
+ // TODO worry about what happens when there are multiple TBODIES
+ if (movingDown && jQuery.tableDnD.dragObject != currentRow) {
+ jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject, currentRow.nextSibling);
+ } else if (! movingDown && jQuery.tableDnD.dragObject != currentRow) {
+ jQuery.tableDnD.dragObject.parentNode.insertBefore(jQuery.tableDnD.dragObject, currentRow);
+ }
+ }
+ }
+
+ return false;
+ },
+
+ /** We're only worried about the y position really, because we can only move rows up and down */
+ findDropTargetRow: function(draggedRow, y) {
+ var rows = jQuery.tableDnD.currentTable.rows;
+ for (var i=0; i rowY - rowHeight) && (y < (rowY + rowHeight))) {
+ // that's the row we're over
+ // If it's the same as the current row, ignore it
+ if (row == draggedRow) {return null;}
+ var config = jQuery.tableDnD.currentTable.tableDnDConfig;
+ if (config.onAllowDrop) {
+ if (config.onAllowDrop(draggedRow, row)) {
+ return row;
+ } else {
+ return null;
+ }
+ } else {
+ // If a row has nodrop class, then don't allow dropping (inspired by John Tarr and Famic)
+ var nodrop = jQuery(row).hasClass("nodrop");
+ if (! nodrop) {
+ return row;
+ } else {
+ return null;
+ }
+ }
+ return row;
+ }
+ }
+ return null;
+ },
+
+ mouseup: function(e) {
+ if (jQuery.tableDnD.currentTable && jQuery.tableDnD.dragObject) {
+ var droppedRow = jQuery.tableDnD.dragObject;
+ var config = jQuery.tableDnD.currentTable.tableDnDConfig;
+ // If we have a dragObject, then we need to release it,
+ // The row will already have been moved to the right place so we just reset stuff
+ if (config.onDragClass) {
+ jQuery(droppedRow).removeClass(config.onDragClass);
+ } else {
+ jQuery(droppedRow).css(config.onDropStyle);
+ }
+ jQuery.tableDnD.dragObject = null;
+ if (config.onDrop) {
+ // Call the onDrop method if there is one
+ config.onDrop(jQuery.tableDnD.currentTable, droppedRow);
+ }
+ jQuery.tableDnD.currentTable = null; // let go of the table too
+ }
+ },
+
+ serialize: function() {
+ if (jQuery.tableDnD.currentTable) {
+ return jQuery.tableDnD.serializeTable(jQuery.tableDnD.currentTable);
+ } else {
+ return "Error: No Table id set, you need to set an id on your table and every row";
+ }
+ },
+
+ serializeTable: function(table) {
+ var result = "";
+ var tableId = table.id;
+ var rows = table.rows;
+ for (var i=0; i 0) result += "&";
+ var rowId = rows[i].id;
+ if (rowId && rowId && table.tableDnDConfig && table.tableDnDConfig.serializeRegexp) {
+ rowId = rowId.match(table.tableDnDConfig.serializeRegexp)[0];
+ }
+
+ result += tableId + '[]=' + rowId;
+ }
+ return result;
+ },
+
+ serializeTables: function() {
+ var result = "";
+ this.each(function() {
+ // this is now bound to each matching table
+ result += jQuery.tableDnD.serializeTable(this);
+ });
+ return result;
+ }
+
+}
+
+jQuery.fn.extend(
+ {
+ tableDnD : jQuery.tableDnD.build,
+ tableDnDUpdate : jQuery.tableDnD.updateTables,
+ tableDnDSerialize: jQuery.tableDnD.serializeTables
+ }
+);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.base-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.base-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.base-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,227 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.fn.jqGrid=function(p){p=$.extend(true,{url:"",height:150,page:1,rowNum:20,records:0,pager:"",pgbuttons:true,pginput:true,colModel:[],rowList:[],colNames:[],sortorder:"asc",sortname:"",datatype:"xml",mtype:"GET",imgpath:"",sortascimg:"sort_asc.gif",sortdescimg:"sort_desc.gif",firstimg:"first.gif",previmg:"prev.gif",nextimg:"next.gif",lastimg:"last.gif",altRows:true,selarrrow:[],savedRow:[],shrinkToFit:true,xmlReader:{},jsonReader:{},subGrid:false,subGridModel:[],lastpage:0,lastsort:0,selrow:null,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null,onPaging:null,onSelectAll:null,loadComplete:null,gridComplete:null,loadError:null,loadBeforeSend:null,afterInsertRow:null,beforeRequest:null,onHeaderClick:null,viewrecords:false,loadonce:false,multiselect:false,multikey:false,editurl:null,search:false,searchdata:{},caption:"",hidegrid:true,hiddengrid:false,postData:{},userData:{},treeGrid:false,treeANode:0,treedatatype:null,treeReader:{level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded"},tree_root_level:0,ExpandColumn:null,sortclass:"grid_sort",resizeclass:"grid_resize",forceFit:false,gridstate:"visible",cellEdit:false,cellsubmit:"remote",nv:0,loadui:"enable",toolbar:[false,""]},$.jgrid.defaults,p||{});var grid={headers:[],cols:[],dragStart:function(i,x){this.resizing={idx:i,startX:x};this.hDiv.style.cursor="e-resize";},dragMove:function(x){if(this.resizing){var diff=x-this.resizing.startX;var h=this.headers[this.resizing.idx];var newWidth=h.width+diff;var msie=$.browser.msie;if(newWidth>25){if(p.forceFit===true){var hn=this.headers[this.resizing.idx+p.nv];var nWn=hn.width-diff;if(nWn>25){h.el.style.width=newWidth+"px";h.newWidth=newWidth;this.cols[this.resizing.idx].style.width=newWidth+"px";hn.el.style.width=nWn+"px";hn.newWidth=nWn;this.cols[this.resizing.idx+p.nv].style.width=nWn+"px";this.newWidth=this.width;}}else{h.el.style.width=newWidth+"px";h.newWidth=newWidth;this.cols[this.resizing.idx].style.width=newWidth+"px";this.newWidth=this.width+diff;$('table:first',this.bDiv).css("width",this.newWidth+"px");$('table:first',this.hDiv).css("width",this.newWidth+"px");var scrLeft=this.bDiv.scrollLeft;this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(msie){if(scrLeft-this.hDiv.scrollLeft>=5){this.bDiv.scrollLeft=this.bDiv.scrollLeft-17;}}}}}},dragEnd:function(){this.hDiv.style.cursor="default";if(this.resizing){var idx=this.resizing.idx;this.headers[idx].width=this.headers[idx].newWidth||this.headers[idx].width;this.cols[idx].style.width=this.headers[idx].newWidth||this.headers[idx].width;if(p.forceFit===true){this.headers[idx+p.nv].width=this.headers[idx+p.nv].newWidth||this.headers[idx+p.nv].width;this.cols[idx+p.nv].style.width=this.headers[idx+p.nv].newWidth||this.headers[idx+p.nv].width;}
+if(this.newWidth){this.width=this.newWidth;}
+this.resizing=false;}},scrollGrid:function(){var scrollLeft=this.bDiv.scrollLeft;this.hDiv.scrollLeft=this.bDiv.scrollLeft;if(scrollLeft-this.hDiv.scrollLeft>5){this.bDiv.scrollLeft=this.bDiv.scrollLeft-17;}}};$.fn.getGridParam=function(pName){var $t=this[0];if(!$t.grid){return;}
+if(!pName){return $t.p;}
+else{return $t.p[pName]?$t.p[pName]:null;}};$.fn.setGridParam=function(newParams){return this.each(function(){if(this.grid&&typeof(newParams)==='object'){$.extend(true,this.p,newParams);}});};$.fn.getDataIDs=function(){var ids=[];this.each(function(){$(this.rows).slice(1).each(function(i){ids[i]=this.id;});});return ids;};$.fn.setSortName=function(newsort){return this.each(function(){var $t=this;for(var i=0;i<$t.p.colModel.length;i++){if($t.p.colModel[i].name===newsort||$t.p.colModel[i].index===newsort){$("tr th:eq("+$t.p.lastsort+") div img",$t.grid.hDiv).remove();$t.p.lastsort=i;$t.p.sortname=newsort;break;}}});};$.fn.setSelection=function(selection,sd){return this.each(function(){var $t=this,stat,pt;if(selection===false){pt=sd;}
+else{var ind=$($t).getInd($t.rows,selection);pt=$($t.rows[ind]);}
+selection=$(pt).attr("id");if(!pt.html()){return;}
+if(!$t.p.multiselect){if($(pt).attr("class")!=="subgrid"){if($t.p.selrow){$("tr#"+$t.p.selrow+":first",$t.grid.bDiv).removeClass("selected");}
+$t.p.selrow=selection;$(pt).addClass("selected");if($t.p.onSelectRow){$t.p.onSelectRow($t.p.selrow,true);}}}else{$t.p.selrow=selection;var ia=$.inArray($t.p.selrow,$t.p.selarrrow);if(ia===-1){if($(pt).attr("class")!=="subgrid"){$(pt).addClass("selected");}
+stat=true;$("#jqg_"+$t.p.selrow,$t.rows).attr("checked",stat);$t.p.selarrrow.push($t.p.selrow);if($t.p.onSelectRow){$t.p.onSelectRow($t.p.selrow,stat);}}else{if($(pt).attr("class")!=="subgrid"){$(pt).removeClass("selected");}
+stat=false;$("#jqg_"+$t.p.selrow,$t.rows).attr("checked",stat);$t.p.selarrrow.splice(ia,1);if($t.p.onSelectRow){$t.p.onSelectRow($t.p.selrow,stat);}
+var tpsr=$t.p.selarrrow[0];$t.p.selrow=(tpsr=='undefined')?null:tpsr;}}});};$.fn.resetSelection=function(){return this.each(function(){var t=this;if(!t.p.multiselect){if(t.p.selrow){$("tr#"+t.p.selrow+":first",t.grid.bDiv).removeClass("selected");t.p.selrow=null;}}else{$(t.p.selarrrow).each(function(i,n){var ind=$(t).getInd(t.rows,n);$(t.rows[ind]).removeClass("selected");$("#jqg_"+n,t.rows[ind]).attr("checked",false);});$("#cb_jqg",t.grid.hDiv).attr("checked",false);t.p.selarrrow=[];}});};$.fn.getRowData=function(rowid){var res={};if(rowid){this.each(function(){var $t=this,nm,ind;ind=$($t).getInd($t.rows,rowid);if(!ind){return res;}
+$('td:nth-child',$t.rows[ind]).each(function(i){nm=$t.p.colModel[i].name;if(nm!=='cb'&&nm!=='subgrid'){res[nm]=$(this).html().replace(/\ \;/ig,'').replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"');}});});}
+return res;};$.fn.delRowData=function(rowid){var success=false,rowInd;if(rowid){this.each(function(){var $t=this;rowInd=$($t).getInd($t.rows,rowid);if(!rowInd){return success;}
+else{$($t.rows[rowInd]).remove();$t.p.records--;$t.updatepager();success=true;}
+if(rowInd==1&&success&&($.browser.opera||$.browser.safari)){$($t.rows[1]).each(function(k){$(this).css("width",$t.grid.headers[k].width+"px");$t.grid.cols[k]=this;});}
+if($t.p.altRows===true&&success){$($t.rows).slice(1).each(function(i){if(i%2==1){$(this).addClass('alt');}
+else{$(this).removeClass('alt');}});}});}
+return success;};$.fn.setRowData=function(rowid,data){var nm,success=false;this.each(function(){var t=this;if(!t.grid){return false;}
+if(data){var ind=$(t).getInd(t.rows,rowid);if(!ind){return success;}
+success=true;$(this.p.colModel).each(function(i){nm=this.name;if(data[nm]!=='undefined'){$("td:eq("+i+")",t.rows[ind]).html(data[nm]);success=true;}});}});return success;};$.fn.addRowData=function(rowid,data,pos,src){if(!pos){pos="last";}
+var success=false;var nm,row,td,gi=0,si=0,sind;if(data){this.each(function(){var t=this;row=document.createElement("tr");row.id=rowid||t.p.records+1;$(row).addClass("jqgrow");if(t.p.multiselect){td=$('
").css("cursor","pointer").addClass("nav-button").click(function(e){if(typeof p.onClickButton=='function'){p.onClickButton();}
+e.stopPropagation();return false;}).hover(function(){$(this).addClass("nav-hover");},function(){$(this).removeClass("nav-hover");});if(p.position!='first'){trd.appendChild(tbd);}else{$(trd).prepend(tbd);$(trd).prepend(tbd1);}
+tbd=null;tbd1=null;}});},GridToForm:function(rowid,formid){return this.each(function(){var $t=this;if(!$t.grid){return;}
+var rowdata=$($t).getRowData(rowid);if(rowdata){for(var i in rowdata){if($("[name="+i+"]",formid).is("input:radio")){$("[name="+i+"]",formid).each(function(){if($(this).val()==rowdata[i]){$(this).attr("checked","checked");}else{$(this).attr("checked","");}});}else{$("[name="+i+"]",formid).val(rowdata[i]);}}}});},FormToGrid:function(rowid,formid){return this.each(function(){var $t=this;if(!$t.grid){return;}
+var fields=$(formid).serializeArray();var griddata={};$.each(fields,function(i,field){griddata[field.name]=field.value;});$($t).setRowData(rowid,griddata);});}});})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.inlinedit-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.inlinedit-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.inlinedit-min.js 17 Mar 2009 01:07:18 -0000 1.1
@@ -0,0 +1,27 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.fn.extend({editRow:function(rowid,keys,oneditfunc,succesfunc,url,extraparam,aftersavefunc,errorfunc){return this.each(function(){var $t=this,nm,tmp,editable,cnt=0,focus=null,svr=[];if(!$t.grid){return;}
+var sz,ml,hc;if(!$t.p.multiselect){editable=$("#"+rowid,$t.grid.bDiv).attr("editable")||"0";if(editable=="0"){$('#'+rowid+' td',$t.grid.bDiv).each(function(i){nm=$t.p.colModel[i].name;hc=$t.p.colModel[i].hidden===true?true:false;tmp=$(this).html().replace(/\ \;/ig,'');svr[nm]=tmp;if(nm!=='cb'&&nm!=='subgrid'&&$t.p.colModel[i].editable===true&&!hc){if(focus===null){focus=i;}
+$(this).html("");var opt=$.extend($t.p.colModel[i].editoptions||{},{id:rowid+"_"+nm,name:nm});if(!$t.p.colModel[i].edittype){$t.p.colModel[i].edittype="text";}
+var elc=createEl($t.p.colModel[i].edittype,opt,tmp,$(this));$(elc).addClass("editable");$(this).append(elc);if($t.p.colModel[i].edittype=="select"&&$t.p.colModel[i].editoptions.multiple===true&&$.browser.msie){$(elc).width($(elc).width());}
+cnt++;}});if(cnt>0){svr['id']=rowid;$t.p.savedRow.push(svr);$('#'+rowid,$t.grid.bDiv).attr("editable","1");$('#'+rowid+" td:eq("+focus+") input",$t.grid.bDiv).focus();if(keys===true){$('#'+rowid,$t.grid.bDiv).bind("keydown",function(e){if(e.keyCode===27){$($t).restoreRow(rowid);}
+if(e.keyCode===13){$($t).saveRow(rowid,succesfunc,url,extraparam,aftersavefunc,errorfunc);}
+e.stopPropagation();});}
+if(typeof oneditfunc==="function"){oneditfunc(rowid);}}}}});},saveRow:function(rowid,succesfunc,url,extraparam,aftersavefunc,errorfunc){return this.each(function(){var $t=this,nm,tmp={},tmp2,editable,fr;if(!$t.grid){return;}
+editable=$('#'+rowid,$t.grid.bDiv).attr("editable");url=url?url:$t.p.editurl;if(editable==="1"&&url){$('#'+rowid+" td",$t.grid.bDiv).each(function(i){nm=$t.p.colModel[i].name;if(nm!=='cb'&&nm!=='subgrid'&&$t.p.colModel[i].editable===true){if($t.p.colModel[i].hidden===true){tmp[nm]=$(this).html();}
+else{switch($t.p.colModel[i].edittype){case"checkbox":var cbv=$t.p.colModel[i].editoptions.value.split(":")||["Yes","No"];tmp[nm]=$("input",this).attr("checked")?cbv[0]:cbv[1];break;case'text':case'password':tmp[nm]=$("input",this).val();break;case'textarea':tmp[nm]=$("textarea",this).val();break;case'select':if(!$t.p.colModel[i].editoptions.multiple){tmp[nm]=$("select>option:selected",this).val();}else{var sel=$("select",this);tmp[nm]=$(sel).val();}
+break;}}}});if(tmp){tmp["id"]=rowid;if(extraparam){$.extend(tmp,extraparam);}}
+if(!$t.grid.hDiv.loading){$t.grid.hDiv.loading=true;$("div.loading",$t.grid.hDiv).fadeIn("fast");$.ajax({url:url,data:tmp,type:"POST",complete:function(res,stat){if(stat==="success"){var ret;if(typeof succesfunc==="function"){ret=succesfunc(res);}
+else ret=true;if(ret===true){$('#'+rowid+" td",$t.grid.bDiv).each(function(i){nm=$t.p.colModel[i].name;if(nm!=='cb'&&nm!=='subgrid'&&$t.p.colModel[i].editable===true){if($t.p.colModel[i].hidden===true){tmp2=$(this).html();}else{switch($t.p.colModel[i].edittype){case"select":if(!$t.p.colModel[i].editoptions.multiple){tmp2=$("select>option:selected",this).text();}else if($t.p.colModel[i].editoptions.multiple===true){var selectedText=[];$("select > option:selected",this).each(function(i,selected){selectedText[i]=$(selected).text();});tmp2=selectedText.join(",");}
+break;case"checkbox":var cbv=$t.p.colModel[i].editoptions.value.split(":")||["Yes","No"];tmp2=$("input",this).attr("checked")?cbv[0]:cbv[1];break;case"password":case"text":case"textarea":tmp2=$("input, textarea",this).val();break;}}
+$(this).empty();$(this).html(tmp2||" ");}});$('#'+rowid,$t.grid.bDiv).attr("editable","0");for(var k=0;k<$t.p.savedRow.length;k++){if($t.p.savedRow[k].id===rowid){fr=k;break;}};if(fr>=0){$t.p.savedRow.splice(fr,1);}
+if(typeof aftersavefunc==="function"){aftersavefunc(rowid,res.responseText);}}else{$($t).restoreRow(rowid);}}},error:function(res,stat){if(typeof errorfunc=="function"){errorfunc(res,stat)}else{alert("Error Row: "+rowid+" Result: "+res.status+":"+res.statusText+" Status: "+stat);}}});$t.grid.hDiv.loading=false;$("div.loading",$t.grid.hDiv).fadeOut("fast");$("#"+rowid,$t.grid.bDiv).unbind("keydown");}}});},restoreRow:function(rowid){return this.each(function(){var $t=this,nm,fr;if(!$t.grid){return;}
+for(var k=0;k<$t.p.savedRow.length;k++){if($t.p.savedRow[k].id===rowid){fr=k;break;}};if(fr>=0){$('#'+rowid+" td",$t.grid.bDiv).each(function(i){nm=$t.p.colModel[i].name;if(nm!=='cb'&&nm!=='subgrid'){$(this).empty();$(this).html($t.p.savedRow[fr][nm]||" ");}});$('#'+rowid,$t.grid.bDiv).attr("editable","0");$t.p.savedRow.splice(fr,1);}});}});})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-bg-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-bg-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-bg-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,12 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"запис(а)",loadtext:"Зареждам...",pgtext:"от"}
+$.jgrid.search={caption:"Търсене...",Find:"Намери",Reset:"Изчисти",odata:['равно','различно','по-малко','по-малко или=','по-голямо','по-голямо или =','започва с','завършва с','съдържа']};$.jgrid.edit={addCaption:"Нов Запис",editCaption:"Редакция Запис",bSubmit:"Запиши",bCancel:"Изход",bClose:"Затвори",processData:"Обработка...",msg:{required:"Полето е задължително",number:"Въведете валидно число!",minValue:"стойността трябва да е по-голяма или равна от",maxValue:"стойността трябва да е по-малка или равна от",email:"не е валиден ел. адрес",integer:"Въведете валидно цяло число",date:"Въведете валидна дата"}};$.jgrid.del={caption:"Изтриване",msg:"Да изтрия ли избраният запис?",bSubmit:"Изтрий",bCancel:"Отказ",processData:"Обработка..."};$.jgrid.nav={edittext:" ",edittitle:"Редакция избран запис",addtext:" ",addtitle:"Добавяне нов запис",deltext:" ",deltitle:"Изтриване избран запис",searchtext:" ",searchtitle:"Търсене запис(и)",refreshtext:"",refreshtitle:"Обнови таблица",alertcap:"Предупреждение",alerttext:"Моля, изберете запис"};$.jgrid.col={caption:"Колони",bSubmit:"Запис",bCancel:"Изход"};$.jgrid.errors={errcap:"Грешка",nourl:"Няма посочен url адрес",norecords:"Няма запис за обработка"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-de-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-de-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-de-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,10 @@
+/**
+ * jqGrid German Translation
+ * Version 1.0.0 (developed for jQuery Grid 3.3.1)
+ * Olaf Klöppel opensource@blue-hit.de
+ * http://blue-hit.de/
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Zeile(n)",loadtext:"Lädt...",pgtext:"/"};$.jgrid.search={caption:"Suche...",Find:"Finden",Reset:"Zurücksetzen",odata:['gleich','ungleich','kleiner','kleiner oder gleich','größer','größer oder gleich','beginnt mit','endet mit','beinhaltet']};$.jgrid.edit={addCaption:"Datensatz hinzufügen",editCaption:"Datensatz bearbeiten",bSubmit:"Speichern",bCancel:"Abbrechen",bClose:"Schließen",processData:"Verarbeitung läuft...",msg:{required:"Feld ist erforderlich",number:"Bitte geben Sie eine Zahl ein",minValue:"Wert muss größer oder gleich sein, als ",maxValue:"Wert muss kleiner oder gleich sein, als ",email:"ist keine valide E-Mail Adresse",integer:"Bitte geben Sie eine Ganzzahl ein",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Löschen",msg:"Ausgewählte Datensätze löschen?",bSubmit:"Löschen",bCancel:"Abbrechen",processData:"Verarbeitung läuft..."};$.jgrid.nav={edittext:" ",edittitle:"Ausgewählten Zeile editieren",addtext:" ",addtitle:"Neuen Zeile einfügen",deltext:" ",deltitle:"Ausgewählte Zeile löschen",searchtext:" ",searchtitle:"Datensatz finden",refreshtext:"",refreshtitle:"Tabelle neu laden",alertcap:"Warnung",alerttext:"Bitte Zeile auswählen"};$.jgrid.col={caption:"Spalten anzeigen/verbergen",bSubmit:"Speichern",bCancel:"Abbrechen"};$.jgrid.errors={errcap:"Fehler",nourl:"Keine URL angegeben",norecords:"Keine Datensätze zum verarbeiten"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-en-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-en-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-en-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,11 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Row(s)",loadtext:"Loading...",pgtext:"/"};$.jgrid.search={caption:"Search...",Find:"Find",Reset:"Reset",odata:['equal','not equal','less','less or equal','greater','greater or equal','begins with','ends with','contains']};$.jgrid.edit={addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",bClose:"Close",processData:"Processing...",msg:{required:"Field is required",number:"Please, enter valid number",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to",email:"is not a valid e-mail",integer:"Please, enter valid integer value",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel",processData:"Processing..."};$.jgrid.nav={edittext:" ",edittitle:"Edit selected row",addtext:" ",addtitle:"Add new row",deltext:" ",deltitle:"Delete selected row",searchtext:" ",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning",alerttext:"Please, select row"};$.jgrid.col={caption:"Show/Hide Columns",bSubmit:"Submit",bCancel:"Cancel"};$.jgrid.errors={errcap:"Error",nourl:"No url is set",norecords:"No records to process"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-it-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-it-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-it-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,8 @@
+/**
+ * jqGrid Italian Translation
+ * Vincenzo Solomita vincenzosolomita@gmail.com
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Record",loadtext:"Caricamento...",pgtext:"/"};$.jgrid.search={caption:"Ricerca...",Find:"Cerca",Reset:"Pulisci",odata:['uguale','diverso','minore','minore o uguale','maggiore','maggiore o uguale','inizia con','finisce con','contiene']};$.jgrid.edit={addCaption:"Aggiungi Record",editCaption:"Modifica Record",bSubmit:"Invia",bCancel:"Annulla",bClose:"Chiudi",processData:"In elaborazione...",msg:{required:"Campo richiesto",number:"Per favore, inserisci un valore valido",minValue:"il valore deve essere maggiore o uguale a ",maxValue:"il valore deve essere minore o uguale a",email:"e-mail non corretta",integer:"Please, enter valid integer value",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Cancella",msg:"Cancellare record selezionato/i?",bSubmit:"Cancella",bCancel:"Annulla",processData:"In elaborazione..."};$.jgrid.nav={edittext:" ",edittitle:"Modifica record selezionato",addtext:" ",addtitle:"Aggiungi nuovo record",deltext:" ",deltitle:"Cancella record selezionato",searchtext:" ",searchtitle:"Ricerca record",refreshtext:"",refreshtitle:"Aggiorna griglia",alertcap:"Attenzione",alerttext:"Per favore, seleziona un record"};$.jgrid.col={caption:"Mostra/Nascondi Colonne",bSubmit:"Invia",bCancel:"Annulla"};$.jgrid.errors={errcap:"Errore",nourl:"Url non settata",norecords:"Nessun record da elaborare"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pl-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-pl-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pl-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,9 @@
+/**
+ * jqGrid Polish Translation
+ * Piotr Roznicki roznicki@o2.pl
+ * http://www.roznicki.prv.pl
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Wiersz(y)",loadtext:"Ładowanie...",pgtext:"/"};$.jgrid.search={caption:"Wyszukiwanie...",Find:"Szukaj",Reset:"Czyść",odata:['dokładnie','różne od','mniejsze od','mniejsze lub różne','większe od','większe lub różne','zacznij od','zakończ na','zawiera']};$.jgrid.edit={addCaption:"Dodaj rekord",editCaption:"Edytuj rekord",bSubmit:"Zapisz",bCancel:"Anuluj",bClose:"Zamknij",processData:"Przetwarzanie...",msg:{required:"Pole jest wymagane",number:"Proszę wpisać poprawną liczbę",minValue:"wartość musi być większa lub równa",maxValue:"wartość musi być mniejsza od",email:"nie jest adresem e-mail",integer:"Proszę wpisać poprawną liczbę",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Usuwanie",msg:"Usuń wybrany rekord(y)?",bSubmit:"Usuń",bCancel:"Anuluj",processData:"Przetwarzanie..."};$.jgrid.nav={edittext:" ",edittitle:"Edytuj wybrany wiersz",addtext:" ",addtitle:"Dodaj nowy wiersz",deltext:" ",deltitle:"Usuń wybrany wiersz",searchtext:" ",searchtitle:"Wyszukaj rekord",refreshtext:"",refreshtitle:"Przeładuj",alertcap:"Uwaga",alerttext:"Proszę wybrać wiersz"};$.jgrid.col={caption:"Pokaż/Ukryj kolumny",bSubmit:"Zatwierdź",bCancel:"Anuluj"};$.jgrid.errors={errcap:"Błąd",nourl:"Brak adresu url",norecords:"Brak danych"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pt-br-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-pt-br-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pt-br-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,9 @@
+/**
+ * jqGrid Brazilian-Portuguese Translation
+ * Junior Gobira juniousbr@gmail.com
+ * http://jnsa.com.br
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Registro(s)",loadtext:"Carregando...",pgtext:"/"};$.jgrid.search={caption:"Procurar...",Find:"Procurar",Reset:"Resetar",odata:['igual','diferente','menor','menor igual','maior','maior igual','come�ando com','terminando com','cont�m']};$.jgrid.edit={addCaption:"Incluir",editCaption:"Alterar",bSubmit:"Enviar",bCancel:"Cancelar",bClose:"Fechar",processData:"Carregando...",msg:{required:"Campo � requerido",number:"Por favor, informe um n�mero v�lido",minValue:"valor deve ser igual ou maior que ",maxValue:"valor deve ser menor ou igual a",email:"este e-mail n�o � v�lido",integer:"Por favor, informe um valor inteiro",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Delete",msg:"Deletar registros selecionado(s)?",bSubmit:"Delete",bCancel:"Cancelar",processData:"Carregando..."};$.jgrid.nav={edittext:" ",edittitle:"Alterar registro selecionado",addtext:" ",addtitle:"Incluir novo registro",deltext:" ",deltitle:"Deletar registro selecionado",searchtext:" ",searchtitle:"Procurar registros",refreshtext:"",refreshtitle:"Recarrgando Tabela",alertcap:"Aviso",alerttext:"Por favor, selecione um registro"};$.jgrid.col={caption:"Mostrar/Esconder Colunas",bSubmit:"Enviar",bCancel:"Cancelar"};$.jgrid.errors={errcap:"Erro",nourl:"Nenhuma URL defenida",norecords:"Sem registros para exibir"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pt-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-pt-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-pt-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,8 @@
+/**
+ * jqGrid Portuguese Translation
+ * Traduccion jqGrid en Espa�ol por Yamil Bracho
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Bicha(s)",loadtext:"Carregando...",pgtext:"/"};$.jgrid.search={caption:"Busca...",Find:"Procurar",Reset:"Limpar",odata:['igual','n�o igual','menor','menor ou igual','maior','maior ou igual','ome�a com','termina com','cont�m']};$.jgrid.edit={addCaption:"Agregar Registro",editCaption:"Modificar Registo",bSubmit:"Enviar",bCancel:"Cancelar",bClose:"Fechar",processData:"Processando...",msg:{required:"Campo � requerido",number:"Faz favor, introduza um numero",minValue:"O valor deve ser maior ou igual que",maxValue:"O valor deve ser menor ou igual a",email:"n�o � um direccion de correio valida",integer:"Faz favor, introduza um inteiro",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Eliminar",msg:"� Deseja eliminar os registos seleccionados?",bSubmit:"Eliminar",bCancel:"Cancelar",processData:"Processando..."};$.jgrid.nav={edittext:" ",edittitle:"Modificar bicha seleccionada",addtext:" ",addtitle:"Agregar nova bicha",deltext:" ",deltitle:"Eliminar bicha seleccionada",searchtext:" ",searchtitle:"Procurar informacion",refreshtext:"",refreshtitle:"Refrescar Rejilla",alertcap:"Aviso",alerttext:"Faz favor, seleccione uma bicha"};$.jgrid.col={caption:"Mostrar/Ocultar Colunas",bSubmit:"Enviar",bCancel:"Cancelar"};$.jgrid.errors={errcap:"Erro",nourl:"N�o se especificou uma url",norecords:"N�o h� dados para processar"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-ru-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-ru-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-ru-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,9 @@
+/**
+ * jqGrid Russian Translation
+ * Alexey Kanaev softcore@rambler.ru
+ * http://softcore.com.ru
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Записей",loadtext:"Загрузка...",pgtext:"/"};$.jgrid.search={caption:"Поиск...",Find:"Найти",Reset:"Сброс",odata:['равно','не равно','меньше','меньше или равно','больше','больше или равно','начинается с','заканчивается на','содержит']};$.jgrid.edit={addCaption:"Добавить запись",editCaption:"Редактировать запись",bSubmit:"Сохранить",bCancel:"Отмена",bClose:"Закрыть",processData:"Обработка...",msg:{required:"Поле является обязательным",number:"Пожалуйста, введите правильное число",minValue:"значение должно быть больше либо равно",maxValue:"значение должно быть больше либо равно",email:"некорректное значение e-mail",integer:"Пожалуйста введите целое число",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Удалить",msg:"Удалить выделенную запись(и)?",bSubmit:"Удвлить",bCancel:"Отмена",processData:"Обработка..."};$.jgrid.nav={edittext:" ",edittitle:"Редактировать выделенную запись",addtext:" ",addtitle:"Добавить новую запись",deltext:" ",deltitle:"Удалить выделенную запись",searchtext:" ",searchtitle:"Найти записи",refreshtext:"",refreshtitle:"Обновить таблицу",alertcap:"Внимание",alerttext:"Пожалуйста, выделите запись"};$.jgrid.col={caption:"Показать/скрыть столбцы",bSubmit:"Сохранить",bCancel:"Отмена"};$.jgrid.errors={errcap:"Ошибка",nourl:"URL не установлен",norecords:"Нет записей для обработки"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-sp-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-sp-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-sp-min.js 17 Mar 2009 01:07:18 -0000 1.1
@@ -0,0 +1,8 @@
+/**
+ * jqGrid Spanish Translation
+ * Traduccion jqGrid en Espa�ol por Yamil Bracho
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Fila(s)",loadtext:"Cargando...",pgtext:"/"};$.jgrid.search={caption:"Busqueda...",Find:"Buscar",Reset:"Limpiar",odata:['igual','no igual','menor','menor o igual','mayor','mayor o igual','comienza con','termina con','contiene']};$.jgrid.edit={addCaption:"Agregar Registro",editCaption:"Modificar Registro",bSubmit:"Enviar",bCancel:"Cancelar",bClose:"Cerrar",processData:"Procesando...",msg:{required:"Campo es requerido",number:"Por favor, introduzca un numero",minValue:"El valor debe ser mayor o igual que ",maxValue:"El valor debe ser menor o igual a",email:"no es un direccion de correo valida",integer:"Por favor, introduzca un entero",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Eliminar",msg:"¿ Desea eliminar los registros seleccionados ?",bSubmit:"Eliminar",bCancel:"Cancelar",processData:"Procesando..."};$.jgrid.nav={edittext:" ",edittitle:"Modificar fila seleccionada",addtext:" ",addtitle:"Agregar nueva fila",deltext:" ",deltitle:"Eliminar fila seleccionada",searchtext:" ",searchtitle:"Buscar información",refreshtext:"",refreshtitle:"Refrescar Rejilla",alertcap:"Aviso",alerttext:"Por favor, seleccione una fila"};$.jgrid.col={caption:"Mostrar/Ocultar Columnas",bSubmit:"Enviar",bCancel:"Cancelar"};$.jgrid.errors={errcap:"Error",nourl:"No se ha especificado una url",norecords:"No hay datos para procesar"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-tr-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.locale-tr-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.locale-tr-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,9 @@
+/**
+ * jqGrid Turkish Translation
+ * H.İbrahim Yılmaz ibrahim.yilmaz@karmabilisim.net
+ * http://www.arkeoloji.web.tr
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+;(function($){$.jgrid={};$.jgrid.defaults={recordtext:"Satır(lar)",loadtext:"Yükleniyor...",pgtext:"/"};$.jgrid.search={caption:"Arama...",Find:"Bul",Reset:"Temizle",odata:['eşittir','eşit değildir','küçük','küçük veya eşit','büyük','büyük veya eşit','ile başlayan','ile biten','içeren']};$.jgrid.edit={addCaption:"Kayıt Ekle",editCaption:"Kayıt Düzenle",bSubmit:"Gönder",bCancel:"İptal",bClose:"Kapat",processData:"İşlem yapılıyor...",msg:{required:"Alan gerekli",number:"Lütfen bir numara giriniz",minValue:"girilen değer daha büyük ya da buna eşit olmalıdır",maxValue:"girilen değer daha küçük ya da buna eşit olmalıdır",email:"geçerli bir e-posta adresi değildir",integer:"Lütfen bir tamsayı giriniz",date:"Please, enter valid date value"}};$.jgrid.del={caption:"Sil",msg:"Seçilen kayıtlar silinsin mi?",bSubmit:"Sil",bCancel:"İptal",processData:"İşlem yapılıyor..."};$.jgrid.nav={edittext:" ",edittitle:"Seçili satırı düzenle",addtext:" ",addtitle:"Yeni satır ekle",deltext:" ",deltitle:"Seçili satırı sil",searchtext:" ",searchtitle:"Kayıtları bul",refreshtext:"",refreshtitle:"Tabloyu yenile",alertcap:"Uyarı",alerttext:"Lütfen bir satır seçiniz"};$.jgrid.col={caption:"Sütunları göster/gizle",bSubmit:"Gönder",bCancel:"İptal"};$.jgrid.errors={errcap:"Hata",nourl:"Bir url yapılandırılmamış",norecords:"İşlem yapılacak bir kayıt yok"};})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.postext-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.postext-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.postext-min.js 17 Mar 2009 01:07:18 -0000 1.1
@@ -0,0 +1,21 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.fn.extend({getPostData:function(){var $t=this[0];if(!$t.grid){return;}
+return $t.p.postData;},setPostData:function(newdata){var $t=this[0];if(!$t.grid){return;}
+if(typeof(newdata)==='object'){$t.p.postData=newdata;}
+else{alert("Error: cannot add a non-object postData value. postData unchanged.");}},appendPostData:function(newdata){var $t=this[0];if(!$t.grid){return;}
+if(typeof(newdata)==='object'){$.extend($t.p.postData,newdata);}
+else{alert("Error: cannot append a non-object postData value. postData unchanged.");}},setPostDataItem:function(key,val){var $t=this[0];if(!$t.grid){return;}
+$t.p.postData[key]=val;},getPostDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
+return $t.p.postData[key];},removePostDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
+delete $t.p.postData[key];},getUserData:function(){var $t=this[0];if(!$t.grid){return;}
+return $t.p.userData;},getUserDataItem:function(key){var $t=this[0];if(!$t.grid){return;}
+return $t.p.userData[key];}});})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.setcolumns-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.setcolumns-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.setcolumns-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,19 @@
+/**
+ * jqGrid extension for manipulating columns properties
+ * Piotr Roznicki roznicki@o2.pl
+ * http://www.roznicki.prv.pl
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+**/
+
+;(function($){$.fn.extend({setColumns:function(p){p=$.extend({top:0,left:0,width:200,height:195,modal:false,drag:true,closeicon:'ico-close.gif',beforeShowForm:null,afterShowForm:null,afterSubmitForm:null},$.jgrid.col,p||{});return this.each(function(){var $t=this;if(!$t.grid){return;}
+var onBeforeShow=typeof p.beforeShowForm==='function'?true:false;var onAfterShow=typeof p.afterShowForm==='function'?true:false;var onAfterSubmit=typeof p.afterSubmitForm==='function'?true:false;if(!p.imgpath){p.imgpath=$t.p.imgpath;}
+var gID=$("table:first",$t.grid.bDiv).attr("id");var IDs={themodal:'colmod'+gID,modalhead:'colhd'+gID,modalcontent:'colcnt'+gID};var dtbl="ColTbl_"+gID;if($("#"+IDs.themodal).html()!=null){if(onBeforeShow){p.beforeShowForm($("#"+dtbl));}
+viewModal("#"+IDs.themodal,{modal:p.modal});if(onAfterShow){p.afterShowForm($("#"+dtbl));}}else{var tbl=$("
");for(i=0;i
"+"
");}}
+var bS="";var bC="";$(tbl).append("
"+bS+" "+bC+"
");createModal(IDs,tbl,p,$t.grid.hDiv,$t.grid.hDiv);if(p.drag){DnRModal("#"+IDs.themodal,"#"+IDs.modalhead+" td.modaltext");}
+$("#dData","#"+dtbl).click(function(e){for(i=0;i<$t.p.colModel.length;i++){if(!$t.p.colModel[i].hidedlg){if($("#col_"+$t.p.colModel[i].name).attr("checked")){$($t).showCol($t.p.colModel[i].name);$("#col_"+$t.p.colModel[i].name).attr("defaultChecked",true);}else{$($t).hideCol($t.p.colModel[i].name);$("#col_"+$t.p.colModel[i].name).attr("defaultChecked","");}}}
+$("#"+IDs.themodal).jqmHide();if(onAfterSubmit){p.afterSubmitForm($("#"+dtbl));}
+return false;});$("#eData","#"+dtbl).click(function(e){$("#"+IDs.themodal).jqmHide();return false;});if(onBeforeShow){p.beforeShowForm($("#"+dtbl));}
+viewModal("#"+IDs.themodal,{modal:p.modal});if(onAfterShow){p.afterShowForm($("#"+dtbl));}}});}});})(jQuery);
\ No newline at end of file
Index: lams_central/web/includes/javascript/jqgrid/js/min/grid.subgrid-min.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/jqgrid/js/min/Attic/grid.subgrid-min.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/jqgrid/js/min/grid.subgrid-min.js 17 Mar 2009 01:07:17 -0000 1.1
@@ -0,0 +1,22 @@
+/*
+ * jqGrid 3.3.2 - jQuery Grid
+ * Copyright (c) 2008, Tony Tomov, tony@trirand.com
+ * Dual licensed under the MIT and GPL licenses
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Date: 2008-12-14 rev 74
+ *
+ */
+
+;(function($){$.fn.addSubGrid=function(t,row,pos,rowelem){return this.each(function(){var ts=this;if(!ts.grid){return;}
+var td,res,_id,pID;td=document.createElement("td");$(td,t).html("").toggle(function(e){pID=$("table:first",ts.grid.bDiv).attr("id");res=$(this).parent();var atd=pos==1?'