[Mapbender-commits] r2028 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 28 07:45:32 EST 2008
Author: nimix
Date: 2008-01-28 07:45:32 -0500 (Mon, 28 Jan 2008)
New Revision: 2028
Modified:
trunk/mapbender/http/php/mod_filteredUser_Group.php
trunk/mapbender/http/php/mod_filteredUser_Gui.php
trunk/mapbender/http/php/mod_filteredUser_filteredGroup.php
trunk/mapbender/http/php/mod_filteredUser_filteredGui.php
trunk/mapbender/http/php/mod_user_filteredGroup.php
trunk/mapbender/http/php/mod_user_filteredGui.php
trunk/mapbender/http/php/mod_user_group.php
trunk/mapbender/http/php/mod_user_gui.php
Log:
fix update on user selection change in admin modules with filterbox
Modified: trunk/mapbender/http/php/mod_filteredUser_Group.php
===================================================================
--- trunk/mapbender/http/php/mod_filteredUser_Group.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_filteredUser_Group.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -205,13 +205,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_filteredUser_Gui.php
===================================================================
--- trunk/mapbender/http/php/mod_filteredUser_Gui.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_filteredUser_Gui.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -216,13 +216,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_filteredUser_filteredGroup.php
===================================================================
--- trunk/mapbender/http/php/mod_filteredUser_filteredGroup.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_filteredUser_filteredGroup.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -212,13 +212,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_filteredUser_filteredGui.php
===================================================================
--- trunk/mapbender/http/php/mod_filteredUser_filteredGui.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_filteredUser_filteredGui.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -256,13 +256,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_user_filteredGroup.php
===================================================================
--- trunk/mapbender/http/php/mod_user_filteredGroup.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_user_filteredGroup.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -206,13 +206,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_user_filteredGui.php
===================================================================
--- trunk/mapbender/http/php/mod_user_filteredGui.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_user_filteredGui.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -259,13 +259,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_user_group.php
===================================================================
--- trunk/mapbender/http/php/mod_user_group.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_user_group.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -199,13 +199,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
Modified: trunk/mapbender/http/php/mod_user_gui.php
===================================================================
--- trunk/mapbender/http/php/mod_user_gui.php 2008-01-28 11:00:19 UTC (rev 2027)
+++ trunk/mapbender/http/php/mod_user_gui.php 2008-01-28 12:45:32 UTC (rev 2028)
@@ -203,13 +203,15 @@
echo "<input type='text' value='' class='filter1' id='filter1' name='filter1' onkeyup='filterUser(document.getElementById(\"selecteduser\"),user,this.value);'/>";
/*insert all user in selectbox*************************************************************************************/
echo "<div class='text1'>USER: </div>";
-echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select1' id='selecteduser' name='selected_user' onChange='submit()' size='10'>";
+echo "<select style='background:#ffffff' onchange='updateMail(this, user);submit();' class='select1' id='selecteduser' name='selected_user' size='10'>";
for($i=0; $i<$cnt_user; $i++){
- echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."'";
+ echo "<option value='" . $user_id[$i] . "' title='".$user_email[$i]."' ";
if($selected_user && $selected_user == $user_id[$i]){
- echo "selected";
+ echo "selected>".$user_name[$i]." (".$user_email[$i].")";
}
- echo ">" . $user_name[$i] . "</option>";
+ else
+ echo ">" . $user_name[$i];
+ echo "</option>";
}
echo "</select>";
More information about the Mapbender_commits
mailing list