Move common files in core directory
This commit is contained in:
parent
dd963235cd
commit
cf551f82e7
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/lib/antispamimage.php
|
||||
* \file htdocs/core/antispamimage.php
|
||||
* \brief Return antispam image
|
||||
*/
|
||||
|
||||
@ -3048,7 +3048,7 @@ class Form
|
||||
if (! $disabled)
|
||||
{
|
||||
$retstring.='<button id="'.$prefix.'Button" type="button" class="dpInvisibleButtons"';
|
||||
$base=DOL_URL_ROOT.'/lib/';
|
||||
$base=DOL_URL_ROOT.'/core/';
|
||||
$retstring.=' onClick="showDP(\''.$base.'\',\''.$prefix.'\',\''.$langs->trans("FormatDateShortJava").'\',\''.$langs->defaultlang.'\');">'.img_object($langs->trans("SelectDate"),'calendarday').'</button>';
|
||||
}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/lib/datepicker.php
|
||||
* \file htdocs/core/datepicker.php
|
||||
* \brief Fichier de gestion de la popup de selection de date eldy
|
||||
*/
|
||||
|
||||
@ -47,7 +47,7 @@ $left=($langs->trans("DIRECTION")=='rtl'?'right':'left');
|
||||
//var_dump($langs->trans("FormatDateShortJava"));
|
||||
|
||||
|
||||
// URL http://mydolibarr/lib/datepicker.php?mode=test&m=10&y=2038 can be used for tests
|
||||
// URL http://mydolibarr/core/datepicker.php?mode=test&m=10&y=2038 can be used for tests
|
||||
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'."\n";
|
||||
print '<html>'."\n";
|
||||
print '<head>'."\n";
|
||||
@ -157,15 +157,15 @@ function displayBox($selectedDate,$month,$year){
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo $month?>','<?php echo $year-1?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><<</td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/core/' ?>','<?php echo $month?>','<?php echo $year-1?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><<</td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><</td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/core/' ?>','<?php if($month==1) echo "12"; else echo $month-1?>','<?php if($month==1) echo $year-1; else echo $year?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><</td>
|
||||
<td colspan="3" class="dpButtons"
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo dol_date('m',$today)?>','<?php echo $todayArray["year"]?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><?php echo '-' ?></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/core/' ?>','<?php echo dol_date('m',$today)?>','<?php echo $todayArray["year"]?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')"><?php echo '-' ?></td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')">></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/core/' ?>','<?php if($month==12) echo "1"; else echo $month+1?>','<?php if($month==12) echo $year+1; else echo $year;?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')">></td>
|
||||
<td class="dpButtons"
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/lib/' ?>','<?php echo $month?>','<?php echo $year+1?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')">>></td>
|
||||
onClick="loadMonth('<?php echo DOL_URL_ROOT.'/core/' ?>','<?php echo $month?>','<?php echo $year+1?>','<?php echo $xyz ?>','<?php echo $langs->defaultlang ?>')">>></td>
|
||||
</tr>
|
||||
<tr class="dpDayNames">
|
||||
<td width="14%"><?php echo $langs->trans("ShortSunday") ?></td>
|
||||
@ -131,7 +131,7 @@ jQuery(document).ready(function () {
|
||||
|
||||
<table style="width: 100px;"><tr>
|
||||
<td><input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="4" /></td>
|
||||
<td><img src="<?php echo DOL_URL_ROOT ?>/lib/antispamimage.php" border="0" width="128" height="36" /></td>
|
||||
<td><img src="<?php echo DOL_URL_ROOT ?>/core/antispamimage.php" border="0" width="128" height="36" /></td>
|
||||
<td><a href="<?php echo $php_self; ?>"><?php echo $captcha_refresh; ?></a></td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ function donnefocus() {
|
||||
|
||||
<table style="width: 100px;"><tr>
|
||||
<td><input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="3"></td>
|
||||
<td><img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="128" height="36"></td>
|
||||
<td><img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="128" height="36"></td>
|
||||
<td><a href="<?php echo $php_self; ?>"><?php echo $captcha_refresh; ?></a></td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
@ -103,7 +103,7 @@ jQuery(document).ready(function () {
|
||||
<input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="4" />
|
||||
</div>
|
||||
<div class="captchaImg">
|
||||
<img src="<?php echo DOL_URL_ROOT ?>/lib/antispamimage.php" border="0" width="128" height="36" id="captcha" />
|
||||
<img src="<?php echo DOL_URL_ROOT ?>/core/antispamimage.php" border="0" width="128" height="36" id="captcha" />
|
||||
<a href="<?php echo $php_self; ?>"><?php echo $captcha_refresh; ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@ -65,7 +65,7 @@ function donnefocus() {
|
||||
<input id="securitycode" class="flat" type="text" size="6" maxlength="5" name="code" tabindex="3">
|
||||
</div>
|
||||
<div class="captchaImg">
|
||||
<img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="128" height="36" id="captcha">
|
||||
<img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="128" height="36" id="captcha">
|
||||
<a href="<?php echo $php_self; ?>"><?php echo $captcha_refresh; ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ jQuery(document).bind("mobileinit", function(){
|
||||
<?php if ($captcha) { ?>
|
||||
<label for="securitycode"><?php echo $langs->trans('SecurityCode'); ?></label>
|
||||
<input type="text" id="securitycode" name="securitycode" />
|
||||
<div align="center"><img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="128" height="36" /></div>
|
||||
<div align="center"><img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="128" height="36" /></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ include('header.tpl.php');
|
||||
<?php if ($captcha) { ?>
|
||||
<label for="securitycode"><?php echo $langs->trans('SecurityCode'); ?></label>
|
||||
<input type="text" id="securitycode" name="securitycode" />
|
||||
<div align="center"><img src="<?php echo $dol_url_root.'/lib/antispamimage.php'; ?>" border="0" width="256" height="48" /></div>
|
||||
<div align="center"><img src="<?php echo $dol_url_root.'/core/antispamimage.php'; ?>" border="0" width="256" height="48" /></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user