Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [inne][CSS][PHP]Zmiana wygladu przycisku
marcinbul
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 22.07.2014

Ostrzeżenie: (0%)
-----


Mam problem skonstruowałem strone z concrete5 tylko mam jeden problem nie umiem zmienic przycisku formularzy, dotarłem do pliku php z jednym z nich
  1. <?php defined('C5_EXECUTE') or die(_("Access Denied."));
  2. $ih = Loader::helper("interface/flag", 'multilingual');
  3. ?>
  4.  
  5. <div class="ccm-multilingual-language-list-wrapper">
  6. <strong><?php echo $label?></strong>
  7.  
  8. <form method="post" action="<?php echo $action?>" id="ccm-multilingual-language-list">
  9. <?php if (Loader::helper('validation/numbers')->integer($_REQUEST['rcID'])) { ?>
  10. <input type="hidden" name="ccmMultilingualCurrentPageID" value="<?php echo Loader::helper('text')->entities($_REQUEST['rcID'])?>" />
  11. <?php } ?>
  12.  
  13. <?php foreach($languageSections as $ml) { ?>
  14. <div class="ccm-multilingual-language-list-item">
  15.  
  16. <input type="radio" name="ccmMultilingualSiteDefaultLanguage" value="<?php echo $ml->getLocale()?>" <?php if ($defaultLanguage == $ml->getLocale()) { ?> checked="checked" <?php } ?> /><?php
  17. print $ih->getSectionFlagIcon($ml);
  18. print $ml->getLanguageText($ml->getLocale());
  19. print ' ' . (strlen($ml->msIcon)?'('.$ml->msIcon.')':'');
  20. ?></div>
  21.  
  22. <?php } ?>
  23.  
  24. <div class="ccm-multilingual-site-default-remember">
  25. <?php echo $form->checkbox('ccmMultilingualSiteRememberDefault', 1, 1)?> <?php echo $form->label('ccmMultilingualSiteRememberDefault', t('Remember my choice on this computer.'))?>
  26. </div>
  27.  
  28. <?php echo $form->submit('submit', t('Save'))?>
  29. </form>
  30.  
  31. </div>


tutaj dziwnie jest wpisane chyba totalnie w jezyku php (IMG:style_emoticons/default/tongue.gif) No i nie mam kompletnie pojecia jak ugrysc tego submita zeby tak nie odstawał od reszty, wystarcza mi proste mozliwosci zminy jego wyglądu, bede wdzieczny jak ktos zainteresował by się tematem (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
tzm
post
Post #2





Grupa: Zarejestrowani
Postów: 675
Pomógł: 58
Dołączył: 17.12.2013

Ostrzeżenie: (10%)
X----


a masz to gdzieś na serwerze?
Go to the top of the page
+Quote Post
in5ane
post
Post #3





Grupa: Zarejestrowani
Postów: 1 335
Pomógł: 34
Dołączył: 9.11.2005
Skąd: Wrocław

Ostrzeżenie: (10%)
X----


Zamień to
  1. <?php echo $form->submit('submit', t('Save'))?>
na to
  1. <?php echo $form->submit('submit', t('Save'), array(), 'mojButton)?>
I teraz w css możesz się do tego odwołać poprzez
  1. .mojButton {}


Ten post edytował in5ane 22.07.2014, 07:21:27
Go to the top of the page
+Quote Post
marcinbul
post
Post #4





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 22.07.2014

Ostrzeżenie: (0%)
-----


O boże, geniusz (IMG:style_emoticons/default/smile.gif) Bardzo dziekuje jeszcze nie testowalem ale wydaje mi sie ze będzie ok, taka mala rzecz a wiedzialem nad nią przez cala noc (IMG:style_emoticons/default/tongue.gif) Bo cala stronie mam odwaloną w jenym stylu i te przyciski lekko mówiąc nie pasowały
.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 27.09.2025 - 18:14