[ PHPXref.com ] [ Generated: Sun Jul 20 19:19:23 2008 ] [ PBS Helpdesk 0.93 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> callmagnify.php3 (source)

   1  <?php ;
   2   include  "init.php3"; 
   3  //echo "$pbs_title<br><br>";
   4  
   5  
   6  Function magnify($mydest) {
   7  include  "environment.php3";
   8  include "$language.php3";
   9  
  10  echo "<html>";
  11  echo "<BODY onLoad=\"tfget1(); document.xxtext.mtext.focus();\" background=\"$pbs_background1\">";
  12  echo "<head>";
  13  echo "<meta http-equiv=\"Content-Type\" content=\"text/html; iso-8859-1\">";
  14  echo "<title>PBS</title>";
  15  echo "
  16  <script language=\"JavaScript\">
  17  <!--
  18    function tfset1()
  19    {
  20  
  21    var mysol=document.xxtext.mtext.value;
  22   
  23    top.opener.document.call.$mydest.value = mysol;
  24      
  25    }
  26  
  27  
  28    function tfget1()
  29    {
  30    var mysol=top.opener.document.call.$mydest.value;
  31   
  32     document.xxtext.mtext.value=mysol; 
  33    }
  34  
  35  
  36    // -->
  37  </script></head>";
  38  
  39  /**********************************************************************/
  40  /**********************************************************************/
  41  
  42  echo "<br><br> <FORM name=xxtext ACTION=callmail.php3?function=send METHOD=POST>
  43  <TABLE border=1   WIDTH=750 >
  44          <tr><td><textarea  name=\"mtext\" rows=22  cols=82
  45      wrap=physical>$mysol</textarea>
  46      
  47      </td></tr>
  48      <tr><td><input type=\"button\" name=\"action\" value=\"OK\" onClick=\"tfset1();window.close();\"></tr>
  49  </table></FORM>";
  50  echo "<br>";
  51  echo "</body>";
  52  echo "</html>";
  53      
  54  }
  55  
  56  
  57  Function exsave($mtext,$callid){
  58  include  "environment.php3";
  59  include "$language.php3";
  60  
  61  echo "<html>";
  62  echo "<BODY  background=\"$pbs_background1\">";
  63  echo "<head>";
  64  echo "<meta http-equiv=\"Content-Type\" content=\"text/html; iso-8859-1\">";
  65  echo "<title>PBS </title>";
  66  
  67  $tmpfname = tempnam ("/tmp", "FOO");
  68  
  69  $fp = fopen($tmpfname, "w");
  70  fwrite($fp, $mtext);
  71  fclose($fp);
  72  
  73   $dbh=sql_init();
  74  
  75    $pictures_id=mypbs_nextval("pictures"); 
  76  
  77    $command = "Insert Into pictures 
  78    (id,pname,type,extra,kind) values ($pictures_id, 
  79    'extra$pictures_id','text/plain',$callid,'c')";
  80    $count=$dbh->dbh_do($command);  
  81       if( !$count ) echo $pbsl_errormsg;
  82  
  83    if ( !copy($tmpfname,$pbs_uploaddir."/".$pictures_id) ) {
  84         print("failed to copy $userfile...<br>\n");
  85    }else echo "<p>$pbsl_smsg;<p>";
  86  
  87  echo "<input type=\"button\" name=\"action\" value=\"$pbsl_close\" onClick=\"window.close()\">";
  88  
  89  unlink($tmpfname);
  90  }
  91  
  92  Function magnifyshow($mydest) {
  93  include  "environment.php3";
  94  include "$language.php3";
  95  
  96  echo "<html>";
  97  echo "<BODY  background=\"$pbs_background1\">";
  98  echo "<head>";
  99  echo "<meta http-equiv=\"Content-Type\" content=\"text/html; iso-8859-1\">";
 100  echo "<title>PBS </title>";
 101  
 102  /**********************************************************************/
 103  $dbh=sql_init();
 104  
 105  $command="select detail from activity where activity_id=$mydest";
 106  //$command="select error_decr from call where call_id=$mydest";
 107  
 108  $res1 = mysql_query_wrap($command);    
 109  $row = mysql_fetch_row($res1);
 110  
 111  /**********************************************************************/
 112  
 113  echo "<br><br> <FORM name=xxtext ACTION=callmail.php3?function=send METHOD=POST>
 114  <TABLE border=1   WIDTH=750 >
 115          <tr><td><textarea  name=\"mtext\" rows=22  cols=82
 116      wrap=physical>$row[0]</textarea></td></tr>
 117      <tr><td><input type=\"button\" name=\"action\" value=\"$pbsl_close\" ></tr>
 118  </table></FORM>";
 119  echo "<br>";
 120  echo "</body>";
 121  echo "</html>";
 122      
 123  }
 124  
 125   Function mmagnify($mydest) {
 126  include  "environment.php3";
 127  include "$language.php3";
 128  
 129  echo "<html>";
 130  echo "<BODY onLoad=\"tfget1(); document.xxtext.mtext.focus();\" background=\"$pbs_background1\">";
 131  echo "<head>";
 132  echo "<meta http-equiv=\"Content-Type\" content=\"text/html; iso-8859-1\">";
 133  echo "<title>PBS</title>";
 134  echo "
 135  <script language=\"JavaScript\">
 136  <!--
 137  
 138    function tfget1()
 139    {
 140    var mysol=top.opener.document.$mydest.value;
 141   
 142     document.xxtext.mtext.value=mysol; 
 143    }
 144  
 145  
 146    // -->
 147  </script></head>";
 148  
 149  /**********************************************************************/
 150  /**********************************************************************/
 151  
 152  echo "<br><br> <FORM name=xxtext ACTION=none.php3?function=send METHOD=POST>
 153  <TABLE border=1   WIDTH=750 >
 154          <tr><td><textarea  name=\"mtext\" rows=22  cols=82
 155      wrap=physical>$mysol</textarea>
 156      
 157      </td></tr>
 158      <tr><td><input type=\"button\" name=\"action\" value=\"OK\" onClick=\"window.close();\"></tr>
 159  </table></FORM>";
 160  echo "<br>";
 161  echo "</body>";
 162  echo "</html>";
 163      
 164  }
 165  
 166  if($function=="mmagnify") mmagnify($mydest);
 167  if($function=="init") magnify($mydest);
 168  if($function=="exsave") exsave($mtext,$callid);
 169  if($function=="ishow") magnifyshow($mydest);
 170  //if($function=="ishow") echo "magnifyshow($mydest)";
 171  
 172  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]