mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
bugfix: UE category ordering
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2007-01-18 20:52:00 $
|
| $Date: 2007-01-20 16:04:05 $
|
||||||
| $Author: e107steved $
|
| $Author: mrpete $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
@@ -632,6 +632,13 @@ class users_ext
|
|||||||
$i=0;
|
$i=0;
|
||||||
foreach($catList as $ext)
|
foreach($catList as $ext)
|
||||||
{
|
{
|
||||||
|
if ($ext['user_extended_struct_order'] != $i)
|
||||||
|
{
|
||||||
|
$ext['user_extended_struct_order'] = $i;
|
||||||
|
$xID=$ext['user_extended_struct_id'];
|
||||||
|
$sql->db_Update("user_extended_struct", "user_extended_struct_order=$i WHERE user_extended_struct_type = 0 AND user_extended_struct_id=$xID");
|
||||||
|
}
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<td class='forumheader3'>{$ext['user_extended_struct_name']}</td>
|
<td class='forumheader3'>{$ext['user_extended_struct_name']}</td>
|
||||||
</td>
|
</td>
|
||||||
@@ -645,12 +652,12 @@ class users_ext
|
|||||||
if($i > 0)
|
if($i > 0)
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<input type='image' alt='' title='".EXTLAN_26."' src='".e_IMAGE."packs/".$imode."/admin_images/up.png' name='catup' value='{$ext['user_extended_struct_id']}' />
|
<input type='image' alt='' title='".EXTLAN_26."' src='".e_IMAGE."/admin_images/up.png' name='catup' value='{$ext['user_extended_struct_id']}.{$i}' />
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
if($i <= count($catList)-2)
|
if($i <= count($catList)-2)
|
||||||
{
|
{
|
||||||
$text .= "<input type='image' alt='' title='".EXTLAN_25."' src='".e_IMAGE."packs/".$imode."/admin_images/down.png' name='catdown' value='{$ext['user_extended_struct_id']}' />";
|
$text .= "<input type='image' alt='' title='".EXTLAN_25."' src='".e_IMAGE."/admin_images/down.png' name='catdown' value='{$ext['user_extended_struct_id']}.{$i}' />";
|
||||||
}
|
}
|
||||||
$text .= "
|
$text .= "
|
||||||
</form>
|
</form>
|
||||||
|
Reference in New Issue
Block a user