Fixed : Multiserver Support
Fixed : Admin Custom form fields
This commit is contained in:
parent
dcdf45fd8d
commit
438e22797d
3 changed files with 35 additions and 76 deletions
|
@ -1,10 +1,6 @@
|
||||||
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
|
|
||||||
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
|
|
||||||
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
|
|
||||||
|
|
||||||
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
|
||||||
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
|
|
||||||
|
|
||||||
|
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
||||||
|
{assign var='video_fields' value=$Upload->load_video_fields($data)}
|
||||||
|
|
||||||
{if $data.title neq ""}
|
{if $data.title neq ""}
|
||||||
|
|
||||||
|
@ -105,12 +101,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{foreach from=$requiredFields item=field}
|
{foreach from=$requiredFields item=field}
|
||||||
<tr>
|
|
||||||
<td width="200" ><strong>{$field.title} :</strong></td>
|
|
||||||
<td >{$field.hint_1}<br />
|
|
||||||
{$formObj->createField($field)}
|
|
||||||
{$field.hint_2}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -153,6 +143,19 @@ seconds</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<fieldset class="fieldset">
|
||||||
|
<legend>Custom Upload Fields</legend>
|
||||||
|
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||||
|
{foreach from=$custom_upload_fields item=field}
|
||||||
|
<tr>
|
||||||
|
<td width="200"><strong>{$field.title}</strong></td>
|
||||||
|
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||||
|
<br>
|
||||||
|
{$field.hint_2}</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -183,66 +186,21 @@ seconds</td>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{foreach from=$video_fields item=field_group}
|
||||||
<fieldset class="fieldset">
|
<fieldset class="fieldset">
|
||||||
<legend>Recording Details</legend>
|
<legend>{$field_group.group_name}</legend>
|
||||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
||||||
{foreach from=$locationFields item=field}
|
{foreach from=$field_group.fields item=field}
|
||||||
<tr>
|
<tr>
|
||||||
<td width="200"><strong>{$field.title} </strong></td>
|
<td width="200"><strong>{$field.title} </strong></td>
|
||||||
<td >{$field.hint_1}{$formObj->createField($field)}
|
<td >{$field.hint_1}{$formObj->createField($field)}{$field.hint_2}</td>
|
||||||
{$field.hint_2}</td>
|
</tr>
|
||||||
</tr>
|
{/foreach}
|
||||||
{/foreach}
|
</table>
|
||||||
</table>
|
</fieldset>
|
||||||
</fieldset>
|
{/foreach}
|
||||||
|
|
||||||
|
|
||||||
<fieldset class="fieldset">
|
|
||||||
<legend>Custom Form Fields</legend>
|
|
||||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
||||||
{foreach from=$custom_form_fields item=field}
|
|
||||||
<tr>
|
|
||||||
<td width="200"><strong>{$field.title}</strong></td>
|
|
||||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
||||||
<br>
|
|
||||||
{$field.hint_2}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</table>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<fieldset class="fieldset">
|
|
||||||
<legend>Sharing</legend>
|
|
||||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
||||||
{foreach from=$optionFields item=field}
|
|
||||||
<tr>
|
|
||||||
<td width="200"><strong>{$field.title} </strong></td>
|
|
||||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
||||||
<br>
|
|
||||||
{$field.hint_2}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</table>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
|
|
||||||
<fieldset class="fieldset">
|
|
||||||
<legend>Custom Upload Fields</legend>
|
|
||||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
|
|
||||||
{foreach from=$custom_fields item=field}
|
|
||||||
<tr>
|
|
||||||
<td width="200"><strong>{$field.title}</strong></td>
|
|
||||||
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
||||||
<br>
|
|
||||||
{$field.hint_2}</td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</table>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -55,6 +55,7 @@ class formObj
|
||||||
*/
|
*/
|
||||||
function createTextfield($field,$multi=FALSE)
|
function createTextfield($field,$multi=FALSE)
|
||||||
{
|
{
|
||||||
|
|
||||||
//Starting Text Field
|
//Starting Text Field
|
||||||
if($field['type']=='textfield')
|
if($field['type']=='textfield')
|
||||||
$textField = '<input type="text"';
|
$textField = '<input type="text"';
|
||||||
|
|
|
@ -949,13 +949,13 @@ class CBvideo extends CBCategory
|
||||||
global $db,$LANG;
|
global $db,$LANG;
|
||||||
$num = get_thumb_num($thumb);
|
$num = get_thumb_num($thumb);
|
||||||
$file = THUMBS_DIR.'/'.$thumb;
|
$file = THUMBS_DIR.'/'.$thumb;
|
||||||
if(file_exists($file))
|
//if(file_exists($file))
|
||||||
{
|
//{
|
||||||
$db->update(tbl("video"),array("default_thumb"),array($num)," videoid='$vid'");
|
$db->update(tbl("video"),array("default_thumb"),array($num)," videoid='$vid'");
|
||||||
e(lang('vid_thumb_changed'),'m');
|
e(lang('vid_thumb_changed'),'m');
|
||||||
}else{
|
//}else{
|
||||||
e(lang('vid_thumb_change_err'));
|
// e(lang('vid_thumb_change_err'));
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue