[php] all

Viewer

  1. <?php
  2. session_start();
  3.  
  4. //echo $USERNAME."-".$PASSWD;
  5. if (!$USERNAME && !$PASSWD) {
  6.     die("Wrong Username or Password!");
  7. }
  8.  
  9. //databaselogin
  10. require("../../../lib/fktlogin.php");
  11.  
  12. //Schmitz
  13. if ($_SESSION['ORASID'] == 'MY48030') {
  14.     if ($_SESSION["SES_BUTTONWORK"] != $_GET['BUTTONWORK']) {
  15.         if ($_GET['BUTTONWORK'] == "ON") {
  16.             $query = 'begin'
  17.                     . '    MYKENE.PROC$_SET_USER_WORK(1);'
  18.                     . 'end;';
  19.  
  20.             $stmt = OCIParse($con, $query);
  21.  
  22.             ociexecute($stmt);
  23.             ocifreestatement($stmt);
  24.         } 
  25.                 elseif ($_GET['BUTTONWORK'] == "OFF") {
  26.             $query = 'begin'
  27.                     . '    MYKENE.PROC$_SET_USER_WORK(0);'
  28.                     . 'end;';
  29.  
  30.             $stmt = OCIParse($con, $query);
  31.  
  32.             ociexecute($stmt);
  33.             ocifreestatement($stmt);
  34.         }
  35.     }
  36.     $_SESSION["SES_BUTTONWORK"] = $_GET['BUTTONWORK'];
  37. }
  38.  
  39. class infocenter {
  40.  
  41.     var $weekdaynames;
  42.     var $monthnames;
  43.     var $defaultView;
  44.     var $calCaption;
  45.     var $taskCaption;
  46.     var $infoCaption;
  47.     var $emailCaption;
  48.     var $resubmitCaption;
  49.     var $morningCaption;
  50.     var $dayCaption;
  51.     var $eveningCaption;
  52.     var $toCaption;
  53.     var $timeCaption;
  54.     var $oracleDateFormatShort;
  55.     var $oracleTimeFormatShort;
  56.     var $oracleDateTimeFormat;
  57.     var $oracleDateFormat;
  58.     var $oracleStartWeekdayAdjust;
  59.  
  60.     //Konstruktor
  61.     function infocenter() {
  62.         //Hier Sprachanpassungen vornehmen
  63.         $this->weekdaynames = array('Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag', 'Sonntag');
  64.         $this->monthnames = array('', 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember');
  65.         $this->defaultView = $_GET['defaultView'];
  66.         $this->calCaption = 'k a l e n d e r';
  67.         $this->taskCaption = 'a u f g a b e n';
  68.         $this->infoCaption = 'i n f o s';
  69.         $this->emailCaption = 'e m a i l s';
  70.         $this->reportCaption = 'r e p o r t';
  71.         $this->resubmitCaption = 'w i e d e r v o r l a g e n';
  72.         $this->morningCaption = 'Guten Morgen';
  73.         $this->dayCaption = 'Guten Tag';
  74.         $this->eveningCaption = 'Guten Abend';
  75.         $this->toCaption = 'bis';
  76.         $this->timeCaption = 'Uhr';
  77.         $this->oracleDateTimeFormat = 'DD.MM.YYYY HH24:MI';
  78.         $this->oracleDateFormat = 'DD.MM.YYYY';
  79.         $this->oracleDateFormatShort = 'DD.MM.';
  80.         $this->oracleTimeFormatShort = 'HH24:MI';
  81.         //Für Wochenstart am Sontag auf 1 setzen
  82.         $this->oracleStartWeekdayAdjust = 0;
  83.  
  84.         function getColor($Color) {
  85.             $Color = Dechex($Color);
  86.             if (!$Color)
  87.                 $Color = 'FFFFFF';
  88.             while (strlen($Color) <= 5)
  89.                 $Color = '0' . $Color;
  90.  
  91.             $Color = $Color{4} . $Color{5} . $Color{2} . $Color{3} . $Color{0} . $Color{1};
  92.             return $Color;
  93.         }
  94.  
  95.         //funktion wird mit array aufgerufen, die zur ausgabe der daten von aufgaben, kalender etc. dienen
  96.         //der inhalt des arrays wird so bearbeitet, dass keine html oder js ausgeführt wird
  97.         function htmlOut($array) {
  98.             foreach ($array as $key => $value) {
  99.                 $array[$key] = htmlentities($value);
  100.             }
  101.             return $array;
  102.         }
  103.  
  104.     }
  105.  
  106.     function cal() {
  107.         global $con;
  108.         ?>
  109.         <!-- Kalender -->
  110.         <tr>
  111.             <td style="height:18px;">
  112.                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  113.                     <tr>
  114.                         <td class="head" nowrap>
  115.                                                         <a class="biglink" href="cmd:opencalendar(-1)"><?php echo $this->calCaption; ?></a>
  116.                                                 </td>
  117.                         <?php 
  118.                                                 if ($this->defaultView == 'cal') { 
  119.                                                         ?>
  120.                             <td class="head" style="padding-right:10px;text-align:right;font:10px normal Tahoma;color: #0161A7;">
  121.                                 <?php echo $this->weekdaynames[gmdate("w")] . ", " . gmdate("j.") . $this->monthnames[gmdate("g")] . " " . gmdate("Y") ?>
  122.                                                         </td>
  123.                                                         <?php 
  124.                                                 } 
  125.                                                 ?>
  126.                     </tr>
  127.                 </table>
  128.             </td>
  129.         </tr>
  130.         <tr>
  131.             <td style="vertical-align:top;">
  132.                 <div style="height:100%;padding:10px">
  133.                     <table style="width:100%">
  134.                                                 <?php
  135.                         $curscal = OCINewCursor($con);
  136.                         $querycal = 'begin'
  137.                                 . ' :o_result:=PK$_TOOLS.get_sql(:cursor, \''
  138.                                 . ' select to_char(e.STARTTIME,\'\'' . $this->oracleTimeFormatShort . '\'\')||\'\' ' . $this->toCaption . ' \'\'||to_char(e.ENDTIME,\'\'' . $this->oracleTimeFormatShort . '\'\') STARTTIME,'
  139.                                 . ' to_char(e.STARTTIME,\'\'' . $this->oracleDateFormatShort . '\'\') STARTDAY, to_char(e.STARTTIME,\'\'D\'\') WEEKDAY,'
  140.                                 . ' e.ENTRY_ID, e.SUBJECT, trunc(e.STARTTIME)-trunc(sysdate) DAYS, e.COLOR, e.PRIORITY, e.MAN_ID, e.CUST_ID'
  141.                                 . ' ,c.NAME, c.FIRSTNAME, c.COMPANY1'
  142.                                 . ' from ts$_entry e, ts$_customer c'
  143.                                 . ' where e.type_id=3 and entry_id in (select entry_id from ts$_entry_user where user_id='
  144.                                 . $_SESSION['USERID']
  145.                                 . ') and STARTTIME>=trunc(sysdate) and STARTTIME<trunc(sysdate)+5 and e.man_id=c.man_id(+) and e.cust_id=c.cust_id(+)'
  146.                                 . ' group by e.STARTTIME, e.ENDTIME, e.ENTRY_ID, e.SUBJECT, e.COLOR, e.PRIORITY, e.MAN_ID, e.CUST_ID, c.NAME, c.FIRSTNAME, c.COMPANY1'
  147.                                 . ' order by e.STARTTIME'
  148.                                 . '\', :o_count, :o_time, :o_errormsg);'
  149.                                 . 'end;';
  150.                         $stmtcal = OCIParse($con, $querycal);
  151.                         OCIBindByName($stmtcal, "cursor", &$curscal, -1, OCI_B_CURSOR);
  152.                         OCIBindByName($stmtcal, "o_result", $resultcal, 32);
  153.                         OCIBindByName($stmtcal, "o_count", $countcal, 32);
  154.                         OCIBindByName($stmtcal, "o_time", $timecal, 32);
  155.                         OCIBindByName($stmtcal, "o_errormsg", $errormsgcal, 255);
  156.                         ociexecute($stmtcal);
  157.                         ociexecute($curscal);
  158.                         //echo "<tr><td>ZEIT:".$timecal."</td><td></td></tr>";
  159.                         //echo "Result:".$resultcal."-".$errormsgcal."-Anzahl:".$countcal;
  160.                         $tempday = -1;
  161.  
  162.                         while (OCIFetchInto($curscal, &$datacal, OCI_ASSOC)) {
  163.                             $datacal = htmlOut($datacal);
  164.                             if ($tempday != $datacal['DAYS']) {
  165.                                 if ($datacal['DAYS'] == 0)
  166.                                     $header = "Heute";
  167.                                 elseif ($datacal['DAYS'] == 1)
  168.                                     $header = "Morgen";
  169.                                 elseif ($datacal['DAYS'] == 2)
  170.                                     $header = "Übermorgen";
  171.                                 else
  172.                                     $header = $this->weekdaynames[gmdate("w") + $datacal['DAYS']];
  173.                                 $tempday = $datacal['DAYS'];
  174.                                 ?>
  175.                                 <tr>
  176.                                     <td class="header2" colspan="2"><?php echo $header; ?></td>
  177.                                     <td class="header2"><?php echo $this->weekdaynames[$datacal['WEEKDAY']] . ', ' . $datacal['STARTDAY']; ?></td>
  178.                                 </tr>
  179.                                 <?php
  180.                             }//else echo "<table style=\"width:100%\">";
  181.                             //list($day, $time) = explode (" ", $datacal['STARTTIME']);
  182.  
  183.                             $color = getColor($datacal['COLOR']);
  184.                             ?>
  185.                             <tr>
  186.                                 <td style="width:9px;">
  187.                                                                         <?php
  188.                                     if ($datacal['PRIORITY'] == 0)
  189.                                         echo '<img src="images/priolow_8_12.gif">';
  190.                                     elseif ($datacal['PRIORITY'] == 2)
  191.                                         echo '<img src="images/priohigh_8_12.gif">';
  192.                                     else
  193.                                         echo '<img src="images/prionorm_8_12.gif">';
  194.                                     ?>
  195.                                                                         </td>
  196.                                 <td style="width:50px">
  197.                                                                         <a class="entrylink" style="width:100%;background-color:#<?php echo $color; ?>;padding:2px" href="cmd:opencalendar(<?php echo $datacal['ENTRY_ID'] ?>)">
  198.                                                                                 <?php echo html_entity_decode($datacal['STARTTIME']); ?>
  199.                                                                         </a>
  200.                                                                 </td>
  201.                                 <td style="width:100%">
  202.                                                                         <a class="entrylink" href="cmd:opencalendar(<?php echo $datacal['ENTRY_ID']; ?>);" >
  203.                                                                                 <?php 
  204.                                                                                 echo $datacal['SUBJECT'];
  205.                                                                                 if ($datacal['CUST_ID'] > 0)
  206.                                                                                         echo "<br>" . $datacal['NAME'] . ", " . $datacal['FIRSTNAME'] . " (" . $datacal['COMPANY1'] . ")";
  207.                                                                                 ?>
  208.                                     </a>
  209.                                                                 </td>
  210.                             </tr>
  211.                             <?php 
  212.                                                 } 
  213.                                                 ?>
  214.                     </table>
  215.                 </div>
  216.             </td>
  217.         </tr>
  218.         <?php
  219.     }
  220.  
  221.     function info() {
  222.         global $con;
  223.         ?>
  224.         <!-- Infos -->
  225.         <tr>
  226.                         <td style="height:18px;">
  227.                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  228.                     <tr>
  229.                         <td class="head" nowrap>
  230.                                                         <a class="biglink" href="cmd:openinfo(-1)"><?php echo $this->infoCaption; ?></a>
  231.                                                 </td>
  232.                         <?php 
  233.                                                 if ($this->defaultView == 'info') { 
  234.                                                         ?>
  235.                             <td class="head" style="padding-right:10px;text-align:right;font:10px normal Tahoma;color: #0161A7;">
  236.                                 <?php echo $this->weekdaynames[gmdate("w")] . ", " . gmdate("j.") . $this->monthnames[gmdate("g")] . " " . gmdate("Y"); ?>
  237.                                                         </td>
  238.                             <?php 
  239.                                                 } 
  240.                                                 ?>
  241.                     </tr>
  242.                 </table>
  243.             </td>
  244.         </tr>
  245.         <tr>
  246.             <td style="vertical-align:top;">
  247.                 <div style="height:100%;padding:10px">
  248.                     <table style="width:100%">
  249.                         <?php
  250.                         $cursinfo = OCINewCursor($con);
  251.                                                 /* $queryinfo='begin'
  252.                                                   .'  :o_result:=PK$_TOOLS.get_sql(:cursor, \'select ENTRY_ID, SUBJECT, COLOR, PRIORITY from ts$_entry where type_id=1 and entry_id in (select entry_id from ts$_entry_user where user_id='
  253.                                                   .$_SESSION['USERID']
  254.                                                   .') and sysdate>=starttime and sysdate<endtime\', :o_count, :o_time, :o_errormsg);'
  255.                                                   .'end;'; */
  256.  
  257.                                                 $queryinfo = 'begin'
  258.                                                                 . ' :o_result:=PK$_TOOLS.get_sql(:cursor, \''
  259.                                                                 . ' select e.ENTRY_ID, e.SUBJECT, e.COLOR, e.PRIORITY, e.MAN_ID, e.CUST_ID, c.NAME, c.FIRSTNAME, c.COMPANY1'
  260.                                                                 . ' from ts$_entry e, ts$_customer c'
  261.                                                                 . ' where e.type_id=1 and entry_id in (select entry_id from ts$_entry_user where user_id='
  262.                                                                 . $_SESSION['USERID']
  263.                                                                 . ') and sysdate>=starttime and sysdate<endtime and e.man_id=c.man_id(+) and e.cust_id=c.cust_id(+)'
  264.                                                                 . '\', :o_count, :o_time, :o_errormsg);'
  265.                                                                 . 'end;';
  266.  
  267.                                                 $stmtinfo = OCIParse($con, $queryinfo);
  268.  
  269.                                                 OCIBindByName($stmtinfo, "cursor", &$cursinfo, -1, OCI_B_CURSOR);
  270.                                                 OCIBindByName($stmtinfo, "o_result", $resultinfo, 32);
  271.                                                 OCIBindByName($stmtinfo, "o_count", $countinfo, 32);
  272.                                                 OCIBindByName($stmtinfo, "o_time", $timeinfo, 32);
  273.                                                 OCIBindByName($stmtinfo, "o_errormsg", $errormsginfo, 255);
  274.  
  275.                                                 ociexecute($stmtinfo);
  276.                                                 ociexecute($cursinfo);
  277.  
  278.                                                 //echo "<tr><td>ZEIT:".$timeinfo."</td><td></td></tr>";
  279.                                                 //echo "Result:".$resultinfo."-".$errormsginfo."-Anzahl:".$countinfo;
  280.  
  281.                         while (OCIFetchInto($cursinfo, &$datainfo, OCI_ASSOC)) {
  282.                             $cursinfo = htmlOut($cursinfo);
  283.                             $color = getColor($datainfo['COLOR']);
  284.                             ?>
  285.                             <tr>
  286.                                 <td style="width:9px;">
  287.                                                                         <?php
  288.                                                                         if ($datainfo['PRIORITY'] == 0)
  289.                                                                                 echo '<img src="images/priolow_8_12.gif">';
  290.                                                                         elseif ($datainfo['PRIORITY'] == 2)
  291.                                                                                 echo '<img src="images/priohigh_8_12.gif">';
  292.                                                                         else
  293.                                                                                 echo '<img src="images/prionorm_8_12.gif">';
  294.                                     ?>
  295.                                                                 </td>
  296.                                 <td>
  297.                                                                         <a class="entrylink" style="background-color:#<?php echo $color; ?>;padding:2px" href="cmd:openinfo(<?php echo $datainfo['ENTRY_ID']; ?>)" >
  298.                                                                                 <?php 
  299.                                                                                 echo $datainfo['SUBJECT'];
  300.                                         if ($datainfo['CUST_ID'] > 0)
  301.                                             echo "<br>" . $datainfo['NAME'] . ", " . $datainfo['FIRSTNAME'] . " (" . $datainfo['COMPANY1'] . ")";
  302.                                         ?>
  303.                                     </a>
  304.                                                                 </td>
  305.                                                         </tr>
  306.                             <?php 
  307.                                                 } 
  308.                                                 ?>
  309.                     </table>
  310.                 </div>
  311.             </td>
  312.         </tr>
  313.         <?php
  314.     }
  315.  
  316.     function task() {
  317.         global $con;
  318.         ?>
  319.         <!-- Aufgaben -->
  320.         <tr>
  321.             <td style="height:18px;">
  322.                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  323.                     <tr>
  324.                         <td class="head" nowrap>
  325.                                                         <a class="biglink" href="cmd:opentask(-1)"><?php echo $this->taskCaption; ?></a>
  326.                                                 </td>
  327.                         <?php 
  328.                                                 if ($this->defaultView == 'task') { 
  329.                                                         ?>
  330.                             <td class="head" style="padding-right:10px;text-align:right;font:10px normal Tahoma;color: #0161A7;">
  331.                                 <?php 
  332.                                                                 echo $this->weekdaynames[gmdate("w")] . ", " . gmdate("j.") . $this->monthnames[gmdate("g")] . " " . gmdate("Y"); 
  333.                                                                 ?>
  334.                                                         </td>
  335.                             <?php 
  336.                                                 } 
  337.                                                 ?>
  338.                     </tr>
  339.                 </table>
  340.             </td>
  341.         </tr>
  342.         <tr>
  343.             <td style="vertical-align:top;">                      
  344.                 <div style="height:100%;padding:10px">
  345.                     <table style="width:100%" cellspacing="5">
  346.                         <?php
  347.                         $curstask = OCINewCursor($con);
  348.                                                 /* $querytask='begin'
  349.                                                   .'  :o_result:=PK$_TOOLS.get_sql(:cursor, \'select e.ENDTIME, e.ENTRY_ID, e.SUBJECT, e.COLOR, e.PRIORITY from ts$_entry e, ts$_entry_status s where e.type_id=2 and entry_id in (select entry_id from ts$_entry_user where user_id='
  350.                                                   .$_SESSION['USERID']
  351.                                                   .') and e.status_id=s.status_id(+) and (s.s_type<4 or s.s_type is null) group by ENDTIME, ENTRY_ID, SUBJECT, COLOR, PRIORITY order by ENDTIME\', :o_count, :o_time, :o_errormsg);'
  352.                                                   .'end;'; */
  353.                                                 $querytask = 'begin'
  354.                                                                 . ' :o_result:=PK$_TOOLS.get_sql(:cursor, \''
  355.                                                                 . ' select e.ENDTIME, e.ENTRY_ID, e.SUBJECT, e.COLOR, e.PRIORITY, e.MAN_ID, e.CUST_ID, c.NAME, c.FIRSTNAME, c.COMPANY1, e.LOCATION, c.CUST_EXT_ID, rownum '
  356.                                                                 . ' from ts$_entry e, ts$_entry_status s, ts$_customer c'
  357.                                                                 . ' where e.type_id=2 and rownum < 51 and entry_id in (select entry_id from ts$_entry_user where user_id='
  358.                                                                 . $_SESSION['USERID']
  359.                                                                 . ') and e.status_id=s.status_id(+) and (s.s_type<4 or s.s_type is null) and e.man_id=c.man_id(+) and e.cust_id=c.cust_id(+)'
  360.                                                                 . ' group by e.ENDTIME, e.ENTRY_ID, e.SUBJECT, e.COLOR, e.PRIORITY, e.MAN_ID, e.CUST_ID, c.NAME, c.FIRSTNAME, c.COMPANY1, e.LOCATION, c.CUST_EXT_ID, rownum'
  361.                                                                 . '\', :o_count, :o_time, :o_errormsg);'
  362.                                                                 . 'end;';
  363.  
  364.                                                 $stmttask = OCIParse($con, $querytask);
  365.  
  366.                                                 OCIBindByName($stmttask, "cursor", &$curstask, -1, OCI_B_CURSOR);
  367.                                                 OCIBindByName($stmttask, "o_result", $resulttask, 32);
  368.                                                 OCIBindByName($stmttask, "o_count", $counttask, 32);
  369.                                                 OCIBindByName($stmttask, "o_time", $timetask, 32);
  370.                                                 OCIBindByName($stmttask, "o_errormsg", $errormsgtask, 255);
  371.  
  372.                                                 ociexecute($stmttask);
  373.                                                 ociexecute($curstask);
  374.  
  375.                                                 //echo "<tr><td>ZEIT:".$timetask."</td><td></td></tr>";
  376.                                                 //echo "Result:".$resulttask."-".$errormsgtask."-Anzahl:".$counttask;
  377.  
  378.                                                 while (OCIFetchInto($curstask, &$datatask, OCI_ASSOC)) {
  379.                                                         $color = getColor($datatask['COLOR']);
  380.                                                         $datatask = htmlOut($datatask);
  381.                             ?>
  382.                             <tr>
  383.                                 <td style="width:9px;">
  384.                                                                         <?php
  385.                                                                         if ($datatask['PRIORITY'] == 0)
  386.                                                                                 echo '<img src="images/priolow_8_12.gif">';
  387.                                                                         elseif ($datatask['PRIORITY'] == 2)
  388.                                                                                 echo '<img src="images/priohigh_8_12.gif">';
  389.                                                                         else
  390.                                                                                 echo '<img src="images/prionorm_8_12.gif">';
  391.                                     ?>
  392.                                                                 </td>
  393.                                 <td style="width:50px">
  394.                                                                         <a class="entrylink" style="background-color:#<?php echo $color; ?>;" href="cmd:opentask(<?php echo $datatask['ENTRY_ID']; ?>);">
  395.                                                                                 <?php 
  396.                                                                                 echo $this->toCaption . '&nbsp' . str_replace(' ', ' ', substr($datatask['ENDTIME'], 0, 16)) . '&nbsp' . $this->timeCaption;
  397.                                         ?>
  398.                                                                         </a>
  399.                                                                 </td>
  400.                                 <td>
  401.                                                                         <a class="entrylink" href="cmd:opentask(<?php echo $datatask['ENTRY_ID']; ?>);" >
  402.                                                                                 <?php
  403.                                                                                 echo $datatask['SUBJECT'];
  404.                                         if ($datatask['CUST_ID'] > 0)
  405.                                             echo "<br /> - " . $datatask['NAME'] . ", " . $datatask['FIRSTNAME'] . " (" . $datatask['COMPANY1'] . ")";
  406.                                         //GRAVIS
  407.                                         if ($_SESSION['ORA_SID'] == "MY10013" && (strlen($datatask['LOCATION']) > 0 || strlen($datatask['CUST_EXT_ID']) > 0)) {
  408.                                             echo "<br />";
  409.                                         if (strlen($datatask['LOCATION']) > 0)
  410.                                             echo " - GUPPY: " . $datatask['LOCATION'];
  411.                                         if (strlen($datatask['CUST_EXT_ID']) > 0)
  412.                                             echo " - B2: " . $datatask['CUST_EXT_ID'];
  413.                                         }
  414.                                         ?>
  415.                                     </a>
  416.                                                                 </td>
  417.                             </tr>
  418.                             <?php 
  419.                                                 } 
  420.                                                 ?>
  421.                     </table>
  422.                 </div>
  423.             </td>
  424.         </tr>
  425.         <?php
  426.     }
  427.  
  428.     function email() {
  429.         global $con;
  430.         ?>
  431.         <!-- Email -->
  432.         <tr>
  433.             <td style="height:18px;">
  434.                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  435.                     <tr>
  436.                         <td class="head" nowrap>
  437.                                                         <a class="biglink" href="cmd:openemail(-1)"><?php echo $this->emailCaption; ?></a>
  438.                                                 </td>
  439.                                                 <?php 
  440.                                                 if ($this->defaultView == 'email') { 
  441.                                                         ?>
  442.                                                         <td class="head" style="padding-right:10px;text-align:right;font:10px normal Tahoma;color: #0161A7;">
  443.                                                                 <?php 
  444.                                                                 echo $this->weekdaynames[gmdate("w")] . ", " . gmdate("j.") . $this->monthnames[gmdate("g")] . " " . gmdate("Y"); 
  445.                                                                 ?>
  446.                                                         </td>
  447.                                                         <?php 
  448.                                                 } 
  449.                                                 ?>
  450.                                         </tr>
  451.                                 </table>
  452.             </td>
  453.         </tr>
  454.         <tr>
  455.             <td style="vertical-align:top;">
  456.                 <div style="height:100%;padding:10px">
  457.                     <table style="width:100%">
  458.                         <?php
  459.                                                 $cursemail = OCINewCursor($con);
  460.  
  461.                                                 $queryemail = 'begin'
  462.                                                                 . '    :o_result:=PK$_TOOLS.get_sql(:cursor, \'select m.MAIL_ID, m.PRIORITY, m.CREATEDATE, m.SUBJECT, m.MAN_ID, m.CUST_ID'
  463.                                                                 . ' , c.NAME, c.FIRSTNAME, c.COMPANY1'
  464.                                                                 . ' from ts$_mail_in m, ts$_customer c'
  465.                                                                 . ' where m.user_id='
  466.                                                                 . $_SESSION['USERID']
  467.                                                                 . 'and m.ready=0 and m.man_id=c.man_id(+) and m.cust_id=c.cust_id(+)'
  468.                                                                 . ' order by mail_id DESC\', :o_count, :o_time, :o_errormsg);'
  469.                                                                 . 'end;';
  470.  
  471.                                                 $stmtemail = OCIParse($con, $queryemail);
  472.  
  473.                                                 OCIBindByName($stmtemail, "cursor", &$cursemail, -1, OCI_B_CURSOR);
  474.                                                 OCIBindByName($stmtemail, "o_result", $resultemail, 32);
  475.                                                 OCIBindByName($stmtemail, "o_count", $countemail, 32);
  476.                                                 OCIBindByName($stmtemail, "o_time", $timeemail, 32);
  477.                                                 OCIBindByName($stmtemail, "o_errormsg", $errormsgemail, 255);
  478.  
  479.                                                 ociexecute($stmtemail);
  480.                                                 ociexecute($cursemail);
  481.  
  482.                                                 //echo "<tr><td>ZEIT:".$timeemail."</td><td></td></tr>";
  483.                                                 //echo "Result:".$resultemail."-".$errormsgemail."-Anzahl:".$countemail;
  484.  
  485.                         while (OCIFetchInto($cursemail, &$dataemail, OCI_ASSOC)) {
  486.                             ?>
  487.                             <tr>
  488.                                 <td style="width:9px;"> </td>
  489.                                 <td style="width:50px">
  490.                                                                         <a class="entrylink" style="" > </a>
  491.                                                                 </td>
  492.                             </tr>
  493.                             <?php 
  494.                                                 } 
  495.                                                 ?>
  496.                     </table>
  497.                 </div>
  498.             </td>
  499.         </tr>
  500.         <?php
  501.     }
  502.  
  503.     /* REPORT-Anzeige erstellen */
  504.     function report() {
  505.         global $con;
  506.                 global $repID;
  507.         ?>
  508.         <!-- report -->
  509.         <tr>
  510.             <td style="height:18px;">
  511.                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  512.                     <tr>
  513.                         <td style="height:18px;">
  514.                             <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  515.                                 <tr>
  516.                                     <td class="head" nowrap>
  517.                                                                                 <a class="biglink" href=""><?php echo $this->reportCaption; ?></a>
  518.                                                                         </td>
  519.                                                                 </tr>
  520.                             </table>
  521.                         </td>
  522.                     </tr>
  523.                     <tr>
  524.                         <td style="height:18px;">
  525.                             <?php                                                                                                                                                                                  
  526.                                                         $sql='begin :o_result:=PK$_DM_REPORTING.get_tempid_queryid(:i_rep_id,:o_tempid, :o_queryid); end;';
  527.                                                                                                                                                                                                
  528.                                                         $stmt1=OCIParse($con, $sql);
  529.                                                                                                                                                                                
  530.                                                         OCIBindByName($stmt1, "o_result", $o_result, 32);
  531.                                                         OCIBindByName($stmt1, "i_rep_id", $repID, 32);
  532.                                                         OCIBindByName($stmt1, "o_tempid", $my_temp_id, 32);
  533.                                                         OCIBindByName($stmt1, "o_queryid", $my_query_id, 32);
  534.                                                    
  535.                                                         OCIExecute($stmt1);
  536.                                                         OCIFreeStatement($stmt1);
  537.                                                         $query = 'Select PK$_DM_REPORTING.get_rep_render_chart(:p_temp_id,:p_query_id) Data from dual';
  538.                                                         $stmt = OCIParse($con, $query);
  539.                                                         ocibindbyname($stmt, ':p_temp_id', $my_temp_id);
  540.                                                         ocibindbyname($stmt, ':p_query_id', $my_query_id);
  541.                                                         OCIExecute($stmt);
  542.                                                        echo $repID , chr(10);
  543.                                                         echo $my_query_id;
  544.                                                         while (OCIFetchInto($stmt, &$data, OCI_ASSOC)) {
  545.                                                                 echo $data['DATA']->load();
  546.                                                         }
  547.                                                         OCIFreeStatement($stmt);                                                                                              
  548.                             ?>
  549.                         </td>
  550.                     </tr>
  551.                                 </table>
  552.                         </td>
  553.                 </tr>
  554.         <?php
  555.     }
  556.  
  557.     function resubmit() {
  558.         global $con;
  559.         ?>
  560.                 <!-- Wiedervorlagen -->
  561.                 <tr>
  562.                         <td style="height:18px;">
  563.                                 <table border="0" cellspacing="0" cellpadding="0" style="width:100%;height:18px">
  564.                                         <tr>
  565.                                                 <td class="head" nowrap>
  566.                                                         <a class="biglink" href="cmd:openresubmit(-1)"><?php echo $this->resubmitCaption; ?></a>
  567.                                                 </td>
  568.                                                 <?php 
  569.                                                 if ($this->defaultView == 'resubmit') { 
  570.                                                         ?>
  571.                                                         <td class="head" style="padding-right:10px;text-align:right;font:10px normal Tahoma;color: #0161A7;">
  572.                                                                 <?php 
  573.                                                                 echo $this->weekdaynames[gmdate("w")] . ", " . gmdate("j.") . $this->monthnames[gmdate("g")] . " " . gmdate("Y") 
  574.                                                                 ?>
  575.                                                         </td>
  576.                                                         <?php 
  577.                                                 } 
  578.                                                 ?>
  579.                                         </tr>
  580.                                 </table>
  581.                         </td>
  582.                 </tr>
  583.                 <tr>
  584.                         <td style="vertical-align:top;">
  585.                                 <div style="height:100%;padding:10px">
  586.                                         <table style="width:100%">
  587.                                                 <?php
  588.                                                 $cursresubmit = OCINewCursor($con);
  589.  
  590.                                                 $queryresubmit = 'begin'
  591.                                                                 . '    :o_result:=PK$_TOOLS.get_sql(:cursor, \'select ENTRY_ID, SUBJECT, COLOR, PRIORITY from ts$_entry where type_id=5 and entry_id in (select entry_id from ts$_entry_user where user_id='
  592.                                                                 . $_SESSION['USERID']
  593.                                                                 . ')\', :o_count, :o_time, :o_errormsg);'
  594.                                                                 . 'end;';
  595.  
  596.                                                 $stmtresubmit = OCIParse($con, $queryresubmit);
  597.  
  598.                                                 OCIBindByName($stmtresubmit, "cursor", &$cursresubmit, -1, OCI_B_CURSOR);
  599.                                                 OCIBindByName($stmtresubmit, "o_result", $resultresubmit, 32);
  600.                                                 OCIBindByName($stmtresubmit, "o_count", $countresubmit, 32);
  601.                                                 OCIBindByName($stmtresubmit, "o_time", $timeresubmit, 32);
  602.                                                 OCIBindByName($stmtresubmit, "o_errormsg", $errormsgresubmit, 255);
  603.  
  604.                                                 ociexecute($stmtresubmit);
  605.                                                 ociexecute($cursresubmit);
  606.  
  607.                                                 //echo "<tr><td>ZEIT:".$timeresubmit."</td><td></td></tr>";
  608.                                                 //echo "Result:".$resultresubmit."-".$errormsgresubmit."-Anzahl:".$countresubmit;
  609.  
  610.                         while (OCIFetchInto($cursresubmit, &$dataresubmit, OCI_ASSOC)) {
  611.                             $dataresubmit = htmlOut($dataresubmit);
  612.                             $color = getColor($dataresubmit['COLOR']);
  613.                             ?>
  614.                                                         <tr>
  615.                                                                 <td style="width:9px;">
  616.                                                                         <?php
  617.                                                                         if ($dataresubmit['PRIORITY'] == 0)
  618.                                                                                 echo '<img src="images/priolow_8_12.gif">';
  619.                                                                         elseif ($dataresubmit['PRIORITY'] == 2)
  620.                                                                                 echo '<img src="images/priohigh_8_12.gif">';
  621.                                                                         else
  622.                                                                                 echo '<img src="images/prionorm_8_12.gif">';
  623.                                                                         ?>
  624.                                                                 </td>
  625.                                                                 <td>
  626.                                                                         <a class="entrylink" href="cmd:openresubmit(<?php echo $dataresubmit['ENTRY_ID'] ?>);" ><?php echo $dataresubmit['SUBJECT'] ?></a>
  627.                                                                 </td>
  628.                                                         </tr>
  629.                             <?php 
  630.                                                 } 
  631.                                                 ?>
  632.                     </table>
  633.                 </div>
  634.             </td>
  635.         </tr>
  636.         <?php
  637.     }
  638.  
  639. }
  640.  
  641. $classAll = new infocenter();
  642.  
  643. //DD.MM.YYYY HH24:MI:SS
  644. $stmt = ociparse($con, "ALTER SESSION SET NLS_DATE_FORMAT = '" . $classAll->oracleDateTimeFormat . "'");
  645. ociexecute($stmt);
  646. ocifreestatement($stmt);
  647.  
  648. $curs = OCINewCursor($con);
  649.  
  650. $query = 'declare'
  651.                 . '    i_sql varchar2(2000);'
  652.                 . 'begin'
  653.                 . '    i_sql:=\'select * from ts$_entry_conf where conf_id=(select conf_id from ts$_entry_conf_profile where conf_active=1) and visible=1 and access_all=1 and (type_id between 1 and 4 or type_id = 8) order by sort_order\';'
  654.                 . '    :o_result:=PK$_TOOLS.get_sql(:cursor, i_sql, :o_count, :o_time, :o_errormsg);'
  655.                 . 'end;';
  656.  
  657.  
  658. $stmt = OCIParse($con, $query);
  659.  
  660. OCIBindByName($stmt, "cursor", &$curs, -1, OCI_B_CURSOR);
  661. OCIBindByName($stmt, "o_result", $result, 32);
  662. OCIBindByName($stmt, "o_count", $count, 32);
  663. OCIBindByName($stmt, "o_time", $time, 32);
  664. OCIBindByName($stmt, "o_errormsg", $errormsg, 255);
  665.  
  666. ociexecute($stmt);
  667. ociexecute($curs);
  668.  
  669. $view = array();
  670. $i = 0;
  671. while (OCIFetchInto($curs, &$data, OCI_ASSOC)) {
  672.         $view[$i] = $data['TYPE_ID'];
  673.         $i++;
  674.         if($data['TYPE_ID']==8){
  675.         $repID=$data['FILEPATH'];
  676.                                                                                                                                                                                
  677.         }
  678. }
  679. ocifreestatement($stmt);
  680. ocifreecursor($curs);
  681.  
  682. /* Prüfen, ob User in der Abbvie-Gruppe ist */
  683. $isAbbvieGroup = false;
  684. $curs_group = OCINewCursor($con);
  685.  
  686. $query_group='begin'
  687. .'      :o_result:=PK$_TOOLS.get_sql(:cursor, \'select count(*) COUNT from ts$_user_group where group_id in (164) and user_id = ' . $_SESSION['USERID'] . '\', :o_count, :o_time, :o_errormsg); '
  688. .'end;';
  689.  
  690. $stmt_group = OCIParse($con,$query_group);
  691.  
  692. OCIBindByName($stmt_group,"cursor",&$curs_group,-1,OCI_B_CURSOR);
  693. OCIBindByName($stmt_group,"o_result",$result,32);
  694. OCIBindByName($stmt_group,"o_count",$count,32);
  695. OCIBindByName($stmt_group,"o_time",$time,32);
  696. OCIBindByName($stmt_group,"o_errormsg",$errormsg,255);
  697. ociexecute($stmt_group);
  698. ociexecute($curs_group);
  699.  
  700. OCIFetchInto($curs_group,&$data,OCI_ASSOC); 
  701.  
  702. if ($data['COUNT'] > 0) {
  703.         $isAbbvieGroup = true;
  704. }
  705.  
  706. OCIFreeStatement($stmt_group);
  707. OCIFreeCursor($curs_group);
  708.  
  709.  
  710. //$curs = OCINewCursor($con);
  711. /*
  712. $query = 'declare'
  713.                 . '    i_sql varchar2(2000);'
  714.                 . 'begin'
  715.                 . '    i_sql:=\'select count(*) COUNT from ts$_user_group where group_id in (164) and user_id = (Select user_id from Ts$_User where user_dbname=\''
  716.                 . $_SESSION['USERNAME']
  717.                 . '\')\';'
  718.                 . '    :o_result:=PK$_TOOLS.get_sql(:cursor, i_sql, :o_count, :o_time, :o_errormsg);'
  719.                 . 'end;';
  720.  
  721.                 echo $querey
  722. $stmt = OCIParse($con, $query);
  723.  
  724. OCIBindByName($stmt, "cursor", &$curs, -1, OCI_B_CURSOR);
  725. OCIBindByName($stmt, "o_result", $result, 32);
  726. OCIBindByName($stmt, "o_count", $count, 32);
  727. OCIBindByName($stmt, "o_time", $time, 32);
  728. OCIBindByName($stmt, "o_errormsg", $errormsg, 255);
  729.  
  730. ociexecute($stmt);
  731. ociexecute($curs);
  732. OCIFetchInto($curs, &$data, OCI_ASSOC);
  733. if ($data['COUNT'] > 0) {
  734.         $isAbbvieGroup = true;
  735. }
  736. ocifreestatement($stmt);
  737. ocifreecursor($curs);*/
  738.  
  739. /* if(!$defaultView)
  740.   {
  741.   $defaultView='cal';
  742.   $infopos=1;
  743.   $taskpos=2;
  744.   $calpos=3;
  745.   $emailpos=4;
  746.   $resubmitpos=5;
  747.   } */
  748. ?>
  749. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  750. <html style="height:100%; margin:1px;">
  751.         <head>
  752.                 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  753.                 <META HTTP-EQUIV="No Cache" CONTENT="no-cache">
  754.  
  755. <?php /*               <LINK rel="stylesheet" type="text/css" href="/lib/common.css">
  756.                 <LINK rel="stylesheet" type="text/css" href="lib/toc.css">
  757. */ ?>
  758.         <LINK rel="stylesheet" type="text/css" href="css/infocenterStyle.css">
  759.  
  760.                 <title>Portal</title>
  761.                
  762.                 <!-- <meta http-equiv="refresh" content="20; URL=<?php echo stripslashes($REQUEST_URI); ?>"> -->
  763.                 <script type="text/javascript" language="javascript">
  764.                         function showTabAnruf() {
  765.                                 if ($("#tabAnruf").is(":visible") === false) {
  766.                                         $("#tabAnruf").show();
  767.                                 }
  768.                                 else {
  769.                                         $("#tabAnruf").hide();
  770.                                 }
  771.                         }
  772.                         function showTabTermin1() {
  773.                                 if ($("#tabTermin1").is(":visible") === false) {
  774.                                         $("#tabTermin1").show();
  775.                                 }
  776.                                 else {
  777.                                         $("#tabTermin1").hide();
  778.                                 }
  779.                         }
  780.                         function showTabTermin2() {
  781.                                 if ($("#tabTermin2").is(":visible") === false) {
  782.                                         $("#tabTermin2").show();
  783.                                 }
  784.                                 else {
  785.                                         $("#tabTermin2").hide();
  786.                                 }
  787.                         }
  788.                         function setDivHeight() {
  789.                                 var h = window.innerHeight
  790.                                 || document.documentElement.clientHeight
  791.                                 || document.body.clientHeight;
  792.                                 document.getElementById("globalDiv").style.height = h + "px";
  793.                         }
  794.                         function setDivWidth() {
  795.                                 var w = window.innerWidth
  796.                                 || document.documentElement.clientWidth
  797.                                 || document.body.clientWidth;
  798.                                 document.getElementById("globalInnerDiv").style.width = (w-16) + "px";
  799.                         }
  800.                         <!--
  801.                         //window.setInterval("refresh()",120000);function refresh(){location.reload();}
  802.                         //-->
  803.                 </script>
  804.     </head>
  805.         <body onresize="setDivHeight();setDivWidth();" onload="setDivHeight();setDivWidth();">
  806.         <div id="globalDiv" style="overflow-y: auto; overflow-x: hidden;">
  807.         <div id="globalInnerDiv" style="height:100%;width:100%;">
  808.         <table style="width:100%;" cellpadding="0" cellspacing="0">
  809.             <tr>
  810. <?php /*                <td colspan=2>
  811.                     <table style="width:100%;" cellpadding="0" cellspacing="0">
  812.                         <tr>
  813.         <!--      <a href="http://io.mycom-net.com:7779/1031/portal/mod_id1/tagesAus/index.php?PHPSESSID=<?php $session = session_id(); echo $session; ?>">Neue Tagesübersicht</a> --> */ ?>
  814.                                                         <?php
  815.                                                 //Begruessung erstellen________________________________________________________________________________________________
  816.                                                         $query = 'begin :result := pk$_entry.get_welcome(i_userid => :i_userid, o_time => :o_time, o_errormsg => :o_errormsg); end;';
  817.  
  818.                                                         $stmt = oci_parse($con, $query);
  819.  
  820.                                                         OCI_Bind_By_Name($stmt, "result", $adress, 100);
  821.                                                         OCI_Bind_By_Name($stmt, "i_userid", $_SESSION['USERID'], 32);
  822.                                                         OCI_Bind_By_Name($stmt, "o_time", $time, 32);
  823.                                                         OCI_Bind_By_Name($stmt, "o_errormsg", $errormsg, 255);
  824.  
  825.                                                         oci_execute($stmt);
  826.                                                         $hour = date(G);
  827.                                                         if ($hour >= 0 && $hour < 10) {//wenn Uhrzeit zwischen 0 und 10 dann "Guten Morgen"
  828.                                                                 $data['WELCOME'] = $classAll->morningCaption . $adress;
  829.                                                         }
  830.                                                         if ($hour >= 17 && $hour <= 23) {
  831.                                                                 $data['WELCOME'] = $classAll->eveningCaption . $adress;
  832.                                                         } else {
  833.                                                                 $data['WELCOME'] = $classAll->dayCaption . ' ' . $adress;
  834.                                                         }
  835.  
  836.                                                         $welcome = $data['WELCOME'] . '   -   ' . $classAll->weekdaynames[date(N) - 1] . ', ' . date(d) . '.' . date(m) . '.' . date(y);
  837.                                                         oci_free_statement($stmt);
  838.  
  839.                                                 //Schmitz________________________________________________________________________________________________________
  840.                                                         if ($_SESSION['ORASID'] == 'MY48030') {
  841.                                                                 ?>
  842.                                                                 <td style="background-color:#666F74; color:#FFFFFF; font:normal 14pt Arial; padding-left:10px"> 
  843.                                                                 <?php
  844.                                                                 echo $welcome . "</td><td style=\"width:200px;background-color:#666F74;text-align:center;vertical-align:middle;padding:5px\">";
  845.                                                                 //MY48030
  846.                                                                 $curs = OCINewCursor($con);
  847.  
  848.                                                                 $query = 'declare'
  849.                                                                                 . '    i_sql varchar2(2000);'
  850.                                                                                 . 'begin'
  851.                                                                                 . '    i_sql:=\'select count(*) COUNT from ts$_user_status_work where user_dbname=\''
  852.                                                                                 . $_SESSION['USERNAME']
  853.                                                                                 . '\' and endtime is null\';'
  854.                                                                                 . '    :o_result:=PK$_TOOLS.get_sql(:cursor, i_sql, :o_count, :o_time, :o_errormsg);'
  855.                                                                                 . 'end;';
  856.  
  857.                                                                 $stmt = OCIParse($con, $query);
  858.  
  859.                                                                 OCIBindByName($stmt, "cursor", &$curs, -1, OCI_B_CURSOR);
  860.                                                                 OCIBindByName($stmt, "o_result", $result, 32);
  861.                                                                 OCIBindByName($stmt, "o_count", $count, 32);
  862.                                                                 OCIBindByName($stmt, "o_time", $time, 32);
  863.                                                                 OCIBindByName($stmt, "o_errormsg", $errormsg, 255);
  864.  
  865.                                                                 ociexecute($stmt);
  866.                                                                 ociexecute($curs);
  867.                                                                 OCIFetchInto($curs, &$data, OCI_ASSOC);
  868.                                                                 if ($data['COUNT'] > 0) {
  869.                                                                         echo '<a style="color:#FFFFFF" href="' . $PHP_SELF . '?' . SID . '&BUTTONWORK=OFF"><img src="images/workStop.gif" style="border:0;vertical-align:middle"> Arbeitszeit stoppen</a>';
  870.                                                                 } else {
  871.                                                                         echo '<a style="color:#FFFFFF" href="' . $PHP_SELF . '?' . SID . '&BUTTONWORK=ON"><img src="images/workStart.gif" style="border:0;vertical-align:middle"> Arbeitszeit starten</a>';
  872.                                                                 }
  873.                                                                 ocifreestatement($stmt);
  874.                                                                 ocifreecursor($curs);
  875.                                                         } 
  876.                                                         else {
  877.                                                                 ?>
  878.                                                                 <td style="width:100%;background-color:#666F74; color:#FFFFFF; font:normal 14pt Arial; padding-left:10px;vertical-align:bottom;">
  879.                                                                         <?php echo $welcome; ?>
  880.                                                                         <div style="width: 99%;margin-top:5px;">
  881.                                                                                 <? if($isAbbvieGroup == false) {?>
  882.                                                                                         <button class="btnx" type="button" onClick="showTabAnruf();" id="APSP1"> 1. Anruf PSP1 </button>
  883.                                                                                         <button class="btnx" type="button" onClick="showTabTermin1();" id="T1NB"> Terminierung 1. NB </button>
  884.                                                                                         <button class="btnx" type="button" onClick="showTabTermin2();" id="T2NB"> Terminierung 2. NB </button>
  885.                                                                                 <? } ?>
  886.                                                                         </div>
  887.                                                                 </td>
  888.                                                                 <td style="background-color:#666F74;vertical-align:middle">
  889.                                                                         <a href="http://www.mycom-net.com" target="_blank">
  890.                                                                                 <img src="images/MycomNeu.gif" border="0" alt="http://www.mycom-net.com">
  891.                                                                         </a>
  892.                                                                 </td>
  893.                                                                 <?php
  894.                                                         }
  895. /*                                                      ?>
  896.                                                 </tr>
  897.                                         </table>
  898.                                 </td>
  899. */ ?>
  900.                         </tr>
  901.                 </table>
  902.                
  903.                         <div id="tabAnruf" style="width: 100%; height:auto; display: none;">
  904.                                         <?php 
  905.                                         $cam_id = 172;                                                        // live 172 statt 1607
  906.                                         $title = "1. Anruf PSP1";
  907.                                         include 'hilcura/patientTable.php'; 
  908.                                         ?>
  909.                         </div>
  910.                         <div id="tabTermin1" style="width: 100%; height:auto; display: none;">
  911.                                         <?php 
  912.                                         $cam_id = 192;                                                        // live 192 statt 1627
  913.                                         $title = "Terminierung 1. NB";
  914.                                         include 'hilcura/patientTable.php'; 
  915.                                         ?>
  916.                         </div>
  917.                         <div id="tabTermin2" style="width: 100%; height:auto; display: none;">
  918.                                         <?php 
  919.                                         $cam_id = 174;                                                        // live 174 statt 1627
  920.                                         $title = "Terminierung 2. NB";
  921.                                         include 'hilcura/patientTable.php'; 
  922.                                         ?>
  923.                         </div>
  924.                         <table style="width:100%;" cellpadding="0" cellspacing="0">
  925.                                 <tr>
  926.                                         <td style="width:50%;height:100%;border-right:1px solid #0161A7">
  927.                                                 <table style="height:100%;width:100%;vertical-align:top;margin:0;padding:0;" cellpadding="0" cellspacing="0">
  928.                                                         <?php                                                                                                                                                                                                          
  929.                                                         if ($view[0] == 1)
  930.                                                                 $classAll->info();
  931.                                                         elseif ($view[0] == 2)
  932.                                                                 $classAll->task();
  933.                                                         elseif ($view[0] == 3)
  934.                                                                 $classAll->cal();
  935.                                                         elseif ($view[0] == 4)
  936.                                                                 $classAll->email();
  937.                                                         elseif ($view[0] == 8)
  938.                                                                 $classAll->report();
  939.                                                         elseif($view[0]==5) $classAll->resubmit();
  940.                                                         //$classAll->report();
  941.                                                         //$classAll->$defaultView();
  942.                                                         ?>
  943.                                                 </table>
  944.                                         </td>
  945.                                         <td style="width:50%;height:100%;">
  946.                                                 <table style="height:100%;width:100%;vertical-align:top;" cellpadding="0" cellspacing="0">
  947.                                                         <?php
  948.                                                         for ($i = 1; $i <= 5; $i++) {
  949.                                                                 if ($view[$i] == 1)
  950.                                                                         $classAll->info();
  951.                                                                 elseif ($view[$i] == 2)
  952.                                                                         $classAll->task();
  953.                                                                 elseif ($view[$i] == 3)
  954.                                                                         $classAll->cal();
  955.                                                                 elseif ($view[$i] == 4)
  956.                                                                         $classAll->email();
  957.                                                            // elseif ($view[$i] == 8)
  958.                                                                  //   $classAll->report();
  959.                                                                 //elseif($view[$i]==5) $classAll->resubmit();
  960.  
  961.  
  962.                                                                 /*if($infopos==$i && $defaultView!='info' ) $classAll->info();
  963.                                                                   if($taskpos==$i && $defaultView!='task') $classAll->task();
  964.                                                                   if($calpos==$i && $defaultView!='cal') $classAll->cal();
  965.                                                                   if($emailpos==$i && $defaultView!='email') $classAll->email();
  966.                                                                   if($resubmitpos==$i && $defaultView!='resubmit') $classAll->resubmit(); */
  967.                                                         }
  968.                                                         //$classAll->report();
  969.                                                         ?>
  970.                                                 </table>
  971.                                         </td>
  972.                                 </tr>
  973.                         </table>
  974.                 </div>
  975.                 </div>
  976.     </body>
  977. </html>

Editor

You can edit this paste and save as new:


File Description
  • all
  • Paste Code
  • 24 Sep-2020
  • 38.61 Kb
You can Share it: