XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
images_categories.php
Go to the documentation of this file.
1
<h1
class
=
"rmc_titles"
><?php
_e
(
'Categories'
,
'rmcommon'
); ?></h1>
2
3
<form name=
"frmimgcats"
id
=
"form-img-cats"
method=
"post"
action=
"images.php"
>
4
<div
class
=
"rmc_bulkactions"
>
5
<?php echo
$nav
->render(); ?>
6
<select name=
"action"
>
7
<option value=
""
><?php
_e
(
'Bulk Actions...'
,
'rmcommon'
); ?></option>
8
<option value=
"deletecat"
><?php
_e
(
'Delete'
,
'rmcommon'
); ?></option>
9
<option value=
"closecat"
><?php
_e
(
'Close Category'
,
'rmcommon'
); ?></option>
10
<option value=
"opencat"
><?php
_e
(
'Open Category'
,
'rmcommon'
); ?></option>
11
</select>
12
<input type=
"submit"
value=
"<?php _e('Apply','rmcommon'); ?>"
/>
13
</div>
14
<table
class
=
"outer"
cellspacing=
"0"
width=
"100%"
>
15
<tr>
16
<th width=
"20"
><input type=
"checkbox"
name=
"checkall"
id
=
"checkall"
onclick
=
"$('#form-img-cats').toggleCheckboxes(':not(#checkall)');"
/></th>
17
<th align=
"left"
><?php
_e
(
'Name'
,
'rmcommon'
); ?></th>
18
<th><?php
_e
(
'Status'
,
'rmcommon'
); ?></th>
19
<th align=
"left"
><?php
_e
(
'Sizes'
,
'rmcommon'
); ?></th>
20
<th align=
"left"
><?php
_e
(
'Groups'
,
'rmcommon'
); ?></th>
21
<th><img src=
"images/images.png"
alt=
"<?php _e('Images','rmcommon'); ?>"
/></th>
22
</tr>
23
<?php
if
(empty($categories)): ?>
24
<tr
class
=
"even"
>
25
<td colspan=
"6"
><?php
_e
(
'There are not categories yet! You must create at least one category in order to create images.'
,
'rmcommon'
); ?></td>
26
</tr>
27
<?php
endif
; ?>
28
<?php
foreach
($categories as
$cat
): ?>
29
<tr
class
=
"<?php echo tpl_cycle("
even,
odd
"); ?>"
valign=
"top"
>
30
<td align=
"center"
valign=
"top"
><input type=
"checkbox"
name=
"cats[]"
value=
"<?php echo $cat['id']; ?>"
/></td>
31
<td>
32
<strong><?php echo $cat[
'name'
]; ?></strong>
33
<span
class
=
"rmc_options"
>
34
<a
href
=
"images.php?action=editcat&id=<?php echo $cat['id']; ?>"
><?php
_e
(
'Edit'
,
'rmcommon'
); ?></a> |
35
<a href=
"javascript:;"
onclick
=
"if(confirm('<?php _e('Do you really want to delete "'.$cat['name'].'"?') ?>')) window.location = 'images.php?action=delcat&id=<?php echo $cat['id']; ?>&XOOPS_TOKEN_REQUEST='+$('#token').val();"
><?php
_e
(
'Delete'
,
'rmcommon'
); ?></a> |
36
<a href=
"images.php?action=<?php echo $cat['status']=='open' ? 'closecat' : 'opencat'; ?>&id=<?php echo $cat['id']; ?>"
><?php
_e
($cat[
'status'
]==
'open'
?
'Close'
:
'Open'
,
'rmcommon'
); ?></a> |
37
<a href=
"images.php?category=<?php echo $cat['id']; ?>"
><?php
_e
(
'Images'
,
'rmcommon'
); ?></a>
38
</span>
39
</td>
40
<td align=
"center"
>
41
<img src=
"<?php echo RMTHEMEURL; ?>/images/<?php echo $cat['status']=='open' ? 'open' : 'closed'; ?>.png"
alt=
"<?php _e($cat['status']=='open' ? 'Open' : 'Closed','rmcommon'); ?>"
/>
42
</td>
43
<td
class
=
"sizes_data"
>
44
<?php
foreach
($cat[
'sizes'
] as $size): ?>
45
<?php echo $size[
'name'
]; ?>
46
<?php
if
($size[
'type'
]!=
'none'
): ?>
47
(<em><?php echo $size[
'type'
]; ?>: <?php echo $size[
'width'
]; ?><?php echo $size[
'height'
]>0 ?
' x '
.$size[
'height'
] :
''
; ?></em>)
48
<?php
else
: ?>
49
(<em><?php echo
_e
(
'No Resize'
,
'rmcommon'
); ?></em>)
50
<?php endif; ?><br />
51
<?php
endforeach
; ?>
52
</td>
53
<td
class
=
"sizes_data"
>
54
<?php
_e
(
'Upload:'
,
'rmcommon'
); ?> <em><?php echo $cat[
'gwrite'
]; ?></em><br />
55
<?php
_e
(
'Access:'
,
'rmcommon'
); ?> <em><?php echo $cat[
'gread'
]; ?></em><br />
56
</td>
57
<td align=
"center"
>
58
<strong><?php echo $cat[
'images'
]; ?></strong>
59
</td>
60
</tr>
61
<?php
endforeach
; ?>
62
</table>
63
<div
class
=
"rmc_bulkactions"
>
64
<?php echo
$nav
->render(); ?>
65
</div>
66
<input type=
"hidden"
name=
"token"
id
=
"token"
value=
"<?php echo $xoopsSecurity->createToken(); ?>"
/>
67
</form>
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
templates
images_categories.php
Generated on Sun Mar 17 2013 20:41:07 for XOOPS RMCommon Utilities by
1.8.3.1