_e("Download Letter", "templatemerge");
    ?>
</th>
        <th scope="col" class=""><?php 
    _e("Download Invoice", "templatemerge");
    ?>
</th> -->
        <th scope="col" class="manage-column"><?php 
    _e("Action", "templatemerge");
    ?>
</th>
      </tr>
    </thead>
    <tbody class="">
      <?php 
    $docs = TemplateData::get_completed_orders($form_id, $name, $email, $file_id, $paging, $current_user_id);
    // print_r($forms);
    if (is_array($docs) && sizeof($docs) > 0) {
        $i = 0;
        foreach ($docs as $doc) {
            $data = RGFormsModel::get_form($doc["fid"]);
            if ($doc['fid'] == TemplateData::companyform_id()) {
                TemplateData::get_certificates($doc['leadid']);
            }
            ?>
      <tr class='' valign="top">
        <td class="" ><?php 
            echo ++$i;
            ?>
</td>