试图在我的一个模块中添加一个上传按钮...首先,浏览器中的视图很混乱,因为看不到物理按钮...
有人这样做是为了帮忙吗?下面是我的查看代码...
<?php echo form_open_multipart($this->uri->uri_string(), 'class="form-horizontal"'); ?>
<fieldset>
<div class="control-group <?php echo form_error('products_product_title') ? `enter code here`'error' : ''; ?>">
<?php echo form_label('Product Title'. lang('bf_form_label_required'), 'products_product_title', array('class' => "control-label") ); ?>
<div class='controls'>
<input id="products_product_title" type="text" name="products_product_title" maxlength="50" value="<?php echo set_value('products_product_title', isset($products['products_product_title']) ? $products['products_product_title'] : ''); ?>" />
<span class="help-inline"><?php echo form_error('products_product_title'); ?></span>
</div>
<div class="control-group <?php echo form_error('products_product_path') ? 'error' : ''; ?>">
<?php echo form_label('Upload Card'. lang('bf_form_label_required'), 'products_product_path', array('class' => "control-label") ); ?>
<div class='controls'>
<input id="products_product_path" type="submit" name="submit_form" value="<?php echo set_value('products_product_path', isset($products['products_product_path']) ? $products['products_product_path'] : ''); ?>" />
<span class="help-inline"><?php echo form_error('products_product_path'); ?></span>
</div>
</div>
<div class="form-actions">
<br/>
<input type="submit" name="save" class="btn btn-primary" value="Create products" />
or <?php echo anchor(SITE_AREA .'/developer/products', lang('products_cancel'), 'class="btn btn-warning"'); ?>
</div>
</fieldset>
<?php echo form_close(); ?>