• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

cms/templates/google/index.php

Go to the documentation of this file.
00001 <?php
00002 if(!defined('__PRAGYAN_CMS'))
00003 { 
00004         header($_SERVER['SERVER_PROTOCOL'].' 403 Forbidden');
00005         echo "<h1>403 Forbidden<h1><h4>You are not authorized to access the page.</h4>";
00006         echo '<hr/>'.$_SERVER['SERVER_SIGNATURE'];
00007         exit(1);
00008 }
00009 ?>
00010 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
00011 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
00012 <head>
00013     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
00014     <title><? echo  $TITLE; ?></title>
00015     <meta name="description" content="<? echo $SITEDESCRIPTION ?>" />
00016     <meta name="keywords" content="<? echo $SITEKEYWORDS ?>" /> 
00017         <?global $urlRequestRoot;       global $PAGELASTUPDATED;
00018         if($PAGELASTUPDATED!="")
00019                 echo '<meta http-equiv="Last-Update" content="'.substr($PAGELASTUPDATED,0,10).'" />'."\n";
00020         ?>
00021     <link rel="index" href="./" title="Home" />
00022         <style>
00023                 @font-face {
00024                   font-family: "Catull";
00025                   src: url(<? echo  $TEMPLATEBROWSERPATH; ?>/design/Catull.ttf) format("truetype");
00026                 }
00027         </style>
00028     <link rel="stylesheet" media="screen,projection" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/main.css" />
00029     <link rel="stylesheet" media="print" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/print.css" />
00030     <link rel="stylesheet" media="aural" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/aural.css" />
00031     <link rel="stylesheet" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/other.css" />
00032     <link rel="stylesheet" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/error.css" />
00033     <link rel="stylesheet" type="text/css" href="<? echo  $TEMPLATEBROWSERPATH; ?>/css/adminui.css" />
00034     
00035 
00036         <script language="javascript" type="text/javascript">
00037                 //defined here for use in javascript
00038                 var templateBrowserPath = "<? echo $TEMPLATEBROWSERPATH ?>";
00039                 var urlRequestRoot = "<? echo $urlRequestRoot?>";
00040                 var checkvalue = "thissite";
00041                 function generateSS(sform) { //to generate the search string
00042                         nf = document.forms[sform];
00043                         if(nf.elements['query']) nf.elements['query'].setAttribute('name', 'q');
00044                         if(!nf.elements['q'].value) {
00045                                 alert('Field cannot be left blank');
00046                                 nf.elements['q'].setAttribute('name', 'query');
00047                                 return false;
00048                         }
00049                         nf.setAttribute('action', 'http://www.google.com/search/');
00050                         nf.setAttribute('method', 'get');
00051                         if(sform == "searchform") {
00052                                 nf.elements['scope'][0].setAttribute('disabled','disabled');
00053                                 nf.elements['scope'][1].setAttribute('disabled','disabled');
00054                         }
00055                 }
00056         </script>
00057         <?
00058                         $searchselected = FALSE;
00059                 if(strpos($_SERVER['REQUEST_URI'],'+search'))
00060                 {
00061                         $searchselected = TRUE; ?>
00062                 <style>
00063                         #center_col>h2 {display:none;}
00064                         #center_col>center {display:none;}
00065                 </style>
00066                 <? if(isset($_POST['query']) && $_POST['query'] != "") { ?>
00067                 <style>
00068                         #main {display:block;}
00069                         #searchmain {display:none;}
00070                 </style>
00071                 <? } else { ?>
00072                 <style>
00073                         #main{ display:none; }
00074                         #searchmain{ display:block; }
00075                 </style>
00076                 <? } }
00077         ?>
00078 </head>
00079 
00080 <body<? echo " style=\"background-image:url(" . $TEMPLATEBROWSERPATH . "/design/bg.png);\""; ?>>
00081 <div class="navigationbar">
00082         <nobr><div id="actionbarmodule">
00083                 <? echo $ACTIONBARMODULE;?>
00084         </div></nobr>
00085         <nobr><div id="actionbarpage">
00086                 <b>seekshiva@gmail.com</b> <? echo $ACTIONBARPAGE;?>
00087         </div></nobr>
00088 </div>
00089 <div id="main">
00090         <div id="header">
00091                 <h2><a href="<?
00092                                                 $pos = strpos($TEMPLATEBROWSERPATH, 'cms');
00093                                                 $HOMEPATH = substr($TEMPLATEBROWSERPATH,0,$pos);
00094                                                 echo $HOMEPATH; 
00095                                         ?>+search">
00096                         <?
00097                                 $pos = strpos($TITLE,' - ');
00098                                 $SHORT = ($pos)?substr($TITLE, 0, $pos):$TITLE;
00099                                 echo $SHORT; 
00100                         ?></a></h2>
00101                         <form method="POST" name="searchform" action="<? $pos = strpos($_SERVER['REQUEST_URI'],'+'); $PATH = ($pos) ? substr($_SERVER['REQUEST_URI'], 0, $pos): $_SERVER['REQUEST_URI']; echo $PATH . "+search"; ?>">
00102                         <table>
00103                         <tr>
00104                                 <td><input type="text" size="40" name="query" value="<? if(isset($_POST['query'])) echo $_POST['query']; ?>"></td>
00105                                 <td><input type="submit" value="Search" onClick="if(checkvalue == 'web') return generateSS('searchform');"></td>
00106                         </tr><tr>
00107                                 <td>
00108                                         <input type="radio" checked="checked" onclick="checkvalue = this.value;" value="thissite" name="scope">
00109                                         <label for="searchscope">This site 
00110                                         <a href="http://www.sphider.eu/">
00111                                                 <img src="/trunk/cms/templates/common/images/sphider-logo.png" height="15px" border="0" title="Powered by Sphider" style="vertical-align: middle" alt="Sphider">
00112                                         </a>
00113                                         </label>
00114                                         
00115                                         <input type="radio" onclick="checkvalue = this.value;" value="web" name="scope">
00116                                         <label for="searchscope">Web 
00117                                         <a href="http://www.google.com/">
00118                                                 <img src="/trunk/cms/templates/google/design/google.png" height="20px" border="0" title="Powered by Google" style="vertical-align: middle" alt="Google">
00119                                         </a>
00120                                         </label>svn commit -m "Added Email Registrants support in Admin"
00121 
00122                                 </td>
00123                                 <td></td>
00124                         </tr></table></form>
00125         </div>
00126         <div id="breadcrumb">
00127                 <? echo  $BREADCRUMB; ?>
00128         </div>
00129         
00130         <h2 id="mainHeader"><? echo  $TITLE; if($searchselected) echo " - Search Results for <i>" . $_POST['query'] . "</i>"; ?></h2>
00131         
00132         
00133         <div style="position:relative;">
00134                 <div id="center_col" class="article">
00135                   <? echo $INFOSTRING;?>
00136                   <? echo $WARNINGSTRING;?>
00137                   <? echo $ERRORSTRING;?>
00138                   <? echo  $CONTENT; ?>
00139                 </div> <!-- /article -->
00140                 <div id="leftnav" role="navigation" style="padding-top:3px;padding-left:4px;position:absolute;top:0;width:151px">
00141                         <? echo $MENUBAR;?>
00142                         <hr size="1px" color="#ddf" />
00143                         <div class="cms-menumhead">Links</div>
00144                         <a href="http://www.sourceforge.net/projects/pragyan"><div class="cms-menuitem">Pragyan CMS Project</div></a>
00145                         <a href="http://www.pragyan.org"><div class="cms-menuitem">Pragyan Festival</div></a>
00146                         <a href="http://www.nitt.edu"><div class="cms-menuitem">NIT Trichy</div></a>
00147                 </div>
00148         </div>
00149 </div>
00150 <div id="searchmain">
00151         <div id="searchheader">
00152                 <h2><a href="<?
00153                                                 $pos = strpos($TEMPLATEBROWSERPATH, 'cms');
00154                                                 $HOMEPATH = substr($TEMPLATEBROWSERPATH,0,$pos);
00155                                                 echo $HOMEPATH; 
00156                                         ?>">
00157                         <?
00158                                 $pos = strpos($TITLE,' - ');
00159                                 $SHORT = ($pos)?substr($TITLE, 0, $pos):$TITLE;
00160                                 echo $SHORT; 
00161                         ?></a></h2>
00162                 <div align="center">
00163                         <form method="POST" name="mainsearchform" action="<? $pos = strpos($_SERVER['REQUEST_URI'],'+'); $PATH = ($pos) ? substr($_SERVER['REQUEST_URI'], 0, $pos): $_SERVER['REQUEST_URI']; echo $PATH . "+search"; ?>">
00164                                 <input type="text" size="65" name="query" value="<? if(isset($_POST['query'])) echo $_POST['query']; ?>">
00165                                 <div>
00166                                         <input type="submit" value="Search this Site">
00167                                         <input type="submit" value="Search the Web" onClick="return generateSS('mainsearchform');">
00168                                 </div>
00169                         </form></div>
00170         </div>
00171 </div>
00172         <div style="font-size:10pt;" id="mainfooter">
00173                 $FOOTER
00174                 <div style="font-size:8pt;" id="designer">
00175                         <strong><em>Google</em></strong> theme created by <strong>V. Shiva Nandan</strong>
00176                         <!--This theme was created, inspired by Google. No offence intended. //-->
00177                 </div>
00178         </div>
00179 
00180 
00181 </body>
00182 </html>

Generated on Sun Jan 2 2011 04:55:32 for Pragyan CMS by  doxygen 1.7.1