Changeset 224
- Timestamp:
- 07/05/10 12:21:21 (19 months ago)
- Location:
- branches/fuze
- Files:
-
- 3 edited
-
admin/modules/mod_lastreg/backend.php (modified) (2 diffs)
-
modules/mod_lastreg/module.php (modified) (1 diff)
-
templates/_default_/modules/mod_lastreg.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/fuze/admin/modules/mod_lastreg/backend.php
r181 r224 36 36 $cfg['newscount'] = $_REQUEST['newscount']; 37 37 $cfg['view_type'] = $_REQUEST['view_type']; 38 $cfg['maxcool'] = $_REQUEST['maxcool']; 38 39 39 40 $inCore->saveModuleConfig($_REQUEST['id'], $cfg); … … 54 55 <td><select name="view_type" id="view_type"> 55 56 <option value="table" <?php if (@$cfg['view_type']=='table') {echo 'selected';} ?>>Òàáëèöà</option> 57 <option value="hr_table" <?php if (@$cfg['view_type']=='hr_table') {echo 'selected';} ?>>Ãîðèçîíòàëüíàÿ òàáëèöà</option> 56 58 <option value="list" <?php if (@$cfg['view_type']=='list') {echo 'selected';} ?>>Ñïèñîê</option> 57 59 </select></td> 60 </tr> 61 <tr> 62 <td width="233"><strong>Êîëè÷åñòâî êîëîíîê: </strong><br> òîëüêî äëÿ îïöèè "ãîðèçîíòàëüíàÿ òàáëèöà"</td> 63 <td width="273"><input name="maxcool" type="text" id="maxcool" value="<?php if (@$cfg) { echo $cfg['maxcool']; } ?>" size="5" /></td> 58 64 </tr> 59 65 </table> -
branches/fuze/modules/mod_lastreg/module.php
r223 r224 33 33 $usrs = array(); 34 34 35 if ($cfg['view_type']=='table' ){35 if ($cfg['view_type']=='table' || $cfg['view_type']=='hr_table'){ 36 36 include_once($_SERVER['DOCUMENT_ROOT'].'/components/users/includes/usercore.php'); 37 37 while($usr = $inDB->fetch_assoc($result)){ -
branches/fuze/templates/_default_/modules/mod_lastreg.tpl
r223 r224 9 9 </td> 10 10 </tr> 11 {/foreach} 12 </table> 13 {/if} 14 {if $cfg.view_type == 'hr_table'} 15 {assign var="col" value="1"} 16 <table cellspacing="5" border="0"> 17 {foreach key=aid item=usr from=$usrs} 18 {if $col==1} <tr> {/if} 19 <td width="20" class="new_user_avatar" align="center" valign="middle"><a href="{profile_url login=$usr.login}" class="new_user_link" title="{$usr.nickname}">{$usr.avatar}</a> 20 </td> 21 {if $col==$cfg.maxcool} </tr> {assign var="col" value="1"} {else} {math equation="x + 1" x=$col assign="col"} {/if} 11 22 {/foreach} 12 23 </table>
Note: See TracChangeset
for help on using the changeset viewer.
