function forward()
{
//Concatenate the string to send content, sort it and send it.
var temp = "";
var array = new Array();
$("#yxdwlb tr").each(function(){
var flag = false;
var user = "";
$(this).find("td"). each(function(n){
if(n == 0){
//user = user $(this).find("input").is(":checked") "," ;
flag = $(this).find("input").is(":checked");
}
if(n == 1){ user = user this.innerText ",";}
if(n == 2){ user = user $(this).find("input").val() ",";}
if(n == 3){ user = user $( this).find("input").is(":checked") ",";}
if(n == 4){ user = user $(this).find("input").is( ":checked") ";";}
});//Column
if(flag == true){
array.push(user);
}
}); //Line
for(var i = 0 ;i
{
temp = temp array[i];//Assemble the elements of the array into a string and store it in temp Variable,
}
$("#array").val(temp);//The temp variable is stored in the parameter array
//Judgement when description is not empty
var description=jQuery(" #description").val();
if(trim(description)=='') {
triman.alert("Please enter the description!");
return;
}
//Get the form content and forward it
var doc = document.getElementById("document");
doc.action = "${pageContext.request.contextPath}/documentManager/save";
doc .method = "post";
doc.submit();
}