bouncer_r/php/inc/forms subscribe1.php, 1.2, 1.3 region.php, 1.2, 1.3 repo.php, 1.3, 1.4 mirror.php, 1.2, 1.3 user.php, 1.2, 1.3

David Farning (dfarning) fedora-extras-commits at redhat.com
Mon Aug 1 20:38:34 UTC 2005


Author: dfarning

Update of /cvs/fedora/bouncer_r/php/inc/forms
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13863/php/inc/forms

Added Files:
	subscribe1.php region.php repo.php mirror.php user.php 
Log Message:
cvs cleanup for fedora initial commit


Index: subscribe1.php
===================================================================
RCS file: subscribe1.php
diff -N subscribe1.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ subscribe1.php	1 Aug 2005 20:38:31 -0000	1.3
@@ -0,0 +1,18 @@
+<?php
+/**
+ *  Subscribe1 form.
+ *  @package mirror
+ *  @subpackage forms
+ */
+echo '<div>';
+form_label('Mirror', 'mirror','label-medium');
+form_select('mirror_id','mirror','',mirror_mirrors_get_select(),$posts['mirror_id']);
+echo ' [<a href="./mirrors.php">edit mirrors</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Product', 'product','label-medium');
+form_select('product_id','product','',mirror_products_get_select(),$posts['product_id']);
+echo ' [<a href="./products/">edit products</a>]';
+echo '</div><br />';
+?>


Index: region.php
===================================================================
RCS file: region.php
diff -N region.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ region.php	1 Aug 2005 20:38:31 -0000	1.3
@@ -0,0 +1,27 @@
+<?php
+/**
+ *  Region form.
+ *  @package mirror
+ *  @subpackage forms
+ */
+echo '<div>';
+form_label('Region Name', 'name','label-small');
+form_text('region_name', 'name', '', $posts['region_name'], 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Short Name', 'short_name','label-small');
+form_text('region_short_name', 'short_name', '', $posts['region_short_name'], 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Continent', 'continent','label-small');
+form_select('continent_id','continent','',mirror_continent_get_select(),$posts['continent_id'], 30, 100);
+echo ' [<a href="./continents/">edit continents</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Priority', 'rp','label-small');
+form_text('region_priority', 'rp', '', $posts['region_priority'], 30, 100);
+echo '</div><br />';
+?>


Index: repo.php
===================================================================
RCS file: repo.php
diff -N repo.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ repo.php	1 Aug 2005 20:38:31 -0000	1.4
@@ -0,0 +1,35 @@
+<?php
+/**
+ *  Repo form.
+ *  @package mirror
+ *  @subpackage forms
+ */
+echo '<div>';
+form_label('Product', 'product','label-medium');
+form_select('product_id','product','',mirror_products_get_select(),$posts['product_id']);
+echo ' [<a href="./products/">edit products</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Version', 'version','label-medium');
+form_select('version_id','version','',mirror_versions_get_select(),$posts['version_id']);
+echo ' [<a href="./versions/">edit versions</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Arch', 'arch','label-medium');
+form_select('arch_id','arch','',mirror_arch_get_all_select(),$posts['arch_id']);
+echo ' [<a href="./arches/">edit architecture</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Meta Data Path', 'md','label-medium');
+form_text('metadata_path', 'md', '', $posts['metadata_path'], 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Templates', 'template','label-medium');
+form_select('template_id','template','',mirror_templates_get_select(),$posts['template_id']);
+echo ' [<a href="../templates/">edit templates</a>]';
+echo '</div><br />';
+?>


Index: mirror.php
===================================================================
RCS file: mirror.php
diff -N mirror.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ mirror.php	1 Aug 2005 20:38:31 -0000	1.3
@@ -0,0 +1,54 @@
+<?php
+/**
+ *  Region form.
+ *  @package mirror
+ *  @subpackage forms
+ */
+echo '<div>';
+form_label('Mirror Name', 'mname','label-small');
+form_text('mirror_name', 'mname', '', $posts['mirror_name'], 30, 100);
+echo '</div><br />';
+
+echo '<fieldset><legend>Mirror Address Information</legend>';
+
+
+echo '<div>';
+form_label('Type', 'type','label-small');
+form_select('mirror_type','type','',mirror_types_get_select(),$posts['mirror_type']);
+echo ' [<a href="./types/">edit types</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Base URL', 'murl','label-small');
+form_text('mirror_baseurl', 'murl', '', $posts['mirror_baseurl'], 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Base Path', 'mpath','label-small');
+form_text('mirror_basepath', 'mpath', '', $posts['mirror_basepath'], 30, 100);
+echo '</div><br />';
+
+
+echo '</fieldset><br />';
+
+echo '<div>';
+form_label('Region', 'mregion','label-small');
+form_select('region_id','mregion','',mirror_regions_get_select(),$posts['region_id']);
+echo ' [<a href="./regions/">edit regions</a>]';
+echo '</div><br />';
+
+echo '<div>';
+form_label('Rating', 'mrating','label-small');
+form_text('mirror_rating', 'mrating', '', $posts['mirror_rating'], 30, 100);
+echo '</div><br />';
+
+echo '<fieldset><legend>Mirror Contact Information</legend>';
+
+echo '<div>';
+form_label('Contact', 'contact','label-small');
+form_select('contact_id','contact','',mirror_contacts_get_select(),$posts['contact_id']);
+echo ' [<a href="./contacts/">edit contacts</a>]';
+echo '</div><br />';
+
+echo '</fieldset><br />';
+?>


Index: user.php
===================================================================
RCS file: user.php
diff -N user.php
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ user.php	1 Aug 2005 20:38:32 -0000	1.3
@@ -0,0 +1,28 @@
+<?php
+/**
+ *  User form.
+ *  @package mirror
+ *  @subpackage forms
+ */
+echo $posts['username'];
+echo '<div>';
+form_label('Username', 'uname','label-medium');
+form_text('username', 'uname', '', $posts['username'], 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Password', 'password','label-medium');
+form_password('password', 'password', '', 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Re-enter Password', 'rpassword','label-medium');
+form_password('rpassword', 'rpassword', '', 30, 100);
+echo '</div><br />';
+
+echo '<div>';
+form_label('Contact', 'contact','label-medium');
+form_select('contact_id','contact','',mirror_contacts_get_select(),$posts['contact_id']);
+echo ' [<a href="./contacts/">edit contacts</a>]';
+echo '</div><br />';
+?>




More information about the fedora-extras-commits mailing list