[wpkg_web] / profiles_list.php Repository:
ViewVC logotype

View of /profiles_list.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (download) (annotate)
Thu Jan 11 02:13:58 2007 UTC (11 years, 1 month ago) by linuxkidd
File size: 4070 byte(s)
Language pack and Icon pack conversion complete.
Moved all settings into config.php.
Added CHANGELOG.
Fixed bug in packages_xml_in which prevented proper creation of initial level.
Added UPGRADE instructions.

<?php
  
include "connect.php";
  include 
"header.php";
  
$page='plist';
?>
<script type="text/javascript">
// Tool Tip Data below
var preFormat="<div class='tip'>";
var postFormat="</div>";
var permDel="<span style=\"background: red; font-weight: bold;color: white;\"><?php print $vocab['tip-permdel']; ?>"

</script>
    <title><?php print $vocab['title-proflist']; ?></title>
  </head>
  <body>
  <div id="popupDiv" style="visibility:hidden; position:absolute; z-index:1000;"></div>
    <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-proflist']; ?></td>
            </tr>
            <tr class='tr_main'>
              <td>
          <table class='tbl_sub2' style='width: 500px;' cellpadding='0' cellspacing='0'>
            <tr class='headline'>
              <td width='38px'>&nbsp;</td>
              <td width='45px'>&nbsp;</td>
              <td width='100px' align='center'><?php print $vocab['title-profile']; ?></td>
              <td align='center'><?php print $vocab['title-packcount']; ?> <a href='javascript:void(0);' onMouseOver='return showTip(event, "<?php print $vocab['tip-packcount']; ?>", true);' onMouseOut='return hideTip();'><?php print $icon['question'][0]; ?></a></td>
              <td align='center'><?php print $vocab['title-depcount']; ?> <a href='javascript:void(0);' onMouseOver='return showTip(event, "<?php print $vocab['tip-depcount']; ?>", true);' onMouseOut='return hideTip();'><?php print $icon['question'][0]; ?></a></td>
            </tr>
        <?php
          $page
='general';
          
$sql="select * from profiles order by name";
          
$sql_handle=mysql_query($sql) or error_report($sql,mysql_error());
          
$count=0;
          while(
$prof_info=mysql_fetch_array($sql_handle)) {
            
$link="<a href='profiles.php?prof_id={$prof_info['id']}&page={$page}' title='{$vocab['title-edit']} {$prof_info['name']}'>";
            
$status="<a href='prof_del.php?prof_id={$prof_info['id']}' onMouseOver='return showTip(event, permDel + \" {$prof_info['name']} " strtolower($vocab['title-profile']) . ".</span>\", true);' onMouseOut='return hideTip();' onClick=\"return confirm('{$vocab['popup-permdel']} {$prof_info['name']} " strtolower($vocab['title-profile']) . ".  {$vocab['gen-confirm']}');\">{$icon['delete'][0]}</a>";
            
$xmllink="<a href='profiles_xml_out.php?id={$prof_info['id']}' onMouseOver='return showTip(event, \"{$vocab['tip-prof_xml-1']} {$prof_info['name']} {$vocab['tip-prof_xml-2']}.\", true);' onMouseOut='return hideTip();'>{$icon['xml'][0]}</a>";
            
$sql2="select count(prof_id) from prof_packs where prof_id=" quote_smart($prof_info['id']);
            unset(
$pack_count);
            
$sql2_handle=mysql_query($sql2) or error_report($sql2,mysql_error());
            list(
$pack_count)=mysql_fetch_array($sql2_handle);
            
$sql2="select count(prof_id) from prof_deps where prof_id=" quote_smart($prof_info['id']);
            unset(
$dep_count);
            
$sql2_handle=mysql_query($sql2) or error_report($sql2,mysql_error());
            list(
$dep_count)=mysql_fetch_array($sql2_handle);
            
$style='';
            print 
"      <tr style='background: {$alt_bg_colors[$count%2]};'>\n";
            print 
"        <td  style='text-align: center; width: 38px;'>{$status}</td>\n";
            print 
"        <td style='text-align: center;'>{$xmllink}</td>\n";
            print 
"        <td  style='{$style}; text-align: center;'>{$link}{$prof_info['name']}</td>\n";
            print 
"        <td align='center'>{$link}{$pack_count}</a></td>\n";
            print 
"        <td align='center'>{$link}{$dep_count}</a></td>\n";
            print 
"      </tr>\n";
            
$count++;
          }
        
?>
          </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <?php include "footer.php"?>
  </body>
</html>

ViewVC Help
Powered by ViewVC 1.0.3