当前位置: 首页>>代码示例>>PHP>>正文


PHP ajax_constantonoff函数代码示例

本文整理汇总了PHP中ajax_constantonoff函数的典型用法代码示例。如果您正苦于以下问题:PHP ajax_constantonoff函数的具体用法?PHP ajax_constantonoff怎么用?PHP ajax_constantonoff使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ajax_constantonoff函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: img_object

    $enabled = $params['enabled'];
    if (!verifCond($enabled)) {
        continue;
    }
    $nbqualified++;
    $var = !$var;
    print "<tr " . $bc[$var] . ">\n";
    print "<td>" . img_object('', $picto) . $langs->trans('desc' . $key);
    if (!empty($params['warning'])) {
        $langs->load("errors");
        print ' ' . img_warning($langs->transnoentitiesnoconv($params['warning']));
    }
    print "</td>\n";
    print '<td align="center">';
    if (!empty($conf->use_javascript_ajax)) {
        print ajax_constantonoff($key);
    } else {
        if (!empty($conf->global->{$key})) {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del' . $key . '">';
            print img_picto($langs->trans("Activated"), 'switch_on');
            print '</a>';
        } else {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set' . $key . '">';
            print img_picto($langs->trans("Disabled"), 'switch_off');
            print '</a>';
        }
    }
    print '</td>';
    print '</tr>';
}
if ($nbqualified == 0) {
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:workflow.php

示例2: showParameters

function showParameters()
{
    global $db, $conf, $langs, $bc;
    $html = new Form($db);
    $var = false;
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre">';
    print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="100">' . $langs->trans("Value") . '</td>' . "\n";
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("ActivateTitleDatePerDay") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SEE_DELIVERYDATE_PER_DAY');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("ActivateTitleDatePerWeek") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SEE_DELIVERYDATE_PER_WEEK');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetDeliveryDateByOtherTask") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SET_DELIVERYDATE_BY_OTHER_TASK');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetSCRUM_ALLOW_ALL_TASK_IN_GRID") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_ALLOW_ALL_TASK_IN_GRID');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetSCRUM_ADD_TASKS_TO_GRID") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_ADD_TASKS_TO_GRID');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("DefaultVelocity") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="action" value="set_SCRUM_DEFAULT_VELOCITY">';
    print '<input type="text" name="SCRUM_DEFAULT_VELOCITY" value="' . $conf->global->SCRUM_DEFAULT_VELOCITY . '" size="3" />&nbsp;';
    print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("NumberOfDayForVelocity") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="action" value="set_SCRUM_VELOCITY_NUMBER_OF_DAY">';
    print '<input type="text" name="SCRUM_VELOCITY_NUMBER_OF_DAY" value="' . $conf->global->SCRUM_VELOCITY_NUMBER_OF_DAY . '" size="3" />&nbsp;';
    print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("NumberOfWorkingHourInDay") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="action" value="set_TIMESHEET_WORKING_HOUR_PER_DAY">';
    print '<input type="text" name="TIMESHEET_WORKING_HOUR_PER_DAY" value="' . $conf->global->TIMESHEET_WORKING_HOUR_PER_DAY . '" size="3" />&nbsp;';
    print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("UseProjectPriority") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print '<input type="hidden" name="action" value="set_SCRUM_USE_PROJECT_PRIORITY">';
    print $html->selectyesno("SCRUM_USE_PROJECT_PRIORITY", $conf->global->SCRUM_USE_PROJECT_PRIORITY, 1);
    print '&nbsp;<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("GroupTaskByProduct") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_GROUP_TASK_BY_PRODUCT');
    print '</td></tr>';
//.........这里部分代码省略.........
开发者ID:ATM-Consulting,项目名称:dolibarr_module_scrumboard,代码行数:101,代码来源:scrumboard_setup.php

示例3: ajax_constantonoff

print "<form method=\"post\" action=\"" . $_SERVER["PHP_SELF"] . "\">";
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print "<input type=\"hidden\" name=\"action\" value=\"set_PROPALE_DRAFT_WATERMARK\">";
print '<tr ' . $bc[$var] . '><td colspan="2">';
print $langs->trans("WatermarkOnDraftProposal") . '<br>';
print '<input size="50" class="flat" type="text" name="PROPALE_DRAFT_WATERMARK" value="' . $conf->global->PROPALE_DRAFT_WATERMARK . '">';
print '</td><td align="right">';
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print "</td></tr>\n";
print '</form>';
if ($conf->banque->enabled) {
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>';
    print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL") . '</td><td>&nbsp</td><td align="right">';
    if (!empty($conf->use_javascript_ajax)) {
        print ajax_constantonoff('BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL');
    } else {
        if (empty($conf->global->BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL)) {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL&amp;value=1">' . img_picto($langs->trans("Disabled"), 'switch_off') . '</a>';
        } else {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL&amp;value=0">' . img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
        }
    }
    print '</td></tr>';
} else {
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>';
    print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL") . '</td><td>&nbsp;</td><td align="center">' . $langs->trans('NotAvailable') . '</td></tr>';
}
print '</table>';
/*
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:propal.php

示例4: PrintingDriver

    print '<th class="center">' . $langs->trans("TargetedPrinter") . '</th>';
    print "</tr>\n";
    $object = new PrintingDriver($db);
    $result = $object->listDrivers($db, 10);
    foreach ($result as $driver) {
        require_once DOL_DOCUMENT_ROOT . '/core/modules/printing/' . $driver . '.modules.php';
        $classname = 'printing_' . $driver;
        $langs->load($driver);
        $printer = new $classname($db);
        //print '<pre>'.print_r($printer, true).'</pre>';
        $var = !$var;
        print '<tr ' . $bc[$var] . '>';
        print '<td>' . img_picto('', $printer->picto) . ' ' . $langs->trans($printer->desc) . '</td>';
        print '<td class="center">';
        if (!empty($conf->use_javascript_ajax)) {
            print ajax_constantonoff($printer->active);
        } else {
            if (empty($conf->global->{$printer->conf})) {
                print '<a href="' . $_SERVER['PHP_SELF'] . '?action=setvalue&amp;varname=' . $printer->active . '&amp;value=1">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
            } else {
                print '<a href="' . $_SERVER['PHP_SELF'] . '?action=setvalue&amp;varname=' . $printer->active . '&amp;value=0">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
            }
        }
        print '<td class="center"><a href="' . $_SERVER['PHP_SELF'] . '?mode=setup&amp;driver=' . $printer->name . '">' . img_picto('', 'setup') . '</a></td>';
        print '<td class="center"><a href="' . $_SERVER['PHP_SELF'] . '?mode=test&amp;driver=' . $printer->name . '">' . img_picto('', 'setup') . '</a></td>';
        print '</tr>' . "\n";
    }
    print '</table>';
    dol_fiche_end();
}
if ($mode == 'test' && $user->admin) {
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:printing.php

示例5: ajax_constantonoff

$formCore->end();
// Setup page goes here
$var = false;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
// Example with a yes / no select
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("setFACTOR_LIMIT_DEPOT") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_FACTOR_LIMIT_DEPOT">';
print $formCore->texte('', "FACTOR_LIMIT_DEPOT", $conf->global->FACTOR_LIMIT_DEPOT, 3);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("FACTOR_DO_NOT_UPDATE_NOTE_ON_PROPAL") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print ajax_constantonoff('FACTOR_DO_NOT_UPDATE_NOTE_ON_PROPAL');
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_factor,代码行数:31,代码来源:factor_setup.php

示例6: ajax_constantonoff

	else
	{
		print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_DISPLAY_MARK_RATES">'.img_picto($langs->trans("Enabled"),'on').'</a>';
	}
}
print '</td>';
print '<td>'.$langs->trans('MarkRate').' = '.$langs->trans('Margin').' / '.$langs->trans('SellingPrice').'</td>';
print '</tr>';

$var=!$var;
print '<tr '.$bc[$var].'>';
print '<td>'.$langs->trans("ForceBuyingPriceIfNull").'</td>';
print '<td colspan="2" align="center">';
if (! empty($conf->use_javascript_ajax))
{
	print ajax_constantonoff('ForceBuyingPriceIfNull');
}
else
{
	if (empty($conf->global->ForceBuyingPriceIfNull))
	{
		print '<a href="'.$_SERVER['PHP_SELF'].'?action=set_ForceBuyingPriceIfNull">'.img_picto($langs->trans("Disabled"),'off').'</a>';
	}
	else
	{
		print '<a href="'.$_SERVER['PHP_SELF'].'?action=del_ForceBuyingPriceIfNull">'.img_picto($langs->trans("Enabled"),'on').'</a>';
	}
}
print '</td>';
print '<td>'.$langs->trans('ForceBuyingPriceIfNullDetails').'</td>';
print '</tr>';
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:margin.php

示例7: ajax_constantonoff

$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("DISPATCH_CREATE_SUPPLIER_PRICE") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff("DISPATCH_CREATE_SUPPLIER_PRICE");
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("DISPATCH_USE_ONLY_UNIT_ASSET_RECEPTION") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff("DISPATCH_USE_ONLY_UNIT_ASSET_RECEPTION");
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("DISPATCH_SHOW_UNIT_RECEPTION") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff("DISPATCH_SHOW_UNIT_RECEPTION");
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("DISPATCH_CREATE_NUMSERIE_ON_RECEPTION_IF_LOT") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff('DISPATCH_CREATE_NUMSERIE_ON_RECEPTION_IF_LOT');
print '</td></tr>';
print "</table>";
dol_fiche_end();
llxFooter();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_dispatch,代码行数:31,代码来源:admin.php

示例8: ajax_constantonoff

print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_GRAPEFRUIT_CAN_ASSOCIATE_TASK_TO_ACTIONCOMM">';
print $form->selectyesno('GRAPEFRUIT_CAN_ASSOCIATE_TASK_TO_ACTIONCOMM', $conf->global->GRAPEFRUIT_CAN_ASSOCIATE_TASK_TO_ACTIONCOMM, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("set_MAIN_ADD_EVENT_ON_ELEMENT_CARD") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_MAIN_ADD_EVENT_ON_ELEMENT_CARD">';
echo ajax_constantonoff('MAIN_ADD_EVENT_ON_ELEMENT_CARD');
print '</form>';
print '</td></tr>';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Global") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("set_GRAPEFRUIT_BYPASS_CONFIRM_ACTIONS") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_GRAPEFRUIT_BYPASS_CONFIRM_ACTIONS">';
print '<input type="text" name="GRAPEFRUIT_BYPASS_CONFIRM_ACTIONS" value="' . $conf->global->GRAPEFRUIT_BYPASS_CONFIRM_ACTIONS . '" style="width:300px;max-width:100%;" />';
开发者ID:ATM-Consulting,项目名称:dolibarr_module_grapefruit,代码行数:31,代码来源:grapefruit_setup.php

示例9: ajax_constantonoff

print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("FULLCALENDAR_SHOW_ALL_ASSIGNED_COLOR") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_FULLCALENDAR_SHOW_ALL_ASSIGNED_COLOR">';
echo ajax_constantonoff('FULLCALENDAR_SHOW_ALL_ASSIGNED_COLOR');
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("FULLCALENDAR_USE_HUGE_WHITE_BORDER") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_FULLCALENDAR_USE_HUGE_WHITE_BORDER">';
echo ajax_constantonoff('FULLCALENDAR_USE_HUGE_WHITE_BORDER');
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("FULLCALENDAR_FILTER_ON_STATE") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
echo ajax_constantonoff('FULLCALENDAR_FILTER_ON_STATE');
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_fullcalendar,代码行数:31,代码来源:fullcalendar_setup.php

示例10: showParameters

function showParameters(&$form)
{
    global $db, $conf, $langs;
    dol_include_once('/product/class/html.formproduct.class.php');
    $formProduct = new FormProduct($db);
    ?>
<form action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
" name="load-<?php 
    echo $typeDoc;
    ?>
" method="POST" enctype="multipart/form-data">
		<input type="hidden" name="action" value="save" />
		<table width="100%" class="noborder">
			<tr class="liste_titre">
				<td colspan="2"><?php 
    echo $langs->trans('ParametersWarehouse');
    ?>
</td>
			</tr>
			
			<tr class="pair">
				<td><?php 
    echo $langs->trans('UseManualWarehouse');
    ?>
</td><td><?php 
    echo ajax_constantonoff('ASSET_MANUAL_WAREHOUSE');
    ?>
</td>
			</tr> 
			
			<tr id="USE_DEFAULT_WAREHOUSE" class="impair">
				<td><?php 
    echo $langs->trans('UseDefinedWarehouse');
    ?>
</td><td><?php 
    echo ajax_constantonoff('ASSET_USE_DEFAULT_WAREHOUSE', array('showhide' => array('#WAREHOUSE_TO_MAKE', '#WAREHOUSE_NEEDED'), 'hide' => array('#WAREHOUSE_TO_MAKE', '#WAREHOUSE_NEEDED')));
    ?>
</td>
			</tr> 
			
			<tr class="pair" id="WAREHOUSE_TO_MAKE" class="pair" <?php 
    if (empty($conf->global->ASSET_USE_DEFAULT_WAREHOUSE)) {
        echo "style='display:none;'";
    }
    ?>
>
				<td><?php 
    echo $langs->trans('DefaultWarehouseIdToMake');
    ?>
</td><td><?php 
    echo $formProduct->selectWarehouses($conf->global->ASSET_DEFAULT_WAREHOUSE_ID_TO_MAKE, 'TOF[ASSET_DEFAULT_WAREHOUSE_ID_TO_MAKE]');
    ?>
</td>
			</tr>
			
			<tr class="impair" id="WAREHOUSE_NEEDED" <?php 
    if (empty($conf->global->ASSET_USE_DEFAULT_WAREHOUSE)) {
        echo "style='display:none;'";
    }
    ?>
>
				<td><?php 
    echo $langs->trans('DefaultWarehouseIdNeeded');
    ?>
</td><td><?php 
    echo $formProduct->selectWarehouses($conf->global->ASSET_DEFAULT_WAREHOUSE_ID_NEEDED, 'TOF[ASSET_DEFAULT_WAREHOUSE_ID_NEEDED]');
    ?>
</td>
			</tr> 
			<tr class="liste_titre">
				<td colspan="2"><?php 
    echo $langs->trans('TemplateOF');
    ?>
</td>
			</tr>
			<tr class="pair" >
				<td><?php 
    echo $langs->trans('Template');
    ?>
</td><td>
					<input type="file" name="template" />
					<?php 
    echo ' <a href="' . dol_buildpath('/of/exempleTemplate/templateOF.odt', 1) . '">' . $langs->trans('Download') . '</a>';
    ?>
</td>
			</tr> 
			
			
		</table>
		
		<script type="text/javascript">
			$(function() {
				$('#set_ASSET_MANUAL_WAREHOUSE').click(function() {
					if ($('#del_ASSET_USE_DEFAULT_WAREHOUSE').css('display') != 'none') {
						$('#del_ASSET_USE_DEFAULT_WAREHOUSE').click();
					}
				});
				
//.........这里部分代码省略.........
开发者ID:ATM-Consulting,项目名称:dolibarr_module_of,代码行数:101,代码来源:of_setup.php

示例11: ajax_constantonoff

print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_MANDARIN_HORAIRE_MOYEN_NOMAL">';
print '<input type="text" name="MANDARIN_HORAIRE_MOYEN_NOMAL" value="' . $conf->global->MANDARIN_HORAIRE_MOYEN_NOMAL . '" />';
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("set_MANDARIN_GRAPH_TIME_ON_PERIOD") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_MANDARIN_GRAPH_TIME_ON_PERIOD">';
echo ajax_constantonoff('MANDARIN_GRAPH_TIME_ON_PERIOD');
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("set_MANDARIN_TRACE_COST_PRICE") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_MANDARIN_TRACE_COST_PRICE">';
echo $form->selectyesno('MANDARIN_TRACE_COST_PRICE', $conf->global->MANDARIN_TRACE_COST_PRICE);
// attention pas ajax car je dois passer en haut
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
开发者ID:ATM-Consulting,项目名称:dolibarr_module_mandarin,代码行数:31,代码来源:mandarin_setup.php

示例12: agenda_prepare_head

$head = agenda_prepare_head();
dol_fiche_head($head, 'other', $langs->trans("Agenda"), 0, 'action');
print_titre($langs->trans("OtherOptions"));
$var = true;
print '<table class="noborder allwidth">' . "\n";
print '<tr class="liste_titre">' . "\n";
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>' . "\n";
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
print '</tr>' . "\n";
// Manual or automatic
$var = !$var;
print '<tr ' . $bc[$var] . '>' . "\n";
print '<td>' . $langs->trans("AGENDA_USE_EVENT_TYPE") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>' . "\n";
print '<td align="center" width="100">' . "\n";
if ($conf->use_javascript_ajax) {
    print ajax_constantonoff('AGENDA_USE_EVENT_TYPE');
} else {
    if (empty($conf->global->AGENDA_USE_EVENT_TYPE)) {
        print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_AGENDA_USE_EVENT_TYPE">' . img_picto($langs->trans("Disabled"), 'off') . '</a>';
    } else {
        print '<a href="' . $_SERVER['PHP_SELF'] . '?action=del_AGENDA_USE_EVENT_TYPE">' . img_picto($langs->trans("Enabled"), 'on') . '</a>';
    }
}
print '</td></tr>' . "\n";
print '</table>';
dol_fiche_end();
print "<br>";
llxFooter();
$db->close();
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:agenda_other.php

示例13: ajax_constantonoff

print ajax_constantonoff('IMPORTPROPAL_USE_MAJ_ON_NOMENCLATURE');
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("CREATE_PRODUCT_FROM_IMPORT") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff('CREATE_PRODUCT_FROM_IMPORT');
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("IMPORTPROPAL_FORCE_TVA") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_IMPORTPROPAL_FORCE_TVA">';
print '<input type="text" name="IMPORTPROPAL_FORCE_TVA" value="' . $conf->global->IMPORTPROPAL_FORCE_TVA . '" size="5" /> % ';
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("IMPORTDEVIS_UPDATE_PRODUCT") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff('IMPORTDEVIS_UPDATE_PRODUCT');
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_importdevis,代码行数:31,代码来源:importdevis_setup.php

示例14: llxHeader

 */
/*
 * View
 */
$page_name = "searcheverywhereSetup";
llxHeader('', $langs->trans($page_name));
// Subheader
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print_fiche_titre($langs->trans($page_name), $linkback);
// Configuration header
$head = searcheverywhereAdminPrepareHead();
dol_fiche_head($head, 'settings', $langs->trans("Module104790Name"), 0, "searcheverywhere@searcheverywhere");
// Setup page goes here
//echo $langs->trans("searcheverywhereNoSetupRequired");
$form = new Form($db);
$var = false;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("searcheverywhereSearchOnlyInEntity") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="300">';
print ajax_constantonoff('SEARCHEVERYWHERE_SEARCH_ONLY_IN_ENTITY');
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_searcheverywhere,代码行数:31,代码来源:searcheverywhere_setup.php

示例15: img_picto

            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_BANK_ASK_PAYMENT_BANK_DURING_ORDER&amp;value=0">' . img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
        }
    }
    print '</td></tr>';
} else {
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>';
    print $langs->trans("BANK_ASK_PAYMENT_BANK_DURING_ORDER") . '</td><td>&nbsp;</td><td align="center">' . $langs->trans('NotAvailable') . '</td></tr>';
}
// Ask for warehouse during order
if ($conf->stock->enabled) {
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>';
    print $langs->trans("WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER") . '</td><td>&nbsp</td><td align="center">';
    if (!empty($conf->use_javascript_ajax)) {
        print ajax_constantonoff('WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER');
    } else {
        if (empty($conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER)) {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER&amp;value=1">' . img_picto($langs->trans("Disabled"), 'switch_off') . '</a>';
        } else {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=set_WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER&amp;value=0">' . img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
        }
    }
    print '</td></tr>';
} else {
    $var = !$var;
    print '<tr ' . $bc[$var] . '><td>';
    print $langs->trans("WAREHOUSE_ASK_WAREHOUSE_DURING_ORDER") . '</td><td>&nbsp;</td><td align="center">' . $langs->trans('NotAvailable') . '</td></tr>';
}
print '</table>';
print '<br>';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:commande.php


注:本文中的ajax_constantonoff函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。