Thursday, January 24, 2013

Creating Data Picker Using Yii Framework [Part 2]

Read the first Part  :: Contain the database and basic creating / generating models / crud


CJUIDIALOG

In these part 2 I will concentrate on CJuiDialog on how to create pop up button. If you need explanation bit further go to this http://www.yiiframework.com/doc/api/1.1/CJuiDialog/.

Now lets start coding. I will creating button that will open dialog.

Open protected\views\post\_form.php and add this code, if you now javascript it will help.

<input type="button" value="Get List User" name="get_user_btn" onclick="$('#mydialog').dialog('open'); return false;" > 

So you will get
<div class="row">
        <?php echo $form->labelEx($model,'id_user'); ?>
        <?php echo $form->textField($model,'id_user'); ?>
        <input type="button" value="Get List User" name="get_user_btn" onclick="$('#mydialog').dialog('open'); return false;" >
        <?php echo $form->error($model,'id_user'); ?>
    </div>

This image should help

[Creating Button]

Tuesday, March 1, 2011

Creating Data Picker Using Yii Framework [Part 1] Step By Step

Well if you don’t know what is Yii Framework. I recommend just go to the main site http://www.yiiframework.com
And then http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app
This tutorial was meant for programmer who knows and already creating web application using Yii framework.

What we’re going to create and learn.

This tutorial was based on my thread at Yii framework forum : http://www.yiiframework.com/forum/index.php/topic/16797-data-picker/

We will be creating Data Picker. What is data picker ? well the idea was simple, its just like a Date Picker but instead of Date we load Data from database.

Maybe this image will make you understand a little bit.


[IMAGE END SAMPLE]

Tuesday, September 21, 2010

Free DropDownMenu

There are few site that host free dropdownmenu...
this is the only site that i found interesting

http://www.lwis.net/free-css-drop-down-menu/
and
dynamicdrive.com

Friday, August 20, 2010

Drupal : Creating SlideShow

Currently i have been digging this slideshow for drupal. but i still can't get the hang of it.

i really wanna write something about this. but frankly, i can't... for now..

if i found how to create a slideshow on the homepage of drupal website. i'll let you all now.

im trying to figure out the ddblock from drupal. here's the module https://drupal.org/project/ddblock

just a little note.
since i am having problem with the image not showing.
i should check for Administer->Site Configuration->File System
if it said sites/default/files
and @Image Folder setting in Home » Administer » Site building » Blocks said
sites/default/files
it just mean that you should place the image @sites/default/files/sites/default/files/images.jpg
it really took quite a while to figuring this.

another note is : at administer page the image and block is showing but at anonymous user is not showing at all.
Check Permission @Home » Administer » User management
@ddk block module check list the anonymous user.

Saturday, July 31, 2010

TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]

If this is your first visit then you should know that this is the part 4. You can read the previous part from this link :

TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]


Now for the part for of the tutorial. I will create the copyrights thingy at the bottom right of the page.

Lets just see what i’ve done in the analysis. This is what i will try to create.



After few tries this is actually very simple. The field that handle footer like this is located at “Site Information”.
Lets go to “Site Information” just click [Administer->Site configuration->Site Information]. Then just fill the “Footer Message Field”. you can write few HTML code in the field. just like this.



And Thats it. IT IS SIMPLE WHEN YOU KNOW WHERE THE FIELD IS. Actually its preety much spending a hours or two just to find the right field.

Thanks for reading this crap. I appreciate it. ?

please Visit The Previous Tutorial :

TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]

Wednesday, July 28, 2010

TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]

If this were you drop. then you'll notice this is the part 3. please visit my previous tutorial through this link :
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]
TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]

Now i’m gonna write about how we make “News and Event” that appear at homepage.
First off all lets see the analysis. Overall analysis is already made at the first part of this blog. You can access it from these link. Anyway here’s the analysis.


From the first analysis-i don’t know if that is called analysis- i still don’t know what “Content Type” or “Module” that being used.
After done with several test, and try it seems that “Blog Module” have some “Block” called “Recent Blog Post”. This block is displaying recent blog post without the dates. I think its preety much the same except maybe a little detail. So im gonna use this module. To create “News and Event”.

Tuesday, July 27, 2010

Learning Taxonomy in drupal

currently i'm learning taxonomy in drupal.
i don't quite get it.
i'll just keep on trying and just see what the result.
i hope i can create something simple.