Commit 785498e7 authored by Benjamin Sonntag's avatar Benjamin Sonntag
Browse files

fixing engrish from fufroma, small design fixes, now includes jQuery .js in head.php

parent 2c399d10
<?php
/*
$Id: adm_tld.php,v 1.4 2004/11/29 17:27:04 anonymous Exp $
$Id: adm_dnsweberror.php,v 1.4 2004/11/29 17:27:04 anonymous Exp $
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2002 by the AlternC Development Team.
......@@ -23,8 +23,8 @@
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag
Purpose of file: Manage allowed TLD on the server
Original Author of file: Alan Garcia
Purpose of file: Report domains and websites having error in the DB
----------------------------------------------------------------------
*/
require_once("../class/config.php");
......@@ -37,9 +37,9 @@ if (!$admin->enabled) {
include_once("head.php");
?>
<h3><?php __("DNS and website in error"); ?></h3>
<h3><?php __("Domains and Websites having errors"); ?></h3>
<hr id="topbar" />
<br />
<br />
<?php
if ($error) {
echo "<p class=\"error\">$error</p>";
......@@ -47,17 +47,17 @@ include_once("head.php");
?>
<p>
<h3><?php __("Here is the list of the websites in error."); ?></h3>
<h3><?php __("List of the websites having errors in the domain database."); ?></h3>
</p>
<table class="tlist">
<tr>
<th> compte </th>
<th> login </th>
<th> domaine </th>
<th> fqdn </th>
<th> valeur </th>
<th> description </th>
<th> web_result </th>
<th><?php __("Uid"); ?></th>
<th><?php __("Account"); ?></th>
<th><?php __("Domain name"); ?></th>
<th><?php __("FQDN"); ?></th>
<th><?php __("Value"); ?></th>
<th><?php __("Description"); ?></th>
<th><?php __("Web Result field"); ?></th>
</tr>
<?php
......@@ -81,13 +81,13 @@ print_r($d);
</table>
<hr/>
<h3><?php __("Here is the list of the DNS in error."); ?></h3>
<h3><?php __("List of the domain names having errors in the domain database."); ?></h3>
<table class="tlist">
<tr>
<th> compte </th>
<th> login </th>
<th> domaine </th>
<th> dns_result </th>
<th><?php __("Uid"); ?></th>
<th><?php __("Account"); ?></th>
<th><?php __("Domain name"); ?></th>
<th><?php __("DNS Result field"); ?></th>
</tr>
<?php
......
......@@ -23,8 +23,8 @@
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag
Purpose of file: Manage allowed TLD on the server
Original Author of file: Alan Garcia
Purpose of file: Manage domain types on the server
----------------------------------------------------------------------
*/
require_once("../class/config.php");
......@@ -39,6 +39,8 @@ include_once("head.php");
?>
<h3><?php __("Manage domains type"); ?></h3>
<hr id="topbar" />
<p><?php __("If you don't know what this page is about, don't touch anything, and read AlternC documentation about domain types"); ?></p>
<br />
<?php
if ($error) {
......@@ -47,20 +49,20 @@ include_once("head.php");
?>
<p>
<?php __("Here is the list of the domains type."); ?>
<?php __("Here is the list of domain types."); ?>
</p>
<p><span class="ina"><a href="adm_domstypeadd.php"><?php __("Add a new domains type"); ?></a></span></p>
<p><span class="ina"><a href="adm_domstypeadd.php"><?php __("Create a domain type"); ?></a></span></p>
<table class="tlist">
<tr>
<th colspan="2"> </th>
<th><?php __("Name");?></th>
<th><?php __("Description");?></th>
<th><?php __("Target");?></th>
<th><?php __("Entry");?></th>
<th><?php __("Compatibility");?></th>
<th><?php __("Enabled ?");?></th>
<th><?php __("Only DNS ?");?></th>
<th><?php __("Need to be DNS ?");?></th>
<th><?php __("Edit");?></th>
<th><?php __("Compatible with");?><br /><small><?php __("Enter comma-separated name of other types"); ?></small></th>
<th><?php __("Enabled?");?></th>
<th><?php __("Only DNS?");?></th>
<th><?php __("Need to be DNS?");?></th>
<th/>
</tr>
<?php
......@@ -69,6 +71,8 @@ foreach($dom->domains_type_lst() as $d) {
++$pair;
?>
<tr class="lst<?php echo $pair%2+1 ?>">
<td><div class="ina"><a href="adm_domstypeedit.php?name=<?php echo urlencode($d['name']); ?>"><img style="padding-bottom: 5px" src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
<td><div class="ina"><a href="adm_domstyperegenerate.php?name=<?php echo urlencode($d['name']);?>"><?php __("Regenerate");?></a></div></td>
<td><?php echo $d['name'];?></td>
<td><?php echo $d['description'];?></td>
<td><?php echo $d['target'];?></td>
......@@ -77,9 +81,8 @@ foreach($dom->domains_type_lst() as $d) {
<td><?php echo $d['enable']?__("Yes"):__("No");?></td>
<td><?php echo $d['only_dns']?__("Yes"):__("No");?></td>
<td><?php echo $d['need_dns']?__("Yes"):__("No");?></td>
<td><div class="ina"><a href="adm_domstypeedit.php?name=<?php echo urlencode($d['name']); ?>"><img style="padding-bottom: 5px" src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
<td><a href='adm_domstyperegenerate.php?name=<?php echo urlencode($d['name']);?>'><?php __("Regenerate");?></a></td>
</tr>
<?php } // end foreach ?>
<?php } // end foreach
?>
<?php include_once("foot.php"); ?>
......@@ -9,7 +9,7 @@ if (!$admin->enabled) {
if ( ! $dom->domains_type_update($name, $description, $target, $entry, $compatibility, $enable, $only_dns, $need_dns) ) {
die($err->errstr());
} else {
include("adm_domstype.php");
include("adm_domstype.php");
}
?>
......
<?php
/*
$Id: mail_edit.php,v 1.6 2006/01/12 01:10:48 anarcat Exp $
$Id: adm_domstypeedit.php,v 1.6 2006/01/12 01:10:48 anarcat Exp $
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2002 by the AlternC Development Team.
......@@ -23,8 +23,8 @@
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag
Purpose of file: Edit a mailbox.
Original Author of file: Alan Garcia
Purpose of file: Edit the domain types
----------------------------------------------------------------------
*/
require_once("../class/config.php");
......@@ -54,7 +54,7 @@ if (! $d=$dom->domains_type_get($name)) {
} else {
?>
<h3><?php __("Edit a domains type"); ?> </h3>
<h3><?php __("Edit a domain type"); ?> </h3>
<hr id="topbar"/>
<br />
<?php
......@@ -67,12 +67,16 @@ if ($error_edit) {
<form action="adm_domstypedoedit.php" method="post" name="main" id="main">
<input type="hidden" name="name" value="<?php echo $d['name']; ?>" />
<table class="tedit">
<tr>
<tr>
<th><?php __("Name");?></th>
<td><b><?php echo $d["name"]; ?></b></td>
</tr>
<tr>
<th><?php __("Description");?></th>
<td><input name="description" type=text size="30" value="<?php echo $d['description']; ?>" /></td>
<td><input name="description" type="text" size="30" value="<?php echo $d['description']; ?>" /></td>
</tr>
<tr>
<th><?php __("Target");?></th>
<th><?php __("Target type");?></th>
<td>
<select name="target">
<?php foreach ($dom->domains_type_target_values() as $k) { ?>
......@@ -80,33 +84,36 @@ if ($error_edit) {
<?php } ?>
</select>
</td>
</tr>
</tr>
<tr>
<th><?php __("Entry");?></th>
<td><input name="entry" type=text size="30" value="<?php echo $d['entry']; ?>" /></td>
<td><input name="entry" type="text" size="30" value="<?php echo $d['entry']; ?>" /></td>
</tr>
<tr>
<th><?php __("Compatibility");?></th>
<td><input name="compatibility" type=text size="15" value="<?php echo $d['compatibility']; ?>" /></td>
<th><?php __("Compatibility");?><br /><small><?php __("Enter comma-separated name of other types"); ?></small></th>
<td><input name="compatibility" type="text" size="15" value="<?php echo $d['compatibility']; ?>" /></td>
</tr>
<tr>
<th><?php __("Enable");?></th>
<td><input name="enable" type=checkbox value="1" <?php cbox($d['enable']); ?> /></td>
<th><?php __("Enabled");?></th>
<td><input name="enable" type="checkbox" value="1" <?php cbox($d['enable']); ?> /></td>
</tr>
<tr>
<th><?php __("Do only a DNS entry");?></th>
<td><input name="only_dns" type=checkbox value="1" <?php cbox($d['only_dns']); ?> /></td>
<td><input name="only_dns" type="checkbox" value="1" <?php cbox($d['only_dns']); ?> /></td>
</tr>
<tr>
<th><?php __("Need to be the DNS");?></th>
<td><input name="need_dns" type=checkbox value="1" <?php cbox($d['need_dns']); ?> /></td>
<th><?php __("Domain must have our DNS");?></th>
<td><input name="need_dns" type="checkbox" value="1" <?php cbox($d['need_dns']); ?> /></td>
</tr>
<tr class="trbtn">
<td colspan="2">
<input type="submit" class="inb" name="submit" value="<?php __("Change this domains type"); ?>" />
<input type="submit" class="inb" name="submit" value="<?php __("Change this domain type"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='adm_domstype.php'"/>
</td>
</tr>
</table>
</form>
<?php } ?>
<?php include_once("foot.php"); ?>
......@@ -12,12 +12,10 @@ getFields($fields);
if (empty($name) || (! $dom->domains_type_regenerate($name)) ) {
die($err->errstr());
die($err->errstr());
} else {
$error="Regenerate pending";
include("adm_domstype.php");
$error="Regenerate pending";
include("adm_domstype.php");
}
?>
......
......@@ -52,7 +52,6 @@ include_once("head.php");
<li class="lst2"><a href="adm_passpolicy.php"><?php __("Password Policies"); ?></a></li>
<li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website in error"); ?></a></li>
</ul>
......@@ -64,6 +63,7 @@ include_once("head.php");
<li class="lst2"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
<li class="lst1"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<li class="lst2"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
<li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
<!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
</ul>
......
......@@ -81,7 +81,7 @@ $dom->unlock();
break;
case 'DOMAIN':?>
<input type="text" class="int" name="t_<?php echo $dt['name']?>" id="t_<?php echo $dt['name']?>" value="<?php ehe($targval);?>" size="32" />
<small><?php __("(enter a server address or a subdomain)"); ?></small><?php
<small><?php __("(enter a domain name or subdomain)"); ?></small><?php
break;
} // switch ?>
</td>
......
......@@ -94,7 +94,7 @@ if ($r['dns_action']=='UPDATE') {?>
gestion des sous-domaines
-->
<table class="tlist">
<tr><th colspan="2"><?php __("Actions"); ?></th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Place"); ?></th><th><?php __("Status")?></th><th><?php __("Pending");?></tr>
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Place"); ?></th><th><?php __("Status")?></th><th><?php __("Pending");?></tr>
<?php
$col=1;
for($i=0;$i<$r["nsub"];$i++) {
......
......@@ -38,6 +38,9 @@ if (!$charset) $charset="iso-8859-1";
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<script type="text/javascript" src="js/alternc.js"></script>
<script type="text/javascript" src="js/wz_dragdrop.js"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery_ui/js/jquery-ui-1.8.6.custom.min.js" type="text/javascript"></script>
<link href="js/jquery_ui/css/smoothness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="global">
......
......@@ -65,7 +65,7 @@ if ($error_edit) {
<input type="hidden" name="domain" value="<?php echo $domain; ?>" />
<?php printf(_("Edit the email address <b>%s</b>"),$email); ?></th></tr>
<?php if (! is_null($res['trash_info']) && $res['trash_info']->is_trash ) { ?>
<tr><th colspan="2"><span style="color: red"><?php __("This account is a temporary account.<br/>It will be delete the "); echo $res['trash_info']->human_display(); ?></span></th></tr>
<tr><th colspan="2"><span style="color: red"><?php __("This account is a temporary account.<br/>It will be delete on "); echo $res['trash_info']->human_display(); ?></span></th></tr>
<?php } ?>
<tr><td><label for="pop"><?php __("Is it a POP/IMAP account?"); ?></label></td>
<td>
......@@ -88,7 +88,7 @@ echo "<div class=\"warningmsg\">"._("WARNING: turning POP/IMAP off will DELETE t
<tr><td><label for="alias"><?php __("Redirections<br />Other recipients:"); ?></label></td><td>(<?php __("one email per line"); ?>)<br /><textarea class="int" cols="32" rows="5" name="alias" id="alias"><?php echo $alias; ?></textarea></td></tr>
<tr><td>
<?php echo __("Informations for temporary account"); ?><br/>
<span style="color: red;"><?php __("All this account information will <br/> be deleted at expiration");?></span>
<span style="color: red;"><?php __("All this account information will <br/> be deleted at expiration time");?></span>
</td><td>
<?php include_once("trash_dateselect.php"); ?>
</td></tr>
......
......@@ -99,7 +99,7 @@ else{
<table class="tlist">
<tr><th colspan="2"><input type="hidden" name="domain" value="<?php echo $domain ?>"/>
<?php __("Actions"); ?></th><th><?php __("Email address"); ?></th><th><?php __("Size"); ?></th><th/></tr>
<?php __("Actions"); ?></th><th><?php __("Email address"); ?></th><th><?php __("Size"); ?></th><th> </th></tr>
<?php
$col=1;
for($i=0;$i<$res["count"];$i++) {
......@@ -121,8 +121,8 @@ for($i=0;$i<$res["count"];$i++) {
if (! is_null($val['expiration_date'])) {
// It's a temporary account
echo __("Manage this temporary account");
// It's a normal account
} else {
// It's a normal account
echo "<a href='mail_add.php?domain=".urlencode($domain)."&dst_mail=".urlencode($val["mail"])."'>";
echo __("Create alias");
echo "</a>";
......
......@@ -61,8 +61,8 @@ $r=$mysql->get_user_dblist($id);
</tr>
<tr>
<td>
<input type="submit" class="inb" value="<?php __("Change user password"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='sql_users_list.php'"/>
<input type="submit" class="inb" value="<?php __("Confirm"); ?>" />
</td>
</tr>
</table>
......
......@@ -24,30 +24,27 @@
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Alan Garcia
Purpose of file:
Purpose of file: Show the date selection form for temporary emails
----------------------------------------------------------------------
*/
require_once("../class/config.php");
?>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery_ui/js/jquery-ui-1.8.6.custom.min.js" type="text/javascript"></script>
<link href="js/jquery_ui/css/smoothness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css"/>
<div id="trash_expire_picker">
<table>
<tbody>
<tr>
<td>
<input type="radio" name="trash_type_expiration" value="no_exp" id="no_exp" checked onclick="trash_exp_none();">
<input type="radio" name="trash_type_expiration" value="no_exp" id="no_exp" checked="checked" onclick="trash_exp_none();">
</td><td>
<label for="no_exp"><?php echo __("No expiration date"); ?></label>
<label for="no_exp"><?php echo __("No auto-deletion date"); ?></label>
</td>
</tr>
<tr>
<td valign=top>
<td valign="top">
<input type="radio" name="trash_type_expiration" value="trash_in_x" id="trash_in_x" onclick="trash_exp_in_activate();">
</td><td>
<label for="trash_in_x"><?php __('You want it to expire in');?></label><br/>
<label for="trash_in_x"><?php __('You want it to be deleted in');?></label><br/>
<select id="trash_exp_in_value" name="trash_exp_in_value" >
<?php for($i=1;$i<=30;$i++) { ?>
<option value="<?php echo $i;?>" <?php echo $i==7?'selected="selected"':"" ;?>><?php echo $i;?></option>
......@@ -63,8 +60,8 @@ require_once("../class/config.php");
<td valign=top>
<input type="radio" name="trash_type_expiration" value="trash_at_x" id="trash_at_x" onclick="trash_exp_at_activate();">
</td><td>
<label for="trash_at_x"><?php __('Pick up the date and time you want,<br/>or enter it with the format DD/MM/YYYY');?></label><br/>
<input id="trash_datepicker" name="trash_datepicker" type="text" size=10 value="<?php echo strftime("%d/%m/%Y",mktime() + (3600*24*7));?>" />
<label for="trash_at_x"><?php __('Delete this email the following day,<br/>enter the date using DD/MM/YYYY format');?></label><br/>
<input id="trash_datepicker" name="trash_datepicker" type="text" size="10" value="<?php echo strftime("%d/%m/%Y",mktime() + (3600*24*7));?>" />
</td>
</tr>
</tbody>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment