示例#1
0
**/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$base = 'index.php?option=com_cck&view=form';
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
$type = '';
$user = JFactory::getUser();
if (isset($params['quickadd']) && $params['quickadd'] == 1) {
    $legacy = 0;
    $url = 'none';
} else {
    $legacy = $options->get('add_alt');
    $url = '';
}
$items = JCckDevIntegration::getForms($url, $type);
$doc->addStyleSheet(JURI::root(true) . '/administrator/components/com_cck/assets/css/cpanel.css');
$target_id = isset($target_id) ? $target_id : 'collapseModal2';
if ($legacy == 1) {
    $legend = '';
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND1', '<a id="joomla-standard-content" href="' . $options->get('add_alt_link') . '">' . JText::_('LIB_CCK_INTEGRATION_CLICK_HERE') . '</a>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="joomla-standard-content" href="' . $options->get('add_alt_link') . '">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = '';
}
$doc->addStyleDeclaration('div.modal-footer button.pull-left{position:relative; top:8px;}');
?>
示例#2
0
**/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$base = 'index.php?option=com_cck&view=form';
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
$type = '';
$user = JFactory::getUser();
if (isset($params['quickadd']) && $params['quickadd'] == 1) {
    $legacy = 0;
    $url = 'none';
} else {
    $legacy = $options->get('add_alt');
    $url = '';
}
$folders = JCckDevIntegration::getForms($url, $type, 'folder');
$target_id = isset($target_id) ? $target_id : 'collapseModal2';
if ($legacy == 1) {
    $legend = '';
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND1', '<a id="joomla-standard-content" href="' . $options->get('add_alt_link') . '">' . JText::_('LIB_CCK_INTEGRATION_CLICK_HERE') . '</a>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="joomla-standard-content" href="' . $options->get('add_alt_link') . '">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = '';
}
$doc->addStyleDeclaration('div.modal-footer button.pull-left{position:relative; top:8px;}');
?>
示例#3
0
$market = 'http://www.seblod.com/download.html?tmpl=component';
$opts = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=685,height=600';
$quickadd = $app->input->getInt('quickadd', 0);
$type = '';
$variables = base64_decode($app->input->getBase64('variables'));
$return = base64_decode($app->input->getBase64('return'));
$user = JFactory::getUser();
if ($quickadd) {
    $legacy = 0;
    $url = 'none';
    $items = $layer == 'list' ? JCckDevIntegration::getForms($url, $type, 'folder') : JCckDevIntegration::getForms($url, $type);
} else {
    $legacy = 2;
    $url = JCckDevHelper::getUrlVars($return);
    $layer = JCck::getConfig_Param('integration_layout', 'icon');
    $items = $layer == 'list' ? JCckDevIntegration::getForms($url, $type, 'folder') : JCckDevIntegration::getForms($url, $type);
    if (strpos($type, ',') === false) {
        $options = JCckDatabase::loadResult('SELECT a.options FROM #__cck_core_objects AS a WHERE a.name = "' . $type . '"');
        $options = new JRegistry($options);
        $legacy = $options->get('add_alt', 2);
    }
}
if ($legacy == 1) {
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>', '<span style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM')) . '</span>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = '';