blob: 0c9eb8e9bd3b76d06d7f3247558e79455d65b510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{* $Header$ *}
{strip}
<div class="floaticon">{bithelp}</div>
<div class="admin articles">
<div class="header">
<h1>{tr}Admin Topics{/tr}</h1>
</div>
<div class="body">
{form legend="Edit a Topic" enctype="multipart/form-data"}
<input type="hidden" name="topic_id" value="{$gContent->mTopicId}" />
{formfeedback success=$gContent->mSuccess error=$gContent->mErrors}
<div class="control-group">
{formlabel label="Topic Name" for="topic_name"}
{forminput}
<input type="text" id="topic_name" name="topic_name" value="{$gContent->mInfo.topic_name}" />
{formhelp note=""}
{/forminput}
</div>
<div class="control-group">
<label class="checkbox">
<input type="checkbox" id="topic_enabled" name="active_topic" {if $gContent->mInfo.active_topic == 'y'}checked="checked"{/if} />Topic Enabled
{formhelp note=""}
</label>
</div>
<div class="control-group">
{formlabel label="Upload Image" for="t-image"}
{forminput}
<input name="upload" id="t-image" type="file" />
{formhelp note=""}
{/forminput}
</div>
<div class="control-group">
{formlabel label="Current Image"}
{forminput}
{if $gContent->mInfo.has_topic_image eq 'y'}
<img src="{$gContent->mInfo.topic_image_url}" /> <br/>
<a href="{$smarty.server.SCRIPT_NAME}?topic_id={$gContent->mTopicId}&fRemoveTopicImage=1">Remove Topic Image</a>
{else}
{tr}No Image found{/tr}
{/if}
{formhelp note=""}
{/forminput}
</div>
<div class="control-group submit">
<input type="submit" class="btn" name="fSubmitSaveTopic" value="{tr}Update Topic{/tr}" />
</div>
{/form}
</div><!-- end .body -->
</div><!-- end .admin -->
{/strip}
|