[wpkg_web] / profiles.php Repository:
ViewVC logotype

View of /profiles.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (download) (annotate)
Wed Jan 10 20:17:26 2007 UTC (11 years, 8 months ago) by linuxkidd
File size: 1239 byte(s)
Modified to support translations.

<?php
  
include "connect.php";
  include 
"header.php";

  
$page='general';

  if(isset(
$_GET['prof_id'])) {
    if(isset(
$_GET['page'])) {
      
$page=$_GET['page'];
    }
    
$prof_id=$_GET['prof_id'];
    
$sql="select name from profiles where id=" quote_smart($prof_id);
    
$sql_handle=mysql_query($sql) or error_report($sql,mysql_error());
    list(
$prof_name)=mysql_fetch_array($sql_handle);
    
$prof_fields=array('id','name');
  } else {
    
$prof_id='0';
  }
?>
    <title><?php print $vocab['title-profman']; ?></title>
  </head>
  <body>
    <table class='tbl_main'>
      <tr>
<?php
   $key
=array(5);
   include 
"sidebar.php";
?>
        <td valign='top'>
          <table class='tbl_mainsub'>
            <tr class='headline'>
              <td><?php
                
print $vocab['title-profman'];
                if(
$prof_name) {
                  print 
" - " $prof_name;
                }
              
?></td>
            </tr>
            <tr class='tr_main'>
              <td>
                <?php
                 
include "prof_" $page ".php";
                
?>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <?php include "footer.php"?>
  </body>
</html>

ViewVC Help
Powered by ViewVC 1.0.3