Changeset 2722


Ignore:
Timestamp:
06/02/10 23:43:03 (3 years ago)
Author:
benjamin
Message:

stylisation standard alternc

Location:
alternc-awstats/trunk/bureau
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • alternc-awstats/trunk/bureau/admin/aws_add.php

    r2560 r2722  
    4242?> 
    4343<h3><?php if (!$id) { __("New Statistics"); } else { __("Edit Statistics"); } ?></h3> 
     44<hr id="topbar"/> 
     45<br /> 
    4446<?php 
    4547        if ($error) { 
    4648                echo "<p class=\"error\">$error</p></body></html>"; 
    47                 exit(); 
    4849        } 
    4950?> 
    5051<form method="post" action="<?php if (!$id) echo "aws_doadd.php"; else echo "aws_doedit.php"; ?>" id="main" name="main"> 
    51 <table border="1" cellspacing="0" cellpadding="4"> 
     52<table class="tedit"> 
    5253<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> 
    5354        <label for="hostname"><?php __("Domain name"); ?></label></th><td> 
     
    102103</select> 
    103104</td></tr> 
    104 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php if (!$id)  __("Create those statistics"); else __("Edit those statistics"); ?>" /></td></tr> 
     105<tr class="trbtn"><td colspan="2"> 
     106  <input type="submit" class="inb" name="submit" value="<?php if (!$id)  __("Create those statistics"); else __("Edit those statistics"); ?>" /> 
     107  <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_list.php'"/> 
     108 
     109</td></tr> 
    105110</table> 
    106111</form> 
  • alternc-awstats/trunk/bureau/admin/aws_del.php

    r2560 r2722  
    3333// On parcours les POST_VARS et on repere les del_. 
    3434reset($_POST); 
     35$found=false; 
    3536while (list($key,$val)=each($_POST)) { 
    3637        if (substr($key,0,4)=="del_") { 
    3738                // Effacement du jeu de stats $val 
    3839                $r=$aws->delete_stats($val); 
     40                $found=true; 
    3941                if (!$r) { 
    4042                        $error.=$err->errstr()."<br />"; 
     
    4547} 
    4648 
     49if (!$found) { 
     50  $error.=_("Please check the statistics set you want to delete"); 
     51 } 
     52 
    4753include("aws_list.php"); 
    4854exit(); 
  • alternc-awstats/trunk/bureau/admin/aws_list.php

    r2560 r2722  
    3939?> 
    4040<h3><?php __("Statistics List"); ?></h3> 
     41<hr id="topbar"/> 
     42<br /> 
    4143<p> 
    42                 - <a href="aws_users.php"><?php __("Manage allowed users' accounts"); ?></a><br /> 
     44                <span class="ina"><a href="aws_users.php"><?php __("Manage allowed users' accounts"); ?></a></span><br /><br /> 
    4345<?php 
    4446        if ($quota->cancreate("aws")) { ?> 
    45                 - <a href="aws_add.php"><?php __("Create new Statistics"); ?></a><br /> 
     47                <span class="ina"><a href="aws_add.php"><?php __("Create new Statistics"); ?></a></span><br /> 
    4648<?php   } 
    4749?> 
     
    5759<form method="post" action="aws_del.php"> 
    5860<table cellspacing="0" cellpadding="4"> 
    59 <tr><th colspan="2">&nbsp;</th><th><?php __("Domain name"); ?></th><th>Allowed Users</th><th><?php __("View"); ?></th></tr> 
     61    <tr><th colspan="2"><?php __("Action"); ?></th><th><?php __("Domain name"); ?></th><th><?php __("Allowed Users"); ?></th><th><?php __("View the statistics"); ?></th></tr> 
    6062<?php 
    6163reset($r); 
     
    6769        <tr class="lst<?php echo $col; ?>"> 
    6870                <td><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td> 
    69                 <td><a href="aws_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" title="<?php __("Edit"); ?>" /></a></td> 
     71           <td><div class="ina"><a href="aws_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" title="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td> 
    7072                <td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["hostname"] ?></label></td> 
    7173                <td><?php echo $val["users"] ?></td> 
    72                 <td><a href="/cgi-bin/awstats.pl?config=<?php echo $val["hostname"]; ?>"><?php __("View"); ?></a></td> 
     74                <td><div class="ina"><img src="images/stat.png" alt="<?php __("View the statistics"); ?>" /><a href="/cgi-bin/awstats.pl?config=<?php echo $val["hostname"]; ?>"><?php __("View the statistics"); ?></a></div></td> 
    7375        </tr> 
    7476<?php 
  • alternc-awstats/trunk/bureau/admin/aws_pass.php

    r2560 r2722  
    6262<?php } ?> 
    6363 
    64 <form method="post" action="aws_pass.php" name="main"> 
    65 <table border="1" cellspacing="0" cellpadding="4"> 
     64<form method="post" action="aws_pass.php" name="main" id="main"> 
     65<table class="tedit"> 
    6666<tr><th> 
    6767<?php __("Username"); ?></th><td> 
     
    6969</td></tr> 
    7070<tr><th><label for="pass"><?php __("New Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="<?php echo $pass; ?>" size="20" maxlength="64" /></td></tr> 
    71 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change this user's password"); ?>" /></td></tr> 
     71<tr class="trbtn"><td colspan="2"> 
     72  <input type="submit" class="inb" name="submit" value="<?php __("Change this user's password"); ?>" /> 
     73  <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_users.php'"/> 
     74</td></tr> 
    7275</table> 
    7376</form> 
     77 
     78<script type="text/javascript"> 
     79document.forms['main'].pass.focus(); 
     80document.forms['main'].setAttribute('autocomplete', 'off'); 
     81</script> 
     82 
     83 
    7484<?php include_once("foot.php"); ?> 
  • alternc-awstats/trunk/bureau/admin/aws_users.php

    r2560 r2722  
    3939?> 
    4040<h3><?php __("Awstats allowed user list"); ?></h3> 
     41<hr id="topbar"/> 
     42<br /> 
    4143 
    4244<form method="post" action="aws_useradd.php" name="main"> 
    43 <table border="1" cellspacing="0" cellpadding="4"> 
     45<table class="tedit"> 
    4446<tr><th> 
    4547<label for="login"><?php __("Username"); ?></label></th><td> 
     
    4749</td></tr> 
    4850<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="" size="20" maxlength="64" /></td></tr> 
    49 <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new awstat account."); ?>" /></td></tr> 
     51<tr class="trbtn"><td colspan="2"> 
     52  <input type="submit" class="inb" name="submit" value="<?php __("Create this new awstat account"); ?>" /> 
     53  <input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='aws_list.php'"/> 
     54 
     55</td></tr> 
    5056</table> 
    5157</form> 
    52  
     58<br /> 
    5359<?php 
    5460 
     
    6369 
    6470 
    65 <form method="post" action="aws_userdel.php"> 
    66 <table cellspacing="0" cellpadding="4"> 
    67 <tr><th colspan="2">&nbsp;</th><th><?php __("Username"); ?></th></tr> 
     71<form method="post" action="aws_userdel.php" name="main2" id="main2"> 
     72<table class="tlist"> 
     73    <tr><th colspan="2"><?php __("Action"); ?></th><th><?php __("Username"); ?></th></tr> 
    6874<?php 
    6975$col=1; 
     
    7379        <tr class="lst<?php echo $col; ?>"> 
    7480                <td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val; ?>" name="del_<?php echo $val; ?>" value="<?php echo $val; ?>" /></td> 
    75                 <td><a href="aws_pass.php?login=<?php echo $val ?>"><?php __("Change password"); ?></a></td> 
     81                <td><span class="ina"><a href="aws_pass.php?login=<?php echo $val ?>"><?php __("Change password"); ?></a></span></td> 
    7682                <td><label for="del_<?php echo $val; ?>"><?php echo $val ?></label></td> 
    7783        </tr> 
     
    8288</table> 
    8389</form> 
     90 
     91 
    8492<?php 
    8593 } 
    8694?> 
     95<script type="text/javascript"> 
     96document.forms['main'].login.focus(); 
     97document.forms['main'].setAttribute('autocomplete', 'off'); 
     98</script> 
     99 
    87100<?php include_once("foot.php"); ?> 
  • alternc-awstats/trunk/bureau/class/m_aws.php

    r2697 r2722  
    675675    $s=str_replace("%%HOSTNAME%%",$hostname,$s); 
    676676    $s=str_replace("%%PUBLIC%%",$public,$s); 
    677     $s=str_replace("%%HOSTALIASES%%",$hostaliases." ".$hostname,$s); 
     677    $s=str_replace("%%HOSTALIASES%%",$hostaliases,$s); 
    678678    $s=str_replace("%%USERS%%",$users,$s); 
    679679    $f=fopen($this->CONFDIR."/awstats.".$hostname.".conf","wb"); 
Note: See TracChangeset for help on using the changeset viewer.