hive/html/oldjs/qpride.js
// shows the content of the form
shows the content of the form
shows the content of the form
function QPride_downloadedFormContent(container, txt)
    {
        QPride_lastForm=txt;
        var o=gObject("QP_"+container);if(!o)return;
        if(!txt || txt.length==0) {o.className="sectHid";return;}
        var ar=QPride_lastForm.split("\n");
        var t="<table width='100%' class='"+QPride_tableClass+"' >";
        for ( var ir=0; ir<ar.length - 1; ++ir ){
            var cls=ar[ir].split("=");
            var par=cls[0].replace(" ", "");
            var ifnd=-1;
            if(QPride_formVisibleVariables && QPride_formVisibleVariables.length){
                for ( ifnd=0; ifnd<QPride_formVisibleVariables.length; ++ifnd) {
                    if(par==QPride_formVisibleVariables[ifnd][1])break;
                }
                if(ifnd>=QPride_formVisibleVariables.length) continue;
                par=QPride_formVisibleVariables[ifnd][0];
            }
            t+="<tr><td width='20%' class='"+QPride_variableClass+"'>"+par+"</td><td width=10>=</td>";
            t+="<td class='"+QPride_valueClass+"'  >";
            for ( var ic=1; ic<cls.length; ++ic) { 
                if(ifnd>=0 && QPride_formVisibleVariables[ifnd].length>2  )
                    t+=QPride_formVisibleVariables[ifnd][2][parseInt(cls[1])];
                else t+=cls[1];
            }
            t+="</td></tr>";
        }
        t+="</table>";
        o.innerHTML=t;
        if(QPride_downloadedForm && QPride_downloadedForm!=""){
            eval(QPride_downloadedForm);
        }
    }
function QPride_downloadedFormContent ( container , txt ) { QPride_lastForm = txt ; var o = gObject ( "QP_" + container ) ; if ( ! o ) return ; if ( ! txt || txt . length == 0 ) { o . className = "sectHid" ; return ; } var ar = QPride_lastForm . split ( "\n" ) ; var t = "<table width='100%' class='" + QPride_tableClass + "' >" ; for ( var ir = 0 ; ir < ar . length - 1 ; ++ ir ) { var cls = ar [ ir ] . split ( "=" ) ; var par = cls [ 0 ] . replace ( " " , "" ) ; var ifnd = - 1 ; if ( QPride_formVisibleVariables && QPride_formVisibleVariables . length ) { for ( ifnd = 0 ; ifnd < QPride_formVisibleVariables . length ; ++ ifnd ) { if ( par == QPride_formVisibleVariables [ ifnd ] [ 1 ] ) break ; } if ( ifnd >= QPride_formVisibleVariables . length ) continue ; par = QPride_formVisibleVariables [ ifnd ] [ 0 ] ; } t += "<tr><td width='20%' class='" + QPride_variableClass + "'>" + par + "</td><td width=10>=</td>" ; t += "<td class='" + QPride_valueClass + "'  >" ; for ( var ic = 1 ; ic < cls . length ; ++ ic ) { if ( ifnd >= 0 && QPride_formVisibleVariables [ ifnd ] . length > 2 ) t += QPride_formVisibleVariables [ ifnd ] [ 2 ] [ parseInt ( cls [ 1 ] ) ] ; else t += cls [ 1 ] ; } t += "</td></tr>" ; } t += "</table>" ; o . innerHTML = t ; if ( QPride_downloadedForm && QPride_downloadedForm != "" ) { eval ( QPride_downloadedForm ) ; } }
shows the content of the form
shows the content of the form
//t+="<input type=text size=80 readonly=true value='"; //t+="' />";