Пример #1
0
 case "config":
     $show = JRequest::getCmd('show', '');
     config($option, $show);
     break;
 case "saveconfig":
     $cache->clean();
     saveconfig($option);
     break;
     /***
      * Custom Fields
      */
 /***
  * Custom Fields
  */
 case "customfields":
     customfields($option);
     break;
 case "save_customfields":
     $cache->clean();
     save_customfields($option);
     break;
     /***
      * License
      */
 /***
  * License
  */
 case "license":
     include "license.mtree.php";
     break;
     /***
Пример #2
0
/**
 * Assigns the videoinfos to the smarty engine
 */
function tpl_studioedit($studio)
{
    global $smarty, $config, $lang;
    // create a form ready quoted version for each value
    foreach (array_keys($video) as $key) {
        $video['q_' . $key] = formvar($video[$key]);
    }
    // use custom function for language
    $video['f_language'] = custom_language_input('language', $video['language']);
    // create mediatype selectbox
    $smarty->assign('mediatypes', out_mediatypes());
    if (!isset($video['mediatype'])) {
        $video['mediatype'] = $config['mediadefault'];
    }
    // prepare the custom fields
    customfields($video, 'in');
    if ($config['multiuser']) {
        $smarty->assign('owners', out_owners(array('0' => ''), check_permission(PERM_ADMIN) ? false : PERM_WRITE, true));
    }
    // item genres
    $item_genres = getItemGenres($video['id']);
    // new-style
    $smarty->assign('genres', out_genres2($item_genres));
    #dlog(out_genres2($item_genres));
    #dlog($item_genres);
    // classic
    $smarty->assign('genreselect', out_genres($item_genres));
    //2015-10-6 Alex ADD start
    // item studios
    $item_studios = getItemStudios($video['id']);
    // new-style
    $smarty->assign('studios', out_studios2($item_studios));
    // classic
    $smarty->assign('studioselect', out_studios($item_studios));
    //2015-10-6 Alex ADD end
    // assign data
    $smarty->assign('video', $video);
    // get drilldown url for visit link
    if ($video['imdbID']) {
        require_once './engines/engines.php';
        $engine = engineGetEngine($video['imdbID']);
        $smarty->assign('link', engineGetContentUrl($video['imdbID'], $engine));
        $smarty->assign('engine', $engine);
    }
    /*
        // populate autocomplete boxes
        $smarty->assign('audio_codecs', array_extract(runSQL('SELECT DISTINCT audio_codec FROM '.TBL_DATA.' WHERE audio_codec IS NOT NULL'), 'audio_codec'));
        $smarty->assign('video_codecs', array_extract(runSQL('SELECT DISTINCT video_codec FROM '.TBL_DATA.' WHERE video_codec IS NOT NULL'), 'video_codec'));
    */
    $smarty->assign('lookup', array('0' => $lang['radio_look_ignore'], '1' => $lang['radio_look_lookup'], '2' => $lang['radio_look_overwrite']));
    // needed for ajax image lookup
    $smarty->assign('engines', $config['engines']);
}
Пример #3
0
customfields('field5text', 'field5', '5ftype');
customfields('field6text', 'field6', '6ftype');
customfields('field7text', 'field7', '7ftype');
customfields('field8text', 'field8', '8ftype');
customfields('field9text', 'field9', '9ftype');
customfields('field10text', 'field10', '10ftype');
customfields('field11text', 'field11', '11ftype');
customfields('field12text', 'field12', '12ftype');
customfields('field13text', 'field13', '13ftype');
customfields('field14text', 'field14', '14ftype');
customfields('field15text', 'field15', '15ftype');
customfields('field16text', 'field16', '16ftype');
customfields('field17text', 'field17', '17ftype');
customfields('field18text', 'field18', '18ftype');
customfields('field19text', 'field19', '19ftype');
customfields('field20text', 'field20', '20ftype');
?>
          <tr> 
            <td align="right" class="form"><div align="left">Other Comments</div></td>
            <td> <textarea name="notes" cols="55" rows="7" wrap="VIRTUAL"><?php 
echo $Recordset1->Fields("notes");
?>
</textarea></td>
          </tr>
          <tr> 
            <td colspan="2" align="right" class="form"><div align="left"> 
                <input type="submit" name="Submit" value="Save Changes">
                <input name="MM_delete" type="submit" value="Delete Record" onclick="return confirmSubmit('Are you sure you want to DELETE this record?')">
                <input type="submit" name="preview" value="Preview" onclick="return confirmSubmit('Please save this record first or all changes will be lost\nPress OK to continue or CANCEL to return and save you work')">
              </div></td>
          </tr>