WebCalendar PHP Cross Reference Groupware Applications

Source: /colors.php - 120 lines - 4635 bytes - Summary - Text - Print

   1  <?php
   2  /* $Id: colors.php,v 1.33.2.2 2007/08/06 02:28:29 cknudsen Exp $ */
   3  include_once  'includes/init.php';
   4  $color = getGetValue ( 'color' );
   5  if ( empty ( $color ) )
   6    exit;
   7  
   8  $addcustomStr = translate ( 'Add Custom' );
   9  $basicStr = translate ( 'Basic Colors' );
  10  $cancelStr = translate ( 'Cancel' );
  11  $currentStr = translate ( 'Current Color' );
  12  $customStr = translate ( 'Custom Colors' );
  13  $oldStr = translate ( 'Old Color' );
  14  $okStr = '&nbsp;&nbsp;&nbsp;' . translate ( 'OK' ). '&nbsp;&nbsp;&nbsp;';
  15  print_header ( array ( 'js/colors.php/true' ), '',
  16    'onload="fillhtml(); setInit();"', true, false, true );
  17  
  18  /*
  19    HTML Color Editor v1.2 (c) 2000 by Sebastian Weber <webersebastian@yahoo.de>
  20    Modified by Ray Jones for inclusion into WebCalendar.
  21    NOTE: In-line CSS styles must remain in this file for proper operation
  22  */
  23  
  24  echo <<<EOT
  25      <form action="colors.php" name="colorpicker">
  26        <input type="hidden" id="colorcell" value="{$color}" />
  27        <table cellspacing="2" cellpadding="0" align="center">
  28          <tr>
  29            <td colspan="3">
  30              <img height="1" src="images/blank.gif" border="0" alt="" /></td>
  31          </tr>
  32          <tr>
  33            <td align="center">{$basicStr}</td>
  34  <!-- COLORS PICTURE -->
  35            <td rowspan="5" width="220" align="center">
  36              <img id="colorpic" height="192" width="192" src="images/colors.jpg"
  37                onclick="setFromImage(event);" alt="" /></td>
  38  <!-- ***** SLIDER **** -->
  39            <td rowspan="5">
  40              <table cellspacing="0" cellpadding="0" width="24"
  41                onclick="setFromSlider(event);">
  42                <tr>
  43                  <td id="slider"></td>
  44                </tr>
  45              </table>
  46            </td>
  47          </tr>
  48          <tr>
  49  <!--  BASIC COLORS PALETTE  -->
  50            <td align="center" id="colorchoices"></td>
  51          </tr>
  52          <tr>
  53            <td align="center">{$customStr}</td>
  54          </tr>
  55          <tr>
  56  <!--  Custom Colors  -->
  57            <td align="center" id="colorcustom"></td>
  58          </tr>
  59          <tr>
  60            <td align="center"><input type="button" value="{$addcustomStr}"
  61              onclick="definePreColor()" /></td>
  62          </tr>
  63          <tr>
  64            <td valign="top" colspan="3">
  65              <table cellpadding="2" cellspacing="0" width="100%">
  66                <tr align="center">
  67                  <td colspan="2" height="30" valign="bottom">{$currentStr}</td>
  68                  <td valign="bottom">{$oldStr}</td>
  69                </tr>
  70                <tr>
  71  <!-- RGB INPUT -->
  72                  <td class="boxtop boxleft boxbottom" valign="top" align="right">
  73                    R: <input id="rgb_r" type="text" size="3" maxlength="3"
  74                      value="255" onchange="setFromRGB()" /><br />
  75                    G: <input id="rgb_g" type="text" size="3" maxlength="3"
  76                      value="255" onchange="setFromRGB()" /><br />
  77                    B: <input id="rgb_b" type="text" size="3" maxlength="3"
  78                      value="255" onchange="setFromRGB()" /><br />
  79                    HTML: <input id="htmlcolor" type="text" size="6" maxlength="6"
  80                      value="FFFFFF" onchange="setFromHTML()" />
  81                  </td>
  82                  <td class="boxtop boxright boxbottom" width="120">
  83            <table id="thecell" bgcolor="#ffffff" align="center"
  84  border="1" cellspacing="0" cellpadding="0">
  85                      <tr>
  86                        <td><img src="images/blank.gif" width="55" height="53" border="0" alt="" /></td>
  87                      </tr>
  88                    </table>
  89                  </td>
  90                  <td valign="middle" align="center" class="boxtop boxright
  91                    boxbottom">
  92  <!--  Display New Color  -->
  93          <table id="theoldcell" bgcolor="#ffffff" border="1" cellspacing="0" cellpadding="0">
  94                      <tr>
  95              <td><img src="images/blank.gif" width="55" height="53" border="0" alt="" /></td>
  96                      </tr>
  97                    </table>
  98                  </td>
  99                </tr>
 100              </table>
 101            </td>
 102          </tr>
 103          <tr>
 104            <td colspan="3" align="center" height="30">
 105              <input type="button"
 106                value="&nbsp;&nbsp;&nbsp;{$okStr}&nbsp;&nbsp;&nbsp;"
 107                onclick="transferColor(); window.close()"
 108                />&nbsp;&nbsp;&nbsp;<input type="button"
 109                value="{$cancelStr}" onclick="window.close()" />
 110            </td>
 111          </tr>
 112        </table>
 113      </form>
 114  <img id="cross" src="images/cross.gif" alt="" style="position:absolute; left:0px; top:0px" />
 115  <img id="sliderarrow" src="images/arrow.gif" alt="" style="position:absolute; left:0px; top:0px" />
 116    </body>
 117  </html>
 118  EOT;
 119  
 120  ?>

title

Description

title

Description

title

Description

title

title

Body