Location: PHPKode > projects > CoreAsset > coreasset/templates/ch_theme.tpl
{include file="head.tpl"}
{include file="left.tpl"}
        <td vAlign="top" width="1" background="images/divider.gif">
        <img src="images/divider.gif" valign="top" width="1" height="3"></td>
        <td vAlign="top" width="700">
        <table cellSpacing="0" cellPadding="0" width="550" align="center" border="0">
          <tr>
            <td>
            <table cellSpacing="0" cellPadding="0"  border="0" style="width:auto;">
              <tr>
                <td>
                <img title alt src="images/label-left.gif" width="8" height="30"></td>
                <td class="label" align="middwidth="300"width="300"width="300"width="300"width="300"width="300"width="300"le" width="300" bgColor="#7f8690">
                Manage Color Theme</td>
                <td>
                <img title alt src="images/label-right.gif" width="8" height="30"></td>
              </tr>
            </table>
            </td>
          </tr>
          <tr>
            <td><img title alt src="images/blank.gif" width="1" height="1"></td>
          </tr>
          <tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="3" alt src="images/blank.gif" width="1" valign="top"></td>
          </tr>
          <tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb; padding-left: 18px; padding-right: 23px; padding-top: 11px" vAlign="top" bgColor="#ededed" height="180">

             <form name="f1" action="theme.php" method="post" onsubmit="return radio_button_checker()">
{if $num=="valid"}
            <table bgcolor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">

                <tr>
                  <td class="title_heading" width="25%">&nbsp;Choose Theme</td>
                  <td class="title_heading" width="25%">Theme</td>
                </tr>

                  <tr>
                    <td class="list_item"  width="25%"><input type="radio" name="theme" value="blue" onClick="open_div();"></td>
                    <td class="list_item"  width="25%"><img border="1" src="images/blue_th.gif" width="21" height="21"></td>
                  </tr>

                  <tr>
                    <td class="list_item"  width="25%"><input type="radio" name="theme" value="yellow" onClick="open_div();"></td>
                    <td class="list_item"  width="25%"><img border="1" src="images/yellow_th.gif" width="21" height="21"></td>
                  </tr>
                  
                  <tr>
                    <td class="list_item"  width="25%"><input type="radio" name="theme" value="gray" onClick="open_div();"></td>
                    <td class="list_item"  width="25%"><img border="1" src="images/gray_th.gif" width="21" height="21"></td>
                  </tr>
                  <input type="hidden" name="sec" value="1">

            </table>

            <div id="id1" style="display:none;">
            <table bgcolor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">

                <tr>
                  <td class="title_heading" width="25%">&nbsp;Choose Theme</td>
                  <td class="title_heading" width="25%">Theme</td>
                </tr>
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Title Bar Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="tb_color" value="{$col_array.tb_color}" class="text">&nbsp;<a href="select_color.php?val=tb_color" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td>
                </tr>
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Item List Background Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="item_bgcolor"  value="{$col_array.item_bgcolor}" class="text">&nbsp;<a href="select_color.php?val=item_bgcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>
                
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Text Box BgColor Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="txtbox_bgcolor"  value="{$col_array.txtbox_bgcolor}" class="text">&nbsp;<a href="select_color.php?val=txtbox_bgcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Text Box alternet BgColor</td>
                  <td class="list_item"  width="25%"><input type="text" name="alttxtbox_bgcolor"  value="{$col_array.alttxtbox_bgcolor}" class="text">&nbsp;<a href="select_color.php?val=alttxtbox_bgcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>

                
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Button Background Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="btn_bgcolor"  value="{$col_array.btn_bgcolor}" class="text">&nbsp;<a href="select_color.php?val=btn_bgcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Menu Font Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="m_fcolor"  value="{$col_array.m_fcolor}" class="text">&nbsp;<a href="select_color.php?val=m_fcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>
                <tr>
                  <td class="list_item"  width="25%">&nbsp;Select Menu Font Mouseover Color</td>
                  <td class="list_item"  width="25%"><input type="text" name="m_fmcolor"  value="{$col_array.m_fmcolor}" class="text">&nbsp;<a href="select_color.php?val=m_fmcolor" onclick="window.open(this.href,'external','resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=250, height=164, screenX=25,screenY=25,left=750,top=455'); return false;"><img title="Click to Select Color" src="images/color_icon.gif" border="0"></a></td></td>
                </tr>


            </table>
            </div>
            <table bgcolor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">
                <tr>
                  <td class="btn_bg" width="25%" colSpan="4">
                  <input type="image" name="ch_th" src="images/change_theme.gif" border="0" title="Click to Add Equipment">
                  </td>
                </tr>
            </table>
			{else}
			<table borderColor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">
                <tr>
                  <td class="txt" align="center" width="20%" bgColor="#cccccc" height="23">
                  <font color="RED">{$mes}</font>
                  </td>
                </tr>
             </table>
			{/if}
            </form>
            </td>
          </tr>
          <tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="4" alt src="images/blank.gif" width="1"></td>
          </tr>
          </table>
        </td>
      </tr>
    </table>
	
    </td>
  </tr>

{include file="foot.tpl"}

{literal}
<script language="Javascript">
function conf()
{
	input_box=confirm("Are you sure? The the Equipment will be Deleted !");

	if (input_box==true)
	{
		return true;
	}

	else
	{
		return false;
	}
}
</script>

<script language="javascript">

if (document.images) {
teston = new Image(); 
teston.src = "images/men1.gif";

testoff = new Image(); 
testoff.src = "men2.gif";
}

function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}
function all_hide()
{
   document.all.id1.style.display="none";
}
function open_div()
{
   all_hide();
   document.all.id1.style.display="";
}
// -->
</script>
<script language="JavaScript">
function radio_button_checker()
{
  var radio_choice = false;
  for (counter = 0; counter < f1.theme.length; counter++)
  {
    if (f1.theme[counter].checked)
    radio_choice = true;
  }
  if (!radio_choice)
  {
    alert("Please select a Theme.")
    return (false);
  }
if(document.f1.tb_color.value=="")
{
 alert("Please Select a color for the Title Bar !");
 document.f1.tb_color.focus();
 return false;
}

if(document.f1.item_bgcolor.value=="")
{
 alert("Please Select a color for the List Items Background !");
 document.f1.item_bgcolor.focus();
 return false;
}
if(document.f1.btn_bgcolor.value=="")
{
 alert("Please Select a Button background Color !");
 document.f1.btn_bgcolor.focus();
 return false;
}
if(document.f1.m_fcolor.value=="")
{
 alert("Please Select Menu Font color !");
 document.f1.m_fcolor.focus();
 return false;
}
if(document.f1.m_fmcolor.value=="")
{
 alert("Please Select Menu font Mouse over Color !");
 document.f1.m_fmcolor.focus();
 return false;
}
}
</script>

{/literal}
Return current item: CoreAsset