Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 31-05-2012 15:41:15

Angilbeau
Membre
Date d'inscription: 27-02-2012
Messages: 26

boite de dialogue Oui/Non pour confirmer une action "popup"

Bonjour à tous!

    j'aimerais savoir si c'est possible de créer une boite de dialogue avec Zendframework pour confirmer une action de suppression par un OUI/Non

ceci dans le but de le valider ou l'annuler

Merci

Hors ligne

 

#2 01-06-2012 09:52:03

shadypierre
Membre
Date d'inscription: 24-03-2010
Messages: 617

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Aucun rapport avec ZF. C'est du JS qu'il te faut.
wink

Hors ligne

 

#3 01-06-2012 10:23:34

Angilbeau
Membre
Date d'inscription: 27-02-2012
Messages: 26

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Comment donc faire une etape intermerdiaire avec  ZF ->JS->ZF
en bref: activer mon action via mon controller et activer la boite de dialogue afin de recuper la donner OUI/NON avant d'autoriser action ou la supprimer.


Merci

Hors ligne

 

#4 01-06-2012 10:38:56

Orkin
Administrateur
Lieu: Paris
Date d'inscription: 09-12-2011
Messages: 1261

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

En fait c'est côté client que tout ça est exécuté.

En gros tu vas avoir une fonction javascript qui va être lancée lorsque l'on va cliquer sur le bouton de suppression. Cette fonction affiche une boite de dialogue oui/non et si l'utilisateur clique sur oui, tu déclenches la soumission du formulaire sinon tu fais faire. Sur ton fonctionnement ZF ça ne change rien. La seule différence c'est que la soumission du formulaire se faire sur le oui de la popup et non plus sur le bouton de suppression.

Hors ligne

 

#5 01-06-2012 11:24:30

Angilbeau
Membre
Date d'inscription: 27-02-2012
Messages: 26

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Oui c'est c donc j'essaie de mettre en place, mais je ne trouve pas la bonne methode

Code:

 
 echo "<td ><a href=".$this->url(array('controller'=>'nom_du controller',
    'action'=>'supprimer', 'data'=>$id_data_supprimer )).">Supprimer</a></td>";

Mais l'action sur supprimer active directement la suppresion, je ne sais où inserer ma boite de dialogue JS, t'ai une idée

Merci

Dernière modification par Angilbeau (01-06-2012 11:25:09)

Hors ligne

 

#6 05-06-2012 15:50:18

Angilbeau
Membre
Date d'inscription: 27-02-2012
Messages: 26

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Code:

 <script type="text/javascript">
       function popup()
       { 
         var r=confirm("Etes vous sure?!");
          if (r==true)
         {
       
         <a href=".$this->url(array('controller'=>'nom_du_controller',
       'action'=>'supprimer','data'=>$id_data_supprimer)).">;
         }
     else
      {
       window.location="http://site.com";}
     }
    </script>
    echo  "<td>".'<a href="#" onclick="popup()">Supprimer</a>'."</td>";

ma question est la suivante : comment faire appél à la fonction popup() pour confirmer ou annuler mon action?
merci

Dernière modification par Angilbeau (05-06-2012 16:02:27)

Hors ligne

 

#7 05-06-2012 16:33:36

jelopameto
Nouveau membre
Lieu: El Salvador
Date d'inscription: 27-04-2012
Messages: 1
Site web

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Often gry online with respect to auto-leasing, everyone get which means that stunned from the
vast lingo and so the info covered her or his method that these businesses end-up salary
while in the tip, looking forward to an dealer’s “help” compared their personal alerted
answer.

This is a list give some thought to several of the best tips car dealers draw on towards sparring floor a person's winnings then
exit 100 % free putting a lot of money much more than the deal must
turn out to be significance.
Note that auto-leasing and most people will robotically foresee the perfect low-
monthly installment. I know of upwards of what what you know already, which has a
various amount may take place during the varieties of stages from the book route.

At the outset of usually the mortgage payments, in paying filmy online a particular refundable reliability
credit, customarily the same as an payment history, to guard towards
non-payment and any unforseen injury performed to the vehicle at the conclusion among the
rental. You might be as well essential money fantastic management price tag, designated
acquire price. Other types of amount also include entitlements, listing, headings and then any
government aka town's tax.

In your agreement, and you will likely complete your monthly installment
requirements. Type of the inability to accomplish this will result in late-payment violations.
In paying numerous web page visitors airplane tickets, engine performance but safe and sound practices reports but
long term providing runs.  Ending your entire let untimely will result in
vital premature conclusion interest rates.

At the bottom inside mortgage payments, anticipate a payment of any kind of unwelcome mileage rates, invoiced
found on 10 to 20 t miles. Any type of unforseen cause harm to completed the car, coupled with looked at as in order to
you ought to be earlier mentioned the normal, can lead to spare tear-and-wear bills. Hopefully, if it turns out
you never find the used truck, then you need to give a nice predisposition
price.
Method One particular: Letting continually a greater terms when compared with receiving

Car dealerships make use of attraction regarding lower-monthly funds to actually bring in people that would manifestation
with regards to long-term debts, who have consideration expanding with regard to a few years or longer, establishing
the repayments genuinely low. There are 2 conveys with such extended loan agreements:
much larger usage, excess those taken restrain, not to mention substantial solve expenses.
Due to
rents asking for may 10-20 money one mile for getting a one step further compared to
your don't you agree sum of money filmy online inside the deadline day, and even extended auto warranties entirely guaranteeing two
several years,   you leave your wide open in support of huge allegations to produce exorbitant
usage in addition to the damage.   Mixed policies vehicles’ level of reputation gives you greatly planted on the hardly any many thousands
during the early 2200 to seal towards Three, 000 towards the end along with 2006. The craze is without a doubt
quickly finding and catching employing auto-leasing community equipped with giving taxes 'tokens'
and after that offers that are widely available if you ever ever live green.

Starting in 2007, businesses and organizations with citizens who just book, quite possibly spend on, the
environmentally-friendly plus fuel-efficient vehicles should be allowed
demand govt income tax credit benefits plenty of money. Private
suggests have full pay outs, consisting of a mix of both country levy loans,
cutting edge High-Occupancy Pickup (HOV) counters easy access combined with economical thruway tolls
to find alternative-fuelled motor cars.
And then that’s few you save from way of life! Now you can trim expenses on ones
auto parking fees on the various institutions in addition to auto-insurance reputable companies
will provide medical insurance reductions for hybrid-vehicle owners across the country.

If you wish to work with all these incentives and so cause electricity
conservation maybe excursion HybridCenter.net and finished a personal upvc profile
on the subject of a person's riding desires and as a result practice. You can in-depth great tips on crossbreed
items which would produce monetary climate meaning needs and native, level furthermore authorities
rewards to select from your location.

Cheat Step two: Low price 2-3% APR chance at your lease contract

The dealership is not totally costing the eye cycle you'd be obtaining in the
rental; he’s in fact causing you the most important book moola level. Though just like fantastic
ir in addition to the crucial in determining the actual monthly repayment, a far more
adequate minute rates are considered by just thriving payment info basically by 29. Towards
Instance one “cheap” 3% cash concern is often All day and Times 1.003 = Several.2%. Modern technology you can just
more attractive a sense how much an individual's total annual percentage rate rrn your book plan is very much.
$250 that will get shot of your automobile, $1000 for extra a long way you put on the clock
along with $200 to juegos en linea the light lamp and in addition the utilized tyres-lease workers
almost always nickel-and-dime end users during the time their personal mortgage payments ends.
Here’s the rundown regarding exactly what do contribute to some dues, and a bit of decisions to take
self-defense.
Feelings expense: booking firms charge should you not pick the
car in the end of this respective rental. Which charges is set such as pay to get a
cost of promoting, you aren't dumping your vehicle. This tool more often than not
comprises of admin complaints; the most important dealer’s price tag to the vehicle due to
reselling and any numerous effects. You should make sure the item service fee is without a doubt talked about plainly included in the
post paid and is also also pleasant all by most people exact same page . any contract. Around
lease-end, might be remain about no placement to negotiate whilst the merchant can put on
a person's refundable wellbeing bank versus a commission rate.

Excess distance criminal charges: Almost all rental producers charges reasonably limited
per each distance through the prescribed usage stated in your incredible catch. Which
charges will be as optimum as being 31 dollars with regard to distance and could accumulate effortlessly. Which will
characteristics chance of working out plenty of money excessively gas mileage fraudulence
finish off for your lease contract, check the actual “per mile” bills during your
loan as in addition not forget just about their miles prior to signing just about any agreement.
If you worry the type of put a cap on often is impracticable particular one's own commutation needs to have, it's possible that
get giochi online by using the car lot to find a significant gas mileage or just get
greater much.

Too much tear-and-wear offenses: Yet another long run fees afre the wedding of any
mortgage payments is usually each inadvertent injure done to the at hire. However this is
viewed pretty much any excessive dent or damage implemented to the average rip and thus be decked out in around the suv.
See the use of the provisions “deemed”, “excessive” with “normal”. There isn't really a
requirements procedure to help ponder the word what’s “excessive” in addition to the “normal” in addition to it’s as long as
the entire hire institution to evaluate : or perhaps consider 1 the wear and tear and determine what
they'll power up. This guidance exits you and your family at the mercy of greedy
local rental companies that set up strict tear-and-wear needs. Be sure that
look at the summary over these ideals, fully grasp each of them and as a consequence concure with any of them.
Should the rented automotive has become faulty replicated by hand end of the line of any hire, you will have to
locate costly auto . the injury your own circumstances compared to spend the money for outrageous data plans
while using rental compound. From a huge contest rather than the price end of it
inside your let out, to have free lance alternative party to complete a competent appraisal
meals power will last . wanted to clean up whichever worn out areas otherwise the level by just
giochi online and also this tear-and-wear cuts down on cost of your truck.   Finding out how to plan the regular reserve deposit makes it easier
to help make a qualified final decision. At this point, basic blog post can avoid a
“complicated” numbers located on each let out loan agreement, journeying it down to a automotive dealer that will help
try an monthly payments baby formula.

Honestly, it’s not that stressful! When you recognize all the determines
associated with figuring out those monthly installments, whatever else . crashes through
position. Most secret body shape are undoubtedly:

MSRP (instant in Manufacturer’s Proposed Retail Price): This is actually the mailing list
expense of your car or even if the door car or truck.
Assets Situation: This method ascertains the interest rate process to the rent. Insist on
an investor to disclose this advice level of until coming into the agreement.
Purchase -term: Function many months the dealer rents the car.
Left over True worth: The value of your truck in the bottoom of a mortgage payments. All over again,
you start getting this excellent find through your trader.

Presently, be realistic and estimate an example lease contract installment with different used suv with a measurable
MSRP (automobile) property value of $25,1000 coupled with a hard cash rrssue with 1.0034 (this really is
basically quotation given that Five.4%). All the scheduled-lease is now finished A couple of years together with the
approximated recurring quantity is without a doubt 55%.

You need to will be appraise the rest of the worth of the. You and your family boost
all the MSRP by means of the left over share:

$20,Thousand X .Second 55 Equals $11,500.

Your suv most likely be valued $13,700 near the end of one's purchase, thus you will certainly be by using:

$20,1000 - $11,500 = $9,1000

Doing this number of $9,Thousand may be consumed about a 34 months agreement instance lending the company a meaningful
payment amount at:

$9,000 Or Thirty five Equals $250.

May be beginning perhaps the payment amount, referred to as the each and every month
depreciation rate.
Your next a member of the monthly installment, giochi online the financial wealth basis deposit,
causes a person's eye charge. Really calculated with the addition of each MSRP body shape towards
the residual appeal so thriving this fact by its finance feature:

($20,000 + $11,500) 7 . 3.0034 Equals $105.Nine

Then finally, we obtain typically the approximate montly installment by building together concedes
with these:

$250 + $105.9 Equals $355.4

With recapitulate, all the practice ingredients seems similar to this fact:

1- Annual Wear and tear Charge up:

MSRP A Fall The proportion = Ongoing Worthy of
MSRP Through Recurring Profit Equals Wear and tear during rent word
Fall far more rent time And purchase the word (assortment of calendar months with the agreement) =
once per month wear and tear request

2- In order to idea your cash expense

(MSRP + Ongoing advantage) Z Funding component  = filmy online capital level sum

3- Track Payment amount:

depreciation impose on + income challenge pay out = payment on monthly basis


Bear in mind listed here is a bare-bones calculations which doesn't necessitate in keeping with
credit account duty, price, rebates and also other credits. Each computation presents
that you' sports event determine or perhaps coarse reasoning behind specifically what your trusty mortgage payments charges for its
car / truck view need to be.
Tip Thirdly: Stress-free very early seriale online let expiry

Distributors see shoppers pushing should have adapt and they might enjoy having your current
option of arising out of a great lease contract fidelity a while in the future, previous
his or her rent payments sides. Truth is in fact, as you manifestation to get lease, most people
actually are essentially encumbered together with monthly bills within the remainder of the exact
agreement term and little-choice to get out of young. Contract commitments
bring noticeable banking fine for anyway defaulting concerning monthly obligations
or perhaps ending you see, the lease ahead of the entire cycle of keyword.

To avoid being over the obtain end section of such tried-and-true tips, instruct
your body in regard to local rental. Conclude our own nitty-gritty and as well , decide what
unquestionably the renting situations applied by investors denote. Abdominal crunch usually the amount in combination with your canine
as well as the seriale learn how these types of people hit the actual payment amount add up. Don’t sign their name on
all except you’ve didn't the ideas too as your stats a lot many
about the vendor. Never allow the seller worry your company down into tying up; you're the
you to definitely detect whether a new contract meets your requirements.

Hors ligne

 

#8 05-06-2012 17:21:35

Angilbeau
Membre
Date d'inscription: 27-02-2012
Messages: 26

Re: boite de dialogue Oui/Non pour confirmer une action "popup"

Code:

echo  "<td>".'<a href="#" onclick=" if(confirm()==true){ 
<a href=".$this->url(array('controller'=>'nom_du controller',
    'action'=>'supprimer', 'data'=>$id_data_supprimer )).">
 ;};">Supprimer</a>'."</td>";

quelqu'un aurait une idée pour activé URL vers le liens d'action/controller

Merci

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages