First commit
This commit is contained in:
parent
cf97b64877
commit
cc69770608
1468 changed files with 265316 additions and 128 deletions
15
www/admin/news/_js/acxent-news-immagine.js
Normal file
15
www/admin/news/_js/acxent-news-immagine.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
*
|
||||
* GESTIONE DELLA VISUALIZZAZIONE DEI LINK DELL'IMMAGINE
|
||||
*
|
||||
*/
|
||||
for (var i=1; i<=20; i++)
|
||||
{
|
||||
// se esiste il campo vuol dire che sto
|
||||
// visualizzando un'immagine e quindi
|
||||
// devo visualizzare anche i link sottostanti
|
||||
if ($("#img_vis_"+i).val())
|
||||
{
|
||||
$("#btn-area-div_"+i).show();
|
||||
}
|
||||
}
|
||||
127
www/admin/news/_js/acxent-news.js
Normal file
127
www/admin/news/_js/acxent-news.js
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
// javascript per gestione campi obbligatori///
|
||||
// barili//
|
||||
|
||||
///////////////////////////////////////////
|
||||
////////T O O L B A R /////////////////////
|
||||
///////////////////////////////////////////
|
||||
function checkBoxes(){}
|
||||
|
||||
|
||||
/////////////////////////////////////////////7
|
||||
function checkFields()
|
||||
/////////////////////////////////////////////7
|
||||
{
|
||||
//alert($("#testo_it").val());
|
||||
return Ab.validateForm('data','Data','R','titolo_it','Titolo Italiano','R');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////
|
||||
function addAllegatoNews()
|
||||
/////////////////////////////////////////////
|
||||
{
|
||||
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
if (Ab.validateForm('fileNameOnServer_1','Nome File','R'))
|
||||
{
|
||||
f.cmd.value="addAllegato";
|
||||
f.act.value="";
|
||||
f.id_allegatoNews.value="";
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////
|
||||
function modAllegatoNews(l_id)
|
||||
/////////////////////////////////////////////
|
||||
{
|
||||
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
if (Ab.validateForm('fileNameOnServer_1','Nome File','R'))
|
||||
{
|
||||
f.cmd.value="modAllegato";
|
||||
f.act.value="";
|
||||
f.id_allegatoNews.value=l_id;
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////
|
||||
function delAllegatoNews(l_id)
|
||||
/////////////////////////////////////////////
|
||||
{
|
||||
if (Ab.confirmDelete())
|
||||
{
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value="delAllegato";
|
||||
f.act.value="";
|
||||
f.id_allegatoNews.value=l_id;
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function inviaNews()
|
||||
/////////////////////////////////////////////
|
||||
{
|
||||
if (confirm("Vuoi inviare la mail della news ai clienti abilitati?"))
|
||||
{
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value="inviaNews";
|
||||
f.act.value="";
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
}
|
||||
|
||||
function checkRadioCR() {}
|
||||
|
||||
|
||||
function documentReadyScript()
|
||||
{
|
||||
/* CKEDITOR.editorConfig = function( config ) {
|
||||
config.toolbarGroups = [
|
||||
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
|
||||
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
||||
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
|
||||
{ name: 'forms', groups: [ 'forms' ] },
|
||||
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
||||
'/',
|
||||
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
|
||||
{ name: 'links', groups: [ 'links' ] },
|
||||
{ name: 'insert', groups: [ 'insert' ] },
|
||||
'/',
|
||||
{ name: 'styles', groups: [ 'styles' ] },
|
||||
{ name: 'colors', groups: [ 'colors' ] },
|
||||
{ name: 'tools', groups: [ 'tools' ] },
|
||||
{ name: 'others', groups: [ 'others' ] },
|
||||
{ name: 'about', groups: [ 'about' ] }
|
||||
];
|
||||
|
||||
config.removeButtons = 'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,About,Templates,Save,NewPage,Preview,Print';
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
//CKEDITOR.replace('sommario_it');
|
||||
|
||||
//$('.editor').jqte();
|
||||
$('.summernote').summernote({
|
||||
height: 300, // set editor height
|
||||
minHeight: null, // set minimum height of editor
|
||||
maxHeight: null, // set maximum height of editor
|
||||
focus: true // set focus to editable area after initializing summernote
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
22
www/admin/news/_js/acxent-tipoNews.js
Normal file
22
www/admin/news/_js/acxent-tipoNews.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// pkg_tipoNews_s
|
||||
//v.1.0
|
||||
//09-04-2009
|
||||
/////////// gestione TOOBAR MASCHERE SEMPLIFICATE ///////////////
|
||||
|
||||
/////////////////////////////////////////////7
|
||||
function checkFields()
|
||||
/////////////////////////////////////////////7
|
||||
{
|
||||
//R per required
|
||||
//isNum per numerico
|
||||
//isNumKey è una chiave.. uguale a isNum>0 ma cambio il messaggio
|
||||
//isNum>x per numerico maggiore di x
|
||||
//isNum<x per numerico minore di x
|
||||
//isEmail per indirizzo email
|
||||
//inRange1:10 per ..
|
||||
//3 stringhe
|
||||
//1: nome del field
|
||||
//2: se '' visualizza il nome del field, altrimenti questo campo
|
||||
//3: R/N+''/isNum/isEmail/inRangea:b
|
||||
return Ab.validateForm('descrizione_'+$('#currentLang').val(),'Descrizione','R');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue