94 |
return $iconv_loc->convert(chr(hex($t))); |
return $iconv_loc->convert(chr(hex($t))); |
95 |
} |
} |
96 |
$tmpl =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex; |
$tmpl =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex; |
97 |
|
$tmpl =~ s/[\n\r]+$//s; |
98 |
|
|
99 |
my $tmpl_file = $out->{'include_path'} . '/' . $template; |
my $tmpl_file = $out->{'include_path'} . '/' . $template; |
100 |
write_file($tmpl_file . '.new', $tmpl) || die "can't save $tmpl_file: $!"; |
write_file($tmpl_file . '.new', $tmpl) || die "can't save $tmpl_file: $!"; |
124 |
<action type='html' target='div_template' errorCode='' errorMessage='' > |
<action type='html' target='div_template' errorCode='' errorMessage='' > |
125 |
<pre>}, Dumper($q->Vars), qq{</pre> |
<pre>}, Dumper($q->Vars), qq{</pre> |
126 |
|
|
127 |
<form name="frmEditor" action="$self" method="post" |
<form name="frmEditor" action="$self" method="post" iwfTarget="div_status" > |
|
iwfTarget="div_status" |
|
|
> |
|
128 |
|
|
129 |
<textarea name="tt_template" cols="80" rows="10" style="display: block;"> |
<textarea name="tt_template" cols="80" rows="10" style="display: block;"> |
130 |
$tmpl |
$tmpl |
132 |
|
|
133 |
<br/> |
<br/> |
134 |
<input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" /> |
<input type="button" name="save_template" value="Save" onclick="javascript:iwfRequest(this);" /> |
135 |
<input type="checkbox" name="checkin_template" id="checkin_checkbox" label="checkin" /> |
<!-- |
136 |
<span id="div_status" style="color: #808080;">idle</span> |
<input type="checkbox" name="checkin_template" id="checkin_checkbox" label="checkin" /> checkin |
137 |
|
--> |
138 |
|
<span id="div_status" style="color: #808080;">idle</span> |
139 |
|
|
140 |
<input type='hidden' value='hidden post value' name='hidValue' /> |
<input type='hidden' value='hidden post value' name='hidValue' /> |
141 |
|
|
142 |
</form> |
</form> |
143 |
</action> |
</action> |
144 |
|
<action type='js'> |
145 |
|
<!-- |
146 |
|
iwfHideGentlyDelay('div_status', 2, 2000, 1); |
147 |
|
--> |
148 |
|
</action> |
149 |
</response> |
</response> |
150 |
}; |
}; |
151 |
|
|