print 'google_ad_width = '.$conf->global->MAIN_GOOGLE_AD_WIDTH.';'."\n"; print 'google_ad_height = '.$conf->global->MAIN_GOOGLE_AD_HEIGHT.';'."\n"; print '//-->'."\n"; print '</script>'."\n"; print '<script type="text/javascript"'."\n"; print 'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'."\n"; print '</script>'."\n"; print '</div>'."\n"; } else { print '<!-- google js addvert tag disabled with jmobile -->'."\n"; } } llxFooterVierge(); $db->close(); /** * Show header for demo * * @param string $title Title * @param string $head Head string * @return void */ function llxHeaderVierge($title, $head = "") { global $user, $conf, $langs;
// $conf->global->MEMBER_NEWFORM_SHOWAMOUNT is an amount $amount = 0; if (!empty($conf->global->MEMBER_NEWFORM_AMOUNT)) { $amount = $conf->global->MEMBER_NEWFORM_AMOUNT; } if (!empty($conf->global->MEMBER_NEWFORM_PAYONLINE)) { $amount = GETPOST('amount') ? GETPOST('amount') : $conf->global->MEMBER_NEWFORM_AMOUNT; } // $conf->global->MEMBER_NEWFORM_PAYONLINE is 'paypal' or 'paybox' print '<tr><td>' . $langs->trans("Subscription") . '</td><td class="nowrap">'; if (!empty($conf->global->MEMBER_NEWFORM_EDITAMOUNT)) { print '<input type="text" name="amount" id="amount" class="flat amount" size="6" value="' . $amount . '">'; } else { print '<input type="text" name="amount" id="amounthidden" class="flat amount" disabled="disabled" size="6" value="' . $amount . '">'; print '<input type="hidden" name="amount" id="amount" class="flat amount" size="6" value="' . $amount . '">'; } print ' ' . $langs->trans("Currency" . $conf->currency); print '</td></tr>'; } print "</table>\n"; // Save print '<br><center>'; print '<input type="submit" value="' . $langs->trans("Save") . '" id="submitsave" class="button">'; if (!empty($backtopage)) { print ' <input type="submit" value="' . $langs->trans("Cancel") . '" id="submitcancel" class="button">'; } print '</center>'; print "<br></div></form>\n"; print '</div>'; print llxFooterVierge(); $db->close();
print '<tr><td>'.$langs->trans("Subscription").'</td><td nowrap="nowrap">'; if (! empty($conf->global->MEMBER_NEWFORM_EDITAMOUNT)) { print '<input type="text" name="amount" id="amount" class="flat amount" size="6" value="'.$amount.'">'; } else { print '<input type="text" name="amount" id="amounthidden" class="flat amount" disabled="disabled" size="6" value="'.$amount.'">'; print '<input type="hidden" name="amount" id="amount" class="flat amount" size="6" value="'.$amount.'">'; } print ' '.$langs->trans("Currency".$conf->monnaie); print '</td></tr>'; } print "</table>\n"; // Save print '<br><center>'; print '<input type="submit" value="'.$langs->trans("Save").'" id="submitsave" class="button">'; if ($backtopage) { print ' <input type="submit" value="'.$langs->trans("Cancel").'" id="submitcancel" class="button">'; } print '</center>'; print "<br></form>\n"; $db->close(); llxFooterVierge('$Date: 2011/07/31 23:23:21 $ - $Revision: 1.43 $'); ?>