Reset project

This commit is contained in:
Noah Lancien 2023-10-17 14:52:32 +02:00
parent 4374bcd032
commit dc41c9aa82
8202 changed files with 0 additions and 619521 deletions

20
.gitignore vendored
View file

@ -1,20 +0,0 @@
app/cache/*
app/logs/*
app/config/parameters.yml
*.orig
*.bak
*.zip
.buildpath
.project
.settings
web/bundles/*
web/js/*
web/css/*
web/img-cache/*
web/uploads/offres/
web/uploads/images/original/*
*.php\~
/*.gitmodules
.idea/*
.DS_Store
web/.htaccess

View file

@ -1,10 +0,0 @@
language: php
php:
- 5.3.3
- 5.3
- 5.4
before_script: composer install
script: phpunit -c app

19
LICENSE
View file

@ -1,19 +0,0 @@
Copyright (c) 2004-2013 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

176
README.md
View file

@ -1,176 +0,0 @@
Symfony Standard Edition
========================
Welcome to the Symfony Standard Edition - a fully-functional Symfony2
application that you can use as the skeleton for your new applications.
This document contains information on how to download, install, and start
using Symfony. For a more detailed explanation, see the [Installation][1]
chapter of the Symfony Documentation.
1) Installing the Standard Edition
----------------------------------
When it comes to installing the Symfony Standard Edition, you have the
following options.
### Use Composer (*recommended*)
As Symfony uses [Composer][2] to manage its dependencies, the recommended way
to create a new project is to use it.
If you don't have Composer yet, download it following the instructions on
http://getcomposer.org/ or just run the following command:
curl -s https://getcomposer.org/installer | php
Then, use the `create-project` command to generate a new Symfony application:
php composer.phar create-project symfony/framework-standard-edition path/to/install 2.1.x-dev
For an exact version, replace 2.1.x-dev with the latest Symfony version (e.g. 2.1.1).
Composer will install Symfony and all its dependencies under the
`path/to/install` directory.
### Download an Archive File
To quickly test Symfony, you can also download an [archive][3] of the Standard
Edition and unpack it somewhere under your web server root directory.
If you downloaded an archive "without vendors", you also need to install all
the necessary dependencies. Download composer (see above) and run the
following command:
php composer.phar install
2) Checking your System Configuration
-------------------------------------
Before starting coding, make sure that your local system is properly
configured for Symfony.
Execute the `check.php` script from the command line:
php app/check.php
Access the `config.php` script from a browser:
http://localhost/path/to/symfony/app/web/config.php
If you get any warnings or recommendations, fix them before moving on.
3) Browsing the Demo Application
--------------------------------
Congratulations! You're now ready to use Symfony.
From the `config.php` page, click the "Bypass configuration and go to the
Welcome page" link to load up your first Symfony page.
You can also use a web-based configurator by clicking on the "Configure your
Symfony Application online" link of the `config.php` page.
To see a real-live Symfony page in action, access the following page:
web/app_dev.php/demo/hello/Fabien
4) Getting started with Symfony
-------------------------------
This distribution is meant to be the starting point for your Symfony
applications, but it also contains some sample code that you can learn from
and play with.
A great way to start learning Symfony is via the [Quick Tour][4], which will
take you through all the basic features of Symfony2.
Once you're feeling good, you can move onto reading the official
[Symfony2 book][5].
A default bundle, `AcmeDemoBundle`, shows you Symfony2 in action. After
playing with it, you can remove it by following these steps:
* delete the `src/Acme` directory;
* remove the routing entries referencing AcmeBundle in
`app/config/routing_dev.yml`;
* remove the AcmeBundle from the registered bundles in `app/AppKernel.php`;
* remove the `web/bundles/acmedemo` directory;
* remove the `security.providers`, `security.firewalls.login` and
`security.firewalls.secured_area` entries in the `security.yml` file or
tweak the security configuration to fit your needs.
What's inside?
---------------
The Symfony Standard Edition is configured with the following defaults:
* Twig is the only configured template engine;
* Doctrine ORM/DBAL is configured;
* Swiftmailer is configured;
* Annotations for everything are enabled.
It comes pre-configured with the following bundles:
* **FrameworkBundle** - The core Symfony framework bundle
* [**SensioFrameworkExtraBundle**][6] - Adds several enhancements, including
template and routing annotation capability
* [**DoctrineBundle**][7] - Adds support for the Doctrine ORM
* [**TwigBundle**][8] - Adds support for the Twig templating engine
* [**SecurityBundle**][9] - Adds security by integrating Symfony's security
component
* [**SwiftmailerBundle**][10] - Adds support for Swiftmailer, a library for
sending emails
* [**MonologBundle**][11] - Adds support for Monolog, a logging library
* [**AsseticBundle**][12] - Adds support for Assetic, an asset processing
library
* [**JMSSecurityExtraBundle**][13] - Allows security to be added via
annotations
* [**JMSDiExtraBundle**][14] - Adds more powerful dependency injection
features
* **WebProfilerBundle** (in dev/test env) - Adds profiling functionality and
the web debug toolbar
* **SensioDistributionBundle** (in dev/test env) - Adds functionality for
configuring and working with Symfony distributions
* [**SensioGeneratorBundle**][15] (in dev/test env) - Adds code generation
capabilities
* **AcmeDemoBundle** (in dev/test env) - A demo bundle with some example
code
Enjoy!
[1]: http://symfony.com/doc/2.1/book/installation.html
[2]: http://getcomposer.org/
[3]: http://symfony.com/download
[4]: http://symfony.com/doc/2.1/quick_tour/the_big_picture.html
[5]: http://symfony.com/doc/2.1/index.html
[6]: http://symfony.com/doc/2.1/bundles/SensioFrameworkExtraBundle/index.html
[7]: http://symfony.com/doc/2.1/book/doctrine.html
[8]: http://symfony.com/doc/2.1/book/templating.html
[9]: http://symfony.com/doc/2.1/book/security.html
[10]: http://symfony.com/doc/2.1/cookbook/email.html
[11]: http://symfony.com/doc/2.1/cookbook/logging/monolog.html
[12]: http://symfony.com/doc/2.1/cookbook/assetic/asset_management.html
[13]: http://jmsyst.com/bundles/JMSSecurityExtraBundle/master
[14]: http://jmsyst.com/bundles/JMSDiExtraBundle/master
[15]: http://symfony.com/doc/2.1/bundles/SensioGeneratorBundle/index.html

View file

@ -1,262 +0,0 @@
Symfony Standard Edition Upgrade
================================
From Symfony 2.0 to Symfony 2.1
-------------------------------
### Project Dependencies
As of Symfony 2.1, project dependencies are managed by
[Composer](http://getcomposer.org/):
* The `bin/vendors` script can be removed as `composer.phar` does all the work
now (it is recommended to install it globally on your machine).
* The `deps` file need to be replaced with the `composer.json` one.
* The `composer.lock` is the equivalent of the generated `deps.lock` file and
it is automatically generated by Composer.
Download the default
[`composer.json`](https://raw.github.com/symfony/symfony-standard/2.1/composer.json)
and
[`composer.lock`](https://raw.github.com/symfony/symfony-standard/2.1/composer.lock)
files for Symfony 2.1 and put them into the main directory of your project. If
you have customized your `deps` file, move the added dependencies to the
`composer.json` file (many bundles and PHP libraries are already available as
Composer packages -- search for them on [Packagist](http://packagist.org/)).
Remove your current `vendor` directory.
Finally, run Composer:
$ composer.phar install
Note: You must complete the upgrade steps below so composer can successfully generate the autoload files.
### `app/autoload.php`
The default `autoload.php` reads as follows (it has been simplified a lot as
autoloading for libraries and bundles declared in your `composer.json` file is
automatically managed by the Composer autoloader):
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = include __DIR__.'/../vendor/autoload.php';
// intl
if (!function_exists('intl_get_error_code')) {
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
return $loader;
### `app/config/config.yml`
The `framework.charset` setting must be removed. If you are not using `UTF-8`
for your application, override the `getCharset()` method in your `AppKernel`
class instead:
class AppKernel extends Kernel
{
public function getCharset()
{
return 'ISO-8859-1';
}
// ...
}
You might want to add the new `strict_requirements` parameter to
`framework.router` (it avoids fatal errors in the production environment when
a link cannot be generated):
framework:
router:
strict_requirements: "%kernel.debug%"
The `default_locale` parameter is now a setting of the main `framework`
configuration (it was under the `framework.session` in 2.0):
framework:
default_locale: "%locale%"
The `auto_start` setting under `framework.session` must be removed as it is
not used anymore (the session is now always started on-demand). If
`auto_start` was the only setting under the `framework.session` entry, don't
remove it entirely, but set its value to `~` (`~` means `null` in YAML)
instead:
framework:
session: ~
The `trust_proxy_headers` setting was added in the default configuration file
(as it should be set to `true` when you install your application behind a
reverse proxy):
framework:
trust_proxy_headers: false
An empty `bundles` entry was added to the `assetic` configuration:
assetic:
bundles: []
The default `swiftmailer` configuration now has the `spool` setting configured
to the `memory` type to defer email sending after the response is sent to the
user (recommended for better end-user performance):
swiftmailer:
spool: { type: memory }
The `jms_security_extra` configuration was moved to the `security.yml`
configuration file.
### `app/config/config_dev.yml`
An example of how to send all emails to a unique address was added:
#swiftmailer:
# delivery_address: me@example.com
### `app/config/config_test.yml`
The `storage_id` setting must be changed to `session.storage.mock_file`:
framework:
session:
storage_id: session.storage.mock_file
### `app/config/parameters.ini`
The file has been converted to a YAML file which reads as follows:
parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: ~
database_name: symfony
database_user: root
database_password: ~
mailer_transport: smtp
mailer_host: localhost
mailer_user: ~
mailer_password: ~
locale: en
secret: ThisTokenIsNotSoSecretChangeIt
Note that if you convert your parameters file to YAML, you must also change
its reference in `app/config/config.yml`.
### `app/config/routing_dev.yml`
The `_assetic` entry was removed:
#_assetic:
# resource: .
# type: assetic
### `app/config/security.yml`
Under `security.access_control`, the default rule for internal routes was changed:
security:
access_control:
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
Under `security.providers`, the `in_memory` example was updated to the following:
security:
providers:
in_memory:
memory:
users:
user: { password: userpass, roles: [ 'ROLE_USER' ] }
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
### `app/AppKernel.php`
The following bundles have been added to the list of default registered bundles:
new JMS\AopBundle\JMSAopBundle(),
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
You must also rename the DoctrineBundle from:
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
to:
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
### `web/app.php`
The default `web/app.php` file now reads as follows:
<?php
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
// Use APC for autoloading to improve performance
// Change 'sf2' by the prefix you want in order to prevent key conflict with another application
/*
$loader = new ApcClassLoader('sf2', $loader);
$loader->register(true);
*/
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
### `web/app_dev.php`
The default `web/app_dev.php` file now reads as follows:
<?php
use Symfony\Component\HttpFoundation\Request;
// If you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
// This check prevents access to debug front controllers that are deployed by accident to production servers.
// Feel free to remove this, extend it, or make something more sophisticated.
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

View file

@ -1 +0,0 @@
deny from all

View file

@ -1,9 +0,0 @@
<?php
require_once __DIR__.'/AppKernel.php';
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
{
}

View file

@ -1,43 +0,0 @@
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new JMS\AopBundle\JMSAopBundle(),
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Agis\FO\AgisBundle\AgisFOAgisBundle(),
new Agis\BO\AgisBundle\AgisBOAgisBundle(),
new Agis\BO\UserBundle\AgisBoUserBundle(),
new Agis\Commun\CommunBundle\AgisCommunCommunBundle(),
new Arson\elFinderBundle\ArsonElFinderBundle()
);
if (in_array($this->getEnvironment(), array('dev', 'test', 'local'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}

View file

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>An Error Occurred: {{ status_text }}</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
<h2>The server returned a "{{ status_code }} {{ status_text }}".</h2>
<div>
Something is broken. Please e-mail us at [email] and let us know
what you were doing when this error occurred. We will fix it as soon
as possible. Sorry for any inconvenience caused.
</div>
</body>
</html>

View file

@ -1,41 +0,0 @@
{% extends 'AgisFOAgisBundle:Default:base.html.twig' %}
{% block mainContent %}
<div class="row">
<div class="span12">
<div class="box bg-padding">
<h1>Fichier ou répertoire introuvable</h1>
<ul class="breadcrumb">
<li><a href="{{ path('agisfo_agis_homepage') }}">Accueil</a> <span class="divider">/</span></li>
<li class="active">Page</li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="span12">
<div class="box bg-padding-large">
<h2>Erreur HTTP 404</h2>
<p>La page ou le contenu que vous recherchez n'existe pas.</p>
<p>Nous vous invitons donc à rejoindre la page d'accueil du site où vous trouverez surement votre bonheur !</p>
<hr>
<p class="clearfix"><a href="{{ path('agisfo_agis_homepage') }}" class="btn btn-green pull-right">Retour vers la page d'accueil</a></p>
</div>
</div>
</div>
{% endblock %}

View file

@ -1,16 +0,0 @@
{% extends 'AgisFOAgisBundle:Default:base.html.twig' %}
{% block mainContent %}>
<div class="row">
<div class= "span12">
<div class="box bg-padding-large">
{% block title '' %}
</div>
</div>
<div class= "span12">
<div class="box bg-padding-large">
{% block body '' %}
</div>
</div>
</div>
{% endblock %}

View file

@ -1,13 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>

View file

@ -1,646 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Users of PHP 5.2 should be able to run the requirements checks.
* This is why the file and all classes must be compatible with PHP 5.2+
* (e.g. not using namespaces and closures).
*
* ************** CAUTION **************
*
* DO NOT EDIT THIS FILE as it will be overriden by Composer as part of
* the installation/update process. The original file resides in the
* SensioDistributionBundle.
*
* ************** CAUTION **************
*/
/**
* Represents a single PHP requirement, e.g. an installed extension.
* It can be a mandatory requirement or an optional recommendation.
* There is a special subclass, named PhpIniRequirement, to check a php.ini configuration.
*
* @author Tobias Schultze <http://tobion.de>
*/
class Requirement
{
private $fulfilled;
private $testMessage;
private $helpText;
private $helpHtml;
private $optional;
/**
* Constructor that initializes the requirement.
*
* @param Boolean $fulfilled Whether the requirement is fulfilled
* @param string $testMessage The message for testing the requirement
* @param string $helpHtml The help text formatted in HTML for resolving the problem
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
*/
public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false)
{
$this->fulfilled = (Boolean) $fulfilled;
$this->testMessage = (string) $testMessage;
$this->helpHtml = (string) $helpHtml;
$this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText;
$this->optional = (Boolean) $optional;
}
/**
* Returns whether the requirement is fulfilled.
*
* @return Boolean true if fulfilled, otherwise false
*/
public function isFulfilled()
{
return $this->fulfilled;
}
/**
* Returns the message for testing the requirement.
*
* @return string The test message
*/
public function getTestMessage()
{
return $this->testMessage;
}
/**
* Returns the help text for resolving the problem
*
* @return string The help text
*/
public function getHelpText()
{
return $this->helpText;
}
/**
* Returns the help text formatted in HTML.
*
* @return string The HTML help
*/
public function getHelpHtml()
{
return $this->helpHtml;
}
/**
* Returns whether this is only an optional recommendation and not a mandatory requirement.
*
* @return Boolean true if optional, false if mandatory
*/
public function isOptional()
{
return $this->optional;
}
}
/**
* Represents a PHP requirement in form of a php.ini configuration.
*
* @author Tobias Schultze <http://tobion.de>
*/
class PhpIniRequirement extends Requirement
{
/**
* Constructor that initializes the requirement.
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
*/
public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false)
{
$cfgValue = ini_get($cfgName);
if (is_callable($evaluation)) {
if (null === $testMessage || null === $helpHtml) {
throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.');
}
$fulfilled = call_user_func($evaluation, $cfgValue);
} else {
if (null === $testMessage) {
$testMessage = sprintf('%s %s be %s in php.ini',
$cfgName,
$optional ? 'should' : 'must',
$evaluation ? 'enabled' : 'disabled'
);
}
if (null === $helpHtml) {
$helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a href="#phpini">*</a>.',
$cfgName,
$evaluation ? 'on' : 'off'
);
}
$fulfilled = $evaluation == $cfgValue;
}
parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional);
}
}
/**
* A RequirementCollection represents a set of Requirement instances.
*
* @author Tobias Schultze <http://tobion.de>
*/
class RequirementCollection implements IteratorAggregate
{
private $requirements = array();
/**
* Gets the current RequirementCollection as an Iterator.
*
* @return Traversable A Traversable interface
*/
public function getIterator()
{
return new ArrayIterator($this->requirements);
}
/**
* Adds a Requirement.
*
* @param Requirement $requirement A Requirement instance
*/
public function add(Requirement $requirement)
{
$this->requirements[] = $requirement;
}
/**
* Adds a mandatory requirement.
*
* @param Boolean $fulfilled Whether the requirement is fulfilled
* @param string $testMessage The message for testing the requirement
* @param string $helpHtml The help text formatted in HTML for resolving the problem
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null)
{
$this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false));
}
/**
* Adds an optional recommendation.
*
* @param Boolean $fulfilled Whether the recommendation is fulfilled
* @param string $testMessage The message for testing the recommendation
* @param string $helpHtml The help text formatted in HTML for resolving the problem
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null)
{
$this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true));
}
/**
* Adds a mandatory requirement in form of a php.ini configuration.
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null)
{
$this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false));
}
/**
* Adds an optional recommendation in form of a php.ini configuration.
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null)
{
$this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true));
}
/**
* Adds a requirement collection to the current set of requirements.
*
* @param RequirementCollection $collection A RequirementCollection instance
*/
public function addCollection(RequirementCollection $collection)
{
$this->requirements = array_merge($this->requirements, $collection->all());
}
/**
* Returns both requirements and recommendations.
*
* @return array Array of Requirement instances
*/
public function all()
{
return $this->requirements;
}
/**
* Returns all mandatory requirements.
*
* @return array Array of Requirement instances
*/
public function getRequirements()
{
$array = array();
foreach ($this->requirements as $req) {
if (!$req->isOptional()) {
$array[] = $req;
}
}
return $array;
}
/**
* Returns the mandatory requirements that were not met.
*
* @return array Array of Requirement instances
*/
public function getFailedRequirements()
{
$array = array();
foreach ($this->requirements as $req) {
if (!$req->isFulfilled() && !$req->isOptional()) {
$array[] = $req;
}
}
return $array;
}
/**
* Returns all optional recommmendations.
*
* @return array Array of Requirement instances
*/
public function getRecommendations()
{
$array = array();
foreach ($this->requirements as $req) {
if ($req->isOptional()) {
$array[] = $req;
}
}
return $array;
}
/**
* Returns the recommendations that were not met.
*
* @return array Array of Requirement instances
*/
public function getFailedRecommendations()
{
$array = array();
foreach ($this->requirements as $req) {
if (!$req->isFulfilled() && $req->isOptional()) {
$array[] = $req;
}
}
return $array;
}
/**
* Returns whether a php.ini configuration is not correct.
*
* @return Boolean php.ini configuration problem?
*/
public function hasPhpIniConfigIssue()
{
foreach ($this->requirements as $req) {
if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) {
return true;
}
}
return false;
}
/**
* Returns the PHP configuration file (php.ini) path.
*
* @return string|false php.ini file path
*/
public function getPhpIniConfigPath()
{
return get_cfg_var('cfg_file_path');
}
}
/**
* This class specifies all requirements and optional recommendations that
* are necessary to run the Symfony Standard Edition.
*
* @author Tobias Schultze <http://tobion.de>
* @author Fabien Potencier <fabien@symfony.com>
*/
class SymfonyRequirements extends RequirementCollection
{
const REQUIRED_PHP_VERSION = '5.3.3';
/**
* Constructor that initializes the requirements.
*/
public function __construct()
{
/* mandatory requirements follow */
$installedPhpVersion = phpversion();
$this->addRequirement(
version_compare($installedPhpVersion, self::REQUIRED_PHP_VERSION, '>='),
sprintf('PHP version must be at least %s (%s installed)', self::REQUIRED_PHP_VERSION, $installedPhpVersion),
sprintf('You are running PHP version "<strong>%s</strong>", but Symfony needs at least PHP "<strong>%s</strong>" to run.
Before using Symfony, upgrade your PHP installation, preferably to the latest version.',
$installedPhpVersion, self::REQUIRED_PHP_VERSION),
sprintf('Install PHP %s or newer (installed version is %s)', self::REQUIRED_PHP_VERSION, $installedPhpVersion)
);
$this->addRequirement(
version_compare($installedPhpVersion, '5.3.16', '!='),
'PHP version must not be 5.3.16 as Symfony won\'t work properly with it',
'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)'
);
$this->addRequirement(
is_dir(__DIR__.'/../vendor/composer'),
'Vendor libraries must be installed',
'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. ' .
'Then run "<strong>php composer.phar install</strong>" to install them.'
);
$baseDir = basename(__DIR__);
$this->addRequirement(
is_writable(__DIR__.'/cache'),
"$baseDir/cache/ directory must be writable",
"Change the permissions of the \"<strong>$baseDir/cache/</strong>\" directory so that the web server can write into it."
);
$this->addRequirement(
is_writable(__DIR__.'/logs'),
"$baseDir/logs/ directory must be writable",
"Change the permissions of the \"<strong>$baseDir/logs/</strong>\" directory so that the web server can write into it."
);
$this->addPhpIniRequirement(
'date.timezone', true, false,
'date.timezone setting must be set',
'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).'
);
if (version_compare($installedPhpVersion, self::REQUIRED_PHP_VERSION, '>=')) {
$this->addRequirement(
(in_array(date_default_timezone_get(), DateTimeZone::listIdentifiers())),
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', date_default_timezone_get()),
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
);
}
$this->addRequirement(
function_exists('json_encode'),
'json_encode() must be available',
'Install and enable the <strong>JSON</strong> extension.'
);
$this->addRequirement(
function_exists('session_start'),
'session_start() must be available',
'Install and enable the <strong>session</strong> extension.'
);
$this->addRequirement(
function_exists('ctype_alpha'),
'ctype_alpha() must be available',
'Install and enable the <strong>ctype</strong> extension.'
);
$this->addRequirement(
function_exists('token_get_all'),
'token_get_all() must be available',
'Install and enable the <strong>Tokenizer</strong> extension.'
);
$this->addRequirement(
function_exists('simplexml_import_dom'),
'simplexml_import_dom() must be available',
'Install and enable the <strong>SimpleXML</strong> extension.'
);
if (function_exists('apc_store') && ini_get('apc.enabled')) {
$this->addRequirement(
version_compare(phpversion('apc'), '3.0.17', '>='),
'APC version must be at least 3.0.17',
'Upgrade your <strong>APC</strong> extension (3.0.17+).'
);
}
$this->addPhpIniRequirement('detect_unicode', false);
if (extension_loaded('suhosin')) {
$this->addPhpIniRequirement(
'suhosin.executor.include.whitelist',
create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'),
false,
'suhosin.executor.include.whitelist must be configured correctly in php.ini',
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.'
);
}
if (extension_loaded('xdebug')) {
$this->addPhpIniRequirement(
'xdebug.show_exception_trace', false, true
);
$this->addPhpIniRequirement(
'xdebug.scream', false, true
);
}
$pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null;
$this->addRequirement(
null !== $pcreVersion,
'PCRE extension must be available',
'Install the <strong>PCRE</strong> extension (version 8.0+).'
);
/* optional recommendations follow */
$this->addRecommendation(
file_get_contents(__FILE__) === file_get_contents(__DIR__.'/../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php'),
'Requirements file should be up-to-date',
'Your requirements file is outdated. Run composer install and re-check your configuration.'
);
$this->addRecommendation(
version_compare($installedPhpVersion, '5.3.4', '>='),
'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions',
'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.'
);
$this->addRecommendation(
version_compare($installedPhpVersion, '5.3.8', '>='),
'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156',
'Install PHP 5.3.8 or newer if your project uses annotations.'
);
$this->addRecommendation(
version_compare($installedPhpVersion, '5.4.0', '!='),
'You should not use PHP 5.4.0 due to the PHP bug #61453',
'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.'
);
if (null !== $pcreVersion) {
$this->addRecommendation(
$pcreVersion >= 8.0,
sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion),
'<strong>PCRE 8.0+</strong> is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.'
);
}
$this->addRecommendation(
class_exists('DomDocument'),
'PHP-XML module should be installed',
'Install and enable the <strong>PHP-XML</strong> module.'
);
$this->addRecommendation(
function_exists('mb_strlen'),
'mb_strlen() should be available',
'Install and enable the <strong>mbstring</strong> extension.'
);
$this->addRecommendation(
function_exists('iconv'),
'iconv() should be available',
'Install and enable the <strong>iconv</strong> extension.'
);
$this->addRecommendation(
function_exists('utf8_decode'),
'utf8_decode() should be available',
'Install and enable the <strong>XML</strong> extension.'
);
if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->addRecommendation(
function_exists('posix_isatty'),
'posix_isatty() should be available',
'Install and enable the <strong>php_posix</strong> extension (used to colorize the CLI output).'
);
}
$this->addRecommendation(
class_exists('Locale'),
'intl extension should be available',
'Install and enable the <strong>intl</strong> extension (used for validators).'
);
if (class_exists('Collator')) {
$this->addRecommendation(
null !== new Collator('fr_FR'),
'intl extension should be correctly configured',
'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.'
);
}
if (class_exists('Locale')) {
if (defined('INTL_ICU_VERSION')) {
$version = INTL_ICU_VERSION;
} else {
$reflector = new ReflectionExtension('intl');
ob_start();
$reflector->info();
$output = strip_tags(ob_get_clean());
preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches);
$version = $matches[1];
}
$this->addRecommendation(
version_compare($version, '4.0', '>='),
'intl ICU version should be at least 4+',
'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).'
);
}
$accelerator =
(function_exists('apc_store') && ini_get('apc.enabled'))
||
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
||
function_exists('xcache_set')
;
$this->addRecommendation(
$accelerator,
'a PHP accelerator should be installed',
'Install and enable a <strong>PHP accelerator</strong> like APC (highly recommended).'
);
$this->addPhpIniRecommendation('short_open_tag', false);
$this->addPhpIniRecommendation('magic_quotes_gpc', false, true);
$this->addPhpIniRecommendation('register_globals', false, true);
$this->addPhpIniRecommendation('session.auto_start', false);
$this->addRecommendation(
class_exists('PDO'),
'PDO should be installed',
'Install <strong>PDO</strong> (mandatory for Doctrine).'
);
if (class_exists('PDO')) {
$drivers = PDO::getAvailableDrivers();
$this->addRecommendation(
count($drivers),
sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'),
'Install <strong>PDO drivers</strong> (mandatory for Doctrine).'
);
}
}
}

View file

@ -1,16 +0,0 @@
<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = require __DIR__.'/../vendor/autoload.php';
// intl
if (!function_exists('intl_get_error_code')) {
require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
return $loader;

File diff suppressed because it is too large Load diff

View file

@ -1,55 +0,0 @@
<?php
require_once dirname(__FILE__).'/SymfonyRequirements.php';
$symfonyRequirements = new SymfonyRequirements();
$iniPath = $symfonyRequirements->getPhpIniConfigPath();
echo "********************************\n";
echo "* *\n";
echo "* Symfony requirements check *\n";
echo "* *\n";
echo "********************************\n\n";
echo $iniPath ? sprintf("* Configuration file used by PHP: %s\n\n", $iniPath) : "* WARNING: No configuration file (php.ini) used by PHP!\n\n";
echo "** ATTENTION **\n";
echo "* The PHP CLI can use a different php.ini file\n";
echo "* than the one used with your web server.\n";
if ('\\' == DIRECTORY_SEPARATOR) {
echo "* (especially on the Windows platform)\n";
}
echo "* To be on the safe side, please also launch the requirements check\n";
echo "* from your web server using the web/config.php script.\n";
echo_title('Mandatory requirements');
foreach ($symfonyRequirements->getRequirements() as $req) {
echo_requirement($req);
}
echo_title('Optional recommendations');
foreach ($symfonyRequirements->getRecommendations() as $req) {
echo_requirement($req);
}
/**
* Prints a Requirement instance
*/
function echo_requirement(Requirement $requirement)
{
$result = $requirement->isFulfilled() ? 'OK' : ($requirement->isOptional() ? 'WARNING' : 'ERROR');
echo ' ' . str_pad($result, 9);
echo $requirement->getTestMessage() . "\n";
if (!$requirement->isFulfilled()) {
echo sprintf(" %s\n\n", $requirement->getHelpText());
}
}
function echo_title($title)
{
echo "\n** $title **\n\n";
}

View file

@ -1,71 +0,0 @@
imports:
- { resource: security.yml }
- { resource: constants.yml }
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb'
firewall_name: admin
user_class: Agis\BO\UserBundle\Entity\User
registration:
confirmation:
enabled: false
framework:
#esi: ~
translator: { fallback: "fr" }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: "%kernel.debug%"
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
default_locale: "%locale%"
trust_proxy_headers: false # Deprecated in 2.0; will be removed in 2.3 (used trusted_proxies instead)
trusted_proxies: ~
session: ~
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
path_plan: %path_plan_uploaded%
path_atelier: %path_atelier_uploaded%
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: [ AgisFOAgisBundle ]
#java: /usr/bin/java
filters:
cssrewrite: ~
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
#yui_css:
# jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
# Doctrine Configuration
doctrine:
dbal:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }

View file

@ -1,31 +0,0 @@
imports:
- { resource: parameters_dev.yml }
- { resource: config.yml }
twig:
cache: true
framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
profiler: { only_exceptions: false }
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
firephp:
type: firephp
level: info
assetic:
use_controller: true
#swiftmailer:
# delivery_address: me@example.com

View file

@ -1,27 +0,0 @@
imports:
- { resource: parameters_local.yml }
- { resource: config.yml }
framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
profiler: { only_exceptions: false }
web_profiler:
toolbar: true
intercept_redirects: false
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
firephp:
type: firephp
level: info
assetic:
use_controller: true
#swiftmailer:
# delivery_address: me@example.com

View file

@ -1,20 +0,0 @@
imports:
- { resource: parameters_prod.yml }
- { resource: config.yml }
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

View file

@ -1,20 +0,0 @@
imports:
- { resource: parameters_recette.yml }
- { resource: config.yml }
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug

View file

@ -1,14 +0,0 @@
imports:
- { resource: config_dev.yml }
framework:
test: ~
session:
storage_id: session.storage.mock_file
web_profiler:
toolbar: false
intercept_redirects: false
swiftmailer:
disable_delivery: true

View file

@ -1,45 +0,0 @@
parameters:
path_bg: 'img/background/'
path_web: '/../../../../../web/'
path_background_uploaded: 'uploads/background/'
path_page_uploaded: 'uploads/pages/'
path_produit_uploaded: 'uploads/produits/'
path_rubrique_uploaded: 'uploads/rubrique/'
path_catalogue_uploaded: 'uploads/catalogues/'
path_actualite_uploaded: 'uploads/actualites/'
path_commerciaux_uploaded: 'uploads/commerciaux/'
path_slider_uploaded: 'uploads/slider/'
path_secteurs_geo_uploaded: 'uploads/secteurs_geo/'
path_plan_uploaded: 'uploads/plan/'
path_atelier_uploaded: 'uploads/ateliers/'
path_image_resized_800x530: 'img/'
path_image_resized_900x250: 'img/'
path_file_uploaded: 'uploads/file/'
path_pdf_uploaded: 'uploads/file/pdf/'
path_xml_contact: 'attachs/xml/'
path_pdf_offre: 'uploads/offres/'
width_resize_default: 800
height_resize_default: 530
width_resize_slider: 900
height_resize_slider: 250
width_resize_background: 1920
height_resize_background: 1200
standard_form_dest: 'agis@agis-sa.fr'
filterArray:
sortField: ''
sortDirection : ''
totalRecords : ''
displayStart : ''
displayLength : ''
searchParams:
start: ''
end: ''
titre: ''
status: ''
prenom: ''
nom: ''
offresecteurId: ''
typeoffreId: ''
typecontratId: ''
secteurId: ''
displayStart: 0

View file

@ -1,20 +0,0 @@
parameters:
database_driver: pdo_mysql
database_host: 192.168.34.2
database_port: 3306
database_name: agis-sa
database_user: agis-saadm
database_password: F89jn4DU
mailer_transport: mail
mailer_host: localhost
mailer_user:
mailer_password:
mailer_port: 25
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
from_mail: 'agis@agis-sa.fr'
destination_mail_service_consommateur: 'middir@gmail.com'
destination_mail_demande_offre: 'middir@gmail.com'

View file

@ -1,20 +0,0 @@
parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: 3306
database_name: agis-sa
database_user: root
database_password: nico2005
mailer_transport: smtp
mailer_host: se294.nfrance.com
mailer_user: smtp1
mailer_password: qi7cg9bu
mailer_port: 25
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
from_mail: 'agis@agis-sa.fr'
destination_mail_service_consommateur: 'r.andriamafana@ideoneov.com'
destination_mail_demande_offre: 'maharosoa@gmail.com'

View file

@ -1,20 +0,0 @@
parameters:
database_driver: pdo_mysql
database_host: 192.168.31.101
database_port: 3306
database_name: agis-sa
database_user: agis-saadm
database_password: F89jn4DU
mailer_transport: mail
mailer_host: localhost
mailer_user:
mailer_password:
mailer_port: 25
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
from_mail: 'agis@agis-sa.fr'
destination_mail_service_consommateur: 'Service.CONSOMMATEUR@agis-sa.fr'
destination_mail_demande_offre: 'agis@agis-sa.fr'

View file

@ -1,20 +0,0 @@
parameters:
database_driver: pdo_mysql
database_host: localhost
database_port: 3306
database_name: agis-sa
database_user: agis-saadm
database_password: F89jn4DU
mailer_transport: smtp
mailer_host: se294.nfrance.com
mailer_user: smtp1
mailer_password: qi7cg9bu
mailer_port: 25
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
from_mail: 'agis@agis-sa.fr'
destination_mail_service_consommateur: 'Service.CONSOMMATEUR@agis-sa.fr'
destination_mail_demande_offre: 'agis@agis-sa.fr'

View file

@ -1,27 +0,0 @@
agis_commun_commun:
resource: "@AgisCommunCommunBundle/Resources/config/routing.yml"
prefix: /
agis_bo_user:
resource: "@AgisBoUserBundle/Resources/config/routing.yml"
prefix: /
Agisbo_Agis:
resource: "@AgisBOAgisBundle/Resources/config/routing.yml"
prefix: /
Agisfo_Agis:
resource: "@AgisFOAgisBundle/Resources/config/routing.yml"
prefix: /
ArsonElFinder:
resource: "@ArsonElFinderBundle/Resources/config/routing.yml"
# Internal routing configuration to handle ESI
# ****** WARNING ******
# This route should be enabled with caution as it can open a security vulnerability
# see http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released for more information
# ****** WARNING ******
#_internal:
# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
# prefix: /_internal

View file

@ -1,15 +0,0 @@
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
prefix: /_configurator
_main:
resource: routing.yml

View file

@ -1,49 +0,0 @@
jms_security_extra:
secure_all_services: false
expressions: true
security:
encoders:
FOS\UserBundle\Model\UserInterface: sha512
role_hierarchy:
ROLE_ADMIN: [ROLE_USER, ROLE_REDACTEUR ]
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
admin:
pattern: ^/admin(?!(/login$)).*$
form_login:
provider: fos_userbundle
remember_me: true # On active la possibilité du "Se souvenir de moi" (désactivé par défaut)
check_path: /admin/login_check #
default_target_path: agisbo_agis_gallery_bg # url after login
login_path: agisbo_agis_login # url login
remember_me:
key: %secret% # On définit la clé pour le remember_me (%secret% est un parametre de parameters.ini)
anonymous: false # On autorise les utilisateurs anonymes (non identifiés)
logout:
path: /admin/logout # url logout
target: /admin/login # after logout
access_control:
- { path: ^/admin/login.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/user/list, role: ROLE_ADMIN }
- { path: ^/admin/register, role: ROLE_ADMIN }
- { path: ^/admin/resetting, role: ROLE_ADMIN }
- { path: ^/admin/profile, role: ROLE_REDACTEUR }
- { path: ^/admin/change-password, role: ROLE_REDACTEUR }
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }

View file

@ -1,22 +0,0 @@
#!/usr/bin/env php
<?php
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
umask(0000);
set_time_limit(0);
require_once __DIR__.'/bootstrap.php.cache';
require_once __DIR__.'/AppKernel.php';
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run($input);

View file

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "false"
bootstrap = "bootstrap.php.cache" >
<testsuites>
<testsuite name="Project Test Suite">
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</testsuite>
</testsuites>
<!--
<php>
<server name="KERNEL_DIR" value="/path/to/your/app/" />
</php>
-->
<filter>
<whitelist>
<directory>../src</directory>
<exclude>
<directory>../src/*/*Bundle/Resources</directory>
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Resources</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

View file

@ -1,42 +0,0 @@
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.1.*",
"twig/extensions": "1.0.*@dev",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"kriswallsmith/assetic": "1.1.*@dev"
"friendsofsymfony/user-bundle": "*"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}

1264
composer.lock generated

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
deny from all

View file

@ -1,9 +0,0 @@
<?php
namespace Agis\BO\AgisBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AgisBOAgisBundle extends Bundle
{
}

View file

@ -1,347 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\BO\AgisBundle\Entity\Tool;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisActualite;
use Agis\Commun\CommunBundle\Form\AgisActualiteType;
use Agis\Commun\CommunBundle\Fpdf17\WriteHtml;
class BoActualiteController extends HelperController
{
const routes = "agisbo_agis_list_actualite,agisbo_agis_edit_actualite";
public function depublierActualiteAction($actualiteId)
{
$em = $this->getDoctrine()->getEntityManager();
$actualite = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
$actualite->setActualiteStatus(false);
$em->flush($actualite);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierActualiteAction($actualiteId)
{
$em = $this->getDoctrine()->getEntityManager();
$actualite = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
$actualite->setActualiteStatus(true);
$em->flush($actualite);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadActualiteListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$s = $request->query->get('search');
$searchParams = json_decode($s);
$_searchParams = json_decode($s);
$totalRecords = 0;
if($searchParams)
{
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $_searchParams));
$en = array('Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sept' , 'Oct' , 'Nov' , 'Dec');
$fr = array('Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.');
$start = str_replace( $fr, $en, $searchParams->start);
$end = str_replace( $fr, $en, $searchParams->end);
if($searchParams->status != '1' && $searchParams->status != '0')
{
$searchParams->status = null;
}
$searchParams->start = ($searchParams->start == '') ? null : new \DateTime($start);
$searchParams->end = ($searchParams->end == '') ? null : new \DateTime($end);
}
$em = $this->getDoctrine()->getEntityManager();
$actualites = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->getActualiteByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
foreach ($actualites as $actualite) {
$data = array ();
$actualiteId = $actualite->getActualiteId();
$actualiteStatus = $actualite->getActualiteStatus();
$actualiteTitre = $actualite->getActualiteTitre();
$actions = '';
$actualiteEscapedNom = $actualiteTitre;
$date = $actualite->getActualiteDate();
$date = $date->format('d M Y');
$en = array('Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sept' , 'Oct' , 'Nov' , 'Dec');
$fr = array('Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.');
$date = str_replace( $en, $fr, $date);
$actualiteEscapedNom = addslashes($actualiteEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$status = $actualite->getActualiteStatus();
if($status)
{
$btnActualiteStatus = '<button class="actualite_update status published light" data-id="'.$actualiteId.'">';
$btnActualiteStatus.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$btnActualiteStatus = '<button class="actualite_update status unpublished light" data-id="'.$actualiteId.'">';
$btnActualiteStatus.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="actualite_update light link_button" data-link="'.$this->generateUrl('agisbo_agis_edit_actualite', array('actualiteId' => $actualiteId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="actualite_update delete light" data-id="'.$actualiteId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $date ;
$data[] = $space.$actualiteTitre;
$data[] = $btnActualiteStatus;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editActualiteAction($actualiteId)
{
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if(!$actualiteId)
{
$actualite = new AgisActualite();
} else {
$actualiteId = intval($actualiteId);
$actualite = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
if($actualite == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( is_file($path_image_resized_800x530.$actualite->getActualiteVisuel())){
$visu = $actualite->getActualiteVisuel();
}
}
$form = $this->createForm( new AgisActualiteType, $actualite);
return $this->render('AgisBOAgisBundle:Actualite:editActualite.html.twig' , array( 'form' => $form->createView(), 'actualiteId' => $actualiteId,
'visu' => $visu ));
}
public function generatePdfAction($actualiteId )
{
$pdf = $this->generatePdf($actualiteId);
$response = new Response($pdf->Output());
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/pdf');
return $response;
}
public function generatePdf($actualiteId)
{
$path_web = $this->container->getParameter('path_web');
$pdf_dir = $this->container->getParameter('path_pdf_uploaded');
$img_dir = $this->container->getParameter('path_image_resized_800x530');
$footer_img = realpath(__DIR__ .$path_web.'/bundles/agisfoagis/img/ldc.gif');
$header_img = realpath(__DIR__ .$path_web.'/bundles/agisfoagis/img/bkg-sprite-little.png');
$em = $this->getDoctrine()->getEntityManager();
$actu = $repo = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
$titre = html_entity_decode($actu->getActualiteTitre(), ENT_COMPAT, 'UTF-8');
$contenu = html_entity_decode($actu->getActualiteContenu(), ENT_COMPAT, 'UTF-8');
$actuVisu = realpath(__DIR__ .$path_web.$img_dir.$actu->getActualiteVisuel());
$pdf = new WriteHtml ('©2013 Agis, une société du Groupe LDC', $footer_img);
$pdf->AddPage();
$pdf->SetFont('Arial');
$pdf->Image($header_img,10,0,23,0);
$htmlTitre= '<hr><br><p align="center">'.$titre.'</p><br>';
$pdf->Ln(25);
$pdf->WriteHTML($htmlTitre);
$x =$pdf->GetX();
$y = $pdf->GetY();
$date = $actu->getActualiteDate();
$date = $date->format('d M Y');
$en = array('Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sept' , 'Oct' , 'Nov' , 'Dec');
$fr = array('Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.');
$date = str_replace( $en, $fr, $date);
$pdf->SetXY(100, 50);
$date = utf8_decode($date);
$pdf->Cell(100, 15, $date , 0, 0, 'R', false);
$pdf->SetXY($x, $y);
if($actuVisu) {
$pdf->Ln(75);
$pdf->Image($actuVisu,10,55,0,70);
}
$htmlContenu = '<p>'. $contenu.'</p>';
$pdf->WriteHTML($htmlContenu);
$pdf_dir = realpath(__DIR__ . $path_web.$pdf_dir);
$pdf->Output($pdf_dir.'/'.$actualiteId.'.pdf', 'F');
return $pdf;
}
public function listActualiteAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Actualite:listActualite.html.twig', $args);
}
public function saveActualiteAction($actualiteId)
{
$em = $this->getDoctrine()->getEntityManager();
if(!$actualiteId)
{
$actualite = new AgisActualite();
$actualite->setActualiteDatecreation(date_create(date("Y-m-d H:i:s")));
$actualite->setActualiteDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$actualiteId = intval($actualiteId);
$actualite = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
$actualite->setActualiteDatemodification(date_create(date("Y-m-d H:i:s")));
if($actualite == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisActualiteType, $actualite);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$actualite->setActualitePdf('nom temporaire');
$em->persist($actualite);
$em->flush();
$actualiteId = $actualite->getActualiteid();
$actualite->setActualitePdf($actualiteId);
$this->generatePdf($actualiteId);
}
return $this->redirect($this->generateUrl("agisbo_agis_list_actualite"),301);
}
public function deleteActualiteAction($actualiteId)
{
$actualiteId = intval($actualiteId);
$em = $this->getDoctrine()->getEntityManager();
$actualite = $em->getRepository('AgisCommunCommunBundle:AgisActualite')->find($actualiteId);
if($actualite == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($actualite);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,240 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\BO\AgisBundle\Entity\Tool;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisAtelier;
use Agis\Commun\CommunBundle\Form\AgisAtelierType;
use Agis\Commun\CommunBundle\Fpdf17\WriteHtml;
class BoAtelierController extends HelperController
{
const routes = "agisbo_agis_list_atelier_access,agisbo_agis_edit_atelier_acces";
public function depublierAtelierAction($atelierId)
{
$em = $this->getDoctrine()->getEntityManager();
$atelier = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->find($atelierId);
$atelier->setStatus(false);
$em->flush($atelier);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierAtelierAction($atelierId)
{
$em = $this->getDoctrine()->getEntityManager();
$atelier = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->find($atelierId);
$atelier->setStatus(true);
$em->flush($atelier);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadAtelierListAction()
{
$request = $this->container->get('request');
if ($request->isXmlHttpRequest()) {
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$s = $request->query->get('search');
$searchParams = json_decode($s);
$_searchParams = json_decode($s);
$totalRecords = 0;
if ($searchParams) {
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $_searchParams));
if ($searchParams->status != '1' && $searchParams->status != '0') {
$searchParams->status = null;
}
}
$em = $this->getDoctrine()->getEntityManager();
$ateliers = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->getAtelierByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$remove_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/published.png';
/** @var AgisAtelier $atelier */
foreach ($ateliers as $atelier) {
$data = array();
$atelierId = $atelier->getId();
$status = $atelier->isStatus();
$nom = $atelier->getNom();
$actions = '';
$space = ' ';
if ($status) {
$btnAtelierStatus = '<button class="atelier_update status published light" data-id="' . $atelierId . '">';
$btnAtelierStatus .= '<img title="Dépublier" src="' . $unpublish_btn . '" /> </button>';
} else {
$btnAtelierStatus = '<button class="atelier_update status unpublished light" data-id="' . $atelierId . '">';
$btnAtelierStatus .= '<img title="Publier" src="' . $publish_btn . '" /> </button>';
}
$actions = $actions . '&nbsp;<button class="atelier_update light link_button" data-link="' . $this->generateUrl('agisbo_agis_edit_atelier', array('atelierId' => $atelierId)) . '"><img title="Modifier" src="' . $edit_btn . '" /></button>';
$actions = $actions . '&nbsp;<button class="atelier_update delete light" data-id="' . $atelierId . '"><img title="Supprimer" src="' . $remove_btn . '" /></button>';
$data[] = $space . $nom;
$data[] = $btnAtelierStatus;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editAtelierAction($atelierId)
{
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if (!$atelierId) {
$atelier = new AgisAtelier();
} else {
$atelierId = intval($atelierId);
$atelier = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->find($atelierId);
if ($atelier == null) {
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if (is_file($path_image_resized_800x530 . $atelier->getPhoto())) {
$visu = $atelier->getPhoto();
}
}
$form = $this->createForm(new AgisAtelierType, $atelier);
return $this->render('AgisBOAgisBundle:Atelier:editAtelier.html.twig', array('form' => $form->createView(), 'atelierId' => $atelierId,
'visu' => $visu));
}
public function listAtelierAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if (!$args) {
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Atelier:listAtelier.html.twig', $args);
}
public function saveAtelierAction($atelierId)
{
$em = $this->getDoctrine()->getEntityManager();
if (!$atelierId) {
$atelier = new AgisAtelier();
$atelier->setDateCreation(date_create(date("Y-m-d H:i:s")));
$atelier->setDatemModification(date_create(date("Y-m-d H:i:s")));
} else {
$atelierId = intval($atelierId);
$atelier = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->find($atelierId);
$atelier->setDatemModification(date_create(date("Y-m-d H:i:s")));
if ($atelier == null) {
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm(new AgisAtelierType, $atelier);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($atelier);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_atelier"), 301);
}
public function deleteAtelierAction($atelierId)
{
$atelierId = intval($atelierId);
$em = $this->getDoctrine()->getEntityManager();
$atelier = $em->getRepository('AgisCommunCommunBundle:AgisAtelier')->find($atelierId);
if ($atelier == null) {
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($atelier);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,257 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\BO\AgisBundle\Entity\Tool;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisCatalogue;
use Agis\Commun\CommunBundle\Form\AgisCatalogueType;
class BoCatalogueController extends HelperController
{
const routes = "agisbo_agis_list_catalogue,agisbo_agis_edit_catalogue";
public function depublierCatalogueAction($catalogueId)
{
$em = $this->getDoctrine()->getEntityManager();
$catalogue = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->find($catalogueId);
$catalogue->setCatalogueStatus(false);
$em->flush($catalogue);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierCatalogueAction($catalogueId)
{
$em = $this->getDoctrine()->getEntityManager();
$catalogue = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->find($catalogueId);
$catalogue->setCatalogueStatus(true);
$em->flush($catalogue);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadCatalogueListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$search = $request->query->get('search');
$searchParams = $request->query->get('filter');
$search = json_decode($search);
$searchParams = array(
'titre' => $search[0],
'status' => $search[1]
);
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash( $this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$catalogues = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->getCatalogueByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
foreach ($catalogues as $catalogue) {
$data = array ();
$catalogueId = $catalogue->getCatalogueId();
$catalogueStatus = $catalogue->getCatalogueStatus();
$statusBtn = '';
$actions = '';
$catalogueTitre = $catalogue->getCatalogueTitre();
$disabedStr = 'disabled';
$grey = 'grey';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($catalogueStatus)
{
$catalogueBtn = '<button class="catalogue_update status published light" data-id="'.$catalogueId.'">';
$catalogueBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$catalogueBtn = '<button class="catalogue_update status unpublished light" data-id="'.$catalogueId.'">';
$catalogueBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$actions = $actions.'&nbsp;<button class="catalogue_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_catalogue', array('catalogueId' => $catalogueId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="catalogue_update light delete" data-id="'.$catalogueId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $catalogueTitre;
$data[] = $catalogueBtn;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editCatalogueAction($catalogueId)
{
$catalogueId = intval($catalogueId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($catalogueId == '-1')
{
$catalogue = new AgisCatalogue();
} else {
$catalogue = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->find($catalogueId);
if($catalogue == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( is_file($path_image_resized_800x530.$catalogue->getCataloguevisuel())){
$visu = $catalogue->getCataloguevisuel();
}
}
$form = $this->createForm( new AgisCatalogueType, $catalogue);
return $this->render('AgisBOAgisBundle:Catalogue:editCatalogue.html.twig' , array( 'form' => $form->createView(), 'catalogueId' => $catalogueId,
'visu' => $visu ));
}
public function listCatalogueAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Catalogue:listCatalogue.html.twig', $args );
}
public function saveCatalogueAction($catalogueId)
{
$catalogueId = intval($catalogueId);
$em = $this->getDoctrine()->getEntityManager();
if($catalogueId == '-1')
{
$catalogue = new AgisCatalogue();
$catalogue->setCatalogueDatecreation(date_create(date("Y-m-d H:i:s")));
$catalogue->setCatalogueDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$catalogue = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->find($catalogueId);
$catalogue->setCatalogueDatemodification(date_create(date("Y-m-d H:i:s")));
if($catalogue == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisCatalogueType, $catalogue);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($catalogue);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_catalogue"),301);
}
public function deleteCatalogueAction($catalogueId)
{
$catalogueId = intval($catalogueId);
$em = $this->getDoctrine()->getEntityManager();
$catalogue = $em->getRepository('AgisCommunCommunBundle:AgisCatalogue')->find($catalogueId);
if($catalogue == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($catalogue);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,266 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisCommercial;
use Agis\Commun\CommunBundle\Form\AgisCommercialType;
class BoCommercialController extends HelperController
{
const routes = "agisbo_agis_list_commercial,agisbo_agis_edit_commercial";
public function depublierCommercialAction($commercialId)
{
$em = $this->getDoctrine()->getEntityManager();
$commercial = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->find($commercialId);
$commercial->setCommercialStatus(false);
$em->flush($commercial);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierCommercialAction($commercialId)
{
$em = $this->getDoctrine()->getEntityManager();
$commercial = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->find($commercialId);
$commercial->setCommercialStatus(true);
$em->flush($commercial);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadCommercialListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$search = $request->query->get('search');
$filter = $request->query->get('filter');
$search = json_decode($search);
$searchParams = array('prenom' => $search[0], 'nom' => $search[1] , 'status' => $search[2], 'secteurId' => $search[3] );
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash( $this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams));
$commerciaux = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->getCommercialByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($commerciaux)-1;
foreach ($commerciaux as $commercial) {
$data = array ();
$commercialId = $commercial->getCommercialId();
$commercialStatus = $commercial->getCommercialStatus();
$commercialNom = $commercial->getCommercialNom();
$commercialPrenom = $commercial->getCommercialPrenom();
$commercialEmail = $commercial->getCommercialEmail();
$commercialTeleph = $commercial->getCommercialTelephone();
$commercialSecteur = $commercial->getCommercialSecteurid()->getSecteurTitre();
$actions = '';
$commercialEscapedNom = $commercialNom;
$commercialEscapedNom = addslashes($commercialEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($commercialStatus)
{
$commercialBtn = '<button class="commercial_update status published light" data-id="'.$commercialId.'">';
$commercialBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$commercialBtn = '<button class="commercial_update status unpublished light" data-id="'.$commercialId.'">';
$commercialBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$space = ' '; $remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$actions = $actions.'&nbsp;<button class="commercial_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_commercial', array('commercialId' => $commercialId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="commercial_update light delete" data-id="'.$commercialId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $commercialPrenom;
$data[] = $commercialNom;
$data[] = $commercialEmail;
$data[] = $commercialTeleph;
$data[] = $commercialSecteur;
$data[] = $commercialBtn;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editCommercialAction($commercialId)
{
$commercialId = intval($commercialId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($commercialId == '-1')
{
$commercial = new AgisCommercial();
} else {
$commercial = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->find($commercialId);
if($commercial == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( is_file($path_image_resized_800x530.$commercial->getCommercialPhoto())){
$visu = $commercial->getCommercialPhoto();
}
}
$form = $this->createForm( new AgisCommercialType, $commercial);
return $this->render('AgisBOAgisBundle:Commercial:editCommercial.html.twig' , array( 'form' => $form->createView(), 'commercialId' => $commercialId,
'visu' => $visu ));
}
public function listCommercialAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
$em = $this->getDoctrine()->getEntityManager();
$secteurs = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->findAll();
$args = array_merge($args , array('secteurs' => $secteurs));
return $this->render('AgisBOAgisBundle:Commercial:listCommercial.html.twig', $args);
}
public function saveCommercialAction($commercialId)
{
$commercialId = intval($commercialId);
$em = $this->getDoctrine()->getEntityManager();
if($commercialId == '-1')
{
$commercial = new AgisCommercial();
$commercial->setCommercialDatecreation(date_create(date("Y-m-d H:i:s")));
$commercial->setCommercialDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$commercial = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->find($commercialId);
$commercial->setCommercialDatemodification(date_create(date("Y-m-d H:i:s")));
if($commercial == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisCommercialType, $commercial);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($commercial);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_commercial"),301);
}
public function deleteCommercialAction($commercialId)
{
$commercialId = intval($commercialId);
$em = $this->getDoctrine()->getEntityManager();
$commercial = $em->getRepository('AgisCommunCommunBundle:AgisCommercial')->find($commercialId);
if($commercial == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($commercial);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,244 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisTypecontrat;
use Agis\Commun\CommunBundle\Form\AgisTypecontratType;
class BoContratController extends HelperController
{
const routes = "agisbo_agis_list_contrat,agisbo_agis_edit_contrat";
public function depublierContratAction($contratId)
{
$em = $this->getDoctrine()->getEntityManager();
$contrat = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->find($contratId);
$contrat->setTypecontratStatus(false);
$em->flush($contrat);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierContratAction($contratId)
{
$em = $this->getDoctrine()->getEntityManager();
$contrat = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->find($contratId);
$contrat->setTypecontratStatus(true);
$em->flush($contrat);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function deleteContratAction($contratId)
{
$contratId = intval($contratId);
$em = $this->getDoctrine()->getEntityManager();
$contrat = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->find($contratId);
if($contrat == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($contrat);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadContratListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$contrats = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->getTypecontratByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($contrats)-1;
foreach ($contrats as $contrat) {
$data = array ();
$contratId = $contrat->getTypecontratId();
$contratStatus = $contrat->getTypecontratStatus();
$contratTitre = $contrat->getTypecontratLibelle();
$statusBtn = '';
$actions = '';
$used = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->used($contratId);
$contratEscapedNom = $contratTitre;
$contratEscapedNom = addslashes($contratEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($contratStatus)
{
$contratBtn = '<button class="contrat_update status published light" data-id="'.$contratId.'">';
$contratBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$contratBtn = '<button class="contrat_update status unpublished light" data-id="'.$contratId.'">';
$contratBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="contrat_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_contrat', array('contratId' => $contratId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
if(!$used) $actions = $actions.'&nbsp;<button class="contrat_update light delete" data-id="'.$contratId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$contratTitre;
$data[] = $contratBtn;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editContratAction($contratId)
{
$contratId = intval($contratId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($contratId == '-1')
{
$contrat = new AgisTypecontrat();
} else {
$contrat = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->find($contratId);
if($contrat == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisTypecontratType, $contrat);
return $this->render('AgisBOAgisBundle:Contrat:editContrat.html.twig' , array( 'form' => $form->createView(), 'contratId' => $contratId ));
}
public function listContratAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Contrat:listContrat.html.twig', $args);
}
public function saveContratAction($contratId)
{
$contratId = intval($contratId);
$em = $this->getDoctrine()->getEntityManager();
if($contratId == '-1')
{
$contrat = new AgisTypecontrat();
$contrat->setTypecontratDatecreation(date_create(date("Y-m-d H:i:s")));
$contrat->setTypecontratDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$contrat = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->find($contratId);
$contrat->setTypecontratDatemodification(date_create(date("Y-m-d H:i:s")));
if($contrat == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisTypecontratType, $contrat);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($contrat);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_contrat"),301);
}
}

View file

@ -1,265 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\Commun\CommunBundle\Entity\AgisOffreemploi;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisOffre;
use Agis\Commun\CommunBundle\Form\AgisOffreemploiType;
use Agis\BO\AgisBundle\Controller\HelperController;
class BoOffreController extends HelperController
{
/*liste des routes où il faut que l'historique est maintenu*/
const routes = "agisbo_agis_list_offre,agisbo_agis_edit_offre";
public function depublierOffreAction($offreId)
{
$em = $this->getDoctrine()->getEntityManager();
$offre = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->find($offreId);
$offre->setOffreemploiStatus(false);
$em->flush($offre);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierOffreAction($offreId)
{
$em = $this->getDoctrine()->getEntityManager();
$offre = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->find($offreId);
$offre->setOffreemploiStatus(true);
$em->flush($offre);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadOffreListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$search = $request->query->get('search');
$search = json_decode($search);
$searchParams = array(
'titre'=> $search[0],
'offresecteurId'=> $search[1],
'typeoffreId' => $search[2],
'typecontratId' => $search[3],
'status' => $search[4]);
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$offres = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->getOffreByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($offres)-1;
foreach ($offres as $offre) {
$offre = (object) $offre;
$data = array ();
$offreId = $offre->offreemploiId;
$offreStatus = $offre->offreemploiStatus;
$offreTitre = $offre->offreemploiTitre;
$offreSecteur = $offre->offresecteurLibelle;
$offreTypeContrat = $offre->typecontratLibelle;
$offreType = $offre->typeoffreLibelle;
$statusBtn = '';
$actions = '';
$offreEscapedNom = $offreTitre;
$offreEscapedNom = addslashes($offreEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($offreStatus)
{
$offreBtn = '<button class="offre_update status published light" data-id="'.$offreId.'">';
$offreBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$offreBtn = '<button class="offre_update status unpublished light" data-id="'.$offreId.'">';
$offreBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="offre_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_offre', array('offreId' => $offreId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="offre_update light delete" data-id="'.$offreId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$offreTitre;
$data[] = $offreSecteur;
$data[] = $offreType;
$data[] = $offreTypeContrat;
$data[] = $offreBtn;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function deleteOffreAction($offreId)
{
$offreId = intval($offreId);
$em = $this->getDoctrine()->getEntityManager();
$offre = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->find($offreId);
if($offre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($offre);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function editOffreAction($offreId)
{
$offreId = intval($offreId);
$em = $this->getDoctrine()->getEntityManager();
if($offreId == '-1')
{
$offre = new AgisOffreemploi();
} else {
$offre = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->find($offreId);
if($offre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisOffreemploiType, $offre);
/*configuration arson_elfinder*/
$session = $this->getRequest()->getSession();
$session->getFlashBag()->add('arson_elfinder_clientConfig', "{ \"onlyMimes\" : [\"image/png\", \"application/x-shockwave-flash\"]}");
return $this->render('AgisBOAgisBundle:Offre:editOffre.html.twig' , array( 'form' => $form->createView(), 'offreId' => $offreId));
}
public function listOffreAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
$em = $this->getDoctrine()->getEntityManager();
$secteurs = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->findAll();
$typeContrats = $em->getRepository('AgisCommunCommunBundle:AgisTypecontrat')->findAll();
$typeOffres = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->findAll();
$args = array_merge($args , array('secteurs' => $secteurs ,'typeContrats' =>$typeContrats, 'typeOffres' =>$typeOffres));
return $this->render('AgisBOAgisBundle:Offre:listOffre.html.twig', $args );
}
public function saveOffreAction($offreId)
{
$offreId = intval($offreId);
$em = $this->getDoctrine()->getEntityManager();
if($offreId == '-1')
{
$offre = new AgisOffreemploi();
$offre->setOffreemploiDatecreation(date_create(date("Y-m-d H:i:s")));
$offre->setOffreemploiDatemodification(date_create(date("Y-m-d H:i:s")));
}
else {
$offre = $em->getRepository('AgisCommunCommunBundle:AgisOffreemploi')->find($offreId);
$offre->setOffreemploiDatemodification(date_create(date("Y-m-d H:i:s")));
if($offre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisOffreemploiType, $offre);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($offre);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_offre"),301);
}
}

View file

@ -1,239 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisOffresecteur;
use Agis\Commun\CommunBundle\Form\AgisOffresecteurType;
class BoOffresecteurController extends HelperController
{
const routes = "agisbo_agis_list_offresecteur,agisbo_agis_edit_offresecteur";
public function depublierOffresecteurAction($offresecteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$offresecteur = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->find($offresecteurId);
$offresecteur->setOffresecteurStatus(false);
$em->flush($offresecteur);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierOffresecteurAction($offresecteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$offresecteur = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->find($offresecteurId);
$offresecteur->setOffresecteurStatus(true);
$em->flush($offresecteur);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadOffresecteurListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$offresecteurs = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->getOffresecteurByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($offresecteurs)-1;
foreach ($offresecteurs as $offresecteur) {
$data = array ();
$offresecteurId = $offresecteur->getOffresecteurId();
$offresecteurStatus = $offresecteur->getOffresecteurStatus();
$offresecteurTitre = $offresecteur->getOffresecteurLibelle();
$statusBtn = '';
$actions = '';
$used = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->used($offresecteurId);
$offresecteurEscapedNom = $offresecteurTitre;
$offresecteurEscapedNom = addslashes($offresecteurEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($offresecteurStatus)
{
$offresecteurBtn = '<button class="offresecteur_update status published light" data-id="'.$offresecteurId.'">';
$offresecteurBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$offresecteurBtn = '<button class="offresecteur_update status unpublished light" data-id="'.$offresecteurId.'">';
$offresecteurBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="offresecteur_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_offresecteur', array('offresecteurId' => $offresecteurId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
if(!$used) $actions = $actions.'&nbsp;<button class="offresecteur_update light delete" data-id="'.$offresecteurId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$offresecteurTitre;
$data[] = $offresecteurBtn;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function deleteOffresecteurAction($offresecteurId)
{
$offresecteurId = intval($offresecteurId);
$em = $this->getDoctrine()->getEntityManager();
$offresecteur = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->find($offresecteurId);
if($offresecteur == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($offresecteur);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function editOffresecteurAction($offresecteurId)
{
$offresecteurId = intval($offresecteurId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($offresecteurId == '-1')
{
$offresecteur = new AgisOffresecteur();
} else {
$offresecteur = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->find($offresecteurId);
if($offresecteur == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisOffresecteurType, $offresecteur);
return $this->render('AgisBOAgisBundle:Offresecteur:editOffresecteur.html.twig' , array( 'form' => $form->createView(), 'offresecteurId' => $offresecteurId ));
}
public function listOffresecteurAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Offresecteur:listOffresecteur.html.twig');
}
public function saveOffresecteurAction($offresecteurId)
{
$offresecteurId = intval($offresecteurId);
$em = $this->getDoctrine()->getEntityManager();
if($offresecteurId == '-1')
{
$offresecteur = new AgisOffresecteur();
$offresecteur->setOffresecteurDatecreation(date_create(date("Y-m-d H:i:s")));
$offresecteur->setOffresecteurDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$offresecteur = $em->getRepository('AgisCommunCommunBundle:AgisOffresecteur')->find($offresecteurId);
$offresecteur->setOffresecteurDatemodification(date_create(date("Y-m-d H:i:s")));
if($offresecteur == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisOffresecteurType, $offresecteur);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($offresecteur);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_offresecteur"),301);
}
}

View file

@ -1,214 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisPage;
use Agis\Commun\CommunBundle\Form\AgisPageType;
class BoPageController extends HelperController
{
const routes = "agisbo_agis_list_page,agisbo_agis_edit_page";
public function depublierPageAction($pageId)
{
$em = $this->getDoctrine()->getEntityManager();
$page = $em->getRepository('AgisCommunCommunBundle:AgisPage')->find($pageId);
$page->setPageStatus(false);
$em->flush($page);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierPageAction($pageId)
{
$em = $this->getDoctrine()->getEntityManager();
$page = $em->getRepository('AgisCommunCommunBundle:AgisPage')->find($pageId);
$page->setPageStatus(true);
$em->flush($page);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadPageListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$pages = $em->getRepository('AgisCommunCommunBundle:AgisPage')->getPageByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($pages)-1;
foreach ($pages as $page) {
$data = array ();
$pageId = $page->getPagestandardId();
$pageTitre = $page->getPagestandardTitre();
$actions = '';
$pageEscapedNom = $pageTitre;
$pageEscapedNom = addslashes($pageEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$actions = $actions.'&nbsp;<button class="page_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_page', array('pageId' => $pageId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$data[] = $pageTitre;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editPageAction($pageId)
{
$pageId = intval($pageId);
$em = $this->getDoctrine()->getEntityManager();
if($pageId == '-1')
{
$page = new AgisPage();
} else {
$page = $em->getRepository('AgisCommunCommunBundle:AgisPage')->find($pageId);
if($page == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisPageType, $page);
return $this->render('AgisBOAgisBundle:Page:editPage.html.twig' , array( 'form' => $form->createView(), 'pageId' => $pageId ));
}
public function listPageAction()
{
$this->conditionalClearSeachHistory(self::routes);
return $this->render('AgisBOAgisBundle:Page:listPage.html.twig');
}
public function savePageAction($pageId)
{
$pageId = intval($pageId);
$em = $this->getDoctrine()->getEntityManager();
if($pageId == '-1')
{
$page = new AgisPage();
$page->setPagestandardDatecreation(date_create(date("Y-m-d H:i:s")));
$page->setPagestandardDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$page = $em->getRepository('AgisCommunCommunBundle:AgisPage')->find($pageId);
$page->setPagestandardDatemodification(date_create(date("Y-m-d H:i:s")));
if($page == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisPageType, $page);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($page);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_page"),301);
}
public function deletePageAction($pageId)
{
$pageId = intval($pageId);
$em = $this->getDoctrine()->getEntityManager();
$page = $em->getRepository('AgisCommunCommunBundle:AgisPage')->find($pageId);
if($page == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($page);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,240 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\BO\AgisBundle\Entity\Tool;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisPlanAcces;
use Agis\Commun\CommunBundle\Form\AgisPlanAccesType;
use Agis\Commun\CommunBundle\Fpdf17\WriteHtml;
class BoPlanAccesController extends HelperController
{
const routes = "agisbo_agis_list_plan_access,agisbo_agis_edit_plan_acces";
public function depublierPlanAction($planId)
{
$em = $this->getDoctrine()->getEntityManager();
$plan = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->find($planId);
$plan->setStatus(false);
$em->flush($plan);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierPlanAction($planId)
{
$em = $this->getDoctrine()->getEntityManager();
$plan = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->find($planId);
$plan->setStatus(true);
$em->flush($plan);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadPlanListAction()
{
$request = $this->container->get('request');
if ($request->isXmlHttpRequest()) {
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$s = $request->query->get('search');
$searchParams = json_decode($s);
$_searchParams = json_decode($s);
$totalRecords = 0;
if ($searchParams) {
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $_searchParams));
if ($searchParams->status != '1' && $searchParams->status != '0') {
$searchParams->status = null;
}
}
$em = $this->getDoctrine()->getEntityManager();
$plans = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->getPlanByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$remove_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath() . '/bundles/agisboagis/images/published.png';
/** @var AgisPlanAcces $plan */
foreach ($plans as $plan) {
$data = array();
$planId = $plan->getId();
$status = $plan->isStatus();
$planTitre = $plan->getNom();
$actions = '';
$space = ' ';
if ($status) {
$btnPlanStatus = '<button class="plan_update status published light" data-id="' . $planId . '">';
$btnPlanStatus .= '<img title="Dépublier" src="' . $unpublish_btn . '" /> </button>';
} else {
$btnPlanStatus = '<button class="plan_update status unpublished light" data-id="' . $planId . '">';
$btnPlanStatus .= '<img title="Publier" src="' . $publish_btn . '" /> </button>';
}
$actions = $actions . '&nbsp;<button class="plan_update light link_button" data-link="' . $this->generateUrl('agisbo_agis_edit_plan', array('planId' => $planId)) . '"><img title="Modifier" src="' . $edit_btn . '" /></button>';
$actions = $actions . '&nbsp;<button class="plan_update delete light" data-id="' . $planId . '"><img title="Supprimer" src="' . $remove_btn . '" /></button>';
$data[] = $space . $planTitre;
$data[] = $btnPlanStatus;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editPlanAction($planId)
{
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if (!$planId) {
$plan = new AgisPlanAcces();
} else {
$planId = intval($planId);
$plan = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->find($planId);
if ($plan == null) {
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if (is_file($path_image_resized_800x530 . $plan->getPhoto())) {
$visu = $plan->getPhoto();
}
}
$form = $this->createForm(new AgisPlanAccesType, $plan);
return $this->render('AgisBOAgisBundle:Plan:editPlan.html.twig', array('form' => $form->createView(), 'planId' => $planId,
'visu' => $visu));
}
public function listPlanAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if (!$args) {
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Plan:listPlan.html.twig', $args);
}
public function savePlanAction($planId)
{
$em = $this->getDoctrine()->getEntityManager();
if (!$planId) {
$plan = new AgisPlanAcces();
$plan->setDateCreation(date_create(date("Y-m-d H:i:s")));
$plan->setDatemModification(date_create(date("Y-m-d H:i:s")));
} else {
$planId = intval($planId);
$plan = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->find($planId);
$plan->setDatemModification(date_create(date("Y-m-d H:i:s")));
if ($plan == null) {
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm(new AgisPlanAccesType, $plan);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($plan);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_plan"), 301);
}
public function deletePlanAction($planId)
{
$planId = intval($planId);
$em = $this->getDoctrine()->getEntityManager();
$plan = $em->getRepository('AgisCommunCommunBundle:AgisPlanAcces')->find($planId);
if ($plan == null) {
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($plan);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,329 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisProduit;
use Agis\Commun\CommunBundle\Form\AgisProduitType;
class BoProduitController extends HelperController
{
/*
* upProduitOrderAction : Diminuer l'ordre du produit
*/
const routes = "agisbo_agis_list_produit,agisbo_agis_edit_produit";
public function upProduitOrderAction($produitId)
{
$em = $this->getDoctrine()->getEntityManager();
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
$produitPrevious = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->getPreviousById($produitId);
$this->echangerPlace($produit, $produitPrevious);
$em->flush($produit);
$em->flush($produitPrevious);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function downProduitOrderAction($produitId)
{
$em = $this->getDoctrine()->getEntityManager();
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
$produitNext = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->getNextById($produitId);
$this->echangerPlace($produit, $produitNext);
$em->flush($produit);
$em->flush($produitNext);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function depublierProduitAction($produitId)
{
$em = $this->getDoctrine()->getEntityManager();
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
$produit->setProduitStatus(false);
$em->flush($produit);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierProduitAction($produitId)
{
$em = $this->getDoctrine()->getEntityManager();
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
$produit->setProduitStatus(true);
$em->flush($produit);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadProduitListAction()
{
$this->conditionalClearSeachHistory(self::routes);
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
if($searchParams != '0' && $searchParams != '1') {
$searchParams = '';
}
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$produits = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->getProduitByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($produits)-1;
foreach ($produits as $produit) {
$data = array ();
$produitId = $produit->getProduitId();
$produitStatus = $produit->getProduitStatus();
$produitTitre = $produit->getProduitTitre();
$statusBtn = '';
$actions = '';
$produitEscapedNom = $produitTitre;
$produitEscapedNom = addslashes($produitEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($produitStatus)
{
$produitBtn = '<button class="produit_update status published light" data-id="'.$produitId.'">';
$produitBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$produitBtn = '<button class="produit_update status unpublished light" data-id="'.$produitId.'">';
$produitBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$down_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/icons/small/grey/bended_arrow_down.png';
$up_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/icons/small/grey/bended_arrow_up.png';
$down = '&nbsp;<button class="produit_update order down light" data-id="'.$produitId.'"><img title="Descendre" src="'.$down_btn.'" /></button>';
$up = '&nbsp;<button class="produit_update order up light" data-id="'.$produitId.'"><img title="Monter" src="'.$up_btn.'" /></button>';
if ($index == 0){
$up = '';
}
if($index == $lastIndex) {
$down = '';
}
$ordre = $up . $down;
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$actions = $actions.'&nbsp;<button class="produit_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_produit', array('produitId' => $produitId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="produit_update light delete" data-id="'.$produitId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$produitTitre;
$data[] = $produitBtn;
$data[] = $actions;
$data[] = $ordre;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editProduitAction($produitId)
{
$produitId = intval($produitId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($produitId == '-1')
{
$produit = new AgisProduit();
} else {
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
if($produit == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( is_file($path_image_resized_800x530.$produit->getProduitVisuel())){
$visu = $produit->getProduitVisuel();
}
}
$form = $this->createForm( new AgisProduitType, $produit);
return $this->render('AgisBOAgisBundle:Produit:editProduit.html.twig' , array( 'form' => $form->createView(), 'produitId' => $produitId,
'visu' => $visu ));
}
public function listProduitAction()
{
return $this->render('AgisBOAgisBundle:Produit:listProduit.html.twig');
}
public function saveProduitAction($produitId)
{
$produitId = intval($produitId);
$em = $this->getDoctrine()->getEntityManager();
if($produitId == '-1')
{
$produit = new AgisProduit();
$produit->setProduitDatecreation(date_create(date("Y-m-d H:i:s")));
$produit->setProduitDatemodification(date_create(date("Y-m-d H:i:s")));
$order = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->getMaxOrder();
if($order) {
$produit->setProduitOrdre($order+1);
} else
{
$produit->setProduitOrdre(0);
}
} else
{
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
$produit->setProduitDatemodification(date_create(date("Y-m-d H:i:s")));
if($produit == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisProduitType, $produit);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($produit);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_produit"),301);
}
public function deleteProduitAction($produitId)
{
$produitId = intval($produitId);
$em = $this->getDoctrine()->getEntityManager();
$produit = $em->getRepository('AgisCommunCommunBundle:AgisProduit')->find($produitId);
if($produit == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($produit);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
private function echangerPlace(&$produit1, &$produit2)
{
if($produit1 == null || $produit2 == null ) return null;
$produit1Ordre = $produit1->getProduitOrdre();
$produit1->setProduitOrdre($produit2->getProduitOrdre());
$produit2->setProduitOrdre($produit1Ordre);
}
}

View file

@ -1,137 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Form\AgisRubriqueType;
class BoRubriqueController extends HelperController
{
const routes = "agisbo_agis_list_rubrique,agisbo_agis_edit_rubrique";
public function ajaxLoadRubriqueListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$rubriques = $em->getRepository('AgisCommunCommunBundle:AgisRubrique')->getRubriqueByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
foreach ($rubriques as $rubrique) {
$data = array ();
$rubriqueId = $rubrique->getRubriqueId();
$rubriqueNiv = $rubrique->getRubriqueNiveau();
$rubriqueTitre = $rubrique->getRubriqueTitre();
$actions = '';
$rubriqueEscapedNom = $rubriqueTitre;
$rubriqueEscapedNom = addslashes($rubriqueEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' '; $remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
for($i = 0; $i<$rubriqueNiv-1 ; $i++)
{
$space.= '<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
}
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$actions = $actions.'&nbsp;<button class="rubrique_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_rubrique', array('rubriqueId' => $rubriqueId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$data[] = $space.$rubriqueTitre;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editRubriqueAction($rubriqueId)
{
$rubriqueId = intval($rubriqueId);
$em = $this->getDoctrine()->getEntityManager();
$rubrique = $em->getRepository('AgisCommunCommunBundle:AgisRubrique')->find($rubriqueId);
if($rubrique == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$form = $this->createForm( new AgisRubriqueType, $rubrique);
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( !is_file($path_image_resized_800x530.$rubrique->getRubriquevisuel())){
$visu = '';
} else {
$visu = $rubrique->getRubriquevisuel();
}
return $this->render('AgisBOAgisBundle:Rubrique:editRubrique.html.twig' , array( 'form' => $form->createView(), 'rubriqueId' => $rubriqueId,
'visu' => $visu ));
}
public function listRubriqueAction()
{
$this->conditionalClearSeachHistory(self::routes);
return $this->render('AgisBOAgisBundle:Rubrique:listRubrique.html.twig');
}
public function saveRubriqueAction($rubriqueId)
{
$rubriqueId = intval($rubriqueId);
$em = $this->getDoctrine()->getEntityManager();
$rubrique = $em->getRepository('AgisCommunCommunBundle:AgisRubrique')->find($rubriqueId);
if($rubrique == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$form = $this->createForm( new AgisRubriqueType, $rubrique);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$rubrique->updateSlug();
$em->persist($rubrique);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_rubrique"),301);
}
}

View file

@ -1,281 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisSecteurgeographique;
use Agis\Commun\CommunBundle\Form\AgisSecteurgeographiqueType;
class BoSecteurController extends HelperController
{
/*
* upSecteurOrderAction : Diminuer l'ordre du secteur
*/
const routes = "agisbo_agis_list_secteur,agisbo_agis_edit_secteur";
public function upSecteurOrderAction($secteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
$secteurPrevious = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->getPreviousById($secteurId);
$this->echangerPlace($secteur, $secteurPrevious);
$em->flush($secteur);
$em->flush($secteurPrevious);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function downSecteurOrderAction($secteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
$secteurNext = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->getNextById($secteurId);
$this->echangerPlace($secteur, $secteurNext);
$em->flush($secteur);
$em->flush($secteurNext);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function depublierSecteurAction($secteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
$secteur->setSecteurStatus(false);
$em->flush($secteur);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierSecteurAction($secteurId)
{
$em = $this->getDoctrine()->getEntityManager();
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
$secteur->setSecteurStatus(true);
$em->flush($secteur);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadSecteurListAction()
{
$this->conditionalClearSeachHistory(self::routes);
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$secteurs = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->getSecteurByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($secteurs)-1;
foreach ($secteurs as $secteur) {
$data = array ();
$secteurId = $secteur->getSecteurId();
$secteurStatus = $secteur->getSecteurStatus();
$secteurTitre = $secteur->getSecteurTitre();
$statusBtn = '';
$actions = '';
$secteurEscapedNom = $secteurTitre;
$secteurEscapedNom = addslashes($secteurEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($secteurStatus)
{
$secteurBtn = '<button class="secteur_update status published light" data-id="'.$secteurId.'">';
$secteurBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$secteurBtn = '<button class="secteur_update status unpublished light" data-id="'.$secteurId.'">';
$secteurBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$down_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/icons/small/grey/bended_arrow_down.png';
$up_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/icons/small/grey/bended_arrow_up.png';
$down = '&nbsp;<button class="secteur_update order down light" data-id="'.$secteurId.'"><img title="Descendre" src="'.$down_btn.'" /></button>';
$up = '&nbsp;<button class="secteur_update order up light" data-id="'.$secteurId.'"><img title="Monter" src="'.$up_btn.'" /></button>';
if ($index == 0){
$up = '';
}
if($index == $lastIndex) {
$down = '';
}
$ordre = $up . $down;
$actions = $actions.'&nbsp;<button class="secteur_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_secteur', array('secteurId' => $secteurId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$data[] = $space.$secteurTitre;
//$data[] = $secteurBtn;
$data[] = $actions;
$data[] = $ordre;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editSecteurAction($secteurId)
{
$secteurId = intval($secteurId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
if($secteur == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_800x530 = $this->container->getParameter('path_image_resized_800x530');
if( is_file($path_image_resized_800x530.$secteur->getSecteurVisuel())){
$visu = $secteur->getSecteurVisuel();
}
$form = $this->createForm( new AgisSecteurgeographiqueType, $secteur);
return $this->render('AgisBOAgisBundle:Secteur:editSecteur.html.twig' , array( 'form' => $form->createView(), 'secteurId' => $secteurId,
'visu' => $visu ));
}
public function listSecteurAction()
{
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Secteur:listSecteur.html.twig', $args);
}
public function saveSecteurAction($secteurId)
{
$secteurId = intval($secteurId);
$em = $this->getDoctrine()->getEntityManager();
$secteur = $em->getRepository('AgisCommunCommunBundle:AgisSecteurgeographique')->find($secteurId);
$secteur->setSecteurDatemodification(date_create(date("Y-m-d H:i:s")));
if($secteur == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$form = $this->createForm( new AgisSecteurgeographiqueType, $secteur);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($secteur);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_secteur"),301);
}
private function echangerPlace(&$secteur1, &$secteur2)
{
if($secteur1 == null || $secteur2 == null ) return null;
$secteur1Ordre = $secteur1->getSecteurOrdre();
$secteur1->setSecteurOrdre($secteur2->getSecteurOrdre());
$secteur2->setSecteurOrdre($secteur1Ordre);
}
}

View file

@ -1,247 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisSlider;
use Agis\Commun\CommunBundle\Form\AgisSliderType;
class BoSliderController extends HelperController
{
const routes = "agisbo_agis_list_slider,agisbo_agis_edit_slider";
public function depublierSliderAction($sliderId)
{
$em = $this->getDoctrine()->getEntityManager();
$slider = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->find($sliderId);
$slider->setSliderStatus(false);
$em->flush($slider);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierSliderAction($sliderId)
{
$em = $this->getDoctrine()->getEntityManager();
$slider = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->find($sliderId);
$slider->setSliderStatus(true);
$em->flush($slider);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadSliderListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$search = $request->query->get('search');
$searchParams = $request->query->get('filter');
$search = json_decode($search);
$searchParams = array(
'titre' => $search[0],
'status' => $search[1]
);
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$sliders = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->getSliderByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
foreach ($sliders as $slider) {
$data = array ();
$sliderId = $slider->getSliderId();
$sliderStatus = $slider->getSliderStatus();
$sliderTextblanc = $slider->getSliderTexteblanc();
$sliderTitre = $slider->getSliderTitre();
$statusBtn = '';
$actions = '';
$sliderEscapedNom = $sliderTitre;
$sliderEscapedNom = addslashes($sliderEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($sliderStatus)
{
$statusBtn = '<button class="slider_update status published light" data-id="'.$sliderId.'">';
$statusBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$statusBtn = '<button class="slider_update status unpublished light" data-id="'.$sliderId.'">';
$statusBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="slider_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_slider', array('sliderId' => $sliderId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
$actions = $actions.'&nbsp;<button class="slider_update light delete" data-id="'.$sliderId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$sliderTitre;
$data[] = $statusBtn;
$data[] = $actions;
$output['aaData'][] = $data;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function editSliderAction($sliderId)
{
$sliderId = intval($sliderId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($sliderId == '-1')
{
$slider = new AgisSlider();
} else {
$slider = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->find($sliderId);
if($slider == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$path_image_resized_900x250 = $this->container->getParameter('path_image_resized_900x250');
if( is_file($path_image_resized_900x250.$slider->getSliderimage())){
$visu = $slider->getSliderimage();
}
}
$form = $this->createForm( new AgisSliderType, $slider);
return $this->render('AgisBOAgisBundle:Slider:editSlider.html.twig' , array( 'form' => $form->createView(), 'sliderId' => $sliderId,
'visu' => $visu ));
}
public function listSliderAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Slider:listSlider.html.twig', $args);
}
public function saveSliderAction($sliderId)
{
$sliderId = intval($sliderId);
$em = $this->getDoctrine()->getEntityManager();
if($sliderId == '-1')
{
$slider = new AgisSlider();
} else
{
$slider = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->find($sliderId);
if($slider == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisSliderType, $slider);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($slider);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_slider"),301);
}
public function deleteSliderAction($sliderId)
{
$sliderId = intval($sliderId);
$em = $this->getDoctrine()->getEntityManager();
$slider = $em->getRepository('AgisCommunCommunBundle:AgisSlider')->find($sliderId);
if($slider == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($slider);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,246 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisTypeoffre;
use Agis\Commun\CommunBundle\Form\AgisTypeoffreType;
class BoTypeoffreController extends HelperController
{
const routes = "agisbo_agis_list_typeoffre,agisbo_agis_edit_typeoffre";
public function depublierTypeoffreAction($typeoffreId)
{
$em = $this->getDoctrine()->getEntityManager();
$typeoffre = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->find($typeoffreId);
$typeoffre->setTypeoffreStatus(false);
$em->flush($typeoffre);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function publierTypeoffreAction($typeoffreId)
{
$em = $this->getDoctrine()->getEntityManager();
$typeoffre = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->find($typeoffreId);
$typeoffre->setTypeoffreStatus(true);
$em->flush($typeoffre);
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function ajaxLoadTypeoffreListAction()
{
$request = $this->container->get('request');
if($request->isXmlHttpRequest())
{
$displayLength = $request->query->get('iDisplayLength');
$displayStart = $request->query->get('iDisplayStart');
$sortingCols = $request->query->get('iSortingCols');
$sortField = $request->query->get('iSortCol_0');
$sortDirection = $request->query->get('sSortDir_0');
$searchParams = $request->query->get('search');
$searchParams = $request->query->get('filter');
$totalRecords = 0;
$em = $this->getDoctrine()->getEntityManager();
$this->setFlash($this->__toString(), array('sortField' => $sortField, 'sortDirection' => $sortDirection, 'totalRecords' => $totalRecords, 'displayStart' => $displayStart, 'displayLength' => $displayLength, 'searchParams' => $searchParams, 'searchParams' => $searchParams));
$typeoffres = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->getTypeoffreByFilter($sortField, $sortDirection, $totalRecords, $displayStart, $displayLength, $searchParams);
$output = array(
"sEcho" => intval($request->query->get('sEcho')),
"iTotalRecords" => $totalRecords,
"iTotalDisplayRecords" => $totalRecords,
"aaData" => array()
);
$index = 0;
$lastIndex = count($typeoffres)-1;
foreach ($typeoffres as $typeoffre) {
$data = array ();
$typeoffreId = $typeoffre->getTypeoffreId();
$typeoffreStatus = $typeoffre->getTypeoffreStatus();
$typeoffreTitre = $typeoffre->getTypeoffreLibelle();
$statusBtn = '';
$actions = '';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$used = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->used($typeoffreId);
$typeoffreEscapedNom = $typeoffreTitre;
$typeoffreEscapedNom = addslashes($typeoffreEscapedNom);
$disabedStr = 'disabled';
$grey = 'grey';
$space = ' ';
$remove_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/remove.png';
$edit_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/edit.png';
$publish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/unpublished.png';
$unpublish_btn = $this->getRequest()->getBasePath(). '/bundles/agisboagis/images/published.png';
if($typeoffreStatus)
{
$typeoffreBtn = '<button class="typeoffre_update status published light" data-id="'.$typeoffreId.'">';
$typeoffreBtn.= '<img title="Dépublier" src="'.$unpublish_btn.'" /> </button>';
} else
{
$typeoffreBtn = '<button class="typeoffre_update status unpublished light" data-id="'.$typeoffreId.'">';
$typeoffreBtn.= '<img title="Publier" src="'.$publish_btn.'" /> </button>';
}
$actions = $actions.'&nbsp;<button class="typeoffre_update link_button light" data-link="'.$this->generateUrl('agisbo_agis_edit_typeoffre', array('typeoffreId' => $typeoffreId)).'"><img title="Modifier" src="'.$edit_btn.'" /></button>';
if(!$used) $actions = $actions.'&nbsp;<button class="typeoffre_update light delete" data-id="'.$typeoffreId.'"><img title="Supprimer" src="'.$remove_btn.'" /></button>';
$data[] = $space.$typeoffreTitre;
$data[] = $typeoffreBtn;
$data[] = $actions;
$output['aaData'][] = $data;
$index++;
}
}
$resp = json_encode($output);
$response = new Response($resp);
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'application/json');
return $response;
}
public function deleteTypeoffreAction($typeoffreId)
{
$typeoffreId = intval($typeoffreId);
$em = $this->getDoctrine()->getEntityManager();
$typeoffre = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->find($typeoffreId);
if($typeoffre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
$em->remove($typeoffre);
$em->flush();
$data = array('status' => 'ok');
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function editTypeoffreAction($typeoffreId)
{
$typeoffreId = intval($typeoffreId);
$em = $this->getDoctrine()->getEntityManager();
$visu = '';
if($typeoffreId == '-1')
{
$typeoffre = new AgisTypeoffre();
} else {
$typeoffre = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->find($typeoffreId);
if($typeoffre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisTypeoffreType, $typeoffre);
return $this->render('AgisBOAgisBundle:Typeoffre:editTypeoffre.html.twig' , array( 'form' => $form->createView(), 'typeoffreId' => $typeoffreId ));
}
public function listTypeoffreAction()
{
$this->conditionalClearSeachHistory(self::routes);
$args = $this->getFlash($this->__toString());
if(!$args)
{
$args = $this->container->getParameter('filterArray');
}
return $this->render('AgisBOAgisBundle:Typeoffre:listTypeoffre.html.twig', $args);
}
public function saveTypeoffreAction($typeoffreId)
{
$typeoffreId = intval($typeoffreId);
$em = $this->getDoctrine()->getEntityManager();
if($typeoffreId == '-1')
{
$typeoffre = new AgisTypeoffre();
$typeoffre->setTypeoffreDatecreation(date_create(date("Y-m-d H:i:s")));
$typeoffre->setTypeoffreDatemodification(date_create(date("Y-m-d H:i:s")));
} else
{
$typeoffre = $em->getRepository('AgisCommunCommunBundle:AgisTypeoffre')->find($typeoffreId);
$typeoffre->setTypeoffreDatemodification(date_create(date("Y-m-d H:i:s")));
if($typeoffre == null)
{
throw $this->createNotFoundException("Page non trouvée");
}
}
$form = $this->createForm( new AgisTypeoffreType, $typeoffre);
if ($this->getRequest()->getMethod() == 'POST') {
$form->bind($this->getRequest());
$em->persist($typeoffre);
$em->flush();
}
return $this->redirect($this->generateUrl("agisbo_agis_list_typeoffre"),301);
}
}

View file

@ -1,468 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\AgisBackground;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
class DefaultController extends HelperController
{
public function clearSearchHistoryAction()
{
$request = $this->getRequest();
$session = $request->getSession();
$sessions = $session->all();
$sessions = array_keys($sessions);
for ($i = 0; $i < count($sessions); $i++) {
if (preg_match('/^Bo[a-z]{1,}Controller$/i', $sessions[$i])) {
$session->remove($sessions[$i]);
}
};
die('cleared');
}
public function uploadVisuAction()
{
$path_web = $this->container->getParameter('path_web');
$path_image_uploaded = $this->container->getParameter($this->getRequest()->request->get('path'));
$path_image_resized = $this->container->getParameter('path_image_resized_800x530');
$width_resize = $this->container->getParameter('width_resize_default');
$height_resize = $this->container->getParameter('height_resize_default');
$isBg = false;
$request = $this->getRequest();
$referer = $request->headers->get('referer');
if (preg_match("/admin\/slider\/edit\/[0-9]{1,}$/", $referer) > 0) {
$width_resize = $this->container->getParameter('width_resize_slider');
$height_resize = $this->container->getParameter('height_resize_slider');
} else if (preg_match("/admin\/bg-images$/", $referer) > 0) {
$width_resize = $this->container->getParameter('width_resize_background');
$height_resize = $this->container->getParameter('height_resize_background');
$path_image_resized = $this->container->getParameter('path_bg');
$isBg = true;
}
// On récupération notre paramêtre file
$file = $this->getRequest()->request->get('file');
$filename = basename($file);
$destName = $filename;
if ($isBg) {
$destName = 'bg-' . $filename;
$background = new AgisBackground();
$background->setBackgroundImage($destName);
$background->setBackgroundStatus(true);
$em = $this->getDoctrine()->getEntityManager();
$em->persist($background);
$em->flush($background);
}
CCommonTools::resizePicture(
__DIR__ . $path_web . $path_image_uploaded . $filename,
__DIR__ . $path_web . $path_image_resized . $destName, $width_resize, $height_resize);
CCommonTools::cropThumbnail(
__DIR__ . $path_web . $path_image_resized . $destName, $height_resize);
$data = array('filename' => $destName);
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function currentUserAction()
{
$currentUser = $this->getUser();
if ($currentUser) {
return new Response($currentUser->getUsername());
} else {
return new Response("Administrateur");
}
}
public function publishBgAction($image)
{
$em = $this->getDoctrine()->getEntityManager();
$background = $em->getRepository('AgisCommunCommunBundle:AgisBackground')->findOneBy(array('backgroundImage' => $image));
if ($background) {
$background->setBackgroundStatus(true);
$em->persist($background);
$em->flush();
$data = array('status' => 'ok');
} else {
$data = array('status' => 'background introuvable');
}
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function unpublishBgAction($image)
{
$em = $this->getDoctrine()->getEntityManager();
$background = $em->getRepository('AgisCommunCommunBundle:AgisBackground')->findOneBy(array('backgroundImage' => $image));
if ($background) {
$background->setBackgroundStatus(false);
$em->persist($background);
$em->flush();
$data = array('status' => 'ok');
} else {
$data = array('status' => 'background introuvable');
}
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function deleteBgAction($image)
{
$em = $this->getDoctrine()->getEntityManager();
$background = $em->getRepository('AgisCommunCommunBundle:AgisBackground')->findOneBy(array('backgroundImage' => $image));
if ($background) {
$em->remove($background);
$em->flush();
}
$path_web = $this->container->getParameter('path_web');
$path_bg = $this->container
->getParameter('path_bg');
$fullpath = __DIR__ . $path_web . $path_bg . $image;
if (file_exists($fullpath) && unlink($fullpath)) {
$data = array('status' => 'ok');
} else {
$data = array('status' => 'delete failed');
}
$response = new Response(json_encode($data));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
public function indexAction()
{
return $this->redirect($this->generateUrl("agisbo_agis_list_actualite"), 301);
//return $this->render('AgisBOAgisBundle:Default:base.html.twig');
}
public function test1Action()
{
return $this->render('AgisBOAgisBundle:Default:test.html.twig');
}
public function galleryBgAction()
{
return $this->render('AgisBOAgisBundle:Default:bgGallery.html.twig');
}
public function renderImagesAction()
{
$em = $this->getDoctrine()->getEntityManager();
$finder = new Finder();
$path = $this->container->getParameter('path_bg');
$images = array();
$finder->name('bg-*.png')->name('bg-*.jpg')->files()->in($path);
foreach ($finder as $file) {
$realPath = $file->getRealpath();
$path = basename($realPath);
$background = $em->getRepository('AgisCommunCommunBundle:AgisBackground')->findOneBy(array('backgroundImage' => $path));
if ($background) {
array_push($images,
(object)array(
'published' => $background->getBackgroundStatus(),
'path' => basename($realPath),
'size' => filesize($realPath)));
}
}
return $this
->render('AgisBOAgisBundle:Default:bgImages.html.twig',
array('images' => $images));
}
public function generateMenusAction($route)
{
$tMenus = array();
$em = $this->getDoctrine()->getEntityManager();
$tMenus['general'] = array('url' => '#', 'nom' => 'Général',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/shuffle.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array(
array(
'url' => $this
->generateUrl("agisbo_agis_gallery_bg"),
'nom' => 'Background'),
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_rubrique"),
'nom' => 'Rubriques')));
$tMenus['news'] = array(
'url' => $this->generateUrl("agisbo_agis_list_actualite"),
'nom' => 'Actualités',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['produit'] = array(
'url' => $this->generateUrl("agisbo_agis_list_produit"),
'nom' => 'Produits',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['page'] = array(
'url' => $this->generateUrl("agisbo_agis_list_page"),
'nom' => 'Pages',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['catalogue'] = array(
'url' => $this->generateUrl("agisbo_agis_list_catalogue"),
'nom' => 'Catalogues',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['plan'] = array(
'url' => $this->generateUrl("agisbo_agis_list_plan"),
'nom' => 'Plan d\'accès',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['atelier'] = array(
'url' => $this->generateUrl("agisbo_agis_list_atelier"),
'nom' => 'Ateliers',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/document.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
$tMenus['Accueil'] = array('url' => '#', 'nom' => 'Accueil',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/shuffle.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array(
array(
'url' => $this
->generateUrl("agisbo_agis_list_slider"),
'nom' => 'Sliders')));
$tMenus['Gestion_force_de_vente'] = array('url' => '#',
'nom' => 'Force de vente',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/shuffle.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array(
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_commercial"),
'nom' => 'Commerciaux'),
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_secteur"),
'nom' => 'Secteurs géographiques')));
$tMenus['offres'] = array('url' => '#', 'nom' => "Offres d'emplois",
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/shuffle.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array(
array(
'url' => $this
->generateUrl("agisbo_agis_list_offre"),
'nom' => 'Offres'),
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_offresecteur"),
'nom' => "Secteurs d'activités"),
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_contrat"),
'nom' => 'Types de contrat'),
array(
'url' => $this
->generateUrl(
"agisbo_agis_list_typeoffre"),
'nom' => "Types d'offres")));
// Utilisateurs
if ($this->get('security.context')->isGranted('ROLE_SUPER_ADMIN')) {
$tMenus['user'] = array(
'url' => '#',
'nom' => 'Utilisateurs',
'image' => $this->container->get('templating.helper.assets')->getUrl('bundles/agisboagis/images/icons/small/grey/users.png'),
'class' => '',
'style' => '',
'alert' => '',
'SousMenu' => array(
array(
'url' => $this->generateUrl("bo_utilisateur_liste"),
'nom' => 'Liste des utilisateurs'
)
)
);
}
$tMenus['home'] = array(
'url' => $this->generateUrl("agisfo_agis_homepage"),
'targetBlanc' => true,
'nom' => 'Site agis-sa.fr',
'image' => $this->container->get('templating.helper.assets')
->getUrl(
'bundles/agisboagis/images/icons/small/grey/sign_post.png'),
'class' => '', 'style' => '', 'alert' => '',
'SousMenu' => array());
switch ($route) {
case 'agisbo_agis_list_actualite':
case 'agisbo_agis_edit_actualite':
$tMenus['news']['class'] = 'current';
break;
case 'agisbo_agis_list_produit':
case 'agisbo_agis_edit_produit':
$tMenus['produit']['class'] = 'current';
break;
case 'agisbo_agis_gallery_bg':
case 'agisbo_agis_list_rubrique':
case 'agisbo_agis_edit_rubrique':
$tMenus['general']['class'] = 'current';
break;
case 'agisbo_agis_list_slider':
case 'agisbo_agis_edit_slider':
$tMenus['Accueil']['class'] = 'current';
break;
case 'agisbo_agis_edit_commercial':
case 'agisbo_agis_list_commercial':
case 'agisbo_agis_list_secteur':
case 'agisbo_agis_edit_secteur':
$tMenus['Gestion_force_de_vente']['class'] = 'current';
break;
case 'agisbo_agis_list_catalogue':
case 'agisbo_agis_edit_catalogue':
$tMenus['catalogue']['class'] = 'current';
break;
case 'agisbo_agis_list_page':
case 'agisbo_agis_edit_page':
$tMenus['page']['class'] = 'current';
break;
case 'agisbo_agis_list_offre':
case 'agisbo_agis_edit_offre':
case 'agisbo_agis_list_offresecteur':
case 'agisbo_agis_edit_offresecteur':
case 'agisbo_agis_list_contrat':
case 'agisbo_agis_edit_contrat':
case 'agisbo_agis_list_typeoffre':
case 'agisbo_agis_edit_typeoffre':
$tMenus['offres']['class'] = 'current';
break;
case 'agisfo_agis_homepage':
$tMenus['home']['class'] = 'current';
break;
case 'bo_utilisateur_liste':
case 'fos_user_change_password':
case 'fos_user_profile_show':
case 'fos_user_profile_edit':
$tMenus['user']['class'] = 'current';
break;
}
$response = $this
->render('AgisBOAgisBundle:Default:menus.html.twig',
array('tMenus' => $tMenus));
$date = new \DateTime();
$response->setPrivate();
$response->setExpires($date->modify('-1 second'));
$response->headers->set('cache-control', 'no-cache');
$response->headers->set('Content-Type', 'text/html');
return $response;
}
}

View file

@ -1,70 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\Controller;
use Agis\BO\AgisBundle\Entity\Tool;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo as SplFileInfo;
use Agis\Commun\CommunBundle\Entity\CCommonTools;
use Agis\Commun\CommunBundle\Entity\AgisActualite;
use Agis\Commun\CommunBundle\Form\AgisActualiteType;
use Agis\Commun\CommunBundle\Fpdf17\WriteHtml;
class HelperController extends Controller
{
public function setFlash($key, $value) {
$request = $this->getRequest();
$bag = $request->getSession();
$bag->set($key, $value);
$bag->set('lastView', $key);
}
public function getFlash($key) {
$request = $this->getRequest();
$bag = $request->getSession();
if($bag->has($key)) {
$ret = $bag->get($key);
return $ret;
} else
return null;
}
public function clearSearchHistory()
{
$request = $this->getRequest();
$session = $request->getSession();
$sessions = $session->all();
$sessions = array_keys($sessions);
for($i = 0; $i<count($sessions); $i++)
{
if(preg_match('/^Bo[a-z]{1,}Controller$/i', $sessions[$i]))
{
$session->remove($sessions[$i]);
}
}
}
public function conditionalClearSeachHistory($routes)
{
$request = $this->getRequest();
$session = $request->getSession();
$lastView = $session->get('lastView');
if($lastView && $lastView!= $this->__toString()) {
$this->clearSearchHistory();
}
}
public function __toString() {
$class = explode('\\', get_class($this) );
return end($class);
}
}

View file

@ -1,29 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('agisbo_agis');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}

View file

@ -1,28 +0,0 @@
<?php
namespace Agis\BO\AgisBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that loads and manages your bundle configuration
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
*/
class AgisBOAgisExtension extends Extension
{
/**
* {@inheritDoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
}
}

View file

@ -1,81 +0,0 @@
agisbo_agis_atelier:
resource: "@AgisBOAgisBundle/Resources/config/routing/atelier.yml"
agisbo_agis_plan:
resource: "@AgisBOAgisBundle/Resources/config/routing/plan_acces.yml"
agisbo_agis_offre:
resource: "@AgisBOAgisBundle/Resources/config/routing/offre.yml"
agisbo_agis_typeoffre:
resource: "@AgisBOAgisBundle/Resources/config/routing/typeoffre.yml"
agisbo_agis_offresecteur:
resource: "@AgisBOAgisBundle/Resources/config/routing/offresecteur.yml"
agisbo_agis_page:
resource: "@AgisBOAgisBundle/Resources/config/routing/page.yml"
agisbo_agis_contrat:
resource: "@AgisBOAgisBundle/Resources/config/routing/contrat.yml"
agisbo_agis_catalogue:
resource: "@AgisBOAgisBundle/Resources/config/routing/catalogue.yml"
agisbo_agis_secteur:
resource: "@AgisBOAgisBundle/Resources/config/routing/secteur.yml"
agisbo_agis_commercial:
resource: "@AgisBOAgisBundle/Resources/config/routing/commercial.yml"
agisbo_agis_produit:
resource: "@AgisBOAgisBundle/Resources/config/routing/produit.yml"
agisbo_agis_news:
resource: "@AgisBOAgisBundle/Resources/config/routing/actualite.yml"
agisbo_agis_slider:
resource: "@AgisBOAgisBundle/Resources/config/routing/slider.yml"
agisbo_agis_rubrique:
resource: "@AgisBOAgisBundle/Resources/config/routing/rubrique.yml"
agisbo_agis_upload_visu:
pattern: /admin/upload/visu
defaults: { _controller: AgisBOAgisBundle:Default:uploadVisu }
agisbo_agis_homepage:
pattern: /admin
defaults: { _controller: AgisBOAgisBundle:Default:index }
agisbo_agis_gallery_bg:
pattern: /admin/bg-images
defaults: { _controller: AgisBOAgisBundle:Default:galleryBg}
agisbo_agis_background_delete:
pattern: /admin/background/{image}/delete
defaults: { _controller: AgisBOAgisBundle:Default:deleteBg}
agisbo_agis_background_publish:
pattern: /admin/background/{image}/publish
defaults: { _controller: AgisBOAgisBundle:Default:publishBg}
agisbo_agis_background_unpublish:
pattern: /admin/background/{image}/unpublish
defaults: { _controller: AgisBOAgisBundle:Default:unpublishBg}
agisbo_agis_gallery_bg_html:
pattern: /admin/bg-images-html
defaults: { _controller: AgisBOAgisBundle:Default:renderImages}
agisbo_agis_login:
pattern: /admin/login
defaults: { _controller: AgisBoUserBundle:Security:login }
agisbo_agis_upload_bg:
pattern: /admin/upload/background
defaults: { _controller: AgisBOAgisBundle:Default:uploadBackground }
agisbo_agis_search_history:
pattern: /admin/search/history/clear
defaults: { _controller: AgisBOAgisBundle:Default:clearSearchHistory }

View file

@ -1,37 +0,0 @@
agisbo_agis_list_actualite:
pattern: /admin/actualite/list
defaults: { _controller: AgisBOAgisBundle:BoActualite:listActualite }
agisbo_agis_edit_actualite:
pattern: /admin/actualite/edit/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:editActualite, actualiteId:null}
agisbo_agis_save_actualite:
pattern: /admin/actualite/save/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:saveActualite, actualiteId:null}
agisbo_agis_delete_actualite:
pattern: /admin/actualite/delete/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:deleteActualite}
agisbo_agis_actualite_upload_visu:
pattern: /admin/actualite/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoActualite:uploadVisu}
agisbo_agis_actualite_generate_pdf:
pattern: /admin/generate/pdf/actualite/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:generatePdf }
requirements: { _format: pdf }
agisbo_agis_actualite_ajaxLoad:
pattern: /admin/ajaxLoadActualiteList
defaults: { _controller: AgisBOAgisBundle:BoActualite:ajaxLoadActualiteList }
requirements: { _format: json }
agisbo_agis_publier_actualite:
pattern: /admin/actualite/publier/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:publierActualite }
agisbo_agis_depublier_actualite:
pattern: /admin/actualite/depublier/{actualiteId}
defaults: { _controller: AgisBOAgisBundle:BoActualite:depublierActualite }

View file

@ -1,32 +0,0 @@
agisbo_agis_list_atelier:
pattern: /admin/atelier/list
defaults: { _controller: AgisBOAgisBundle:BoAtelier:listAtelier }
agisbo_agis_edit_atelier:
pattern: /admin/atelier/edit/{atelierId}
defaults: { _controller: AgisBOAgisBundle:BoAtelier:editAtelier, atelierId:null}
agisbo_agis_save_atelier:
pattern: /admin/atelier/save/{atelierId}
defaults: { _controller: AgisBOAgisBundle:BoAtelier:saveAtelier, atelierId:null}
agisbo_agis_delete_atelier:
pattern: /admin/atelier/delete/{atelierId}
defaults: { _controller: AgisBOAgisBundle:BoAtelier:deleteAtelier}
agisbo_agis_atelier_upload_visu:
pattern: /admin/atelier/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoAtelier:uploadVisu}
agisbo_agis_atelier_ajaxLoad:
pattern: /admin/ajaxLoadAtelierList
defaults: { _controller: AgisBOAgisBundle:BoAtelier:ajaxLoadAtelierList }
requirements: { _format: json }
agisbo_agis_publier_atelier:
pattern: /admin/atelier/publier/{atelierId}
defaults: { _controller: AgisBOAgisBundle:BoAtelier:publierAtelier }
agisbo_agis_depublier_atelier:
pattern: /admin/atelier/depublier/{atelierId}
defaults: { _controller: AgisBOAgisBundle:BoAtelier:depublierAtelier }

View file

@ -1,32 +0,0 @@
agisbo_agis_list_catalogue:
pattern: /admin/catalogue/list
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:listCatalogue }
agisbo_agis_edit_catalogue:
pattern: /admin/catalogue/edit/{catalogueId}
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:editCatalogue}
agisbo_agis_save_catalogue:
pattern: /admin/catalogue/save/{catalogueId}
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:saveCatalogue}
agisbo_agis_delete_catalogue:
pattern: /admin/catalogue/delete/{catalogueId}
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:deleteCatalogue}
agisbo_agis_catalogue_upload_visu:
pattern: /admin/catalogue/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:uploadVisu}
agisbo_agis_catalogue_ajaxLoad:
pattern: /admin/ajaxLoadCatalogueList
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:ajaxLoadCatalogueList }
requirements: { _format: json }
agisbo_agis_publier_catalogue:
pattern: /admin/catalogue/publier/{catalogueId}
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:publierCatalogue}
agisbo_agis_depublier_catalogue:
pattern: /admin/catalogue/depublier/{catalogueId}
defaults: { _controller: AgisBOAgisBundle:BoCatalogue:depublierCatalogue}

View file

@ -1,32 +0,0 @@
agisbo_agis_list_commercial:
pattern: /admin/commercial/list
defaults: { _controller: AgisBOAgisBundle:BoCommercial:listCommercial }
agisbo_agis_edit_commercial:
pattern: /admin/commercial/edit/{commercialId}
defaults: { _controller: AgisBOAgisBundle:BoCommercial:editCommercial}
agisbo_agis_save_commercial:
pattern: /admin/commercial/save/{commercialId}
defaults: { _controller: AgisBOAgisBundle:BoCommercial:saveCommercial}
agisbo_agis_publier_commercial:
pattern: /admin/commercial/publier/{commercialId}
defaults: { _controller: AgisBOAgisBundle:BoCommercial:publierCommercial}
agisbo_agis_depublier_commercial:
pattern: /admin/commercial/depublier/{commercialId}
defaults: { _controller: AgisBOAgisBundle:BoCommercial:depublierCommercial}
agisbo_agis_delete_commercial:
pattern: /admin/commercial/delete/{commercialId}
defaults: { _controller: AgisBOAgisBundle:BoCommercial:deleteCommercial}
agisbo_agis_commercial_upload_visu:
pattern: /admin/commercial/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoCommercial:uploadVisu}
agisbo_agis_commercial_ajaxLoad:
pattern: /admin/ajaxLoadCommercialList
defaults: { _controller: AgisBOAgisBundle:BoCommercial:ajaxLoadCommercialList }
requirements: { _format: json }

View file

@ -1,28 +0,0 @@
agisbo_agis_list_contrat:
pattern: /admin/contrat/list
defaults: { _controller: AgisBOAgisBundle:BoContrat:listContrat }
agisbo_agis_edit_contrat:
pattern: /admin/contrat/edit/{contratId}
defaults: { _controller: AgisBOAgisBundle:BoContrat:editContrat}
agisbo_agis_save_contrat:
pattern: /admin/contrat/save/{contratId}
defaults: { _controller: AgisBOAgisBundle:BoContrat:saveContrat}
agisbo_agis_publier_contrat:
pattern: /admin/contrat/publier/{contratId}
defaults: { _controller: AgisBOAgisBundle:BoContrat:publierContrat}
agisbo_agis_depublier_contrat:
pattern: /admin/contrat/depublier/{contratId}
defaults: { _controller: AgisBOAgisBundle:BoContrat:depublierContrat}
agisbo_agis_contrat_ajaxLoad:
pattern: /admin/ajaxLoadContratList
defaults: { _controller: AgisBOAgisBundle:BoContrat:ajaxLoadContratList }
requirements: { _format: json }
agisbo_agis_delete_contrat:
pattern: /admin/contrat/delete/{contratId}
defaults: { _controller: AgisBOAgisBundle:BoContrat:deleteContrat}

View file

@ -1,28 +0,0 @@
agisbo_agis_list_offre:
pattern: /admin/offre/list
defaults: { _controller: AgisBOAgisBundle:BoOffre:listOffre }
agisbo_agis_edit_offre:
pattern: /admin/offre/edit/{offreId}
defaults: { _controller: AgisBOAgisBundle:BoOffre:editOffre}
agisbo_agis_delete_offre:
pattern: /admin/offre/delete/{offreId}
defaults: { _controller: AgisBOAgisBundle:BoOffre:deleteOffre}
agisbo_agis_save_offre:
pattern: /admin/offre/save/{offreId}
defaults: { _controller: AgisBOAgisBundle:BoOffre:saveOffre}
agisbo_agis_publier_offre:
pattern: /admin/offre/publier/{offreId}
defaults: { _controller: AgisBOAgisBundle:BoOffre:publierOffre}
agisbo_agis_depublier_offre:
pattern: /admin/offre/depublier/{offreId}
defaults: { _controller: AgisBOAgisBundle:BoOffre:depublierOffre}
agisbo_agis_offre_ajaxLoad:
pattern: /admin/ajaxLoadOffreList
defaults: { _controller: AgisBOAgisBundle:BoOffre:ajaxLoadOffreList }
requirements: { _format: json }

View file

@ -1,28 +0,0 @@
agisbo_agis_list_offresecteur:
pattern: /admin/offresecteur/list
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:listOffresecteur }
agisbo_agis_edit_offresecteur:
pattern: /admin/offresecteur/edit/{offresecteurId}
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:editOffresecteur}
agisbo_agis_delete_offresecteur:
pattern: /admin/offresecteur/delete/{offresecteurId}
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:deleteOffresecteur}
agisbo_agis_save_offresecteur:
pattern: /admin/offresecteur/save/{offresecteurId}
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:saveOffresecteur}
agisbo_agis_publier_offresecteur:
pattern: /admin/offresecteur/publier/{offresecteurId}
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:publierOffresecteur}
agisbo_agis_depublier_offresecteur:
pattern: /admin/offresecteur/depublier/{offresecteurId}
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:depublierOffresecteur}
agisbo_agis_offresecteur_ajaxLoad:
pattern: /admin/ajaxLoadOffresecteurList
defaults: { _controller: AgisBOAgisBundle:BoOffresecteur:ajaxLoadOffresecteurList }
requirements: { _format: json }

View file

@ -1,28 +0,0 @@
agisbo_agis_list_page:
pattern: /admin/page/list
defaults: { _controller: AgisBOAgisBundle:BoPage:listPage }
agisbo_agis_edit_page:
pattern: /admin/page/edit/{pageId}
defaults: { _controller: AgisBOAgisBundle:BoPage:editPage}
agisbo_agis_delete_page:
pattern: /admin/page/delete/{pageId}
defaults: { _controller: AgisBOAgisBundle:BoPage:deletePage}
agisbo_agis_publier_page:
pattern: /admin/page/publier/{pageId}
defaults: { _controller: AgisBOAgisBundle:BoPage:publierPage}
agisbo_agis_depublier_page:
pattern: /admin/page/depublier/{pageId}
defaults: { _controller: AgisBOAgisBundle:BoPage:depublierPage}
agisbo_agis_save_page:
pattern: /admin/page/save/{pageId}
defaults: { _controller: AgisBOAgisBundle:BoPage:savePage}
agisbo_agis_page_ajaxLoad:
pattern: /admin/ajaxLoadPageList
defaults: { _controller: AgisBOAgisBundle:BoPage:ajaxLoadPageList }
requirements: { _format: json }

View file

@ -1,32 +0,0 @@
agisbo_agis_list_plan:
pattern: /admin/plan/list
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:listPlan }
agisbo_agis_edit_plan:
pattern: /admin/plan/edit/{planId}
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:editPlan, planId:null}
agisbo_agis_save_plan:
pattern: /admin/plan/save/{planId}
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:savePlan, planId:null}
agisbo_agis_delete_plan:
pattern: /admin/plan/delete/{planId}
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:deletePlan}
agisbo_agis_plan_upload_visu:
pattern: /admin/plan/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:uploadVisu}
agisbo_agis_plan_ajaxLoad:
pattern: /admin/ajaxLoadPlanList
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:ajaxLoadPlanList }
requirements: { _format: json }
agisbo_agis_publier_plan:
pattern: /admin/plan/publier/{planId}
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:publierPlan }
agisbo_agis_depublier_plan:
pattern: /admin/plan/depublier/{planId}
defaults: { _controller: AgisBOAgisBundle:BoPlanAcces:depublierPlan }

View file

@ -1,40 +0,0 @@
agisbo_agis_list_produit:
pattern: /admin/produit/list
defaults: { _controller: AgisBOAgisBundle:BoProduit:listProduit }
agisbo_agis_edit_produit:
pattern: /admin/produit/edit/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:editProduit}
agisbo_agis_save_produit:
pattern: /admin/produit/save/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:saveProduit}
agisbo_agis_publier_produit:
pattern: /admin/produit/publier/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:publierProduit}
agisbo_agis_depublier_produit:
pattern: /admin/produit/depublier/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:depublierProduit}
agisbo_agis_order_produit_down:
pattern: /admin/produit/order/down/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:downProduitOrder}
agisbo_agis_order_produit_up:
pattern: /admin/produit/order/up/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:upProduitOrder}
agisbo_agis_delete_produit:
pattern: /admin/produit/delete/{produitId}
defaults: { _controller: AgisBOAgisBundle:BoProduit:deleteProduit}
agisbo_agis_produit_upload_visu:
pattern: /admin/produit/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoProduit:uploadVisu}
agisbo_agis_produit_ajaxLoad:
pattern: /admin/ajaxLoadProduitList
defaults: { _controller: AgisBOAgisBundle:BoProduit:ajaxLoadProduitList }
requirements: { _format: json }

View file

@ -1,16 +0,0 @@
agisbo_agis_list_rubrique:
pattern: /admin/rubrique/list
defaults: { _controller: AgisBOAgisBundle:BoRubrique:listRubrique }
agisbo_agis_edit_rubrique:
pattern: /admin/rubrique/edit/{rubriqueId}
defaults: { _controller: AgisBOAgisBundle:BoRubrique:editRubrique}
agisbo_agis_save_rubrique:
pattern: /admin/rubrique/save/{rubriqueId}
defaults: { _controller: AgisBOAgisBundle:BoRubrique:saveRubrique}
agisbo_agis_rubrique_ajaxLoad:
pattern: /admin/ajaxLoadRubriqueList
defaults: { _controller: AgisBOAgisBundle:BoRubrique:ajaxLoadRubriqueList }
requirements: { _format: json }

View file

@ -1,36 +0,0 @@
agisbo_agis_list_secteur:
pattern: /admin/secteur/list
defaults: { _controller: AgisBOAgisBundle:BoSecteur:listSecteur }
agisbo_agis_edit_secteur:
pattern: /admin/secteur/edit/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:editSecteur}
agisbo_agis_save_secteur:
pattern: /admin/secteur/save/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:saveSecteur}
agisbo_agis_publier_secteur:
pattern: /admin/secteur/publier/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:publierSecteur}
agisbo_agis_depublier_secteur:
pattern: /admin/secteur/depublier/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:depublierSecteur}
agisbo_agis_order_secteur_down:
pattern: /admin/secteur/order/down/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:downSecteurOrder}
agisbo_agis_order_secteur_up:
pattern: /admin/secteur/order/up/{secteurId}
defaults: { _controller: AgisBOAgisBundle:BoSecteur:upSecteurOrder}
agisbo_agis_secteur_upload_visu:
pattern: /admin/secteur/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoSecteur:uploadVisu}
agisbo_agis_secteur_ajaxLoad:
pattern: /admin/ajaxLoadSecteurList
defaults: { _controller: AgisBOAgisBundle:BoSecteur:ajaxLoadSecteurList }
requirements: { _format: json }

View file

@ -1,32 +0,0 @@
agisbo_agis_list_slider:
pattern: /admin/slider/list
defaults: { _controller: AgisBOAgisBundle:BoSlider:listSlider }
agisbo_agis_edit_slider:
pattern: /admin/slider/edit/{sliderId}
defaults: { _controller: AgisBOAgisBundle:BoSlider:editSlider}
agisbo_agis_save_slider:
pattern: /admin/slider/save/{sliderId}
defaults: { _controller: AgisBOAgisBundle:BoSlider:saveSlider}
agisbo_agis_delete_slider:
pattern: /admin/slider/delete/{sliderId}
defaults: { _controller: AgisBOAgisBundle:BoSlider:deleteSlider}
agisbo_agis_slider_upload_visu:
pattern: /admin/slider/upload/visu
defaults: { _controller: AgisBOAgisBundle:BoSlider:uploadVisu}
agisbo_agis_slider_ajaxLoad:
pattern: /admin/ajaxLoadSliderList
defaults: { _controller: AgisBOAgisBundle:BoSlider:ajaxLoadSliderList }
requirements: { _format: json }
agisbo_agis_publier_slider:
pattern: /admin/slider/publier/{sliderId}
defaults: { _controller: AgisBOAgisBundle:BoSlider:publierSlider }
agisbo_agis_depublier_slider:
pattern: /admin/slider/depublier/{sliderId}
defaults: { _controller: AgisBOAgisBundle:BoSlider:depublierSlider }

View file

@ -1,28 +0,0 @@
agisbo_agis_list_typeoffre:
pattern: /admin/typeoffre/list
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:listTypeoffre }
agisbo_agis_edit_typeoffre:
pattern: /admin/typeoffre/edit/{typeoffreId}
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:editTypeoffre}
agisbo_agis_delete_typeoffre:
pattern: /admin/typeoffre/delete/{typeoffreId}
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:deleteTypeoffre}
agisbo_agis_save_typeoffre:
pattern: /admin/typeoffre/save/{typeoffreId}
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:saveTypeoffre}
agisbo_agis_publier_typeoffre:
pattern: /admin/typeoffre/publier/{typeoffreId}
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:publierTypeoffre}
agisbo_agis_depublier_typeoffre:
pattern: /admin/typeoffre/depublier/{typeoffreId}
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:depublierTypeoffre}
agisbo_agis_typeoffre_ajaxLoad:
pattern: /admin/ajaxLoadTypeoffreList
defaults: { _controller: AgisBOAgisBundle:BoTypeoffre:ajaxLoadTypeoffreList }
requirements: { _format: json }

View file

@ -1,7 +0,0 @@
parameters:
# agisbo_agis.example.class: Agis\BO\AgisBundle\Example
services:
# agisbo_agis.example:
# class: %agisbo_agis.example.class%
# arguments: [@service_id, "plain_value", %parameter%]

View file

@ -1,22 +0,0 @@
{
"sProcessing": "Traitement en cours...",
"sSearch": "Rechercher&nbsp;:",
"sLengthMenu": "Afficher _MENU_ &eacute;l&eacute;ments",
"sInfo": "Affichage de l'&eacute;lement _START_ &agrave; _END_ sur _TOTAL_ &eacute;l&eacute;ments",
"sInfoEmpty": "Affichage de l'&eacute;lement 0 &agrave; 0 sur 0 &eacute;l&eacute;ments",
"sInfoFiltered": "(filtr&eacute; de _MAX_ &eacute;l&eacute;ments au total)",
"sInfoPostFix": "",
"sLoadingRecords": "Chargement en cours...",
"sZeroRecords": "Aucun &eacute;l&eacute;ment &agrave; afficher",
"sEmptyTable": "Aucune donnée disponible dans le tableau",
"oPaginate": {
"sFirst": "Premier",
"sPrevious": "Pr&eacute;c&eacute;dent",
"sNext": "Suivant",
"sLast": "Dernier"
},
"oAria": {
"sSortAscending": ": activer pour trier la colonne par ordre croissant",
"sSortDescending": ": activer pour trier la colonne par ordre décroissant"
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,152 +0,0 @@
/* Coloured Header Gradients, eg. Sortable Boxes, Tab Boxes, Date-picker, etc. */
.grad_skin,
.grad_black,
button,
.button,
.alert,
.calendar_grad,
.dark_box,
.dropdown_menu > ul > li.current > a,
.box_head,
.tab_header,
.tab_sider,
#login_box #bar,
.user_box,
#search_side,
.wizard .wizard_steps ul,
.dataTables_wrapper .ui-widget-header,
.ui-button .ui-state-active,
.ui-widget-header .ui-state-active,
.ui-buttonset .ui-button.ui-state-active,
.ui-multiselect .ui-widget-header,
.ui-slider .ui-slider-range,
.slider-content .selected .title,
.fc-header .fc-state-active,
.fc-header .ui-state-active,
.ui-progressbar .ui-progressbar-value,
.stackbar.stack_view > ul > li > a > span,
div.stackbar.stack_view > ul > li > a > span::before {
background-color: #4c5766;
border-color: #313841 #313841 #000 #313841;
color: #fff;
text-shadow: 0 1px 0 #000;
background-image: linear-gradient(top, #4c5766, #313841);
}
.grad_black_reverse,
button:hover,
.button:hover {
background-color: #313841;
background-image: linear-gradient(top, #313841, #4c5766);
}
/* Grey Header Gradients eg. Nav, Sidebar, Accordion, etc. */
.grad_grey,
button.light,
.button.light,
.alert_light,
.shade,
.ui-multiselect li,
.side_accordion > li,
.dropdown_menu > ul > li,
.dropdown_menu > ul > li > ul.dropdown li,
.breadcrumb,
.toggle_all,
.content_accordion h3.bar,
.dataTables_scrollHead,
.dataTables_paginate span.fg-button,
.list_slider .slider-nav,
.slider-content .title,
.list_slider .slide-up,
.list_slider .slide-down,
.side_links li a,
.tabs ul.tab_header li a,
.tabs ul.tab_sider li a,
.fc .fc-agenda-slots tr th,
table.static thead tr th,
.wizard .wizard_steps ul li.current,
.alert_light,
div.main_container .box.light h2.box_head,
div.main_container .box.white h2.box_head,
.ui-datepicker-header,
.ui-button,
.fc-button,
.button_bar,
.slider_title,
.ui-dialog-titlebar,
ul.breadcrumb,
.toggle_all,
.info_box > .value_tag > span {
color: #333;
border-color: #bac5cc;
text-shadow: 0 1px 0 #fff;
background-color: #E6ECEF;
background-image: linear-gradient(top, #e6ecef, #d0d6da);
}
.grad_grey_reverse,
button.light:hover,
.button.light:hover,
.alert_light:hover {
background-color: #D0D6DA;
background-image: linear-gradient(top, #d0d6da, #e6ecef);
}
.grad_grey_light,
.el-finder-toolbar ul,
.el-finder-statusbar,
.dropdown_menu ul li:hover,
.dropdown_menu ul li ul.dropdown li:hover,
.side_accordion > li:hover,
div.stackbar > ul > li,
div.stackbar ul ul li.current {
background-color: #E6ECEF;
border-color: #959BA2;
text-shadow: 0 1px 0 #fff;
background-color: #eee;
background-image: linear-gradient(top, #e6ecef, #d9e1e5);
}
.grad_grey_light_reverse {
background-color: #d9e1e5;
background-image: linear-gradient(top, #d9e1e5, #e6ecef);
}
.grad_indented,
.indented_area,
.indented_button_bar,
.wizard_progressbar {
background: #d2d7dc;
background: linear-gradient(top, #d2d7dc 0%, #b1b9c3 99%) !important;
zoom: 1;
border: 1px solid #7d90a6 !important;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}
button,
.button {
color: #fff;
border: 1px solid #000;
text-shadow: 0 1px 0 #000;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
transition: background 5000ms ease-in;
border-radius: 2px;
}
.stacked_buttons button,
.stacked_buttons a.button {
margin-bottom: 5px;
}
.stacked_buttons_large button,
.stacked_buttons_large a.button {
margin-bottom: 10px;
margin-right: 10px;
}
button.light,
.button.light {
z-index: 1;
color: #666;
border-color: #aaa;
text-shadow: 0 1px 0 #fff;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(255, 255, 255, 0.8);
}
button.on_dark,
.button.on_dark {
box-shadow: 0 2px 0 1px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
#bg_light {
display: none !important;
}

View file

@ -1,194 +0,0 @@
/* Colours */
.grad_black,
button.black,
.button.black,
.alert_black,
.calendar_black {
background-color: #4c5766;
background-image: linear-gradient(top, #4c5766, #313841);
border-color: #313841;
}
.grad_black_reverse,
button.black:hover,
.button.black:hover,
.alert_black:hover,
.calendar_black_hover {
background-color: #313841;
background-image: linear-gradient(top, #313841, #4c5766);
}
.grad_blue,
button.blue,
.button.blue,
.alert_blue,
.calendar_blue {
background-color: #1C5EA0;
background-image: linear-gradient(top, #1c5ea0, #064792);
border-color: #064792;
}
.grad_blue_reverse,
button.blue:hover,
.button.blue:hover,
.alert_blue:hover,
.calendar_blue:hover {
background-color: #064792;
background-image: linear-gradient(top, #064792, #1c5ea0);
}
.grad_red,
button.red,
.button.red,
.alert_red,
.alert_circle.alert_red,
.calendar_red {
background-color: #9e253b;
background-image: linear-gradient(top, #9e253b, #7c1f30);
border: 1px solid #7C1F30;
}
.grad_red_reverse,
button.red:hover,
.button.red:hover,
.alert_red:hover,
.calendar_red:hover {
background-color: #7C1F30;
background-image: linear-gradient(top, #7c1f30, #9e253b);
}
.grad_orange,
button.orange,
.button.orange,
.alert_orange,
.alert_circle.alert_orange,
.calendar_orange {
background-color: #F98D35;
background-image: linear-gradient(top, #f98d35, #e46f23);
border: 1px solid #E46F23;
}
.grad_orange_reverse,
button.orange:hover,
.button.orange:hover,
.alert_orange:hover,
.calendar_orange:hover {
background-color: #E46F23;
background-image: linear-gradient(top, #e46f23, #f98d35);
}
.grad_brown,
button.brown,
.button.brown,
.alert_brown {
background-color: #53453e;
background-image: linear-gradient(top, #53453e, #3b2e28);
border: 1px solid #3b2e28;
}
.grad_brown_reverse,
button.brown:hover,
.button.brown:hover,
.alert_brown:hover,
.calendar_browne:hover {
background-color: #3b2e28;
background-image: linear-gradient(top, #3b2e28, #53453e);
}
.grad_green,
button.green,
.button.green,
.alert_green,
.calendar_green {
background-color: #3d8336;
background-image: linear-gradient(top, #3d8336, #277423);
border: 1px solid #277423;
}
.grad_green_reverse,
button.green:hover,
.button.green:hover,
.alert_green:hover,
.calendar_green:hover {
background-color: #277423;
background-image: linear-gradient(top, #277423, #3d8336);
}
.grad_magenta,
button.magenta,
.button.magenta,
.alert_magenta,
.calendar_magenta {
background-color: #9b6ca6;
background-image: linear-gradient(top, #9b6ca6, #8d579a);
border: 1px solid #8d579a;
}
.grad_magenta_reverse,
button.magenta:hover,
.button.magenta:hover,
.alert_magenta:hover,
.calendar_magenta:hover {
background-color: #8d579a;
background-image: linear-gradient(top, #8d579a, #9b6ca6);
}
.grad_navy,
button.navy,
.button.navy,
.alert_navy,
.calendar_navy {
background-color: #2b4356;
background-image: linear-gradient(top, #2b4356, #122b45);
border: 1px solid #122b45;
}
.grad_navy_reverse,
button.navy:hover,
.button.navy:hover,
.alert_navy:hover,
.calendar_navy:hover {
background-color: #122b45;
background-image: linear-gradient(top, #122b45, #2b4356);
}
.grad_grey_dark,
button.grey,
.button.grey,
.alert_grey,
.calendar_grey,
.calendar_grey > .fc-event-skin {
background: #959ba2;
background-image: linear-gradient(top, #959ba2, #6a737f);
border: 1px solid #6A737F;
}
.grad_grey_dark_reverse,
button.grey:hover,
.button.grey:hover,
.alert_grey:hover,
.calendar_grey:hover {
background: #6A737F;
background-image: linear-gradient(top, #6a737f, #959ba2);
}
.grad_grey,
button.light,
.button.light,
.alert_light:hover,
.light .box_head {
color: #333;
border-color: #959BA2;
text-shadow: 0 1px 0 #fff;
background-color: #E6ECEF;
background-image: linear-gradient(top, #e6ecef, #d0d6da);
}
.grad_grey_reverse,
button.light:hover,
.button.light:hover,
.alert_light:hover {
background-color: #D0D6DA;
background-image: linear-gradient(top, #d0d6da, #e6ecef);
}
.grad_white,
button.white,
.button.white,
.alert_white:hover,
.white .box_head,
.gallery li a {
color: #333;
border-color: #959BA2;
text-shadow: 0 1px 0 #fff;
background-color: #f4f7f9;
background-image: linear-gradient(top, #f4f7f9, #e8ecee);
}
.grad_white_reverse,
button.white:hover,
.button.white:hover,
.alert_white:hover,
.gallery li:hover a {
background-color: #e8ecee;
background-image: linear-gradient(top, #e8ecee, #f4f7f9);
}

View file

@ -1,460 +0,0 @@
/*
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
*/
/* =Containers
--------------------------------------------------------------------------------*/
.container_12,
.container_16 {
width: 100%;
margin-left: 0%;
margin-right: 0%;
letter-spacing: -4px;
}
/* =Grid >> Global
--------------------------------------------------------------------------------*/
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16 {
margin-left: 0.99%;
margin-right: 0.99%;
position: relative;
/*
display: block;
float: left;
*/
display: inline-block;
float: none;
vertical-align: top;
letter-spacing: 0;
}
.container_12 > *,
.container_16 > * {
letter-spacing: 0;
}
.container_12 .grid_3,
.container_16 .grid_4 {
width: 23%;
}
.container_12 .grid_6,
.container_16 .grid_8 {
width: 48%;
}
.container_12 .grid_9,
.container_16 .grid_12 {
width: 73%;
}
.container_12 .grid_12,
.container_16 .grid_16 {
width: 98%;
}
/* =Grid >> Children (Alpha ~ First, Omega ~ Last)
--------------------------------------------------------------------------------*/
.alpha {
margin-left: 0;
}
.omega {
margin-right: 0;
}
/* =Grid >> 12 Columns
--------------------------------------------------------------------------------*/
.container_12 .grid_1 {
width: 6.333%;
}
.container_12 .grid_2 {
width: 14.666%;
}
.container_12 .grid_4 {
width: 31.333%;
}
.container_12 .grid_5 {
width: 39.666%;
}
.container_12 .grid_7 {
width: 56.333%;
}
.container_12 .grid_8 {
width: 64.666%;
}
.container_12 .grid_10 {
width: 81.333%;
}
.container_12 .grid_11 {
width: 89.666%;
}
/* =Grid >> 16 Columns
--------------------------------------------------------------------------------*/
.container_16 .grid_1 {
width: 4.25%;
}
.container_16 .grid_2 {
width: 10.5%;
}
.container_16 .grid_3 {
width: 16.75%;
}
.container_16 .grid_5 {
width: 29.25%;
}
.container_16 .grid_6 {
width: 35.5%;
}
.container_16 .grid_7 {
width: 41.75%;
}
.container_16 .grid_9 {
width: 54.25%;
}
.container_16 .grid_10 {
width: 60.5%;
}
.container_16 .grid_11 {
width: 66.75%;
}
.container_16 .grid_13 {
width: 79.25%;
}
.container_16 .grid_14 {
width: 85.5%;
}
.container_16 .grid_15 {
width: 91.75%;
}
/* =Prefix Extra Space >> Global
--------------------------------------------------------------------------------*/
.container_12 .prefix_3,
.container_16 .prefix_4 {
padding-left: 25%;
}
.container_12 .prefix_6,
.container_16 .prefix_8 {
padding-left: 50%;
}
.container_12 .prefix_9,
.container_16 .prefix_12 {
padding-left: 75%;
}
/* =Prefix Extra Space >> 12 Columns
--------------------------------------------------------------------------------*/
.container_12 .prefix_1 {
padding-left: 8.333%;
}
.container_12 .prefix_2 {
padding-left: 16.666%;
}
.container_12 .prefix_4 {
padding-left: 33.333%;
}
.container_12 .prefix_5 {
padding-left: 41.666%;
}
.container_12 .prefix_7 {
padding-left: 58.333%;
}
.container_12 .prefix_8 {
padding-left: 66.666%;
}
.container_12 .prefix_10 {
padding-left: 83.333%;
}
.container_12 .prefix_11 {
padding-left: 91.666%;
}
/* =Prefix Extra Space >> 16 Columns
--------------------------------------------------------------------------------*/
.container_16 .prefix_1 {
padding-left: 6.25%;
}
.container_16 .prefix_2 {
padding-left: 12.5%;
}
.container_16 .prefix_3 {
padding-left: 18.75%;
}
.container_16 .prefix_5 {
padding-left: 31.25%;
}
.container_16 .prefix_6 {
padding-left: 37.5%;
}
.container_16 .prefix_7 {
padding-left: 43.75%;
}
.container_16 .prefix_9 {
padding-left: 56.25%;
}
.container_16 .prefix_10 {
padding-left: 62.5%;
}
.container_16 .prefix_11 {
padding-left: 68.75%;
}
.container_16 .prefix_13 {
padding-left: 81.25%;
}
.container_16 .prefix_14 {
padding-left: 87.5%;
}
.container_16 .prefix_15 {
padding-left: 93.75%;
}
/* =Suffix Extra Space >> Global
--------------------------------------------------------------------------------*/
.container_12 .suffix_3,
.container_16 .suffix_4 {
padding-right: 25%;
}
.container_12 .suffix_6,
.container_16 .suffix_8 {
padding-right: 50%;
}
.container_12 .suffix_9,
.container_16 .suffix_12 {
padding-right: 75%;
}
/* =Suffix Extra Space >> 12 Columns
--------------------------------------------------------------------------------*/
.container_12 .suffix_1 {
padding-right: 8.333%;
}
.container_12 .suffix_2 {
padding-right: 16.666%;
}
.container_12 .suffix_4 {
padding-right: 33.333%;
}
.container_12 .suffix_5 {
padding-right: 41.666%;
}
.container_12 .suffix_7 {
padding-right: 58.333%;
}
.container_12 .suffix_8 {
padding-right: 66.666%;
}
.container_12 .suffix_10 {
padding-right: 83.333%;
}
.container_12 .suffix_11 {
padding-right: 91.666%;
}
/* =Suffix Extra Space >> 16 Columns
--------------------------------------------------------------------------------*/
.container_16 .suffix_1 {
padding-right: 6.25%;
}
.container_16 .suffix_2 {
padding-right: 16.5%;
}
.container_16 .suffix_3 {
padding-right: 18.75%;
}
.container_16 .suffix_5 {
padding-right: 31.25%;
}
.container_16 .suffix_6 {
padding-right: 37.5%;
}
.container_16 .suffix_7 {
padding-right: 43.75%;
}
.container_16 .suffix_9 {
padding-right: 56.25%;
}
.container_16 .suffix_10 {
padding-right: 62.5%;
}
.container_16 .suffix_11 {
padding-right: 68.75%;
}
.container_16 .suffix_13 {
padding-right: 81.25%;
}
.container_16 .suffix_14 {
padding-right: 87.5%;
}
.container_16 .suffix_15 {
padding-right: 93.75%;
}
/* =Clear Floated Elements
--------------------------------------------------------------------------------*/
/* http://sonspring.com/journal/clearing-floats */
html body * span.clear,
html body * div.clear,
html body * li.clear,
html body * dd.clear {
background: none;
border: 0;
clear: both;
display: block;
float: none;
font-size: 0;
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
/* http://www.positioniseverything.net/easyclearing.html */
.clearfix:after {
clear: both;
content: '.';
display: block;
visibility: hidden;
height: 0;
}
.clearfix {
display: inline-block;
}
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
/* Internet Explorer fixes */
.lt-ie7 .grid_1,
.lt-ie7 .grid_2,
.lt-ie7 .grid_3,
.lt-ie7 .grid_4,
.lt-ie7 .grid_5,
.lt-ie7 .grid_6,
.lt-ie7 .grid_7,
.lt-ie7 .grid_8,
.lt-ie7 .grid_9,
.lt-ie7 .grid_10,
.lt-ie7 .grid_11,
.lt-ie7 .grid_12,
.lt-ie7 .grid_13,
.lt-ie7 .grid_14,
.lt-ie7 .grid_15,
.lt-ie7 .grid_16,
.lt-ie8 .grid_1,
.lt-ie8 .grid_2,
.lt-ie8 .grid_3,
.lt-ie8 .grid_4,
.lt-ie8 .grid_5,
.lt-ie8 .grid_6,
.lt-ie8 .grid_7,
.lt-ie8 .grid_8,
.lt-ie8 .grid_9,
.lt-ie8 .grid_10,
.lt-ie8 .grid_11,
.lt-ie8 .grid_12,
.lt-ie8 .grid_13,
.lt-ie8 .grid_14,
.lt-ie8 .grid_15,
.lt-ie8 .grid_16 {
margin-left: .92%;
margin-right: .92%;
}
/* Oisin Additions */
.columns {
width: 100%;
clear: both;
}
.col_100,
.col_80,
.col_70,
.col_30,
.col_50,
.col_33,
.col_66,
.col_25,
.col_75,
.col_60,
.col_40,
.col_20 {
position: relative;
display: block;
float: left;
}
.col_100.lines,
.col_80.lines,
.col_70.lines,
.col_30.lines,
.col_50.lines,
.col_33.lines,
.col_66.lines,
.col_25.lines,
.col_75.lines,
.col_60.lines,
.col_40.lines,
.col_20.lines,
.lines .col_100,
.lines .col_80,
.lines .col_70,
.lines .col_30,
.lines .col_50,
.lines .col_33,
.lines .col_66,
.lines .col_25,
.lines .col_75,
.lines .col_60,
.lines .col_40,
.lines .col_20 {
border-top: 1px solid #ddd;
border-right: 1px solid #ddd;
margin-top: -1px;
margin-right: -1px;
}
.columns.shade {
position: relative;
z-index: 100;
border-bottom: 1px solid #BAC5CC !important;
margin-bottom: -1px;
}
.columns.shade {
border-color: #BAC5CC;
}
.col_100 {
width: 100%;
}
.col_50 {
width: 50%;
}
.col_33 {
width: 33.333333333%;
}
.col_66 {
width: 66.666666666%;
}
.col_25 {
width: 25%;
}
.col_80 {
width: 80%;
}
.col_75 {
width: 75%;
}
.col_70 {
width: 70%;
}
.col_60 {
width: 60%;
}
.col_40 {
width: 40%;
}
.col_20 {
width: 20%;
}

View file

@ -1,136 +0,0 @@
/*
Fluid 960 Grid System - IE Fixes (IE7 and greater)
Learn more ~ http://www.designinfluences.com/
Licensed under GPL and MIT.
*/
/* =Grid >> Global
--------------------------------------------------------------------------------*/
.ie7 .grid_1,
.ie7 .grid_2,
.ie7 .grid_3,
.ie7 .grid_4,
.ie7 .grid_5,
.ie7 .grid_6,
.ie7 .grid_7,
.ie7 .grid_8,
.ie7 .grid_9,
.ie7 .grid_10,
.ie7 .grid_11,
.ie7 .grid_12,
.ie7 .grid_13,
.ie7 .grid_14,
.ie7 .grid_15,
.ie7 .grid_16,
.ie8 .grid_1,
.ie8 .grid_2,
.ie8 .grid_3,
.ie8 .grid_4,
.ie8 .grid_5,
.ie8 .grid_6,
.ie8 .grid_7,
.ie8 .grid_8,
.ie8 .grid_9,
.ie8 .grid_10,
.ie8 .grid_11,
.ie8 .grid_12,
.ie8 .grid_13,
.ie8 .grid_14,
.ie8 .grid_15,
.ie8 .grid_16 {
margin-left: .92%;
margin-right: .92%;
float: left;
display: block;
letter-spacing: 0;
vertical-align: inherit;
}
.ie7 .indent,
.ie8 .indent {
background: url(../images/trans_black.png) repeat;
}
.ie7 .flat_area h2,
.ie8 .flat_area h2 {
background: url(../images/trans_black.png) repeat;
}
.ie7 input.text,
.ie7 .textarea,
.ie7 .ui-multiselect,
.ie7 table.static input.text,
.ie8 input.text,
.ie8 .textarea,
.ie8 .ui-multiselect,
.ie8 table.static input.text,
.ie9 input.text,
.ie9 .textarea,
.ie9 .ui-multiselect,
.ie9 table.static input.text {
border: 1px solid #ccc;
background: #eee;
}
.ie7 .dataTables_wrapper input.text,
.ie8 .dataTables_wrapper input.text,
.ie9 .dataTables_wrapper input.text {
background: none !important;
border: 1px solid #000;
}
.ie8 div.selector {
margin-bottom: 1px;
}
.ie8 .slider ol.slider_labels li.last-child {
display: none;
}
.ie8 button.img_icon.has_text,
.ie8 button.div_icon.has_text {
padding-right: 10px;
}
.ie7 .isolate div.main_container,
.ie8 .isolate div.main_container {
background: url(../images/trans_black.png) repeat;
}
/*
.ie7 .col_25{width:24.9%;}
.ie7 .gallery ul li a,
.ie8 .gallery ul li a{
background: #fff !important;
}
.ie8 textarea{
padding: 0;
}
.ie7 fieldset.label_side > label {
display:block;
}
.ie7 fieldset.label_side > div {
width: auto;
margin-left: -11px;
padding-left: 29px;
float: left;
}
.ie7 fieldset.label_side > div,
.ie8 fieldset.label_side > div{
min-height: 32px;
}
*/
.lt-ie9 .dropdown_menu ul li ul.dropdown li ul.drawer li a:hover {
background: url(../images/trans_black.png) repeat;
}
.lt-ie7 .tabs ul li,
.lt-ie8 .tabs ul li {
margin-bottom: -1px;
}

File diff suppressed because it is too large Load diff

View file

@ -1,216 +0,0 @@
/*--------------------------------
iPhone and iPad formatting
--------------------------------*/
/* iPad Portrait and Landscape */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
#template_options {
position: relative!important;
}
.sidebar div.cog {
line-height: 40px!important;
width: 40px!important;
right: -40px !important;
}
}
/* iPhone Landscape */
@media screen and (min-width: 321px) and (max-width: 480px) {
#wrapper {
min-width: 300px;
}
a.logo {
display: none;
float: none!important;
margin: auto !important;
}
.dropdown_menu {
margin: 0;
}
.dropdown_menu ul {
display: none;
}
.dropdown_menu #mobile_nav {
display: block;
}
#topbar .user_box {
margin: 10px auto 0;
float: none;
}
body div.main_container {
margin: 10px 0 10px 1%!important;
padding: 20px 2% 5px!important;
width: 94% !important;
}
.grid_100,
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16,
.col_100,
.col_80,
.col_70,
.col_30,
.col_50,
.col_33,
.col_66,
.col_25,
.col_75,
.col_60,
.col_40,
.col_20 {
width: 100%!important;
margin: 0 !important;
}
body div.full_size {
padding: none !important;
}
#template_options {
position: relative !important;
}
div.main_container .box,
div.main_container .flat_area {
width: 100%!important;
margin-left: 0!important;
margin-right: 0 !important;
}
.sidebar,
.stackbar {
display: none !important;
}
#topbar {
display: block !important;
}
#template_options h3 {
float: none!important;
display: block!important;
clear: both !important;
}
#template_options div {
display: block;
}
div.full_size {
padding: 0 !important;
}
div.full_size .box {
margin: -20px -2% -5px !important;
padding: 0!important;
width: 104% !important;
}
body {
padding-bottom: 0 !important;
}
#loading_overlay .loading_message {
margin-left: -76px;
}
}
/* iPhone Portrait */
@media screen and (max-width: 320px) {
#wrapper {
min-width: 100px;
}
a.logo {
display: none;
float: none!important;
margin: auto !important;
}
.dropdown_menu {
margin: 0;
}
.dropdown_menu ul {
display: none;
}
.dropdown_menu #mobile_nav {
display: block;
}
#topbar .user_box {
margin: 10px auto 0;
float: none;
}
body div.main_container {
margin: 10px 1%!important;
padding: 20px 2% 5px!important;
width: 94% !important;
}
.grid_100,
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16,
.col_100,
.col_80,
.col_70,
.col_30,
.col_50,
.col_33,
.col_66,
.col_25,
.col_75,
.col_60,
.col_40,
.col_20 {
width: 100%!important;
margin: 0 !important;
}
body .dropdown_menu ul li.current:first-child a {
border-left-width: 1px !important;
}
#template_options {
position: relative !important;
}
#template_options h3 {
float: none!important;
display: block!important;
clear: both !important;
}
#template_options div {
display: block;
}
.sidebar,
.stackbar {
display: none !important;
}
#topbar {
display: block !important;
}
div.main_container .box,
div.main_container .flat_area {
width: 100% !important;
}
div.full_size {
padding: 0 !important;
}
div.full_size .box {
margin: -20px -2% -5px !important;
padding: 0!important;
width: 104% !important;
}
body {
padding-bottom: 0 !important;
}
#loading_overlay .loading_message {
margin-left: -76px;
}
}

View file

@ -1,210 +0,0 @@
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html {
/*
overflow-y: scroll;
*/
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
textarea,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
@charset "utf-8";
/* CSS Document */
a:focus {
outline: none;
}
button:focus {
outline: none;
}
button::-moz-focus-inner {
border: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
ul li,
ol li {
margin: 0;
padding: 0;
}
a {
color: #555;
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #000;
}
button {
cursor: pointer;
}
input,
textarea {
font: 12px/1.5 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
}
dl,
hr,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
ul,
pre,
table,
address,
fieldset {
margin-bottom: 0px;
line-height: 1;
}
p {
margin-bottom: 10px;
}
img {
display: block;
}
/* slightly enhanced, universal clearfix hack */
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: ".";
clear: both;
height: 0;
line-height: 0;
overflow: hidden;
}
.clearfix {
display: inline-block;
}
/* start commented backslash hack \*/
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
/* close commented backslash hack */
span.hide_text {
visibility: hidden;
}
.clear_right {
clear: right;
}
.clear_left {
clear: left;
}
body {
-webkit-text-size-adjust: none !important;
}
iframe {
-moz-box-sizing: border-box;
box-sizing: border-box;
}

View file

@ -1,168 +0,0 @@
/*
960 Grid System ~ Text CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
*/
/* `Basic HTML
----------------------------------------------------------------------------------------------------*/
body {
font: 12px/1.5 sans-serif;
color: #333;
}
a:focus {
outline: 0px dashed;
}
hr {
border: 0 #ccc solid;
border-top-width: 1px;
clear: both;
height: 0;
}
/* `Headings
----------------------------------------------------------------------------------------------------*/
h1 {
font-size: 20px;
}
h2 {
font-size: 18px;
}
h3 {
font-size: 14px;
}
h4 {
font-size: 12px;
}
h5 {
font-size: 12px;
}
h6 {
font-size: 12px;
}
/* `Spacing
----------------------------------------------------------------------------------------------------*/
ol {
list-style: decimal;
}
ul {
list-style: disc;
}
li {
margin-left: 30px;
}
p,
dl,
hr,
h1,
h2,
h3,
h4,
h5,
h6,
ol,
ul,
pre,
table,
address {
margin-bottom: 10px;
-webkit-text-size-adjust: none;
}
.block h1,
.block h2,
.block h3,
.block h4,
.block h5,
.block h6 {
color: #333;
margin-top: 15px;
}
h1,
h2,
h3,
h4,
h5,
h6,
fieldset > label {
font-family: sans-serif;
}
.block h1,
.block h2,
.flat_area h1,
.flat_area h2,
.flat_area h3,
.flat_area h4,
.flat_area h5,
.flat_area h6 {
letter-spacing: -1px !important;
font-family: sans-serif;
margin-bottom: 15px;
}
.block h3,
.block h4,
.block h5,
.flat_area h3,
.flat_area h4,
.flat_area h5 {
margin-bottom: 10px;
}
.block p,
.flat_area p {
color: #666;
line-height: 20px;
margin: 0 0 10px;
}
.block p:last-child,
.flat_area p:last-child {
margin-bottom: 0px !important;
}
.block p strong,
.flat_area p strong {
color: #333;
}
.block ul,
.block ol,
.flat_area ul,
.flat_area ol {
list-style-position: inside;
padding: 0;
}
.block ul,
.block ol {
margin-bottom: 15px;
}
.flat_area ul,
.flat_area ol {
margin-bottom: 5px;
}
.block > ul > li,
.block > ol > li,
.block > .section > ul > li,
.block > .section > ol > li {
color: #666;
line-height: 24px;
padding: 0px 0;
margin: 0;
border-bottom: 1px solid #eee;
}
.flat_area ul li,
.flat_area ul li {
color: #666;
padding: 5px 0;
margin: 0;
border-bottom: 1px solid #eee;
}
.block ul li:first-child,
.block ol li:first-child,
.flat_area ul li:first-child,
.flat_area ul li:first-child {
padding-top: 0;
}
.flat_area small {
font-size: 12px;
color: #666;
font-weight: normal;
letter-spacing: 0;
}
.flat_area a {
font-weight: bold;
}

View file

@ -1,194 +0,0 @@
.colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url("../../../images/plugins/colourpicker/colorpicker_background.png");
font-family: Arial, Helvetica, sans-serif;
display: none;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url("../../../images/plugins/colourpicker/colorpicker_overlay.png");
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url("../../../images/plugins/colourpicker/colorpicker_select.gif");
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url("../../../images/plugins/colourpicker/colorpicker_indic.gif") left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 11px;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url("../../../images/plugins/colourpicker/colorpicker_hex.png") top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url("../../../images/plugins/colourpicker/colorpicker_rgb_r.png");
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url("../../../images/plugins/colourpicker/colorpicker_rgb_g.png");
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url("../../../images/plugins/colourpicker/colorpicker_rgb_b.png");
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url("../../../images/plugins/colourpicker/colorpicker_hsb_h.png");
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url("../../../images/plugins/colourpicker/colorpicker_hsb_s.png");
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url("../../../images/plugins/colourpicker/colorpicker_hsb_b.png");
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url("../../../images/plugins/colourpicker/colorpicker_submit.png") top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
.colorpicker {
background-image: url("../../../images/plugins/colourpicker/custom_background.png");
position: absolute;
bottom: 0;
left: 0;
}
.colorpicker .colorpicker_hue div {
background-image: url("../../../images/plugins/colourpicker/custom_indic.gif");
}
.colorpicker .colorpicker_hex {
background-image: url("../../../images/plugins/colourpicker/custom_hex.png");
}
.colorpicker .colorpicker_rgb_r {
background-image: url("../../../images/plugins/colourpicker/custom_rgb_r.png");
}
.colorpicker .colorpicker_rgb_g {
background-image: url("../../../images/plugins/colourpicker/custom_rgb_g.png");
}
.colorpicker .colorpicker_rgb_b {
background-image: url("../../../images/plugins/colourpicker/custom_rgb_b.png");
}
.colorpicker .colorpicker_hsb_s {
background-image: url("../../../images/plugins/colourpicker/custom_hsb_s.png");
}
.colorpicker .colorpicker_hsb_h {
background-image: url("../../../images/plugins/colourpicker/custom_hsb_h.png");
}
.colorpicker .colorpicker_hsb_b {
background-image: url("../../../images/plugins/colourpicker/custom_hsb_b.png");
}
.colorpicker .colorpicker_submit {
background-image: url("../../../images/plugins/colourpicker/custom_submit.png");
}

View file

@ -1,192 +0,0 @@
/*--------------------------------
DataTable
--------------------------------*/
.datatable {
visibility: hidden;
}
.dataTables_scroll {
overflow: hidden;
}
.dataTables_scrollBody {
width: auto !important;
overflow: auto !important;
}
.dataTables_wrapper {
margin: 0px 0 !important;
}
.dataTables_wrapper .ui-widget-header {
font-weight: normal;
background: #4C5766;
border: 1px solid #000;
position: relative;
padding: 10px;
text-shadow: 0px 1px 0px #000;
color: #fff;
}
.block .dataTables_wrapper .ui-widget-header.ui-corner-tl {
font-weight: normal;
background: #fff !important;
filter: none;
border: 1px solid #fff;
border-bottom: 1px solid #ccc;
position: relative;
padding: 10px;
text-shadow: 0px 1px 0px #fff;
color: #333;
border-radius: 0px;
}
.dataTables_length {
float: left;
line-height: 20px;
}
.dataTables_length .selector {
background-position: -483px -224px;
display: inline-block;
margin-bottom: -11px;
margin-left: 0px;
}
.dataTables_filter {
float: right;
line-height: 20px;
width: 180px;
display: block;
}
.dataTables_filter label {
float: right;
}
.dataTables_wrapper .dataTables_filter input {
display: inline;
width: 120px !important;
height: 28px;
line-height: 28px;
}
.single_datatable .dataTables_filter input {
border: 0px solid #000;
margin-left: 5px;
color: #fff;
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.5);
}
.single_datatable .dataTables_filter input:focus {
background: none;
}
.dataTables_scrollHeadInner {
border-top: 1px solid #FFFFFF;
border-bottom: 1px solid #AAAAAA;
}
.block .dataTables_scrollHeadInner {
border-top: 0;
}
.dataTables_scrollHeadInner table {
margin-bottom: 0;
margin-top: 0px;
}
.dataTables_scrollHeadInner table thead tr {
margin-right: 0px;
}
.dataTables_scrollHeadInner table thead tr th {
border: none !important;
background: none;
position: relative;
}
.DataTables_sort_wrapper {
background: none;
padding: 10px 5px 10px 20px;
text-align: center;
font-size: 12px;
color: #333;
text-shadow: 0 1px 0 #FFFFFF;
position: relative;
font-weight: normal;
}
.DataTables_sort_wrapper:hover {
color: #000000;
cursor: pointer;
}
.DataTables_sort_wrapper span {
position: absolute;
left: 5px;
top: 8px;
}
.dataTables_scrollBody table {
margin-bottom: 0;
margin-top: 0px;
}
.dataTables_scrollBody > .datatable > thead {
visibility: hidden;
}
.dataTables_scrollBody > .datatable > thead .ui-state-default {
border: none;
}
.dataTables_scrollBody tbody tr td {
line-height: 20px;
}
table td {
padding: 3px 5px;
}
table tr.odd {
background-color: #fafafa;
border-bottom: 1px solid #d8dcde;
}
table tr.even {
border-bottom: 1px solid #e1e5e7;
}
table tr.even:hover,
table tr.odd:hover {
background-color: #E6ECEF;
}
.dataTables_info {
float: left;
line-height: 17px;
}
.dataTables_paginate {
float: right;
margin: 0 !important;
line-height: 15px;
}
.dataTables_wrapper .dataTables_paginate span.fg-button {
background-image: none;
background-color: #DFE2E4;
text-shadow: 0 1px 0 #FFF;
color: #333;
border-bottom: 1px solid #aaa;
border-left: 1px solid #fff;
border-top: 1px solid #fff;
border-right: 1px solid #aaa;
padding: 0px 10px;
margin: 0;
filter: none!important;
line-height: 15px;
}
.dataTables_wrapper .dataTables_paginate span.first {
border-left: 1px solid #fff;
border-radius: 3px 0 0 3px;
}
.dataTables_wrapper .dataTables_paginate span.last {
border-right: 1px solid #fff;
}
.dataTables_wrapper .dataTables_paginate span.ui-state-disabled {
/* margin-left:-1px; */
opacity: 1;
color: #888!important;
}
.dataTables_wrapper .dataTables_paginate span span.ui-state-disabled {
background-image: none;
text-shadow: 0 1px 0 #000;
background-color: #313841;
border: 1px solid #000;
color: #FFF!important;
opacity: 1;
}
.dataTables_scroll .checkbox {
margin: -8px 0;
}
table td button {
display: inline;
float: none;
margin-right: 0;
margin-bottom: 0;
}
table .actions {
text-align: right;
}

View file

@ -1,946 +0,0 @@
/* file manager window */
.el-finder {
width: 100%;
min-width: 400px;
background-color: #fff;
/* font:12px trebuchet ms,lucida grande,verdana,sans-serif; */
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border: 1px solid #ccc;
margin: -1px;
}
.el-finder-undocked {
position: absolute;
min-width: 400px;
border: 1px solid #ccc;
padding: 5px;
}
/* error messages */
.el-finder-err {
padding: 15px;
text-align: center;
background: #fee;
color: #cc0509;
border: 2px #844 solid;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
/* disabled */
.el-finder-disabled .el-finder-toolbar li,
.el-finder-disabled .el-finder-nav,
.el-finder-disabled .el-finder-cwd {
opacity: 0.35;
filter: alpha(opacity=35);
}
.el-finder .el-finder-droppable {
background-color: #99ccff;
}
.el-finder .ui-selected {
background-color: #ccc;
/* background-color:#c5e4f9;*/
}
.el-finder input {
margin: 0;
padding: 0;
outline: none;
border: 1px solid #ccc;
}
/************************************/
/* toolbar */
/************************************/
.el-finder-toolbar ul {
padding: 5px 7px !important;
margin: 0 !important;
list-style: none;
min-height: 24px;
border-bottom: 1px solid #999;
}
.el-finder-toolbar ul li {
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
vertical-align: top;
height: 22px;
width: 23px;
margin: 0 2px;
padding: 0;
background: url('../../../images/plugins/elfinder/toolbar.png') no-repeat;
border: 1px solid #aaa;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
}
.el-finder-toolbar ul li.delim {
border: none;
width: 3px;
background-position: 1px -610px;
}
.el-finder-toolbar ul li.el-finder-tb-hover {
border: 1px solid #888;
background-color: #ddd;
}
.el-finder-toolbar ul li.disabled {
opacity: 0.35;
filter: alpha(opacity=35);
}
.el-finder-toolbar ul li.back {
background-position: 3px -171px;
}
.el-finder-toolbar ul li.reload {
background-position: 3px -192px;
}
.el-finder-toolbar ul li.select {
background-position: 3px -214px;
}
.el-finder-toolbar ul li.open {
background-position: 4px -235px;
}
.el-finder-toolbar ul li.mkdir {
background-position: 4px -258px;
}
.el-finder-toolbar ul li.mkfile {
background-position: 4px -280px;
}
.el-finder-toolbar ul li.upload {
background-position: 3px -305px;
}
.el-finder-toolbar ul li.rm {
background-position: 3px -330px;
}
.el-finder-toolbar ul li.copy {
background-position: 3px -356px;
}
.el-finder-toolbar ul li.paste {
background-position: 3px -381px;
}
.el-finder-toolbar ul li.rename {
background-position: 3px -407px;
}
.el-finder-toolbar ul li.edit {
background-position: 4px -435px;
}
.el-finder-toolbar ul li.info {
background-position: 3px -462px;
}
.el-finder-toolbar ul li.help {
background-position: 3px -487px;
}
.el-finder-toolbar ul li.icons {
background-position: 3px -537px;
}
.el-finder-toolbar ul li.list {
background-position: 3px -557px;
}
.el-finder-toolbar ul li.uncompress {
background-position: 3px -583px;
}
.el-finder-toolbar ul li.resize {
background-position: 3px -656px;
}
.el-finder-toolbar ul li.quicklook {
background-position: 3px -726px;
}
.el-finder-dock-button {
width: 19px;
height: 19px;
float: right;
margin: 2px;
border: 1px solid #ccc;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background: url('../../../images/plugins/elfinder/toolbar.png') 2px -705px no-repeat;
}
.ui-dialog .el-finder-dock-button {
background-position: 2px -681px;
}
.el-finder-dock-button-hover {
background-color: #ccc;
border: 1px solid #fff;
}
/**********************************************************/
/* workzone, container for navigation and current folder */
/**********************************************************/
.el-finder-workzone {
background-color: #fff;
/* border-top:1px solid #ccc; */
border-bottom: 1px solid #ccc;
position: relative;
}
.el-finder-spinner {
position: absolute;
top: 37%;
left: 37%;
width: 250px;
height: 50px;
background: transparent url('../../../images/plugins/elfinder/spinner.gif') 50% 50% no-repeat;
display: none;
}
/* error in workzone */
.el-finder-workzone p.el-finder-err {
display: none;
position: absolute;
left: 37%;
top: 20px;
}
/* navigation and current directory */
.el-finder-nav,
.el-finder-cwd {
/* height:350px; */
min-height: 150px;
overflow: auto;
padding: 5px 10px 5px 5px;
}
/************************************/
/* navigation */
/************************************/
.el-finder-nav {
float: left;
width: 200px;
background: #fff;
}
.el-finder-nav .ui-resizable-e {
right: 0;
}
/* folders tree */
.el-finder-nav ul {
list-style: none;
margin: 0;
padding: 0;
}
.el-finder-nav ul li {
clear: both;
}
ul.el-finder-tree,
ul.el-finder-places {
margin-bottom: 1em;
}
.el-finder-nav ul li ul {
margin-left: 12px;
margin-bottom: 0;
}
.el-finder-nav ul div {
width: 12px;
height: 20px;
float: left;
margin-right: 23px;
}
.el-finder-nav a,
.el-finder-nav div.collapsed {
background-image: url("../../../images/plugins/elfinder/toolbar.png");
background-repeat: no-repeat;
}
.el-finder-nav div.collapsed {
background-position: -1px 7px;
}
.el-finder-nav div.expanded {
background-position: -1px -9px;
}
.el-finder-nav a {
display: block;
white-space: nowrap;
line-height: 20px;
color: #555 !important;
cursor: default;
text-decoration: none;
outline: none;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background-position: 15px -56px;
}
.el-finder-nav a.dropbox {
background-position: 15px -80px;
}
.el-finder-nav a.readonly {
background-position: 15px -104px;
}
.el-finder-nav a.noaccess {
background-position: 15px -750px;
}
.el-finder-nav a.selected {
/* background-color:#ccc;*/
background-color: #f1f1f1;
background-position: 15px -128px;
}
.el-finder-nav a.el-finder-tree-root {
background-position: 15px -30px;
font-weight: bold;
}
.el-finder-nav a.el-finder-places-root {
background-position: 15px -152px;
font-weight: bold;
}
.el-finder-nav ul.el-finder-tree .el-finder-droppable {
background-position: 15px -237px;
}
/***********************************/
/* current working directory */
/************************************/
.el-finder-cwd {
border-left: 0px solid #ccc;
padding: 0px;
}
/********** view: icons ************/
.el-finder-cwd div {
width: 81px;
display: -moz-inline-stack;
display: inline-block;
vertical-align: top;
zoom: 1;
*display: inline;
margin: 0 3px 3px 0;
margin: 10px 0px 0px 10px;
padding: 1px 0;
text-align: center;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
color: #000;
background-color: transparent;
}
.el-finder-cwd p,
.el-finder-ql p {
width: 48px;
height: 48px;
margin: 1px auto;
padding: 0;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: url('../../../images/plugins/elfinder/icons-big.png') -1px 1px no-repeat;
}
/* mimetypes */
.directory p {
background-position: 0 -50px;
}
.application p,
.x-java p {
background-position: -1px -150px;
}
.audio p {
background-position: -1px -300px;
}
.image p {
background-position: -1px -250px;
}
.text p,
.x-empty p {
background-position: -1px -200px;
}
.video p {
background-position: -1px -350px;
}
.vnd-adobe-photoshop p,
.postscript p {
background-position: 0 -250px;
}
/* texts */
.rtf p,
.rtfd p {
background-position: 0 -400px;
}
.html p {
background-position: 0 -550px;
}
.css p {
background-position: 0 -600px;
}
.javascript p,
.x-javascript p {
background-position: 0 -650px;
}
.x-perl p {
background-position: 0 -700px;
}
.x-python p {
background-position: 0 -750px;
}
.x-ruby p {
background-position: 0 -800px;
}
.x-sh p,
.x-shellscript p {
background-position: 0 -850px;
}
.x-c p,
.x-java-source p {
background-position: 0 -900px;
}
.x-php p {
background-position: 0 -950px;
}
.xml p {
background-position: 0 -1000px;
}
/* applications */
.vnd-ms-office p,
.msword p,
.vnd-ms-word p,
.vnd-oasis-opendocument-text p,
.ms-excel p,
.vnd-ms-excel p,
.vnd-oasis-opendocument-spreadsheet p,
.vnd-ms-powerpoint p,
.vnd-oasis-opendocument-presentation p {
background-position: 0 -500px;
}
.pdf p {
background-position: 0 -450px;
}
.x-shockwave-flash p {
background-position: 0 -1250px;
}
/* archives */
.zip p,
.x-7z-compressed p {
background-position: 0 -1050px;
}
.x-gzip p,
.x-tar p {
background-position: 0 -1100px;
}
.x-bzip p,
.x-bzip2 p {
background-position: 0 -1150px;
}
.x-rar p,
.x-rar-compressed p {
background-position: 0 -1200px;
}
.el-finder-cwd div.el-finder-droppable p {
background-position: 0 -98px;
}
.el-finder-cwd label {
display: block;
font-size: 11px;
line-height: 13px;
padding: 0 1px;
margin: 0;
height: 25px;
overflow: hidden;
cursor: default;
}
.el-finder-cwd div input {
background: #fff;
color: #000;
width: 81px;
margin-left: -2px;
outline: none;
border: 1px solid #ccc;
text-align: center;
}
.el-finder-cwd div em {
float: left;
margin-top: -40px;
margin-left: 9px;
width: 15px;
height: 16px;
background: url("../../../images/plugins/elfinder/icons-big.png") -17px -1310px no-repeat;
}
.el-finder-cwd div em.dropbox {
float: right;
margin-right: 9px;
background-position: 0 -1308px;
}
.el-finder-cwd div em.noread {
float: right;
margin-right: 9px;
background-position: 0 -1310px;
}
.el-finder-cwd div em.readonly {
float: right;
margin-right: 9px;
background-position: -34px -1306px;
}
.el-finder-cwd div em.noaccess {
float: right;
margin-right: 9px;
background-position: 0 -1430px;
}
/********** view: list ************/
.el-finder-cwd table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
border-bottom: 0px solid #ccc;
margin: 0;
}
.el-finder-cwd table tr {
background: transparent;
}
.el-finder-cwd table tr.el-finder-row-odd {
background-color: #f7f7f7;
}
.el-finder-cwd table tr.ui-selected {
background-color: #ddd;
}
.el-finder-cwd table th,
.el-finder-cwd table td {
padding: 3px 5px;
/* border-left:1px solid #ccc; */
cursor: default;
white-space: nowrap;
color: #000;
}
.el-finder-cwd table th {
text-align: left;
background: #fcfcfc;
font-size: .86em;
}
.el-finder-cwd table td.icon {
width: 24px;
}
.el-finder-cwd table p {
width: 24px;
height: 16px;
margin: 0;
padding: 0;
background: url("../../../images/plugins/elfinder/icons-small.png") 4px 0 no-repeat;
}
.el-finder-cwd table .size {
text-align: right;
}
tr.directory p {
background-position: 4px -16px;
}
tr.text p {
background-position: 5px -34px;
}
tr.image p {
background-position: 4px -51px;
}
tr.audio p {
background-position: 4px -70px;
}
tr.video p {
background-position: 5px -89px;
}
tr.application p {
background-position: 4px -108px;
}
/* text */
tr.html p {
background-position: 5px -188px;
}
tr.javascript p,
tr.x-javascript p,
tr.css p,
tr.x-sql p,
tr.xml p,
tr.x-python p,
tr.x-java-source p,
tr.x-perl p,
tr.x-ruby p {
background-position: 5px -228px;
}
tr.x-php p {
background-position: 5px -247px;
}
tr.x-c p {
background-position: 5px -208px;
}
tr.x-shellscript p,
tr.x-sh p {
background-position: 5px -168px;
}
tr.rtf p,
tr.rtfd p {
background-position: 5px -148px;
}
/* application */
tr.x-shockwave-flash p {
background-position: 4px -266px;
}
tr.pdf p {
background-position: 4px -285px;
}
tr.vnd-ms-office p {
background-position: 4px -325px;
}
tr.msword p,
tr.vnd-oasis-opendocument-text p,
tr.vnd-ms-word p {
background-position: 4px -346px;
}
tr.vnd-ms-excel p,
tr.ms-excel p,
tr.vnd-oasis-opendocument-spreadsheet {
background-position: 4px -365px;
}
tr.vnd-ms-powerpoint p,
tr.vnd-oasis-opendocument-presentation {
background-position: 4px -385px;
}
/* archives */
tr.x-tar p,
tr.x-gzip p,
tr.x-bzip p,
tr.x-bzip2 p,
tr.zip p,
tr.x-rar p,
tr.x-rar-compressed p,
tr.x-7z-compressed p {
background-position: 4px -305px;
}
tr.el-finder-droppable td.icon p {
background-position: 5px -450px;
}
.el-finder-cwd table td p em {
float: left;
width: 10px;
height: 12px;
margin-top: 5px;
background: url("../../../images/plugins/elfinder/icons-small.png") 0px -405px no-repeat;
}
.el-finder-cwd table p em.readonly {
background-position: 0px -433px;
}
.el-finder-cwd table p em.dropbox {
background-position: 0px -418px;
}
.el-finder-cwd table p em.noread,
.el-finder-cwd table p em.noaccess {
background-position: 0px -470px;
}
/************************************/
/* statusbar */
/************************************/
.el-finder-statusbar {
height: 35px;
border: 1px solid #fff;
}
.el-finder-stat,
.el-finder-path,
.el-finder-sel {
padding: 0px 10px;
font-size: 12px;
color: #555;
line-height: 35px;
}
/* current directory path */
.el-finder-path {
float: left;
}
/* number folders/files in current directory and size */
.el-finder-stat {
float: right;
}
/* info about selected files */
.el-finder-sel {
text-align: center;
}
/************************************/
/* dialog window */
/************************************/
.el-finder-dialog {
font-size: .84em;
}
.el-finder-dialog form p,
.el-finder-dialog .ui-tabs p {
margin: .5em;
}
.el-finder-dialog .ui-dialog-titlebar {
padding: .2em .1em .1em .8em;
}
.el-finder-dialog .ui-dialog-buttonpane {
padding: .1em 1em .1em .4em;
font-size: .9em;
}
.el-finder-dialog .ui-dialog-content {
padding: 5px;
}
.el-finder-dialog hr {
border: 0;
border-bottom: 1px #ccc solid;
clear: both;
}
.el-finder-dialog ul {
margin-top: 0;
}
.el-finder-dialog kbd {
font-size: 1.2em;
}
.el-finder-dialog a {
outline: none;
}
.el-finder-dialog textarea {
width: 98.9%;
height: 400px;
outline: none;
border: 1px solid #ccc;
font-family: "Monaco", "Andale Mono", "Lucida Console", monospace;
}
.el-finder-dialog .ui-state-error {
margin: 5px 0;
padding: .5em;
clear: both;
}
.el-finder-dialog .ui-state-error .ui-icon {
float: left;
margin-right: .3em;
}
.el-finder-add-field {
cursor: pointer;
}
.el-finder-add-field span {
float: left;
margin-right: .7em;
}
.el-finder-dialog table {
width: 100%;
}
.el-finder-dialog table td {
padding: 2px 5px;
}
.el-finder-dialog .ui-tabs {
font-size: .98em;
}
.el-finder-dialog .ui-tabs div {
padding: 0 .5em;
}
.el-finder-dialog .ui-tabs-nav li a {
padding: .2em 1em;
}
/************************************/
/* contextmenu */
/************************************/
.el-finder-contextmenu {
position: absolute;
width: 200px;
background: #fff;
color: #000;
cursor: default;
border: 1px solid #ccc;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding: 5px 0;
}
.el-finder-contextmenu div {
position: relative;
display: block;
margin: 0;
padding: 4px 29px 4px 29px;
white-space: nowrap;
font: 12px trebuchet ms, lucida grande, verdana, sans-serif;
background: url('../../../images/plugins/elfinder/toolbar.png') 0 0 no-repeat;
}
.el-finder-contextmenu span {
float: right;
width: 9px;
height: 18px;
margin-right: -27px;
background: url("../../../images/plugins/elfinder/toolbar.png") -4px 5px no-repeat;
}
.el-finder-contextmenu div.el-finder-contextmenu-sub {
position: absolute;
top: 0;
display: none;
margin: 0;
padding: 5px 0;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.el-finder-contextmenu div.reload {
background-position: 5px -192px;
}
.el-finder-contextmenu div.select {
background-position: 5px -214px;
}
.el-finder-contextmenu div.open {
background-position: 6px -235px;
}
.el-finder-contextmenu div.mkdir {
background-position: 6px -258px;
}
.el-finder-contextmenu div.mkfile {
background-position: 6px -280px;
}
.el-finder-contextmenu div.upload {
background-position: 5px -305px;
}
.el-finder-contextmenu div.rm {
background-position: 5px -330px;
}
.el-finder-contextmenu div.copy {
background-position: 5px -356px;
}
.el-finder-contextmenu div.cut {
background-position: 5px -631px;
}
.el-finder-contextmenu div.duplicate {
background-position: 5px -356px;
}
.el-finder-contextmenu div.paste {
background-position: 5px -381px;
}
.el-finder-contextmenu div.rename {
background-position: 5px -407px;
}
.el-finder-contextmenu div.edit {
background-position: 6px -435px;
}
.el-finder-contextmenu div.info {
background-position: 5px -462px;
}
.el-finder-contextmenu div.help {
background-position: 5px -487px;
}
.el-finder-contextmenu div.icons {
background-position: 5px -537px;
}
.el-finder-contextmenu div.list {
background-position: 5px -557px;
}
.el-finder-contextmenu div.archive {
background-position: 5px -583px;
}
.el-finder-contextmenu div.extract {
background-position: 5px -583px;
}
.el-finder-contextmenu div.resize {
background-position: 5px -655px;
}
.el-finder-contextmenu div.quicklook {
background-position: 5px -727px;
}
.el-finder-contextmenu div.delim {
margin: 0;
padding: 0;
height: 1px;
border-top: 1px solid #eee;
background: transparent;
display: block;
}
.el-finder-contextmenu div.hover {
background-color: #99ccff;
}
.el-finder-places {
margin-top: .5em;
}
.el-finder-drag-helper {
padding: 0;
cursor: move;
zoom: 1;
}
.el-finder-drag-helper div {
border: 0 solid;
margin-left: -57px;
}
.el-finder-drag-copy {
background: url('../../../images/plugins/elfinder/toolbar.png') 0 -771px no-repeat;
}
.el-finder-drag-helper label {
border: 1px solid #ccc;
background-color: #eee;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
/************************************/
/* QuickLook */
/************************************/
.el-finder-ql {
position: absolute;
width: 420px;
height: auto;
padding: 12px 9px;
text-align: center;
border-radius: 9px;
-moz-border-radius: 9px;
-webkit-border-radius: 9px;
background: url("../../../images/plugins/elfinder/ql.png");
overflow: inherit !important;
}
.el-finder-ql.directory p {
background-position: 0 -50px;
}
/* toolbar */
.el-finder-ql div.el-finder-ql-drag-handle {
height: 18px;
font-size: 14px;
background-color: #777;
margin: -12px -9px 12px -9px;
padding: 3px 0 0 19px;
opacity: .8;
text-align: center;
white-space: nowrap;
overflow: hidden;
-moz-border-radius-topleft: 9px;
-moz-border-radius-topright: 9px;
-webkit-border-top-left-radius: 9px;
-webkit-border-top-right-radius: 9px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
}
/* close button */
.el-finder-ql div.el-finder-ql-drag-handle span {
float: left;
margin: 0 19px 0 -15px;
}
/* title in tolbar */
.el-finder-ql div.el-finder-ql-drag-handle strong {
line-height: 18px;
margin-left: -17px;
color: #fff;
}
.el-finder-ql div.el-finder-ql-media {
width: 100%;
padding: 0;
}
.el-finder-ql div.el-finder-ql-content {
width: 100%;
font: 0.82em/1.3em trebuchet ms, lucida grande, verdana, sans-serif;
padding: 5px 0;
overflow: hidden;
}
.el-finder-ql div.el-finder-ql-content span,
.el-finder-ql div.el-finder-ql-content a {
display: block;
color: #fff;
}
/* text files preview */
.el-finder-ql iframe {
background: #fff;
width: 100%;
height: 315px;
padding: 0;
margin: 0;
border: none;
outline: none;
}
/* images preview */
.el-finder-ql img {
margin: 0 auto;
border: 1px solid #fff;
}
/* button help */
.el-finder-help-std {
background: url("../../../images/plugins/elfinder/icons-big.png") 0 -1380px no-repeat;
width: 48px;
height: 48px;
float: right;
}
.el-finder-logo {
background: url("../../../images/plugins/elfinder/icons-big.png") 0 -1329px no-repeat;
width: 48px;
height: 48px;
float: left;
}
.el-finder-ql .ui-resizable-e,
.el-finder-ql .ui-resizable-s {
background: transparent !important;
}

View file

@ -1,211 +0,0 @@
/*! fancyBox v2.0.6 */
.fancybox-tmp iframe,
.fancybox-tmp object {
vertical-align: top;
padding: 0;
margin: 0;
}
.fancybox-wrap {
position: absolute;
top: 0;
left: 0;
z-index: 8020;
}
.fancybox-skin {
position: relative;
padding: 0;
margin: 0;
background: #f9f9f9;
color: #444;
text-shadow: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.fancybox-opened {
z-index: 8030;
}
.fancybox-opened .fancybox-skin {
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fancybox-outer,
.fancybox-inner {
padding: 0;
margin: 0;
position: relative;
outline: none;
}
.fancybox-inner {
overflow: hidden;
}
.fancybox-type-iframe .fancybox-inner {
-webkit-overflow-scrolling: touch;
}
.fancybox-error {
color: #444;
font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: 0;
padding: 10px;
}
.fancybox-image,
.fancybox-iframe {
display: block;
width: 100%;
height: 100%;
border: 0;
padding: 0;
margin: 0;
vertical-align: top;
}
.fancybox-image {
max-width: 100%;
max-height: 100%;
}
#fancybox-loading,
.fancybox-close,
.fancybox-prev span,
.fancybox-next span {
background-image: url('../../../images/plugins/fancybox/fancybox_sprite.png');
}
#fancybox-loading {
position: fixed;
top: 50%;
left: 50%;
margin-top: -22px;
margin-left: -22px;
background-position: 0 -108px;
opacity: 0.8;
cursor: pointer;
z-index: 8020;
}
#fancybox-loading div {
width: 44px;
height: 44px;
background: url('../../../images/plugins/fancybox/fancybox_loading.gif') center center no-repeat;
}
.fancybox-close {
position: absolute;
top: -18px;
right: -18px;
width: 36px;
height: 36px;
cursor: pointer;
z-index: 8040;
}
.fancybox-nav {
position: absolute;
top: 0;
width: 40%;
height: 100%;
cursor: pointer;
background: transparent url('../../../images/plugins/fancybox/blank.gif');
/* helps IE */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
z-index: 8040;
}
.fancybox-prev {
left: 0;
}
.fancybox-next {
right: 0;
}
.fancybox-nav span {
position: absolute;
top: 50%;
width: 36px;
height: 34px;
margin-top: -18px;
cursor: pointer;
z-index: 8040;
visibility: hidden;
}
.fancybox-prev span {
left: 20px;
background-position: 0 -36px;
}
.fancybox-next span {
right: 20px;
background-position: 0 -72px;
}
.fancybox-nav:hover span {
visibility: visible;
}
.fancybox-tmp {
position: absolute;
top: -9999px;
left: -9999px;
padding: 0;
overflow: visible;
visibility: hidden;
}
/* Overlay helper */
#fancybox-overlay {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
display: none;
z-index: 8010;
background: #000;
}
#fancybox-overlay.overlay-fixed {
position: fixed;
bottom: 0;
right: 0;
}
/* Title helper */
.fancybox-title {
visibility: hidden;
font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
position: relative;
text-shadow: none;
z-index: 8050;
}
.fancybox-opened .fancybox-title {
visibility: visible;
}
.fancybox-title-float-wrap {
position: absolute;
bottom: 0;
right: 50%;
margin-bottom: -35px;
z-index: 8030;
text-align: center;
}
.fancybox-title-float-wrap .child {
display: inline-block;
margin-right: -100%;
padding: 2px 20px;
background: transparent;
/* Fallback for web browsers that doesn't support RGBa */
background: rgba(0, 0, 0, 0.8);
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
text-shadow: 0 1px 2px #222;
color: #FFF;
font-weight: bold;
line-height: 24px;
white-space: nowrap;
}
.fancybox-title-outside-wrap {
position: relative;
margin-top: 10px;
color: #fff;
}
.fancybox-title-inside-wrap {
margin-top: 10px;
}
.fancybox-title-over-wrap {
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
background: #000;
background: rgba(0, 0, 0, 0.8);
}

View file

@ -1,522 +0,0 @@
/*
* FullCalendar v1.5.3 Stylesheet
*
* Copyright (c) 2011 Adam Shaw
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: Mon Feb 6 22:40:40 2012 -0800
*
*/
.fc {
direction: ltr;
text-align: left;
}
.fc table {
border-collapse: collapse;
border-spacing: 0;
}
html .fc,
.fc table {
font-size: 1em;
}
.fc td,
.fc th {
padding: 0;
vertical-align: top;
}
/* Header
------------------------------------------------------------------------*/
.fc-header td {
white-space: nowrap;
}
.fc-header-left {
width: 25%;
text-align: left;
}
.fc-header-center {
text-align: center;
}
.fc-header-right {
width: 25%;
text-align: right;
}
.fc-header-title {
display: inline-block;
vertical-align: top;
}
.fc-header-title h2 {
margin-top: 0 !important;
white-space: nowrap;
}
.fc .fc-header-space {
padding-left: 10px;
}
.fc-header .fc-button {
margin-bottom: 1em;
vertical-align: top;
}
/* buttons edges butting together */
.fc-header .fc-button {
margin-right: -1px;
}
.fc-header .fc-corner-right {
margin-right: 1px;
/* back to normal */
}
.fc-header .ui-corner-right {
margin-right: 0;
/* back to normal */
}
/* button layering (for border precedence) */
.fc-header .fc-state-hover,
.fc-header .ui-state-hover {
z-index: 2;
}
.fc-header .fc-state-down {
z-index: 3;
}
.fc-header .fc-state-active,
.fc-header .ui-state-active {
z-index: 4;
}
/* Content
------------------------------------------------------------------------*/
.fc-content {
clear: both;
}
.fc-view {
width: 100%;
/* needed for view switching (when view is absolute) */
overflow: hidden;
}
/* Cell Styles
------------------------------------------------------------------------*/
.fc-widget-header,
.fc-widget-content {
/* <td>, usually */
border: 1px solid #ccc;
}
.fc-state-highlight {
/* <td> today cell */
/* TODO: add .fc-today to <th> */
background: #ffc;
}
.fc-cell-overlay {
/* semi-transparent rectangle while dragging */
background: #9cf;
opacity: .2;
filter: alpha(opacity=20);
/* for IE */
}
/* Buttons
------------------------------------------------------------------------*/
.fc-button {
position: relative;
display: inline-block;
cursor: pointer;
}
.fc-state-default {
/* non-theme */
border-style: solid;
border-width: 1px 0;
}
.fc-button-inner {
position: relative;
float: left;
overflow: hidden;
}
.fc-state-default .fc-button-inner {
/* non-theme */
border-style: solid;
border-width: 0 1px;
}
.fc-button-content {
position: relative;
float: left;
height: 1.9em;
line-height: 1.9em;
padding: 0 .6em;
white-space: nowrap;
}
/* icon (for jquery ui) */
.fc-button-content .fc-icon-wrap {
position: relative;
float: left;
top: 50%;
}
.fc-button-content .ui-icon {
position: relative;
float: left;
margin-top: -50%;
*margin-top: 0;
*top: -50%;
}
/* gloss effect */
.fc-state-default .fc-button-effect {
position: absolute;
top: 50%;
left: 0;
}
.fc-state-default .fc-button-effect span {
position: absolute;
top: -100px;
left: 0;
width: 500px;
height: 100px;
border-width: 100px 0 0 1px;
border-style: solid;
border-color: #fff;
background: #444;
opacity: .09;
filter: alpha(opacity=9);
}
/* button states (determines colors) */
.fc-state-default,
.fc-state-default .fc-button-inner {
border-style: solid;
border-color: #ccc #bbb #aaa;
background: #F3F3F3;
color: #000;
}
.fc-state-hover,
.fc-state-hover .fc-button-inner {
border-color: #999;
}
.fc-state-down,
.fc-state-down .fc-button-inner {
border-color: #555;
background: #777;
}
.fc-state-active,
.fc-state-active .fc-button-inner {
border-color: #555;
background: #777;
color: #fff;
}
.fc-state-disabled,
.fc-state-disabled .fc-button-inner {
color: #999;
border-color: #ddd;
}
.fc-state-disabled {
cursor: default;
}
.fc-state-disabled .fc-button-effect {
display: none;
}
/* Global Event Styles
------------------------------------------------------------------------*/
.fc-event {
border-style: solid;
border-width: 0;
font-size: .85em;
cursor: default;
}
a.fc-event,
.fc-event-draggable {
cursor: pointer;
}
a.fc-event {
text-decoration: none;
}
.fc-rtl .fc-event {
text-align: right;
}
.fc-event-skin {
border-color: #36c;
/* default BORDER color */
background-color: #36c;
/* default BACKGROUND color */
color: #fff;
/* default TEXT color */
}
.fc-event-inner {
position: relative;
width: 100%;
height: 100%;
border-style: solid;
border-width: 0;
overflow: hidden;
}
.fc-event-time,
.fc-event-title {
padding: 0 1px;
}
.fc .ui-resizable-handle {
/*** TODO: don't use ui-resizable anymore, change class ***/
display: block;
position: absolute;
z-index: 99999;
overflow: hidden;
/* hacky spaces (IE6/7) */
font-size: 300%;
/* */
line-height: 50%;
/* */
}
/* Horizontal Events
------------------------------------------------------------------------*/
.fc-event-hori {
border-width: 1px 0;
margin-bottom: 1px;
}
/* resizable */
.fc-event-hori .ui-resizable-e {
top: 0 !important;
/* importants override pre jquery ui 1.7 styles */
right: -3px !important;
width: 7px !important;
height: 100% !important;
cursor: e-resize;
}
.fc-event-hori .ui-resizable-w {
top: 0 !important;
left: -3px !important;
width: 7px !important;
height: 100% !important;
cursor: w-resize;
}
.fc-event-hori .ui-resizable-handle {
_padding-bottom: 14px;
/* IE6 had 0 height */
}
/* Fake Rounded Corners (for buttons and events)
------------------------------------------------------------*/
.fc-corner-left {
margin-left: 1px;
}
.fc-corner-left .fc-button-inner,
.fc-corner-left .fc-event-inner {
margin-left: -1px;
}
.fc-corner-right {
margin-right: 1px;
}
.fc-corner-right .fc-button-inner,
.fc-corner-right .fc-event-inner {
margin-right: -1px;
}
.fc-corner-top {
margin-top: 1px;
}
.fc-corner-top .fc-event-inner {
margin-top: -1px;
}
.fc-corner-bottom {
margin-bottom: 1px;
}
.fc-corner-bottom .fc-event-inner {
margin-bottom: -1px;
}
/* Fake Rounded Corners SPECIFICALLY FOR EVENTS
-----------------------------------------------------------------*/
.fc-corner-left .fc-event-inner {
border-left-width: 1px;
}
.fc-corner-right .fc-event-inner {
border-right-width: 1px;
}
.fc-corner-top .fc-event-inner {
border-top-width: 1px;
}
.fc-corner-bottom .fc-event-inner {
border-bottom-width: 1px;
}
/* Reusable Separate-border Table
------------------------------------------------------------*/
table.fc-border-separate {
border-collapse: separate;
}
.fc-border-separate th,
.fc-border-separate td {
border-width: 1px 0 0 1px;
}
.fc-border-separate th.fc-last,
.fc-border-separate td.fc-last {
border-right-width: 1px;
}
.fc-border-separate tr.fc-last th,
.fc-border-separate tr.fc-last td {
border-bottom-width: 1px;
}
.fc-border-separate tbody tr.fc-first td,
.fc-border-separate tbody tr.fc-first th {
border-top-width: 0;
}
/* Month View, Basic Week View, Basic Day View
------------------------------------------------------------------------*/
.fc-grid th {
text-align: center;
}
.fc-grid .fc-day-number {
float: right;
padding: 0 2px;
}
.fc-grid .fc-other-month .fc-day-number {
opacity: 0.3;
filter: alpha(opacity=30);
/* for IE */
/* opacity with small font can sometimes look too faded
might want to set the 'color' property instead
making day-numbers bold also fixes the problem */
}
.fc-grid .fc-day-content {
clear: both;
padding: 2px 2px 1px;
/* distance between events and day edges */
}
/* event styles */
.fc-grid .fc-event-time {
font-weight: bold;
}
/* right-to-left */
.fc-rtl .fc-grid .fc-day-number {
float: left;
}
.fc-rtl .fc-grid .fc-event-time {
float: right;
}
/* Agenda Week View, Agenda Day View
------------------------------------------------------------------------*/
.fc-agenda table {
border-collapse: separate;
}
.fc-agenda-days th {
text-align: center;
}
.fc-agenda .fc-agenda-axis {
width: 50px;
padding: 0 4px;
vertical-align: middle;
text-align: right;
white-space: nowrap;
font-weight: normal;
}
.fc-agenda .fc-day-content {
padding: 2px 2px 1px;
}
/* make axis border take precedence */
.fc-agenda-days .fc-agenda-axis {
border-right-width: 1px;
}
.fc-agenda-days .fc-col0 {
border-left-width: 0;
}
/* all-day area */
.fc-agenda-allday th {
border-width: 0 1px;
}
.fc-agenda-allday .fc-day-content {
min-height: 34px;
/* TODO: doesnt work well in quirksmode */
_height: 34px;
}
/* divider (between all-day and slots) */
.fc-agenda-divider-inner {
height: 2px;
overflow: hidden;
}
.fc-widget-header .fc-agenda-divider-inner {
background: #eee;
}
/* slot rows */
.fc-agenda-slots th {
border-width: 1px 1px 0;
}
.fc-agenda-slots td {
border-width: 1px 0 0;
background: none;
}
.fc-agenda-slots td div {
height: 20px;
}
.fc-agenda-slots tr.fc-slot0 th,
.fc-agenda-slots tr.fc-slot0 td {
border-top-width: 0;
}
.fc-agenda-slots tr.fc-minor th,
.fc-agenda-slots tr.fc-minor td {
border-top-style: dotted;
}
.fc-agenda-slots tr.fc-minor th.ui-widget-header {
*border-top-style: solid;
/* doesn't work with background in IE6/7 */
}
/* Vertical Events
------------------------------------------------------------------------*/
.fc-event-vert {
border-width: 0 1px;
}
.fc-event-vert .fc-event-head,
.fc-event-vert .fc-event-content {
position: relative;
z-index: 2;
width: 100%;
overflow: hidden;
}
.fc-event-vert .fc-event-time {
white-space: nowrap;
font-size: 10px;
}
.fc-event-vert .fc-event-bg {
/* makes the event lighter w/ a semi-transparent overlay */
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #fff;
opacity: .3;
filter: alpha(opacity=30);
}
.fc .ui-draggable-dragging .fc-event-bg,
.fc-select-helper .fc-event-bg {
display: none\9;
/* for IE6/7/8. nested opacity filters while dragging don't work */
}
/* resizable */
.fc-event-vert .ui-resizable-s {
bottom: 0 !important;
/* importants override pre jquery ui 1.7 styles */
width: 100% !important;
height: 8px !important;
overflow: hidden !important;
line-height: 8px !important;
font-size: 11px !important;
font-family: monospace;
text-align: center;
cursor: s-resize;
}
.fc-agenda .ui-resizable-resizing {
/* TODO: better selector */
_overflow: hidden;
}

View file

@ -1,32 +0,0 @@
/*
.isotope-item {
z-index: 2;
}
.isotope-hidden.isotope-item {
pointer-events: none;
z-index: 1;
}
.isotope,
.isotope .isotope-item {
transition-duration: 0.8s;
}
.isotope {
transition-property: height, width;
}
.isotope .isotope-item {
transition-property: transform, opacity;
}
.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
transition-duration: 0s;
}
*/

View file

@ -1,170 +0,0 @@
/* Multiselect
----------------------------------*/
.ui-multiselect {
border: solid 0px #B6B6B6;
font-size: 12px;
padding: 1px;
width: 100% !important;
margin: 0px;
}
.ui-multiselect ul {
-moz-user-select: none;
}
.ui-multiselect li {
margin: 0;
padding: 0;
cursor: default;
line-height: 30px;
height: 30px;
font-size: 12px;
list-style: none;
border-top: 1px solid #fff !important;
border-bottom: 1px solid #aaa !important;
}
.ui-multiselect li a {
color: #999;
text-decoration: none;
padding: 0;
display: block;
float: left;
cursor: pointer;
}
.ui-multiselect li.ui-draggable-dragging {
padding-left: 10px;
}
.ui-multiselect div.selected {
position: relative;
padding: 0;
margin: 0;
border: 0;
float: left;
width: 60% !important;
margin: 0px;
}
.ui-multiselect ul.selected {
position: relative;
padding: 0;
overflow: auto;
overflow-x: hidden;
margin: 0;
list-style: none;
border: 0;
position: relative;
width: 100%;
height: auto !important;
}
.ui-multiselect ul.selected li {
border-right: 1px solid #aaa;
border-left: 1px solid #aaa;
}
.ui-multiselect div.available {
position: relative;
padding: 0;
margin: 0;
border: 0;
float: left;
border-left-width: 1px;
border-style: solid;
border-color: #aaa;
margin-left: -1px;
width: 40% !important;
margin: 0 0 -1px -1px;
height: auto !important;
}
.ui-multiselect ul.available {
position: relative;
padding: 0;
overflow: auto;
overflow-x: hidden;
margin: 0;
list-style: none;
border: 0;
width: 100%;
height: auto !important;
}
.ui-multiselect ul.available li {
padding-left: 10px;
border-right: 1px solid #aaa;
}
.ui-multiselect .ui-state-default {
border-width: 0 0 1px 0;
margin-bottom: 0px;
position: relative;
padding-left: 22px;
}
.ui-multiselect .ui-state-hover {
border-width: 0 0 1px 0;
}
.ui-multiselect .ui-widget-header {
border-width: 1px 0 1px 0;
border-color: #000;
font-size: 11px;
margin-bottom: 0px;
height: 32px;
line-height: 32px;
background: #4C5766;
color: #fff;
}
.ui-multiselect .selected .ui-widget-header {
margin: 0px -1px 0 0;
}
.ui-multiselect .available .ui-widget-header {
margin: 0 0px 0 1px;
}
.ui-multiselect .add-all {
float: right;
padding: 0 10px;
text-decoration: none;
color: #fff;
}
.ui-multiselect .remove-all {
float: right;
padding: 0 10px;
text-decoration: none;
color: #fff;
}
.ui-multiselect .search {
float: left;
padding: 0 5px;
background: none;
background: rgba(0, 0, 0, 0.1);
border: 1px solid #000;
color: #ccc;
-moz-box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.3);
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.3);
}
.ui-multiselect .search:focus {
background: none;
-moz-box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.5);
box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.5);
}
.ui-multiselect .count {
float: left;
padding: 0 10px;
}
.ui-multiselect li span.ui-icon-arrowthick-2-n-s {
position: absolute;
left: 2px;
top: 7px;
}
.ui-multiselect li a.action {
position: absolute;
right: 7px;
top: 7px;
}
.ui-multiselect input.search {
height: 14px;
padding: 3px;
opacity: 1;
margin: 5px;
width: 100px;
border: 1px solid rgba(0, 0, 0, 0.3);
}
/* multiselect styles */
.multisorter {
width: 470px;
height: 211px;
border: 1px solid #fff;
}

View file

@ -1,409 +0,0 @@
/*
Version: @@ver@@ Timestamp: @@timestamp@@
*/
.select2-container {
position: relative;
display: inline-block;
/* inline-block for ie7 */
zoom: 1;
*display: inline;
margin: 1px 0px !important;
min-height: 28px;
line-height: 28px;
}
.select2-container-multi {
margin: 0px 0 0 !important;
}
.select2-container.full_width {
width: 100% !important;
}
.select2-container,
.select2-drop,
.select2-search,
.select2-container .select2-search input {
/*
Force border-box so that % widths fit the parent
container without overlap because of margin/padding.
More Info : http://www.quirksmode.org/css/box.html
*/
-moz-box-sizing: border-box;
/* firefox */
-ms-box-sizing: border-box;
/* ie */
-webkit-box-sizing: border-box;
/* webkit */
-khtml-box-sizing: border-box;
/* konqueror */
box-sizing: border-box;
/* css3 */
}
.select2-container .select2-choice {
background-color: #fff;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, #ffffff));
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, #ffffff 50%);
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, #ffffff 50%);
background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
background-image: -ms-linear-gradient(top, #eeeeee 0%, #ffffff 50%);
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
background-image: linear-gradient(top, #eeeeee 0%, #ffffff 50%);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #aaa;
display: block;
overflow: hidden;
white-space: nowrap;
position: relative;
height: 26px;
line-height: 26px;
padding: 0 0 0 8px;
color: #444;
text-decoration: none;
}
.select2-container .select2-choice span {
margin-right: 26px;
display: block;
overflow: hidden;
white-space: nowrap;
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
}
.select2-container .select2-choice abbr {
display: block;
position: absolute;
right: 26px;
top: 8px;
width: 12px;
height: 12px;
font-size: 1px;
background: url("../../../images/plugins/select2/select2.png") right top no-repeat;
cursor: pointer;
text-decoration: none;
border: 0;
outline: 0;
}
.select2-container .select2-choice abbr:hover {
background-position: right -11px;
cursor: pointer;
}
.select2-container .select2-drop {
background: #fff;
border: 1px solid #aaa;
border-top: 0;
position: absolute;
top: 100%;
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
-o-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
z-index: 999;
width: 100%;
margin-top: -1px;
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}
.select2-container .select2-choice div {
-webkit-border-radius: 0 4px 4px 0;
-moz-border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
background: #ccc;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(0.6, #eeeeee));
background-image: -webkit-linear-gradient(center bottom, #cccccc 0%, #eeeeee 60%);
background-image: -moz-linear-gradient(center bottom, #cccccc 0%, #eeeeee 60%);
background-image: -o-linear-gradient(bottom, #cccccc 0%, #eeeeee 60%);
background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#cccccc', endColorstr='#eeeeee', GradientType=0);
background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
border-left: 1px solid #aaa;
position: absolute;
right: 0;
top: 0;
display: block;
height: 100%;
width: 18px;
}
.select2-container .select2-choice div b {
background: url("../../../images/plugins/select2/select2.png") no-repeat 0 1px;
display: block;
width: 100%;
height: 100%;
}
.select2-container .select2-search {
display: inline-block;
white-space: nowrap;
z-index: 1010;
min-height: 26px;
width: 100%;
margin: 0;
padding-left: 4px;
padding-right: 4px;
}
.select2-container .select2-search input {
background: #ffffff url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px;
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #ffffff), color-stop(0.99, #eeeeee));
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, -moz-linear-gradient(center bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, -o-linear-gradient(bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/select2.png") no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
padding: 4px 20px 4px 5px;
outline: 0;
border: 1px solid #aaa;
font-family: sans-serif;
font-size: 1em;
width: 100%;
margin: 0;
height: auto !important;
min-height: 26px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
}
.select2-container .select2-search input.select2-active {
background: #ffffff url("../../../images/plugins/select2/spinner.gif") no-repeat 100%;
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #ffffff), color-stop(0.99, #eeeeee));
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, -webkit-linear-gradient(center bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, -moz-linear-gradient(center bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, -o-linear-gradient(bottom, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
background: url("../../../images/plugins/select2/spinner.gif") no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
}
.select2-container-active .select2-choice,
.select2-container-active .select2-choices {
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
border: 1px solid #5897fb;
outline: none;
}
.select2-dropdown-open .select2-choice {
border: 1px solid #aaa;
border-bottom-color: transparent;
-webkit-box-shadow: 0 1px 0 #fff inset;
-moz-box-shadow: 0 1px 0 #fff inset;
-o-box-shadow: 0 1px 0 #fff inset;
box-shadow: 0 1px 0 #fff inset;
background-color: #eee;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ffffff), color-stop(0.5, #eeeeee));
background-image: -webkit-linear-gradient(center bottom, #ffffff 0%, #eeeeee 50%);
background-image: -moz-linear-gradient(center bottom, #ffffff 0%, #eeeeee 50%);
background-image: -o-linear-gradient(bottom, #ffffff 0%, #eeeeee 50%);
background-image: -ms-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
background-image: linear-gradient(top, #ffffff 0%, #eeeeee 50%);
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
-moz-border-radius-bottomleft: 0;
-moz-border-radius-bottomright: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.select2-dropdown-open .select2-choice div {
background: transparent;
border-left: none;
}
.select2-dropdown-open .select2-choice div b {
background-position: -18px 1px;
}
/* results */
.select2-container .select2-results {
margin: 4px 4px 4px 0;
padding: 0 0 0 4px;
position: relative;
overflow-x: hidden;
overflow-y: auto;
max-height: 200px;
}
.select2-container .select2-results li {
line-height: 80%;
padding: 7px 7px 8px !important;
margin: 0;
list-style: none;
cursor: pointer;
display: list-item;
}
.select2-container .select2-results .select2-highlighted {
background: #3875d7;
color: #fff;
}
.select2-container .select2-results li em {
background: #feffde;
font-style: normal;
}
.select2-container .select2-results .select2-highlighted em {
background: transparent;
}
.select2-container .select2-results .select2-no-results {
background: #f4f4f4;
display: list-item;
}
/*
disabled look for already selected choices in the results dropdown
.select2-container .select2-results .select2-disabled.select2-highlighted {
color: #666;
background: #f4f4f4;
display: list-item;
cursor: default;
}
.select2-container .select2-results .select2-disabled {
background: #f4f4f4;
display: list-item;
cursor: default;
}
*/
.select2-container .select2-results .select2-disabled {
display: none;
}
.select2-more-results.select2-active {
background: #f4f4f4 url("../../../images/plugins/select2/spinner.gif") no-repeat 100%;
}
.select2-more-results {
background: #f4f4f4;
display: list-item;
}
/* multiselect */
.select2-container-multi .select2-choices {
background-color: #fff;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
border: 1px solid #aaa;
margin: 0;
padding: 0;
cursor: text;
overflow: hidden;
height: auto !important;
height: 1%;
position: relative;
}
.select2-container-multi .select2-drop {
margin-top: 0;
}
.select2-container-multi.select2-container-active .select2-choices {
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
border: 1px solid #5897fb;
outline: none;
}
.select2-container-multi .select2-choices li {
float: left;
list-style: none;
}
.select2-container-multi .select2-choices .select2-search-field {
white-space: nowrap;
margin: 0;
padding: 0;
}
.select2-container-multi .select2-choices .select2-search-field input {
color: #666;
background: transparent !important;
font-family: sans-serif;
font-size: 100%;
height: 15px;
padding: 5px;
margin: 1px 0;
outline: 0;
border: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
}
.select2-default {
color: #999 !important;
}
.select2-container-multi .select2-choices .select2-search-choice {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
background-color: #e4e4e4;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
color: #333;
border: 1px solid #aaaaaa;
line-height: 13px;
padding: 3px 5px 3px 18px;
margin: 3px 0 3px 5px;
position: relative;
cursor: default;
}
.select2-container-multi .select2-choices .select2-search-choice span {
cursor: default;
}
.select2-container-multi .select2-choices .select2-search-choice-focus {
background: #d4d4d4;
}
.select2-search-choice-close {
display: block;
position: absolute;
right: 3px;
top: 4px;
width: 12px;
height: 13px;
font-size: 1px;
background: url("../../../images/plugins/select2/select2.png") right top no-repeat;
outline: none;
border-bottom: 0 !important;
}
.select2-container-multi .select2-search-choice-close {
left: 3px;
text-decoration: none;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
background-position: right -11px;
}
.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
background-position: right -11px;
}
.select2-container-multi .select2-results {
margin: -1px 0 0;
padding: 0;
}
/* end multiselect */
.select2.full .select2-container {
width: 100% !important;
}
.select2.full .select2-drop {
width: 100% !important;
box-sizing: border-box;
}
.select2.full .select2-container-single .select2-search input {
width: 100% !important;
box-sizing: border-box;
}

View file

@ -1,136 +0,0 @@
/* Dropdown control */
.selectBox-dropdown {
width: 210px;
/* width = (desired width) - padding-right */
padding-right: 40px;
position: relative;
border: solid 1px #BBB;
line-height: 1.5;
text-decoration: none;
color: #000;
outline: none;
vertical-align: middle;
background: #F2F2F2;
background: -moz-linear-gradient(top, #f8f8f8 1%, #e1e1e1 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #f8f8f8), color-stop(100%, #e1e1e1));
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#F8F8F8', endColorstr='#E1E1E1', GradientType=0);
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
display: inline-block;
cursor: default;
width: auto;
letter-spacing: normal;
}
.selectBox-dropdown:focus,
.selectBox-dropdown:focus .selectBox-arrow {
border-color: #666;
}
.selectBox-dropdown.selectBox-menuShowing {
-moz-border-radius-bottomleft: 0;
-moz-border-radius-bottomright: 0;
-webkit-border-bottom-left-radius: 0;
-webkit-border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.selectBox-dropdown .selectBox-label {
width: 100%;
padding: 5px 5px 0 10px;
display: inline-block;
white-space: nowrap;
overflow: hidden;
}
.selectBox-dropdown .selectBox-arrow {
position: absolute;
top: 0;
right: 0;
width: 23px;
height: 100%;
background: url(jquery.selectBox-arrow.gif) 50% center no-repeat;
border-left: solid 1px #BBB;
}
/* Dropdown menu */
.selectBox-dropdown-menu {
position: absolute;
z-index: 99999;
max-height: 200px;
border: solid 1px #BBB;
/* should be the same border width as .selectBox-dropdown */
background: #FFF;
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
overflow: auto;
}
/* Inline control */
.selectBox-inline {
width: 100%;
outline: none;
border: solid 1px #BBB;
background: #FFF;
display: inline-block;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
overflow: auto;
}
.selectBox-inline:focus {
border-color: #666;
}
/* Options */
.selectBox-options,
.selectBox-options LI,
.selectBox-options LI A {
list-style: none;
display: block;
cursor: default;
padding: 0;
margin: 0;
}
.selectBox-options LI A {
line-height: 1.5;
padding: 0 10px;
white-space: nowrap;
overflow: hidden;
background: 6px center no-repeat;
color: #555 !important;
}
.selectBox-options LI.selectBox-hover A {
background-color: #EEE;
}
.selectBox-options LI.selectBox-disabled A {
color: #888;
background-color: transparent;
}
.selectBox-options LI.selectBox-selected A {
background-color: #ddd;
}
.selectBox-options .selectBox-optgroup {
color: #666;
background: #EEE;
font-weight: bold;
line-height: 1.5;
padding: 0 .3em;
white-space: nowrap;
}
/* Disabled state */
.selectBox.selectBox-disabled {
color: #888 !important;
}
.selectBox-dropdown.selectBox-disabled .selectBox-arrow {
opacity: .5;
filter: alpha(opacity=50);
border-color: #666;
}
.selectBox-inline.selectBox-disabled {
color: #888 !important;
}
.selectBox-inline.selectBox-disabled .selectBox-options A {
background-color: transparent !important;
}

View file

@ -1,158 +0,0 @@
/*
* SliderNav - A Simple Content Slider with a Navigation Bar
* Copyright 2010 Monjurul Dolon, http://mdolon.com/
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://devgrow.com/slidernav
*/
.list_slider {
min-height: 250px;
display: block;
position: relative;
background: #fff;
overflow: hidden;
}
.list_slider ul {
list-style: none;
}
.slider-content {
float: left;
width: 100%;
display: block;
overflow: hidden;
min-height: 250px;
border-bottom: 1px solid #CCCCCC;
}
.slider-content ul {
float: left;
width: 100%;
display: block;
position: relative;
margin-bottom: 0px;
margin-top: 0px;
}
.slider-content ul li {
float: left;
width: 100%;
position: relative;
}
.slider-content ul ul li a {
padding: 5px 10px;
display: block;
border-bottom: 1px solid #f3f3f3;
text-transform: capitalize;
color: #555 !important;
}
.slider-content ul ul li:last-child a {
border-bottom: 0px;
}
.slider-content ul ul li a:hover {
background: #f3f3f3;
border-color: #d5d5d5;
}
.slider-content .title {
padding: 5px 0;
text-indent: 10px;
background: #bbb;
width: 98%;
float: left;
font-weight: bold;
text-transform: uppercase;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
color: #555;
text-shadow: 0 1px 0 #FFFFFF;
}
.slider-content .selected .title {
background: #666;
color: white;
text-shadow: 0 1px 0 #000;
}
.list_slider .slider-nav {
position: absolute;
right: 0;
top: 22px !important;
background: #D0D6DA;
min-height: 250px;
width: 40px;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
}
.list_slider .slider-nav ul {
padding: 5px 0;
margin: 0px;
}
.list_slider .slider-nav li a {
padding: 3px 5px;
line-height: 9px;
text-align: center;
color: #555;
text-shadow: 0 1px 0 #FFFFFF;
font-weight: bold;
display: block;
text-transform: uppercase;
cursor: pointer;
}
.list_slider #debug {
position: absolute;
bottom: 0;
left: 0;
padding: 5px;
background: #000;
color: #fff;
}
.list_slider .arrow {
font-size: 0px;
line-height: 0%;
width: 0px;
border-bottom: 5px solid #555555;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
position: relative;
top: -5px;
}
.list_slider .down {
border-bottom: none;
border-top: 5px solid #555;
top: 0px;
}
.list_slider .slide-up,
.list_slider .slide-down {
height: 20px;
background: #D0D6DA;
text-align: center;
cursor: pointer;
float: right;
width: 100%;
position: relative;
-moz-box-sizing: border-box;
box-sizing: border-box;
height: 23px;
}
.slide-up,
.slide-down {
border-bottom: 1px solid #aaa;
border-top: 1px solid #aaa;
border-left: 1px solid #fff;
border-right: 1px solid #aaa;
}
.slide-up {
margin-top: -1px;
padding-bottom: 1px;
}
.slide-down {
margin-top: -1px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px;
-moz-border-radius-bottomleft: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.slider-content ul ul li span {
position: absolute;
right: 47px;
top: 0;
line-height: 25px;
color: #999;
text-transform: lowercase;
}

View file

@ -1,424 +0,0 @@
/* smallipop css */
.smallipopHint {
display: none;
}
#smallipop {
position: absolute;
display: none;
top: 0;
left: 0;
background-color: #314b64;
border: 1px solid #0f161e;
color: #d2dfe7;
z-index: 9999;
max-width: 400px;
}
#smallipop .sipContent {
padding: 10px;
}
#smallipop .sipArrow,
#smallipop .sipArrowBorder {
position: absolute;
left: 50%;
height: 0;
width: 0;
}
#smallipop .sipArrow {
bottom: -20px;
margin-left: -10px;
border: 10px solid transparent;
}
#smallipop .sipArrowBorder {
bottom: -24px;
margin-left: -12px;
border: 12px solid transparent;
}
#smallipop.sipAlignLeft .sipArrow {
margin-left: 0;
left: auto;
right: 20px;
}
#smallipop.sipAlignLeft .sipArrowBorder {
margin-left: 0;
left: auto;
right: 18px;
}
#smallipop.sipAlignRight .sipArrow {
margin-left: 0;
left: 20px;
right: auto;
}
#smallipop.sipAlignRight .sipArrowBorder {
margin-left: 0;
left: 18px;
right: auto;
}
#smallipop.sipAlignBottom .sipArrow {
bottom: auto;
top: -20px;
}
#smallipop.sipAlignBottom .sipArrowBorder {
bottom: auto;
top: -24px;
}
#smallipop.sipPositionedLeft .sipArrow,
#smallipop.sipPositionedLeft .sipArrowBorder {
right: -16px;
left: auto;
top: 50%;
bottom: auto;
border-width: 8px;
margin: -8px 0 0;
}
#smallipop.sipPositionedLeft .sipArrowBorder {
right: -20px;
border-width: 10px;
margin: -10px 0 0;
}
#smallipop.sipPositionedRight .sipArrow,
#smallipop.sipPositionedRight .sipArrowBorder {
left: -16px;
right: auto;
top: 50%;
bottom: auto;
border-width: 8px;
margin: -8px 0 0;
}
#smallipop.sipPositionedRight .sipArrowBorder {
left: -20px;
border-width: 10px;
margin: -10px 0 0;
}
#smallipop a {
color: #98cbea;
}
/* default theme */
#smallipop.default {
text-shadow: 0 -1px 1px #0f161e;
}
#smallipop.default .sipContent {
border-top: 1px solid #586d82;
}
#smallipop.default a {
text-shadow: 0 -1px 1px #0f161e;
}
#smallipop.default .sipArrow {
border-color: #1a2634 transparent transparent transparent;
}
#smallipop.default .sipArrowBorder {
border-color: #0f161e transparent transparent transparent;
}
#smallipop.default.sipAlignBottom .sipArrow {
border-color: transparent transparent #1a2634 transparent;
}
#smallipop.default.sipAlignBottom .sipArrowBorder {
border-color: transparent transparent #0f161e transparent;
}
#smallipop.default.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent #1a2634;
}
#smallipop.default.sipPositionedLeft .sipArrowBorder {
border-color: transparent transparent transparent #0f161e;
}
#smallipop.default.sipPositionedRight .sipArrow {
border-color: transparent #1a2634 transparent transparent;
}
#smallipop.default.sipPositionedRight .sipArrowBorder {
border-color: transparent #0f161e transparent transparent;
}
.cssgradients.rgba #smallipop.default {
background-color: transparent;
background-repeat: repeat-x;
background-image: -webkit-linear-gradient(top, rgba(49, 75, 100, 0.9), rgba(26, 38, 52, 0.9));
background-image: -moz-linear-gradient(top, rgba(49, 75, 100, 0.9), rgba(26, 38, 52, 0.9));
background-image: -ms-linear-gradient(top, rgba(49, 75, 100, 0.9), rgba(26, 38, 52, 0.9));
background-image: -o-linear-gradient(top, rgba(49, 75, 100, 0.9), rgba(26, 38, 52, 0.9));
background-image: linear-gradient(top, rgba(49, 75, 100, 0.9), rgba(26, 38, 52, 0.9));
/* Fallback for opera */
background-image: -webkit-radial-gradient(50% -100px, circle contain, rgba(49, 75, 100, 0.9) 100px, rgba(33, 50, 66, 0.9) 130px, rgba(26, 38, 52, 0.9) 150px);
background-image: -moz-radial-gradient(50% -100px, circle contain, rgba(49, 75, 100, 0.9) 100px, rgba(33, 50, 66, 0.9) 130px, rgba(26, 38, 52, 0.9) 150px);
background-image: -ms-radial-gradient(50% -100px, circle contain, rgba(49, 75, 100, 0.9) 100px, rgba(33, 50, 66, 0.9) 130px, rgba(26, 38, 52, 0.9) 150px);
background-image: -o-radial-gradient(50% -100px, circle contain, rgba(49, 75, 100, 0.9) 100px, rgba(33, 50, 66, 0.9) 130px, rgba(26, 38, 52, 0.9) 150px);
background-image: radial-gradient(50% -100px, circle contain, rgba(49, 75, 100, 0.9) 100px, rgba(33, 50, 66, 0.9) 130px, rgba(26, 38, 52, 0.9) 150px);
}
.boxshadow.rgba #smallipop.default {
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.borderradius #smallipop.default {
border-radius: 12px;
-o-border-radius: 12px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
}
.borderradius #smallipop.default .sipContent {
border-radius: 12px;
-o-border-radius: 12px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
}
/* blue theme */
#smallipop.blue {
background: transparent;
border: 10px solid #0064b4;
color: #111;
font-size: 11px;
}
#smallipop.blue a {
color: #2276aa;
}
#smallipop.blue .sipContent {
border: 0;
background: #fefefe;
}
#smallipop.blue .sipArrow {
bottom: -30px;
border-color: #0064b4 transparent transparent transparent;
}
#smallipop.blue.sipAlignBottom .sipArrow {
top: -30px;
border-color: transparent transparent #0064b4 transparent;
}
#smallipop.blue.sipPositionedLeft .sipArrow {
right: -26px;
border-color: transparent transparent transparent #0064b4;
}
#smallipop.blue.sipPositionedRight .sipArrow {
left: -26px;
border-color: transparent #0064b4 transparent transparent;
}
.rgba #smallipop.blue {
border-color: rgba(0, 100, 180, 0.9);
}
.rgba #smallipop.blue .sipArrow {
border-color: rgba(0, 100, 180, 0.9) transparent transparent transparent;
}
.rgba #smallipop.blue.sipAlignBottom .sipArrow {
border-color: transparent transparent rgba(0, 100, 180, 0.9) transparent;
}
.rgba #smallipop.blue.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent rgba(0, 100, 180, 0.9);
}
.rgba #smallipop.blue.sipPositionedRight .sipArrow {
border-color: transparent rgba(0, 100, 180, 0.9) transparent transparent;
}
.boxshadow.rgba #smallipop.blue {
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.borderradius #smallipop.blue {
border-radius: 7px;
-o-border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
}
/* black theme */
#smallipop.black {
background-color: #222;
border-color: #111;
text-shadow: 0 -1px 1px #111111;
color: #f5f5f5;
}
#smallipop.black a {
color: #eef8ff;
text-shadow: 0 -1px 1px #111111;
}
#smallipop.black .sipContent {
border-top: 1px solid #666;
}
#smallipop.black .sipArrow {
border-color: #222 transparent transparent transparent;
}
#smallipop.black .sipArrowBorder {
border-color: #111 transparent transparent transparent;
}
#smallipop.black.sipAlignBottom .sipArrow {
border-color: transparent transparent #222 transparent;
}
#smallipop.black.sipAlignBottom .sipArrowBorder {
border-color: transparent transparent #111 transparent;
}
#smallipop.black.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent #222;
}
#smallipop.black.sipPositionedLeft .sipArrowBorder {
border-color: transparent transparent transparent #111;
}
#smallipop.black.sipPositionedRight .sipArrow {
border-color: transparent #222 transparent transparent;
}
#smallipop.black.sipPositionedRight .sipArrowBorder {
border-color: transparent #111 transparent transparent;
}
.cssgradients #smallipop.black {
background-color: transparent;
background-repeat: repeat-x;
background-image: -webkit-linear-gradient(top, #333333, #222222);
background-image: -moz-linear-gradient(top, #333333, #222222);
background-image: -ms-linear-gradient(top, #333333, #222222);
background-image: -o-linear-gradient(top, #333333, #222222);
background-image: linear-gradient(top, #333333, #222222);
}
.boxshadow.rgba #smallipop.black {
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.borderradius #smallipop.black {
border-radius: 5px;
-o-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.borderradius #smallipop.black .sipContent {
border-radius: 5px;
-o-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
/* orange theme */
#smallipop.orange {
background-color: #f9aa18;
border-color: #e17500;
text-shadow: 0 1px 1px #fff24d;
color: #714900;
}
#smallipop.orange a {
color: #145d95;
text-shadow: 0 1px 1px #fff24d;
}
#smallipop.orange .sipContent {
border-top: 1px solid #fffabc;
}
#smallipop.orange .sipArrow {
border-color: #f9aa18 transparent transparent transparent;
}
#smallipop.orange .sipArrowBorder {
border-color: #e17500 transparent transparent transparent;
}
#smallipop.orange.sipAlignBottom .sipArrow {
border-color: transparent transparent #f9aa18 transparent;
}
#smallipop.orange.sipAlignBottom .sipArrowBorder {
border-color: transparent transparent #e17500 transparent;
}
#smallipop.orange.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent #f9c718;
}
#smallipop.orange.sipPositionedLeft .sipArrowBorder {
border-color: transparent transparent transparent #e17500;
}
#smallipop.orange.sipPositionedRight .sipArrow {
border-color: transparent #f9c718 transparent transparent;
}
#smallipop.orange.sipPositionedRight .sipArrowBorder {
border-color: transparent #e17500 transparent transparent;
}
.cssgradients #smallipop.orange {
background-repeat: repeat-x;
background-image: -webkit-linear-gradient(top, #fff24d, #f9aa18);
background-image: -moz-linear-gradient(top, #fff24d, #f9aa18);
background-image: -ms-linear-gradient(top, #fff24d, #f9aa18);
background-image: -o-linear-gradient(top, #fff24d, #f9aa18);
background-image: linear-gradient(top, #fff24d, #f9aa18);
}
.boxshadow.rgba #smallipop.orange {
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.borderradius #smallipop.orange {
border-radius: 10px;
-o-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
.borderradius #smallipop.orange .sipContent {
border-radius: 10px;
-o-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
/* white theme */
#smallipop.white {
background-color: #fafafa;
border-color: #ccc;
text-shadow: 0 1px 1px #eee;
color: #444;
width: 200px;
max-width: 200px;
}
#smallipop.white .sipContent {
text-align: center;
}
#smallipop.white .sipArrow {
border-color: #fafafa transparent transparent transparent;
}
#smallipop.white .sipArrowBorder {
border-color: #ccc transparent transparent transparent;
}
#smallipop.white.sipAlignBottom .sipArrow {
border-color: transparent transparent #fafafa transparent;
}
#smallipop.white.sipAlignBottom .sipArrowBorder {
border-color: transparent transparent #ccc transparent;
}
#smallipop.white.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent #fafafa;
}
#smallipop.white.sipPositionedLeft .sipArrowBorder {
border-color: transparent transparent transparent #ccc;
}
#smallipop.white.sipPositionedRight .sipArrow {
border-color: transparent #fafafa transparent transparent;
}
#smallipop.white.sipPositionedRight .sipArrowBorder {
border-color: transparent #ccc transparent transparent;
}
.boxshadow.rgba #smallipop.white {
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.borderradius #smallipop.white {
border-radius: 12px;
-o-border-radius: 12px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
}
.borderradius #smallipop.white .sipContent {
border-radius: 12px;
-o-border-radius: 12px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
}
/* extension themes. keep at the bottom */
/* white theme extended, requires rgba support */
.rgba #smallipop.whiteTransparent {
background-color: rgba(255, 255, 255, 0.8);
}
.rgba #smallipop.whiteTransparent .sipArrow {
bottom: -21px;
border-color: rgba(255, 255, 255, 0.8) transparent transparent transparent;
}
.rgba #smallipop.whiteTransparent .sipArrowBorder {
border-color: transparent;
}
.rgba #smallipop.whiteTransparent.sipAlignBottom .sipArrow {
top: -21px;
border-color: transparent transparent rgba(255, 255, 255, 0.8) transparent;
}
.rgba #smallipop.whiteTransparent.sipPositionedLeft .sipArrow {
border-color: transparent transparent transparent rgba(255, 255, 255, 0.8);
}
.rgba #smallipop.whiteTransparent.sipPositionedRight .sipArrow {
border-color: transparent rgba(255, 255, 255, 0.8) transparent transparent;
}
/* fat shadow extension theme */
.boxshadow.rgba #smallipop.fatShadow {
-webkit-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
-moz-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

View file

@ -1,124 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
.syntaxhighlighter {
background-color: white !important;
}
.syntaxhighlighter .line.alt1 {
background-color: white !important;
}
.syntaxhighlighter .line.alt2 {
background-color: white !important;
}
.syntaxhighlighter .line.highlighted.alt1,
.syntaxhighlighter .line.highlighted.alt2 {
background-color: #e0e0e0 !important;
}
.syntaxhighlighter .line.highlighted.number {
color: black !important;
}
.syntaxhighlighter table caption {
color: black !important;
}
.syntaxhighlighter .gutter {
color: #afafaf !important;
}
.syntaxhighlighter .gutter .line {
border-right: 3px solid #6ce26c !important;
}
.syntaxhighlighter .gutter .line.highlighted {
background-color: #6ce26c !important;
color: white !important;
}
.syntaxhighlighter.printing .line .content {
border: none !important;
}
.syntaxhighlighter.collapsed {
overflow: visible !important;
}
.syntaxhighlighter.collapsed .toolbar {
color: blue !important;
background: white !important;
border: 1px solid #6ce26c !important;
border: 0px !important;
}
.syntaxhighlighter.collapsed .toolbar a {
color: blue !important;
}
.syntaxhighlighter.collapsed .toolbar a:hover {
color: red !important;
}
.syntaxhighlighter .toolbar {
color: white !important;
background: #6ce26c !important;
border: none !important;
}
.syntaxhighlighter .toolbar a {
color: white !important;
}
.syntaxhighlighter .toolbar a:hover {
color: black !important;
}
.syntaxhighlighter .plain,
.syntaxhighlighter .plain a {
color: black !important;
}
.syntaxhighlighter .comments,
.syntaxhighlighter .comments a {
color: #008200 !important;
}
.syntaxhighlighter .string,
.syntaxhighlighter .string a {
color: blue !important;
}
.syntaxhighlighter .keyword {
color: #006699 !important;
}
.syntaxhighlighter .preprocessor {
color: gray !important;
}
.syntaxhighlighter .variable {
color: #aa7700 !important;
}
.syntaxhighlighter .value {
color: #009900 !important;
}
.syntaxhighlighter .functions {
color: #ff1493 !important;
}
.syntaxhighlighter .constants {
color: #0066cc !important;
}
.syntaxhighlighter .script {
font-weight: bold !important;
color: #006699 !important;
background-color: none !important;
}
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a {
color: gray !important;
}
.syntaxhighlighter .color2,
.syntaxhighlighter .color2 a {
color: #ff1493 !important;
}
.syntaxhighlighter .color3,
.syntaxhighlighter .color3 a {
color: red !important;
}
.syntaxhighlighter .keyword {
font-weight: bold !important;
}

View file

@ -1,234 +0,0 @@
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @license
* Dual licensed under the MIT and GPL licenses.
*/
.syntaxhighlighter a,
.syntaxhighlighter div,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody,
.syntaxhighlighter table thead,
.syntaxhighlighter table caption,
.syntaxhighlighter textarea {
-moz-border-radius: 0 0 0 0 !important;
-webkit-border-radius: 0 0 0 0 !important;
background: none !important;
border: 0 !important;
bottom: auto !important;
float: none !important;
height: auto !important;
left: auto !important;
line-height: 1.1em !important;
margin: 0 !important;
outline: 0 !important;
overflow: visible !important;
padding: 0 !important;
position: static !important;
right: auto !important;
text-align: left !important;
top: auto !important;
vertical-align: baseline !important;
width: auto !important;
box-sizing: content-box !important;
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
font-weight: normal !important;
font-style: normal !important;
font-size: 1em !important;
min-height: inherit !important;
min-height: auto !important;
}
.syntaxhighlighter {
width: 100% !important;
margin: 1em 0 1em 0 !important;
position: relative !important;
overflow: auto !important;
font-size: 1em !important;
padding: 2px 0;
}
.syntaxhighlighter.source {
overflow: hidden !important;
}
.syntaxhighlighter .bold {
font-weight: bold !important;
}
.syntaxhighlighter .italic {
font-style: italic !important;
}
.syntaxhighlighter .line {
white-space: pre !important;
}
.syntaxhighlighter table {
width: 100% !important;
}
.syntaxhighlighter table caption {
text-align: left !important;
padding: .5em 0 0.5em 1em !important;
}
.syntaxhighlighter table td.code {
width: 100% !important;
}
.syntaxhighlighter table td.code .container {
position: relative !important;
}
.syntaxhighlighter table td.code .container textarea {
box-sizing: border-box !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
border: none !important;
background: white !important;
padding-left: 1em !important;
overflow: hidden !important;
white-space: pre !important;
}
.syntaxhighlighter table td.gutter .line {
text-align: right !important;
padding: 0 0.5em 0 1em !important;
}
.syntaxhighlighter table td.code .line {
padding: 0 1em !important;
}
.syntaxhighlighter.nogutter td.code .container textarea,
.syntaxhighlighter.nogutter td.code .line {
padding-left: 0em !important;
}
.syntaxhighlighter.show {
display: block !important;
}
.syntaxhighlighter.collapsed table {
display: none !important;
}
.syntaxhighlighter.collapsed .toolbar {
padding: 0.1em 0.8em 0em 0.8em !important;
font-size: 1em !important;
position: static !important;
width: auto !important;
height: auto !important;
}
.syntaxhighlighter.collapsed .toolbar span {
display: inline !important;
margin-right: 1em !important;
}
.syntaxhighlighter.collapsed .toolbar span a {
padding: 0 !important;
display: none !important;
}
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
display: inline !important;
}
.syntaxhighlighter .toolbar {
position: absolute !important;
right: 1px !important;
top: 1px !important;
width: 11px !important;
height: 11px !important;
font-size: 10px !important;
z-index: 10 !important;
}
.syntaxhighlighter .toolbar span.title {
display: inline !important;
}
.syntaxhighlighter .toolbar a {
display: block !important;
text-align: center !important;
text-decoration: none !important;
padding-top: 1px !important;
}
.syntaxhighlighter .toolbar a.expandSource {
display: none !important;
}
.syntaxhighlighter.ie {
font-size: .9em !important;
padding: 1px 0 1px 0 !important;
}
.syntaxhighlighter.ie .toolbar {
line-height: 8px !important;
}
.syntaxhighlighter.ie .toolbar a {
padding-top: 0px !important;
}
.syntaxhighlighter.printing .line.alt1 .content,
.syntaxhighlighter.printing .line.alt2 .content,
.syntaxhighlighter.printing .line.highlighted .number,
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
background: none !important;
}
.syntaxhighlighter.printing .line .number {
color: #bbbbbb !important;
}
.syntaxhighlighter.printing .line .content {
color: black !important;
}
.syntaxhighlighter.printing .toolbar {
display: none !important;
}
.syntaxhighlighter.printing a {
text-decoration: none !important;
}
.syntaxhighlighter.printing .plain,
.syntaxhighlighter.printing .plain a {
color: black !important;
}
.syntaxhighlighter.printing .comments,
.syntaxhighlighter.printing .comments a {
color: #008200 !important;
}
.syntaxhighlighter.printing .string,
.syntaxhighlighter.printing .string a {
color: blue !important;
}
.syntaxhighlighter.printing .keyword {
color: #006699 !important;
font-weight: bold !important;
}
.syntaxhighlighter.printing .preprocessor {
color: gray !important;
}
.syntaxhighlighter.printing .variable {
color: #aa7700 !important;
}
.syntaxhighlighter.printing .value {
color: #009900 !important;
}
.syntaxhighlighter.printing .functions {
color: #ff1493 !important;
}
.syntaxhighlighter.printing .constants {
color: #0066cc !important;
}
.syntaxhighlighter.printing .script {
font-weight: bold !important;
}
.syntaxhighlighter.printing .color1,
.syntaxhighlighter.printing .color1 a {
color: gray !important;
}
.syntaxhighlighter.printing .color2,
.syntaxhighlighter.printing .color2 a {
color: #ff1493 !important;
}
.syntaxhighlighter.printing .color3,
.syntaxhighlighter.printing .color3 a {
color: red !important;
}
.syntaxhighlighter.printing .break,
.syntaxhighlighter.printing .break a {
color: black !important;
}

View file

@ -1,66 +0,0 @@
ul.tagit {
padding: 0px 2px 3px 0 !important;
overflow: auto;
margin-left: inherit;
/* usually we don't want the regular ul margins. */
margin-right: inherit;
margin-bottom: 0 !important;
}
ul.tagit li {
display: block;
float: left;
margin: 1px 0px 1px 3px;
}
ul.tagit li.tagit-choice {
padding: .2em 18px .2em .5em;
padding: 3px 17px 2px 3px !important;
border-radius: 2px !important;
position: relative;
line-height: inherit;
}
ul.tagit li.tagit-new {
padding: .25em 4px .25em 0;
}
ul.tagit.no_input li.tagit-new {
display: none;
border: none;
background: none;
}
ul.tagit.no_input {
border: none;
background: none;
padding: 0 !important;
margin: -1px 0 -3px;
}
ul.tagit li.tagit-choice a.tagit-label {
cursor: pointer;
text-decoration: none;
}
ul.tagit li.tagit-choice .tagit-close {
cursor: pointer;
position: absolute;
right: .1em;
top: 50%;
margin-top: -8px;
}
/* used for some custom themes that don't need image icons */
ul.tagit li.tagit-choice .tagit-close .text-icon {
display: none;
}
ul.tagit li.tagit-choice input {
display: block;
float: left;
margin: 2px 5px 2px 0;
}
ul.tagit input[type="text"] {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: none;
margin: 0;
padding: 0;
background-color: inherit;
outline: none;
width: inherit;
}

View file

@ -1,111 +0,0 @@
body {
margin: 0;
font: 12px Verdana, Arial;
}
#input {
border: none;
margin: 0;
border: 0;
}
.te {
border: 1px solid #bbb;
padding: 0 1px 1px;
font: 12px 'Helvetica Neue', Arial;
margin: 25px;
}
.te iframe {
border: none;
width: 100% !important;
/* overflow: hidden !important; */
}
.teheader {
height: 31px;
border-bottom: 1px solid #bbb;
background: url("../../../images/plugins/tinyeditor/header-bg.gif") repeat-x;
padding-top: 1px;
}
.teheader select {
float: left;
margin-top: 0px;
}
.tefont {
margin-left: 12px;
}
.tesize {
margin: 0 3px;
}
.testyle {
margin-right: 12px;
}
.tedivider {
float: left;
width: 1px;
height: 30px;
background: #cccccc;
}
.tecontrol {
float: left;
width: 34px;
height: 30px;
cursor: pointer;
background-image: url("../../../images/plugins/tinyeditor/icons.png");
}
.tecontrol:hover {
background-color: #fff;
background-position: 30px 0;
}
.tefooter {
height: 32px;
border-top: 1px solid #bbb;
background: #f5f5f5;
}
.toggler {
float: left;
background: url("../../../images/plugins/tinyeditor/icons.png") -34px 2px no-repeat;
padding: 9px 13px 0 31px;
height: 23px;
border-right: 1px solid #ccc;
cursor: pointer;
color: #666666;
}
.toggler:hover {
background-color: #ffffff;
}
.resize {
float: right;
height: 32px;
width: 32px;
background: url("../../../images/plugins/tinyeditor/resize.gif") 15px 15px no-repeat;
cursor: s-resize;
}
#editor {
cursor: text;
margin: 0px;
}
.te {
margin: 0px 0px -4px 0px !important;
border-width: 0px;
width: 100% !important;
}
#input {
width: 100% !important;
}
.box .block textarea#input {
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
background-color: white;
border: none;
display: block;
float: left;
margin-bottom: 0px;
padding: 5px 0;
text-indent: 5px;
width: 70%;
}
.teheader .selector {
float: left;
margin-top: -1px;
margin-left: 2px;
margin-right: -4px;
}

View file

@ -1,101 +0,0 @@
/* TipTip CSS - Version 1.2 */
#tiptip_holder {
display: none;
position: absolute;
top: 0;
left: 0;
z-index: 99999;
}
#tiptip_holder.tip_top {
padding-bottom: 5px;
}
#tiptip_holder.tip_bottom {
padding-top: 5px;
}
#tiptip_holder.tip_right {
padding-left: 5px;
}
#tiptip_holder.tip_left {
padding-right: 5px;
}
#tiptip_content {
font-size: 11px;
color: #fff;
text-shadow: 0 0 2px #000;
padding: 4px 8px;
border: 1px solid rgba(255, 255, 255, 0.25);
background-color: #191919;
background-color: rgba(25, 25, 25, 0.92);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000000));
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
/*
box-shadow: 0 0 3px #555;
-webkit-box-shadow: 0 0 3px #555;
-moz-box-shadow: 0 0 3px #555;
*/
}
#tiptip_arrow,
#tiptip_arrow_inner {
position: absolute;
border-color: transparent;
border-style: solid;
border-width: 6px;
height: 0;
width: 0;
}
#tiptip_holder.tip_top #tiptip_arrow {
border-top-color: #fff;
border-top-color: rgba(255, 255, 255, 0.35);
}
#tiptip_holder.tip_bottom #tiptip_arrow {
border-bottom-color: #fff;
border-bottom-color: rgba(255, 255, 255, 0.35);
}
#tiptip_holder.tip_right #tiptip_arrow {
border-right-color: #fff;
border-right-color: rgba(255, 255, 255, 0.35);
}
#tiptip_holder.tip_left #tiptip_arrow {
border-left-color: #fff;
border-left-color: rgba(255, 255, 255, 0.35);
}
#tiptip_holder.tip_top #tiptip_arrow_inner {
margin-top: -7px;
margin-left: -6px;
border-top-color: #191919;
border-top-color: rgba(25, 25, 25, 0.92);
}
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
margin-top: -5px;
margin-left: -6px;
border-bottom-color: #191919;
border-bottom-color: rgba(25, 25, 25, 0.92);
}
#tiptip_holder.tip_right #tiptip_arrow_inner {
margin-top: -6px;
margin-left: -5px;
border-right-color: #191919;
border-right-color: rgba(25, 25, 25, 0.92);
}
#tiptip_holder.tip_left #tiptip_arrow_inner {
margin-top: -6px;
margin-left: -7px;
border-left-color: #191919;
border-left-color: rgba(25, 25, 25, 0.92);
}
/* Webkit Hacks */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
#tiptip_content {
padding: 4px 8px 5px 8px;
background-color: rgba(45, 45, 45, 0.88);
}
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
border-bottom-color: rgba(45, 45, 45, 0.88);
}
#tiptip_holder.tip_top #tiptip_arrow_inner {
border-top-color: rgba(20, 20, 20, 0.92);
}
}

Some files were not shown because too many files have changed in this diff Show more