Modify existing PHP Script

Job ID: 31060493

Budget: $10 – $30 USD

I need a modification done.

Currently the script will allow me to import a large number of embeded, downloaded or hot linked videos using a CVS file. It provides 9 fields to use, the fields are imported via the script.

Often times I need more than 9 fields... For example one of my imports may contain 15 parts of data, but since I only have 9 fields to use, I cannot use that import file.

See image.

I need to make it so that either I have 20 or so "import fields" or the ability via ajax or something to add extra fields if needed... for the imports.. Please note the script does a "None" feature that will allow to "skip" a section of the import CSV file... hope that makes sense.

Here is the part of the PHP script that is calling the 9 fields.

"<div class="box box-primary">
<div class="box-header with-border"><h3 class="box-title"><?php echo __('import-fields'); ?></h3></div>
<div class="box-body">
<?php $index = 1; foreach ($this->fields as $key => $name): ?>
<div class="form-group">
<label class="col-sm-3 control-label" for="order_<?php echo $index; ?>"> <?php echo __('field'); ?> <i class="fa fa-question" data-toggle="tooltip" data-placement="top" title="<?php echo __('csv-field-help'); ?>"></i></label>
<div class="col-sm-9 col-md-4 col-lg-3">
<?php $current = (isset($this->orders[$index]) && $this->orders[$index] != '0') ? $this->orders[$index] : ''; ?>
<?php echo VForm::select('orders['.$index.']', $this->fields, $current, array('class' => 'form-control select2', 'id' => 'order_'.$index), array('display' => 'None','value' => 0)); ?>
</div>
</div>
<?php ++$index; endforeach; ?>
</div>
</div>"
Related categories: PHP JavaScript AJAX Software Architecture MySQL