コード例 #1
0
ファイル: insert.plug.php プロジェクト: routexl/DB-Toolkit
{{_EID}}	: Element ID
{{<i>Fieldname</i>}}	: Field Data
{{<i>Fieldname</i>|<i>substr value</i>}}	: Field Data | substring value
{{_<i>Fieldname</i>_name}}	: Field Name
{{_return_<i><b>Fieldname</b></i>}}	: Return Field
</pre>
to enable selection and deleting:
id="row_{{_EID}}_{{_RowIndex}}"  ref="{{_return_<em><strong>Fieldname</strong></em>}} highlight" class="itemRow_{{_EID}}  report_entry"

		<?php 
EndInfoBox();
echo dais_customfield('textarea', 'PostContent', '_ListViewTemplatePostContent', '_ListViewTemplatePostContent', 'list_row2', '', '');
echo dais_customfield('textarea', 'Content Wrapper End', '_ListViewTemplateContentWrapperEnd', '_ListViewTemplateContentWrapperEnd', 'list_row2', '', '');
echo dais_customfield('textarea', 'Pre Footer', '_ListViewTemplatePreFooter', '_ListViewTemplatePreFooter', 'list_row2', '', '');
echo dais_customfield('textarea', 'Footer', '_ListViewTemplateFooter', '_ListViewTemplateFooter', 'list_row2', '', '');
InfoBox('Footer Codes');
?>
<pre>
{{_footer_prev}}        : Previous Page/Entries
{{_footer_next}}        : Next Page/Entries
{{_footer_page_jump}}   : Page Index Input Box (page __ of 20)
{{_footer_item_count}}  : Number of items found and displayed (1 - 10 of 200 items)
{{_footer_no_entries}}  : No results

</pre>
<?php 
EndInfoBox();
echo dais_customfield('textarea', 'Post Footer', '_ListViewTemplatePostFooter', '_ListViewTemplatePostFooter', 'list_row2', '', '');
?>
  </div>
</div>
コード例 #2
0
ファイル: validation.php プロジェクト: routexl/DB-Toolkit
<div id="tabs-validate">
    <?php 
InfoBox('Advanced Validation');
?>
    <div class="ui-state-highlight ui-corner-all" style=" padding: 5px;">
        <input type="button" onclick="validation_getFields();" value="Sync Fields">
    </div>

    <table width="50%" cellpadding="4" cellspacing="4">
        <thead>
            <tr>
                <th style="width: 200px;">Fields</th>
                <th style="width: 200px;">Values</th>
                <th style="width: 200px;">Altered States</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td id="validationColumnFields" valign="top"></td>
                <td id="validationColumnValues" valign="top"></td>
                <td id="validationColumnStates" valign="top"></td>
            </tr>
        </tbody>

    </table>

    <?php 
endinfobox();
?>
</div>
コード例 #3
0
ファイル: redirects.php プロジェクト: routexl/DB-Toolkit
if (empty($Element['Content']['_ItemViewPage'])) {
    $Sel = 'checked="checked"';
}
echo dais_customfield('radio', 'No Redirect', '_ItemViewPage', '_ItemViewPage', 'list_row1', 0, $Sel);
if (empty($Element['Content']['_ItemViewPage'])) {
    $Element['Content']['_ItemViewPage'] = '';
}
$PageList = array();
$PageList[] = $Element['Content']['_ItemViewPage'];
echo dais_page_selector('s', $PageList, false, '_ItemViewPage');
EndInfoBox();
?>
    </div>
    <div class="setupTab" id="adminRedirect">
        <?php 
InfoBox('Applications');
$Sel = '';
if (empty($Element['Content']['_ItemViewInterface'])) {
    $Sel = 'checked="checked"';
}
echo dais_customfield('radio', 'No Redirect', '_ItemViewInterface', '_ItemViewInterface', 'list_row1', 0, $Sel);
$Sel = '';
if (!empty($Element['Content']['_targetInterface'])) {
    $Sel = 'checked="checked"';
}
echo dais_customfield('checkbox', 'Passback Targeting', '_targetInterface', '_targetInterface', 'list_row1', 1, $Sel, 'Push passback fields to target Interface');
$Sel = '';
if (!empty($Element['Content']['_targetInterfaceFilter'])) {
    $Sel = 'checked="checked"';
}
echo dais_customfield('checkbox', 'Filter Targeting', '_targetInterfaceFilter', '_targetInterfaceFilter', 'list_row1', 1, $Sel, 'Push filters to target Interface');
コード例 #4
0
ファイル: viewmode.php プロジェクト: routexl/DB-Toolkit
<?php

echo '<div style="width: ' . $Config['_popupTypeView'] . 'px;">';
if (!empty($_SESSION['DocumentLoaded'])) {
    echo '<div class="warning">Database Interface View Mode. Requires: ';
    echo implode(', ', $Config['_ReturnFields']);
    echo '</div>';
}
if (!empty($_GET[$Config['_ReturnFields'][0]])) {
    $Item = di_showItem($Media['ID'], $_GET[$Config['_ReturnFields'][0]]);
    //dump($Item);
    if (empty($Config['_HideFrame'])) {
        InfoBox($Config['_ReportTitle']);
    }
    echo $Item['html'];
    if (empty($Config['_HideFrame'])) {
        EndInfoBox();
    }
}
echo '</div>';
return;
コード例 #5
0
ファイル: formmode.php プロジェクト: routexl/DB-Toolkit
    unset($_SESSION['DF_Notification']);
    echo ob_get_clean();
}
foreach ($Config['_Field'] as $Field => $Value) {
    $typeSet = explode('_', $Value);
    if (function_exists($typeSet[0] . '_preForm')) {
        $Func = $typeSet[0] . '_preForm';
        $Func($Field, $typeSet[1], $Media, $Config);
    }
}
if (!empty($_GET[$Config['_ReturnFields'][0]]) && !empty($Config['_Show_Edit'])) {
    $Form = dr_BuildUpDateForm($Media['ID'], $_GET[$Config['_ReturnFields'][0]]);
} else {
    $Form = df_buildQuickCaptureForm($Media['ID']);
}
foreach ($Config['_Field'] as $Field => $Value) {
    $typeSet = explode('_', $Value);
    if (function_exists($typeSet[0] . '_postForm')) {
        $Func = $typeSet[0] . '_postForm';
        $Func($Field, $typeSet[1], $Media, $Config);
    }
}
if (empty($Config['_HideFrame'])) {
    InfoBox($Form['title']);
}
echo $Form['html'];
if (empty($Config['_HideFrame'])) {
    EndInfoBox();
}
echo '</div>';
return;
コード例 #6
0
ファイル: permissions.php プロジェクト: routexl/DB-Toolkit
<div id="tabs-permissions" class="setupTab">
<?php 
InfoBox('Permissions');
$selAd = '';
$selSi = 'checked="checked"';
$sibox = 'block';
$adbox = 'none';
if (!empty($Element['Content']['_permissions']['_permissionsType'])) {
    if ($Element['Content']['_permissions']['_permissionsType'] == 'simple') {
        $selAd = '';
        $selSi = 'checked="checked"';
        $sibox = 'block';
        $adbox = 'none';
    } elseif ($Element['Content']['_permissions']['_permissionsType'] == 'advanced') {
        $selAd = 'checked="checked"';
        $selSi = '';
        $sibox = 'none';
        $adbox = 'block';
    }
}
?>
    <div style="padding: 3px;">
        Setup Type: <input type="radio" id="permType-simple" name="Data[Content][_permissions][_permissionsType]" value="simple" <?php 
echo $selSi;
?>
 /> <label for="permType-simple">Simple</label> <span class="description">Still busy working in the advanced permissions setting' Sorry for the delay :)</span>
        <?php 
/*<input type="radio" id="permType-advanced" name="Data[Content][_permissions][_permissionsType]" value="advanced" <?php echo $selAd; ?> /> <label for="permType-advanced">Advanced</label> */
?>
    </div>
コード例 #7
0
ファイル: bindings.php プロジェクト: routexl/DB-Toolkit
<h2>Page Bindings</h2>
<div class="description" id="redirectHelp">
    <p>By binding an interface to a page, you allow WordPress to load the interface rather than the page content.</p>
    <p>This makes it easy to create a distributed application that has front end pages that requires certain pages.</p>
    <p>If you wish to have more than one interface on a page, you'll need to use the shortcode on the page.</p>
</div>
<div id="redirectTabs" class="dbtools_tabs">
    <div class="setupTab" id="publicRedirect">
        <?php 
InfoBox('Page');
$Sel = '';
if (empty($Element['Content']['_ItemBoundPage'])) {
    $Sel = 'checked="checked"';
}
echo dais_customfield('radio', 'Not Bound', '_ItemBoundPage', '_ItemBoundPage', 'list_row1', 0, $Sel);
if (empty($Element['Content']['_ItemBoundPage'])) {
    $Element['Content']['_ItemBoundPage'] = '';
}
$PageList = array();
$PageList[] = $Element['Content']['_ItemBoundPage'];
echo dais_page_selector('s', $PageList, false, '_ItemBoundPage');
EndInfoBox();
?>
    </div>
    
</div>