コード例 #1
0
ファイル: ajax.php プロジェクト: arunabh1911/ecom
}
if ($_POST['acts'] == 'getField') {
    if ($_POST['fld'] == 'textfield') {
        getTextfiels();
    }
    if ($_POST['fld'] == 'textarea') {
        getTextarea();
    }
    if ($_POST['fld'] == 'images') {
        getImage();
    }
    if ($_POST['fld'] == 'checkbox') {
        getCheckbox();
    }
    if ($_POST['fld'] == 'radio') {
        getRadio();
    }
    if ($_POST['fld'] == 'list') {
        getList();
    }
}
function getTextfiels()
{
    $nm = substr(number_format(time() * rand(), 0, '', ''), 0, 4);
    ?>
<p>
	<label>Text Field &nbsp;&nbsp; <span onclick="$(this).closest('p').remove()" style="cursor: pointer; color:#AB144D"><strong>X</strong></span> </label>
	<span class="field">
	<input name="typ[]" type="hidden" value="textfield" />
	<input name="lbl[]" type="text" placeholder="Label" /> <br />
	<input type="checkbox" onclick="document.getElementById('r<?php 
コード例 #2
0
ファイル: suppliers-view.php プロジェクト: arunabh1911/ecom
    @($fieldlist = $db->runQuery("SELECT * FROM " . BUILDER . "  where formId='" . $view1['formId'] . "' "));
    while (@($fields = $db->getQuery($fieldlist))) {
        if ($fields['type'] == 'textfield') {
            getTextfiels($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'textarea') {
            getTextarea($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'image') {
            getImage($fields['label'], $fields['require'], str_replace(' ', '', $fields['label'] . '_' . $fields['id'] . '[]'), $fields['field_answer']);
        }
        if ($fields['type'] == 'checkbox') {
            getCheckbox($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id'] . '[]'), $fields['field_answer']);
        }
        if ($fields['type'] == 'radio') {
            getRadio($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
        if ($fields['type'] == 'list') {
            getList($fields['label'], $fields['require'], $fields['subLabel'], str_replace(' ', '', $fields['label'] . '_' . $fields['id']), $fields['field_answer']);
        }
    }
    ?>
    
    <p>
<span class="field">
<input type="hidden" name="admin" value="updateform-answer" />
<input type="hidden" name="userId" value="<?php 
    echo $_REQUEST['userId'];
    ?>
" />
<input type="hidden" name="formId" value="<?php 
コード例 #3
0
ファイル: builder-add.php プロジェクト: arunabh1911/ecom
    while ($buil = $db->getQuery($bl1)) {
        echo '<p></p>';
        if ($buil['type'] == 'textfield') {
            getTextfiels($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'textarea') {
            getTextarea($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'image') {
            getImage($buil['label'], $buil['require']);
        }
        if ($buil['type'] == 'checkbox') {
            getCheckbox($buil['label'], $buil['require'], $buil['subLabel']);
        }
        if ($buil['type'] == 'radio') {
            getRadio($buil['label'], $buil['require'], $buil['subLabel']);
        }
        if ($buil['type'] == 'list') {
            getList($buil['label'], $buil['require'], $buil['subLabel']);
        }
    }
}
?>

<span id="dat"></span>

                  <p class="stdformbutton">                     
						<?php 
if (@$_REQUEST['id'] == '' && $_REQUEST['userId'] != "") {
    ?>
                        <button class="submit radius2">&nbsp;&nbsp; Save &nbsp;&nbsp;</button>
コード例 #4
0
ファイル: index.php プロジェクト: simajzenman/php-remise2
                            
                        </li>

                        <li class="bodyStyle left">
                            <input required  id="fun" type="radio" name="bapteme" <?php 
getRadio("fun");
?>
 value="fun">
                            <label for="fun">Gindailler</label>
                            
                        </li>


                        <li class="bodyStyle left">
                            <input required  id="experience" type="radio" name="bapteme" <?php 
getRadio("xp");
?>
 value="xp">
                            <label for="experience">Vivre de nouvelles expériences</label>
                            
                        </li>

                    </ul>
                        
                       

                 </li>
 
                <li class="form-group col-xs-12 submit">
                    <input type="submit" name="submit" class="btn btn-primary" value="envoyer">
                </li>