Revision: 6463 http://care2002.svn.sourceforge.net/care2002/?rev=6463&view=rev Author: mizuko Date: 2010-06-30 11:13:54 +0000 (Wed, 30 Jun 2010)
Log Message: ----------- see #54 Added Paths: ----------- care2x/branches/gettext/modules/or_logbook/op-care-graph-getinfo.php Removed Paths: ------------- care2x/branches/gettext/modules/or_logbook/op-pflege-graph-getinfo.php Copied: care2x/branches/gettext/modules/or_logbook/op-care-graph-getinfo.php (from rev 6462, care2x/branches/gettext/modules/or_logbook/op-pflege-graph-getinfo.php) =================================================================== --- care2x/branches/gettext/modules/or_logbook/op-care-graph-getinfo.php (rev 0) +++ care2x/branches/gettext/modules/or_logbook/op-care-graph-getinfo.php 2010-06-30 11:13:54 UTC (rev 6463) @@ -0,0 +1,440 @@ +<?php +error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); +require('./roots.php'); +require($root_path.'include/helpers/inc_environment_global.php'); +/*if(!$lang) + if(!$ck_language) include("../chklang.php"); + else $lang=$ck_language; +if (!$sid||($sid!=$$ck_sid_buffer)||!$ck_op_pflegelogbuch_user||!$winid||!$patnum) {header("Location:../language/".$lang."/lang_".$lang."_invalid-access-warning.php"); exit;}; +require("../language/".$lang."/lang_".$lang."_or.php"); +*/ +define('LANG_FILE','or.php'); +$local_user='ck_op_pflegelogbuch_user'; +require_once($root_path.'include/helpers/inc_front_chain_lang.php'); + +$dbtable='care_encounter_op'; +$thisfile="op-care-graph-getinfo.php"; + +switch($winid) +{ + case "entry_out": $title="$LDTimes - $LDOpInFull/$LDOpOutFull"; + $element="entry_out"; + $startid=$LDOpIn; + $endid=$LDOpOut; + $maxelement=10; + break; + case "cut_close": $title="$LDTimes - $LDOpCut/$LDOpClose"; + $element="cut_close"; + $startid=$LDOpCut; + $endid=$LDOpClose; + $maxelement=10; + break; + /* + case "wait_time": $title="Wartezeiten"; + $element="wait_time"; + $maxelement=5; + break; + */ + case "bandage_time": $title="$LDTimes - $LDPlasterCast"; + $element="bandage_time"; + $startid=$LDStart; + $endid=$LDEnd; + $maxelement=10; + break; + case "repos_time": $title="$LDTimes - $LDReposition"; + $element="repos_time"; + $startid=$LDStart; + $endid=$LDEnd; + $maxelement=10; + break; + default:{header("Location:../language/".$lang."/lang_".$lang."_invalid-access-warning.php"); exit;}; +} + +/* Establish db connection */ +if(!isset($db)||!$db) include($root_path.'include/helpers/inc_db_makelink.php'); +if($dblink_ok) + { + // get orig data + + if($mode=='save') + { + + // check if entry is already existing + $sql="SELECT nr,$element FROM $dbtable + WHERE encounter_nr='$enc_nr' + AND dept_nr='$dept_nr' + AND op_room='$saal' + AND op_nr='$op_nr'"; + if($ergebnis=$db->Execute($sql)) + { + $rows=$ergebnis->RecordCount(); + + if($rows==1) + { + $item=$ergebnis->FetchRow(); + //echo $sql." checked <br>"; + for($i=0;$i<$maxelement;$i++) + { + $sx="tstart".$i;$ex="tend".$i; + if($$sx){$ib=(float)$$sx; if($ib<10) $$sx="0".$ib; } else continue; + + if($$ex){$ib=(float)$$ex; if($ib<10) $$ex="0".$ib; } + { if($dbuf) $dbuf=$dbuf." ~s=".$$sx."&e=".$$ex; + else $dbuf="s=".$$sx."&e=".$$ex; + } + } + + // $dbuf=htmlspecialchars($dbuf); + $sql="UPDATE $dbtable SET $element='$dbuf' + WHERE nr=".$item['nr']; + +/* $sql="UPDATE $dbtable SET $element='$dbuf' + WHERE encounter_nr='$enc_nr' + AND dept_nr='$dept_nr' + AND op_room='$saal' + AND op_nr='$op_nr'"; +*/ + if($ergebnis=$db->Execute($sql)) + { + //echo $sql." new update <br>"; + //echo "location:$thisfile?sid=$sid&lang=$lang&saved=1&enc_nr=$enc_nr&winid=$winid&dept_nr=$dept_nr&saal=$saal&op_nr=$op_nr&year=$pyear&pmonth=$pmonth&pday=$pday"; + header("location:$thisfile?sid=$sid&lang=$lang&saved=1&enc_nr=$enc_nr&winid=$winid&dept_nr=$dept_nr&saal=$saal&op_nr=$op_nr&year=$pyear&pmonth=$pmonth&pday=$pday"); + exit; + } + else + { + echo $LDPatNoExist; + exit; + }//end of else + }// end of if rows + } + else { echo "$LDDbNoRead<br>"; } + }// end of if(mode==save) + else + { + $sql="SELECT $element FROM $dbtable + WHERE encounter_nr='$enc_nr' + AND dept_nr='$dept_nr' + AND op_room='$saal' + AND op_nr='$op_nr'"; + + if($ergebnis=$db->Execute($sql)) + { + if($rows=$ergebnis->RecordCount()) + { + $result=$ergebnis->FetchRow(); + //echo $sql."<br>file found!"; + } + } + else { echo "$sql $LDDbNoRead<br>"; } + } +} + else { echo "$LDDbNoLink<br>"; } + + +?> + +<?php html_rtl($lang); ?> +<HEAD> +<?php echo setCharSet(); ?> +<TITLE><?php echo $title ?></TITLE> + +<script language="javascript"> +<!-- + function resetinput(){ + document.infoform.reset(); + } + +function pruf(d) +{ + return true +} + function parentrefresh(){ + //window.opener.location.href="pflege-station-patientdaten-kurve.php?sid=<?php echo $sid ?>&station=<?php echo $station ?>&pn=<?php echo $pn."&tag=$dystart&monat=$mo&jahr=$yr&tagname=$dyname" ?>&nofocus=1"; + } + +function isnum(val,idx) +{ + xdoc=document.infoform; + if (isNaN(val)) + { + xval3=""; + for(i=0;i<val.length;i++) + { + xval2=val.slice(i,i+1); + + //if (!isNaN(xval3 + xval2)) {xval3=xval3 + xval2;} + if (isNaN(xval2)) + { + xdoc.elements[idx].value=xval2; + setTime(xdoc.elements[idx]); + return; + } + } + xdoc.elements[idx].value=xval3; + + } + else + { + v3=val; + if((v3==24)&&(v3.length==2)) v3="00"; + if (v3>24) + { + + + switch(v3.length) + { + + case 2: v1=v3.slice(0,1); v2=v3.slice(1,2); + if(v2<6) v3="0"+v1+"."+v2; else v3=v3.slice(0,1); break; + case 3: v1=val.slice(0,2); v2=val.slice(2,3); + + if(v2<6) v3=v1+"."+v2; + else v3=v3.slice(0,2); + break; + case 4: v3=val.slice(0,3); break; + } + + +// alert("Zeitangabe ist ung\xFCltig! (ausserhalb des 24H Zeitrahmens)"); + + } + switch(v3.length) + { + + case 2: v1=v3.slice(0,1);v2=v3.slice(1,2); + if(v2==".") v3="0"+v3;break; + + case 3: v1=v3.slice(0,2);v2=v3.slice(2,3); + if(v2!=".") if(v2<6) v3=v1+"."+v2; else v3=v1; break; + case 4: if(v3.slice(3,4)>5) v3=v3.slice(0,3); break; + } + if(v3.length>5) v3=v3.slice(0,v3.length-1); + xdoc.elements[idx].value=v3; + } + +} + +function isvalnum(val,idx) +{ + xdoc=document.oppflegepatinfo; + + xval3=""; + for(i=0;i<val.length;i++) + { + xval2=val.slice(i,i+1); + if (!isNaN(xval2)) + { + xval3=xval3 + xval2; + if (xval3.length>8) + { + alert("Die Aufnahmenummer hat maximal 8 Ziffern!"); + xdoc.elements[idx].value=xval3.slice(0,8); + return; } + } + } + xdoc.elements[idx].value=xval3; +} + +function isgdatum(val,idx) +{ + xdoc=document.oppflegepatinfo; + + xval3=""; + for(i=0;i<val.length;i++) + { + xval2=val.slice(i,i+1); + if ((!isNaN(xval2))||(xval2==".")) + { + if(xval2==".") + { + if(val.length>1) xval3=xval3+xval2; + } + else + { + xval3=xval3+xval2; + } + } + } + switch (xval3.length) + { + case 2: v1=xval3.slice(0,1); + v2=xval3.slice(1,2); + if(v2==".") + { + if (v1==0) xval3=""; else xval3="0"+xval3; + } + else { + if ((v1+v2)<1) xval3=""; + else if ((v1+v2)>31) xval3="0"+v1+"."+v2; + + } + break; + case 3: v1=xval3.slice(0,2); + v2=xval3.slice(2,3); + if (v2!=".") xval3=v1+"."+v2; + break; + case 4: v1=xval3.slice(0,3); + v2=xval3.slice(3,4); + if (v2!=".") xval3=v1+v2; else xval3=v1; + break; + case 5: v1=xval3.slice(0,3); + v2=xval3.slice(3,4); + v3=xval3.slice(4,5); + if (v3==".") + { + if (v2==0) xval3=v1+v2; + else xval3=v1+"0"+v2+v3; + } + else if((v2+v3)<1) xval3=v1+v2; + else if((v2+v3)>12) xval3=v1+"0"+v2+"."+v3; + break; + case 6: v1=xval3.slice(0,5); + v2=xval3.slice(5,6); + if (v3!=".") + { + if (v2==0) xval3=v1 + else xval3=v1+"."+v2; + } + break; + } + if ((xval3.length>6)&&(xval3.slice(xval3.length-1,xval3.length)=="."))xval3=xval3.slice(0,xval3.length-1); + if (xval3.length>10) xval3=xval3.slice(0,10); + xdoc.elements[idx].value=xval3; + +} + +function updatebar(x) +{ + if(x=="main"){ + window.opener.parent.LOGINPUT.location.replace('<?php echo "oploginput.php?sid=$sid&lang=$lang&mode=edit&enc_nr=$enc_nr".$_SESSION['sess_comdat']; ?>'); + window.opener.parent.OPLOGMAIN.location.replace("<?php echo "oplogmain.php?sid=$sid&lang=$lang&gotoid=$enc_nr".$_SESSION['sess_comdat']; ?>"); + }else{ + window.opener.parent.OPLOGIMGBAR.location.replace('<?php echo "oplogtimebar.php?sid=$sid&lang=$lang&winid=$winid&enc_nr=$enc_nr".$_SESSION['sess_comdat']; ?>'); + } +} +//$imgsrc="../imgcreator/log-timebar.php?sid=$sid&winid=$winid&patnum=$patnum&op_nr=$op_nr&dept=$dept&saal=$saal&pyear=$pyear&pmonth=$pmonth&pday=$pday"; +//--> +</script> +<script language="javascript" src="<?php echo $root_path ?>js/setdatetime.js"> +</script> +<?php +require($root_path.'include/helpers/inc_js_gethelp.php'); +require($root_path.'include/helpers/inc_css_a_hilitebu.php'); +?> +<STYLE type=text/css> +div.box { border: double; border-width: thin; width: 100%; border-color: black; } +.v12 { font-family:verdana,arial;font-size:12; } +.v12 { font-family:verdana,arial;font-size:13; } +</style> + +</HEAD> +<BODY bgcolor="#dfdfdf" TEXT="#000000" LINK="#0000FF" VLINK="#800080" topmargin=2 marginheight=2 +onLoad="<?php if($saved) + { + if(($winid=="entry_out")||($winid=="cut_close")) $buf="main"; + echo "updatebar('$buf');"; + } + ?>if (window.focus) window.focus(); window.focus();" > + +<a href="javascript:window.close()"><img <?php echo createLDImgSrc($root_path,'close2.gif','0') ?> alt="<?php echo $LDClose ?>" align="right"> +</a><a href="javascript:gethelp('oplog.php','time','<?php echo $winid ?>')"><img <?php echo createLDImgSrc($root_path,'hilfe-r.gif','0') ?> alt="<?php echo $LDHelp ?>" align="right"></a> + +<font face=verdana,arial size=5 color=maroon> +<b> +<?php + //echo "$title $patnum $dept $saal $op_nr $pday $pmonth $pyear $winid"; + echo $title; +?> +</b> +</font> +<p> + + +<font face=verdana,arial size=3 > +<form name="infoform" action="<?php echo $thisfile ?>" method="post" onSubmit="return pruf(this)"> +<font face=verdana,arial size=2 > + + +<table border=0 width=100% bgcolor="#6f6f6f" cellspacing=0 cellpadding=0> + <tr> + <td> +<table border=0 width=100% cellspacing=1> + <tr> + <td align=center bgcolor="#cfcfcf" class="v13"><font color="#ff0000"> </td> + </tr> + <tr> + <td align=center bgcolor="#ffffff"> + + <table border=0 border=0 cellspacing=0 cellpadding=0> + <tr> + <td align=center class="v12"><?php echo $startid ?>:</td> + <td align=center class="v12"><?php echo $endid ?>:</td> + </tr> + <?php + $b=explode("~",trim($result[$element])); + sort($b,SORT_REGULAR); + if(!$b[0]) array_splice($b,0,1); + if(sizeof($b)<10) $counter=10; + else $counter=sizeof($b)+1; + for($i=0;$i<$counter;$i++) + { + parse_str(trim($b[$i]),$bb); + echo ' + <tr> + <td class="v12">'.strtolower($LDFrom).': <input type="text" name="tstart'.$i.'" size=6 maxlength=5 value="'.$bb[s].'" onKeyUp="isnum(this.value,this.name)"> + </td> + <td class="v12">'.strtolower($LDTo).': <input type="text" name="tend'.$i.'" size=6 maxlength=5 value="'.$bb[e].'" onKeyUp="isnum(this.value,this.name)"></td> + </tr> + '; + } + ?> + </table> + + </td> + </tr> +</table> +</td> + </tr> +</table> + + + + + + +<?php + $cbuf="sd=$yr$mo$dy&rd=$dy.$mo.$yr"; + $arr=explode("_",$result[$element]); + while(list($x,$v)=each($arr)) + { + if(stristr($v,$cbuf)) + { + $sbuf=$v; + break; + } + } +?> + + + +<input type="hidden" name="sid" value="<?php echo $sid ?>"> +<input type="hidden" name="lang" value="<?php echo $lang ?>"> +<input type="hidden" name="winid" value="<?php echo $winid ?>"> +<input type="hidden" name="pyear" value="<?php echo $pyear ?>"> +<input type="hidden" name="pmonth" value="<?php echo $pmonth ?>"> +<input type="hidden" name="pday" value="<?php echo $pday ?>"> +<input type="hidden" name="enc_nr" value="<?php echo $enc_nr ?>"> +<input type="hidden" name="dept_nr" value="<?php echo $dept_nr ?>"> +<input type="hidden" name="saal" value="<?php echo $saal ?>"> +<input type="hidden" name="op_nr" value="<?php echo $op_nr ?>"> +<input type="hidden" name="mode" value="save"> + +</form> +<p> +<div align=right> +<a href="javascript:document.infoform.submit();"><img <?php echo createLDImgSrc($root_path,'savedisc.gif','0') ?> alt="<?php echo $LDSave ?>"></a> +</div> +</BODY> + +</HTML> Deleted: care2x/branches/gettext/modules/or_logbook/op-pflege-graph-getinfo.php =================================================================== --- care2x/branches/gettext/modules/or_logbook/op-pflege-graph-getinfo.php 2010-06-30 11:13:22 UTC (rev 6462) +++ care2x/branches/gettext/modules/or_logbook/op-pflege-graph-getinfo.php 2010-06-30 11:13:54 UTC (rev 6463) @@ -1,440 +0,0 @@ -<?php -error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR); -require('./roots.php'); -require($root_path.'include/helpers/inc_environment_global.php'); -/*if(!$lang) - if(!$ck_language) include("../chklang.php"); - else $lang=$ck_language; -if (!$sid||($sid!=$$ck_sid_buffer)||!$ck_op_pflegelogbuch_user||!$winid||!$patnum) {header("Location:../language/".$lang."/lang_".$lang."_invalid-access-warning.php"); exit;}; -require("../language/".$lang."/lang_".$lang."_or.php"); -*/ -define('LANG_FILE','or.php'); -$local_user='ck_op_pflegelogbuch_user'; -require_once($root_path.'include/helpers/inc_front_chain_lang.php'); - -$dbtable='care_encounter_op'; -$thisfile="op-care-graph-getinfo.php"; - -switch($winid) -{ - case "entry_out": $title="$LDTimes - $LDOpInFull/$LDOpOutFull"; - $element="entry_out"; - $startid=$LDOpIn; - $endid=$LDOpOut; - $maxelement=10; - break; - case "cut_close": $title="$LDTimes - $LDOpCut/$LDOpClose"; - $element="cut_close"; - $startid=$LDOpCut; - $endid=$LDOpClose; - $maxelement=10; - break; - /* - case "wait_time": $title="Wartezeiten"; - $element="wait_time"; - $maxelement=5; - break; - */ - case "bandage_time": $title="$LDTimes - $LDPlasterCast"; - $element="bandage_time"; - $startid=$LDStart; - $endid=$LDEnd; - $maxelement=10; - break; - case "repos_time": $title="$LDTimes - $LDReposition"; - $element="repos_time"; - $startid=$LDStart; - $endid=$LDEnd; - $maxelement=10; - break; - default:{header("Location:../language/".$lang."/lang_".$lang."_invalid-access-warning.php"); exit;}; -} - -/* Establish db connection */ -if(!isset($db)||!$db) include($root_path.'include/helpers/inc_db_makelink.php'); -if($dblink_ok) - { - // get orig data - - if($mode=='save') - { - - // check if entry is already existing - $sql="SELECT nr,$element FROM $dbtable - WHERE encounter_nr='$enc_nr' - AND dept_nr='$dept_nr' - AND op_room='$saal' - AND op_nr='$op_nr'"; - if($ergebnis=$db->Execute($sql)) - { - $rows=$ergebnis->RecordCount(); - - if($rows==1) - { - $item=$ergebnis->FetchRow(); - //echo $sql." checked <br>"; - for($i=0;$i<$maxelement;$i++) - { - $sx="tstart".$i;$ex="tend".$i; - if($$sx){$ib=(float)$$sx; if($ib<10) $$sx="0".$ib; } else continue; - - if($$ex){$ib=(float)$$ex; if($ib<10) $$ex="0".$ib; } - { if($dbuf) $dbuf=$dbuf." ~s=".$$sx."&e=".$$ex; - else $dbuf="s=".$$sx."&e=".$$ex; - } - } - - // $dbuf=htmlspecialchars($dbuf); - $sql="UPDATE $dbtable SET $element='$dbuf' - WHERE nr=".$item['nr']; - -/* $sql="UPDATE $dbtable SET $element='$dbuf' - WHERE encounter_nr='$enc_nr' - AND dept_nr='$dept_nr' - AND op_room='$saal' - AND op_nr='$op_nr'"; -*/ - if($ergebnis=$db->Execute($sql)) - { - //echo $sql." new update <br>"; - //echo "location:$thisfile?sid=$sid&lang=$lang&saved=1&enc_nr=$enc_nr&winid=$winid&dept_nr=$dept_nr&saal=$saal&op_nr=$op_nr&year=$pyear&pmonth=$pmonth&pday=$pday"; - header("location:$thisfile?sid=$sid&lang=$lang&saved=1&enc_nr=$enc_nr&winid=$winid&dept_nr=$dept_nr&saal=$saal&op_nr=$op_nr&year=$pyear&pmonth=$pmonth&pday=$pday"); - exit; - } - else - { - echo $LDPatNoExist; - exit; - }//end of else - }// end of if rows - } - else { echo "$LDDbNoRead<br>"; } - }// end of if(mode==save) - else - { - $sql="SELECT $element FROM $dbtable - WHERE encounter_nr='$enc_nr' - AND dept_nr='$dept_nr' - AND op_room='$saal' - AND op_nr='$op_nr'"; - - if($ergebnis=$db->Execute($sql)) - { - if($rows=$ergebnis->RecordCount()) - { - $result=$ergebnis->FetchRow(); - //echo $sql."<br>file found!"; - } - } - else { echo "$sql $LDDbNoRead<br>"; } - } -} - else { echo "$LDDbNoLink<br>"; } - - -?> - -<?php html_rtl($lang); ?> -<HEAD> -<?php echo setCharSet(); ?> -<TITLE><?php echo $title ?></TITLE> - -<script language="javascript"> -<!-- - function resetinput(){ - document.infoform.reset(); - } - -function pruf(d) -{ - return true -} - function parentrefresh(){ - //window.opener.location.href="pflege-station-patientdaten-kurve.php?sid=<?php echo $sid ?>&station=<?php echo $station ?>&pn=<?php echo $pn."&tag=$dystart&monat=$mo&jahr=$yr&tagname=$dyname" ?>&nofocus=1"; - } - -function isnum(val,idx) -{ - xdoc=document.infoform; - if (isNaN(val)) - { - xval3=""; - for(i=0;i<val.length;i++) - { - xval2=val.slice(i,i+1); - - //if (!isNaN(xval3 + xval2)) {xval3=xval3 + xval2;} - if (isNaN(xval2)) - { - xdoc.elements[idx].value=xval2; - setTime(xdoc.elements[idx]); - return; - } - } - xdoc.elements[idx].value=xval3; - - } - else - { - v3=val; - if((v3==24)&&(v3.length==2)) v3="00"; - if (v3>24) - { - - - switch(v3.length) - { - - case 2: v1=v3.slice(0,1); v2=v3.slice(1,2); - if(v2<6) v3="0"+v1+"."+v2; else v3=v3.slice(0,1); break; - case 3: v1=val.slice(0,2); v2=val.slice(2,3); - - if(v2<6) v3=v1+"."+v2; - else v3=v3.slice(0,2); - break; - case 4: v3=val.slice(0,3); break; - } - - -// alert("Zeitangabe ist ung\xFCltig! (ausserhalb des 24H Zeitrahmens)"); - - } - switch(v3.length) - { - - case 2: v1=v3.slice(0,1);v2=v3.slice(1,2); - if(v2==".") v3="0"+v3;break; - - case 3: v1=v3.slice(0,2);v2=v3.slice(2,3); - if(v2!=".") if(v2<6) v3=v1+"."+v2; else v3=v1; break; - case 4: if(v3.slice(3,4)>5) v3=v3.slice(0,3); break; - } - if(v3.length>5) v3=v3.slice(0,v3.length-1); - xdoc.elements[idx].value=v3; - } - -} - -function isvalnum(val,idx) -{ - xdoc=document.oppflegepatinfo; - - xval3=""; - for(i=0;i<val.length;i++) - { - xval2=val.slice(i,i+1); - if (!isNaN(xval2)) - { - xval3=xval3 + xval2; - if (xval3.length>8) - { - alert("Die Aufnahmenummer hat maximal 8 Ziffern!"); - xdoc.elements[idx].value=xval3.slice(0,8); - return; } - } - } - xdoc.elements[idx].value=xval3; -} - -function isgdatum(val,idx) -{ - xdoc=document.oppflegepatinfo; - - xval3=""; - for(i=0;i<val.length;i++) - { - xval2=val.slice(i,i+1); - if ((!isNaN(xval2))||(xval2==".")) - { - if(xval2==".") - { - if(val.length>1) xval3=xval3+xval2; - } - else - { - xval3=xval3+xval2; - } - } - } - switch (xval3.length) - { - case 2: v1=xval3.slice(0,1); - v2=xval3.slice(1,2); - if(v2==".") - { - if (v1==0) xval3=""; else xval3="0"+xval3; - } - else { - if ((v1+v2)<1) xval3=""; - else if ((v1+v2)>31) xval3="0"+v1+"."+v2; - - } - break; - case 3: v1=xval3.slice(0,2); - v2=xval3.slice(2,3); - if (v2!=".") xval3=v1+"."+v2; - break; - case 4: v1=xval3.slice(0,3); - v2=xval3.slice(3,4); - if (v2!=".") xval3=v1+v2; else xval3=v1; - break; - case 5: v1=xval3.slice(0,3); - v2=xval3.slice(3,4); - v3=xval3.slice(4,5); - if (v3==".") - { - if (v2==0) xval3=v1+v2; - else xval3=v1+"0"+v2+v3; - } - else if((v2+v3)<1) xval3=v1+v2; - else if((v2+v3)>12) xval3=v1+"0"+v2+"."+v3; - break; - case 6: v1=xval3.slice(0,5); - v2=xval3.slice(5,6); - if (v3!=".") - { - if (v2==0) xval3=v1 - else xval3=v1+"."+v2; - } - break; - } - if ((xval3.length>6)&&(xval3.slice(xval3.length-1,xval3.length)=="."))xval3=xval3.slice(0,xval3.length-1); - if (xval3.length>10) xval3=xval3.slice(0,10); - xdoc.elements[idx].value=xval3; - -} - -function updatebar(x) -{ - if(x=="main"){ - window.opener.parent.LOGINPUT.location.replace('<?php echo "oploginput.php?sid=$sid&lang=$lang&mode=edit&enc_nr=$enc_nr".$_SESSION['sess_comdat']; ?>'); - window.opener.parent.OPLOGMAIN.location.replace("<?php echo "oplogmain.php?sid=$sid&lang=$lang&gotoid=$enc_nr".$_SESSION['sess_comdat']; ?>"); - }else{ - window.opener.parent.OPLOGIMGBAR.location.replace('<?php echo "oplogtimebar.php?sid=$sid&lang=$lang&winid=$winid&enc_nr=$enc_nr".$_SESSION['sess_comdat']; ?>'); - } -} -//$imgsrc="../imgcreator/log-timebar.php?sid=$sid&winid=$winid&patnum=$patnum&op_nr=$op_nr&dept=$dept&saal=$saal&pyear=$pyear&pmonth=$pmonth&pday=$pday"; -//--> -</script> -<script language="javascript" src="<?php echo $root_path ?>js/setdatetime.js"> -</script> -<?php -require($root_path.'include/helpers/inc_js_gethelp.php'); -require($root_path.'include/helpers/inc_css_a_hilitebu.php'); -?> -<STYLE type=text/css> -div.box { border: double; border-width: thin; width: 100%; border-color: black; } -.v12 { font-family:verdana,arial;font-size:12; } -.v12 { font-family:verdana,arial;font-size:13; } -</style> - -</HEAD> -<BODY bgcolor="#dfdfdf" TEXT="#000000" LINK="#0000FF" VLINK="#800080" topmargin=2 marginheight=2 -onLoad="<?php if($saved) - { - if(($winid=="entry_out")||($winid=="cut_close")) $buf="main"; - echo "updatebar('$buf');"; - } - ?>if (window.focus) window.focus(); window.focus();" > - -<a href="javascript:window.close()"><img <?php echo createLDImgSrc($root_path,'close2.gif','0') ?> alt="<?php echo $LDClose ?>" align="right"> -</a><a href="javascript:gethelp('oplog.php','time','<?php echo $winid ?>')"><img <?php echo createLDImgSrc($root_path,'hilfe-r.gif','0') ?> alt="<?php echo $LDHelp ?>" align="right"></a> - -<font face=verdana,arial size=5 color=maroon> -<b> -<?php - //echo "$title $patnum $dept $saal $op_nr $pday $pmonth $pyear $winid"; - echo $title; -?> -</b> -</font> -<p> - - -<font face=verdana,arial size=3 > -<form name="infoform" action="<?php echo $thisfile ?>" method="post" onSubmit="return pruf(this)"> -<font face=verdana,arial size=2 > - - -<table border=0 width=100% bgcolor="#6f6f6f" cellspacing=0 cellpadding=0> - <tr> - <td> -<table border=0 width=100% cellspacing=1> - <tr> - <td align=center bgcolor="#cfcfcf" class="v13"><font color="#ff0000"> </td> - </tr> - <tr> - <td align=center bgcolor="#ffffff"> - - <table border=0 border=0 cellspacing=0 cellpadding=0> - <tr> - <td align=center class="v12"><?php echo $startid ?>:</td> - <td align=center class="v12"><?php echo $endid ?>:</td> - </tr> - <?php - $b=explode("~",trim($result[$element])); - sort($b,SORT_REGULAR); - if(!$b[0]) array_splice($b,0,1); - if(sizeof($b)<10) $counter=10; - else $counter=sizeof($b)+1; - for($i=0;$i<$counter;$i++) - { - parse_str(trim($b[$i]),$bb); - echo ' - <tr> - <td class="v12">'.strtolower($LDFrom).': <input type="text" name="tstart'.$i.'" size=6 maxlength=5 value="'.$bb[s].'" onKeyUp="isnum(this.value,this.name)"> - </td> - <td class="v12">'.strtolower($LDTo).': <input type="text" name="tend'.$i.'" size=6 maxlength=5 value="'.$bb[e].'" onKeyUp="isnum(this.value,this.name)"></td> - </tr> - '; - } - ?> - </table> - - </td> - </tr> -</table> -</td> - </tr> -</table> - - - - - - -<?php - $cbuf="sd=$yr$mo$dy&rd=$dy.$mo.$yr"; - $arr=explode("_",$result[$element]); - while(list($x,$v)=each($arr)) - { - if(stristr($v,$cbuf)) - { - $sbuf=$v; - break; - } - } -?> - - - -<input type="hidden" name="sid" value="<?php echo $sid ?>"> -<input type="hidden" name="lang" value="<?php echo $lang ?>"> -<input type="hidden" name="winid" value="<?php echo $winid ?>"> -<input type="hidden" name="pyear" value="<?php echo $pyear ?>"> -<input type="hidden" name="pmonth" value="<?php echo $pmonth ?>"> -<input type="hidden" name="pday" value="<?php echo $pday ?>"> -<input type="hidden" name="enc_nr" value="<?php echo $enc_nr ?>"> -<input type="hidden" name="dept_nr" value="<?php echo $dept_nr ?>"> -<input type="hidden" name="saal" value="<?php echo $saal ?>"> -<input type="hidden" name="op_nr" value="<?php echo $op_nr ?>"> -<input type="hidden" name="mode" value="save"> - -</form> -<p> -<div align=right> -<a href="javascript:document.infoform.submit();"><img <?php echo createLDImgSrc($root_path,'savedisc.gif','0') ?> alt="<?php echo $LDSave ?>"></a> -</div> -</BODY> - -</HTML> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Care2002-developers mailing list Care2002-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/care2002-developers